pdf.worker.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513
  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.179';
  23. PDFJS.build = '2acb40f';
  24. (function pdfjsWrapper() {
  25. // Use strict in our context only - users might not want it
  26. 'use strict';
  27. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  28. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  29. /* Copyright 2012 Mozilla Foundation
  30. *
  31. * Licensed under the Apache License, Version 2.0 (the "License");
  32. * you may not use this file except in compliance with the License.
  33. * You may obtain a copy of the License at
  34. *
  35. * http://www.apache.org/licenses/LICENSE-2.0
  36. *
  37. * Unless required by applicable law or agreed to in writing, software
  38. * distributed under the License is distributed on an "AS IS" BASIS,
  39. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40. * See the License for the specific language governing permissions and
  41. * limitations under the License.
  42. */
  43. /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL,
  44. Promise */
  45. 'use strict';
  46. var globalScope = (typeof window === 'undefined') ? this : window;
  47. var isWorker = (typeof window == 'undefined');
  48. var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
  49. var TextRenderingMode = {
  50. FILL: 0,
  51. STROKE: 1,
  52. FILL_STROKE: 2,
  53. INVISIBLE: 3,
  54. FILL_ADD_TO_PATH: 4,
  55. STROKE_ADD_TO_PATH: 5,
  56. FILL_STROKE_ADD_TO_PATH: 6,
  57. ADD_TO_PATH: 7,
  58. FILL_STROKE_MASK: 3,
  59. ADD_TO_PATH_FLAG: 4
  60. };
  61. var ImageKind = {
  62. GRAYSCALE_1BPP: 1,
  63. RGB_24BPP: 2,
  64. RGBA_32BPP: 3
  65. };
  66. // The global PDFJS object exposes the API
  67. // In production, it will be declared outside a global wrapper
  68. // In development, it will be declared here
  69. if (!globalScope.PDFJS) {
  70. globalScope.PDFJS = {};
  71. }
  72. globalScope.PDFJS.pdfBug = false;
  73. PDFJS.VERBOSITY_LEVELS = {
  74. errors: 0,
  75. warnings: 1,
  76. infos: 5
  77. };
  78. // All the possible operations for an operator list.
  79. var OPS = PDFJS.OPS = {
  80. // Intentionally start from 1 so it is easy to spot bad operators that will be
  81. // 0's.
  82. dependency: 1,
  83. setLineWidth: 2,
  84. setLineCap: 3,
  85. setLineJoin: 4,
  86. setMiterLimit: 5,
  87. setDash: 6,
  88. setRenderingIntent: 7,
  89. setFlatness: 8,
  90. setGState: 9,
  91. save: 10,
  92. restore: 11,
  93. transform: 12,
  94. moveTo: 13,
  95. lineTo: 14,
  96. curveTo: 15,
  97. curveTo2: 16,
  98. curveTo3: 17,
  99. closePath: 18,
  100. rectangle: 19,
  101. stroke: 20,
  102. closeStroke: 21,
  103. fill: 22,
  104. eoFill: 23,
  105. fillStroke: 24,
  106. eoFillStroke: 25,
  107. closeFillStroke: 26,
  108. closeEOFillStroke: 27,
  109. endPath: 28,
  110. clip: 29,
  111. eoClip: 30,
  112. beginText: 31,
  113. endText: 32,
  114. setCharSpacing: 33,
  115. setWordSpacing: 34,
  116. setHScale: 35,
  117. setLeading: 36,
  118. setFont: 37,
  119. setTextRenderingMode: 38,
  120. setTextRise: 39,
  121. moveText: 40,
  122. setLeadingMoveText: 41,
  123. setTextMatrix: 42,
  124. nextLine: 43,
  125. showText: 44,
  126. showSpacedText: 45,
  127. nextLineShowText: 46,
  128. nextLineSetSpacingShowText: 47,
  129. setCharWidth: 48,
  130. setCharWidthAndBounds: 49,
  131. setStrokeColorSpace: 50,
  132. setFillColorSpace: 51,
  133. setStrokeColor: 52,
  134. setStrokeColorN: 53,
  135. setFillColor: 54,
  136. setFillColorN: 55,
  137. setStrokeGray: 56,
  138. setFillGray: 57,
  139. setStrokeRGBColor: 58,
  140. setFillRGBColor: 59,
  141. setStrokeCMYKColor: 60,
  142. setFillCMYKColor: 61,
  143. shadingFill: 62,
  144. beginInlineImage: 63,
  145. beginImageData: 64,
  146. endInlineImage: 65,
  147. paintXObject: 66,
  148. markPoint: 67,
  149. markPointProps: 68,
  150. beginMarkedContent: 69,
  151. beginMarkedContentProps: 70,
  152. endMarkedContent: 71,
  153. beginCompat: 72,
  154. endCompat: 73,
  155. paintFormXObjectBegin: 74,
  156. paintFormXObjectEnd: 75,
  157. beginGroup: 76,
  158. endGroup: 77,
  159. beginAnnotations: 78,
  160. endAnnotations: 79,
  161. beginAnnotation: 80,
  162. endAnnotation: 81,
  163. paintJpegXObject: 82,
  164. paintImageMaskXObject: 83,
  165. paintImageMaskXObjectGroup: 84,
  166. paintImageXObject: 85,
  167. paintInlineImageXObject: 86,
  168. paintInlineImageXObjectGroup: 87,
  169. paintImageXObjectRepeat: 88,
  170. paintImageMaskXObjectRepeat: 89,
  171. paintSolidColorImageMask: 90,
  172. constructPath: 91
  173. };
  174. // A notice for devs. These are good for things that are helpful to devs, such
  175. // as warning that Workers were disabled, which is important to devs but not
  176. // end users.
  177. function info(msg) {
  178. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  179. console.log('Info: ' + msg);
  180. }
  181. }
  182. // Non-fatal warnings.
  183. function warn(msg) {
  184. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  185. console.log('Warning: ' + msg);
  186. }
  187. }
  188. // Fatal errors that should trigger the fallback UI and halt execution by
  189. // throwing an exception.
  190. function error(msg) {
  191. // If multiple arguments were passed, pass them all to the log function.
  192. if (arguments.length > 1) {
  193. var logArguments = ['Error:'];
  194. logArguments.push.apply(logArguments, arguments);
  195. console.log.apply(console, logArguments);
  196. // Join the arguments into a single string for the lines below.
  197. msg = [].join.call(arguments, ' ');
  198. } else {
  199. console.log('Error: ' + msg);
  200. }
  201. console.log(backtrace());
  202. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  203. throw new Error(msg);
  204. }
  205. function backtrace() {
  206. try {
  207. throw new Error();
  208. } catch (e) {
  209. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  210. }
  211. }
  212. function assert(cond, msg) {
  213. if (!cond) {
  214. error(msg);
  215. }
  216. }
  217. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  218. unknown: 'unknown',
  219. forms: 'forms',
  220. javaScript: 'javaScript',
  221. smask: 'smask',
  222. shadingPattern: 'shadingPattern',
  223. font: 'font'
  224. };
  225. var UnsupportedManager = PDFJS.UnsupportedManager =
  226. (function UnsupportedManagerClosure() {
  227. var listeners = [];
  228. return {
  229. listen: function (cb) {
  230. listeners.push(cb);
  231. },
  232. notify: function (featureId) {
  233. warn('Unsupported feature "' + featureId + '"');
  234. for (var i = 0, ii = listeners.length; i < ii; i++) {
  235. listeners[i](featureId);
  236. }
  237. }
  238. };
  239. })();
  240. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  241. // absolute URL, it will be returned as is.
  242. function combineUrl(baseUrl, url) {
  243. if (!url) {
  244. return baseUrl;
  245. }
  246. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  247. return url;
  248. }
  249. var i;
  250. if (url.charAt(0) == '/') {
  251. // absolute path
  252. i = baseUrl.indexOf('://');
  253. if (url.charAt(1) === '/') {
  254. ++i;
  255. } else {
  256. i = baseUrl.indexOf('/', i + 3);
  257. }
  258. return baseUrl.substring(0, i) + url;
  259. } else {
  260. // relative path
  261. var pathLength = baseUrl.length;
  262. i = baseUrl.lastIndexOf('#');
  263. pathLength = i >= 0 ? i : pathLength;
  264. i = baseUrl.lastIndexOf('?', pathLength);
  265. pathLength = i >= 0 ? i : pathLength;
  266. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  267. return baseUrl.substring(0, prefixLength + 1) + url;
  268. }
  269. }
  270. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  271. function isValidUrl(url, allowRelative) {
  272. if (!url) {
  273. return false;
  274. }
  275. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  276. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  277. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  278. if (!protocol) {
  279. return allowRelative;
  280. }
  281. protocol = protocol[0].toLowerCase();
  282. switch (protocol) {
  283. case 'http':
  284. case 'https':
  285. case 'ftp':
  286. case 'mailto':
  287. return true;
  288. default:
  289. return false;
  290. }
  291. }
  292. PDFJS.isValidUrl = isValidUrl;
  293. function shadow(obj, prop, value) {
  294. Object.defineProperty(obj, prop, { value: value,
  295. enumerable: true,
  296. configurable: true,
  297. writable: false });
  298. return value;
  299. }
  300. var PasswordResponses = PDFJS.PasswordResponses = {
  301. NEED_PASSWORD: 1,
  302. INCORRECT_PASSWORD: 2
  303. };
  304. var PasswordException = (function PasswordExceptionClosure() {
  305. function PasswordException(msg, code) {
  306. this.name = 'PasswordException';
  307. this.message = msg;
  308. this.code = code;
  309. }
  310. PasswordException.prototype = new Error();
  311. PasswordException.constructor = PasswordException;
  312. return PasswordException;
  313. })();
  314. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  315. function UnknownErrorException(msg, details) {
  316. this.name = 'UnknownErrorException';
  317. this.message = msg;
  318. this.details = details;
  319. }
  320. UnknownErrorException.prototype = new Error();
  321. UnknownErrorException.constructor = UnknownErrorException;
  322. return UnknownErrorException;
  323. })();
  324. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  325. function InvalidPDFException(msg) {
  326. this.name = 'InvalidPDFException';
  327. this.message = msg;
  328. }
  329. InvalidPDFException.prototype = new Error();
  330. InvalidPDFException.constructor = InvalidPDFException;
  331. return InvalidPDFException;
  332. })();
  333. var MissingPDFException = (function MissingPDFExceptionClosure() {
  334. function MissingPDFException(msg) {
  335. this.name = 'MissingPDFException';
  336. this.message = msg;
  337. }
  338. MissingPDFException.prototype = new Error();
  339. MissingPDFException.constructor = MissingPDFException;
  340. return MissingPDFException;
  341. })();
  342. var NotImplementedException = (function NotImplementedExceptionClosure() {
  343. function NotImplementedException(msg) {
  344. this.message = msg;
  345. }
  346. NotImplementedException.prototype = new Error();
  347. NotImplementedException.prototype.name = 'NotImplementedException';
  348. NotImplementedException.constructor = NotImplementedException;
  349. return NotImplementedException;
  350. })();
  351. var MissingDataException = (function MissingDataExceptionClosure() {
  352. function MissingDataException(begin, end) {
  353. this.begin = begin;
  354. this.end = end;
  355. this.message = 'Missing data [' + begin + ', ' + end + ')';
  356. }
  357. MissingDataException.prototype = new Error();
  358. MissingDataException.prototype.name = 'MissingDataException';
  359. MissingDataException.constructor = MissingDataException;
  360. return MissingDataException;
  361. })();
  362. var XRefParseException = (function XRefParseExceptionClosure() {
  363. function XRefParseException(msg) {
  364. this.message = msg;
  365. }
  366. XRefParseException.prototype = new Error();
  367. XRefParseException.prototype.name = 'XRefParseException';
  368. XRefParseException.constructor = XRefParseException;
  369. return XRefParseException;
  370. })();
  371. function bytesToString(bytes) {
  372. var length = bytes.length;
  373. var MAX_ARGUMENT_COUNT = 8192;
  374. if (length < MAX_ARGUMENT_COUNT) {
  375. return String.fromCharCode.apply(null, bytes);
  376. }
  377. var strBuf = [];
  378. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  379. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  380. var chunk = bytes.subarray(i, chunkEnd);
  381. strBuf.push(String.fromCharCode.apply(null, chunk));
  382. }
  383. return strBuf.join('');
  384. }
  385. function stringToArray(str) {
  386. var length = str.length;
  387. var array = [];
  388. for (var i = 0; i < length; ++i) {
  389. array[i] = str.charCodeAt(i);
  390. }
  391. return array;
  392. }
  393. function stringToBytes(str) {
  394. var length = str.length;
  395. var bytes = new Uint8Array(length);
  396. for (var i = 0; i < length; ++i) {
  397. bytes[i] = str.charCodeAt(i) & 0xFF;
  398. }
  399. return bytes;
  400. }
  401. function string32(value) {
  402. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  403. (value >> 8) & 0xff, value & 0xff);
  404. }
  405. function log2(x) {
  406. var n = 1, i = 0;
  407. while (x > n) {
  408. n <<= 1;
  409. i++;
  410. }
  411. return i;
  412. }
  413. function readInt8(data, start) {
  414. return (data[start] << 24) >> 24;
  415. }
  416. function readUint16(data, offset) {
  417. return (data[offset] << 8) | data[offset + 1];
  418. }
  419. function readUint32(data, offset) {
  420. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  421. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  422. }
  423. // Lazy test the endianness of the platform
  424. // NOTE: This will be 'true' for simulated TypedArrays
  425. function isLittleEndian() {
  426. var buffer8 = new Uint8Array(2);
  427. buffer8[0] = 1;
  428. var buffer16 = new Uint16Array(buffer8.buffer);
  429. return (buffer16[0] === 1);
  430. }
  431. Object.defineProperty(PDFJS, 'isLittleEndian', {
  432. configurable: true,
  433. get: function PDFJS_isLittleEndian() {
  434. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  435. }
  436. });
  437. // Lazy test if the userAgant support CanvasTypedArrays
  438. function hasCanvasTypedArrays() {
  439. var canvas = document.createElement('canvas');
  440. canvas.width = canvas.height = 1;
  441. var ctx = canvas.getContext('2d');
  442. var imageData = ctx.createImageData(1, 1);
  443. return (typeof imageData.data.buffer !== 'undefined');
  444. }
  445. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  446. configurable: true,
  447. get: function PDFJS_hasCanvasTypedArrays() {
  448. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  449. }
  450. });
  451. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  452. function Uint32ArrayView(buffer, length) {
  453. this.buffer = buffer;
  454. this.byteLength = buffer.length;
  455. this.length = length === undefined ? (this.byteLength >> 2) : length;
  456. ensureUint32ArrayViewProps(this.length);
  457. }
  458. Uint32ArrayView.prototype = Object.create(null);
  459. var uint32ArrayViewSetters = 0;
  460. function createUint32ArrayProp(index) {
  461. return {
  462. get: function () {
  463. var buffer = this.buffer, offset = index << 2;
  464. return (buffer[offset] | (buffer[offset + 1] << 8) |
  465. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  466. },
  467. set: function (value) {
  468. var buffer = this.buffer, offset = index << 2;
  469. buffer[offset] = value & 255;
  470. buffer[offset + 1] = (value >> 8) & 255;
  471. buffer[offset + 2] = (value >> 16) & 255;
  472. buffer[offset + 3] = (value >>> 24) & 255;
  473. }
  474. };
  475. }
  476. function ensureUint32ArrayViewProps(length) {
  477. while (uint32ArrayViewSetters < length) {
  478. Object.defineProperty(Uint32ArrayView.prototype,
  479. uint32ArrayViewSetters,
  480. createUint32ArrayProp(uint32ArrayViewSetters));
  481. uint32ArrayViewSetters++;
  482. }
  483. }
  484. return Uint32ArrayView;
  485. })();
  486. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  487. var Util = PDFJS.Util = (function UtilClosure() {
  488. function Util() {}
  489. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  490. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  491. };
  492. Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
  493. var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
  494. return Util.makeCssRgb(rgb);
  495. };
  496. // Concatenates two transformation matrices together and returns the result.
  497. Util.transform = function Util_transform(m1, m2) {
  498. return [
  499. m1[0] * m2[0] + m1[2] * m2[1],
  500. m1[1] * m2[0] + m1[3] * m2[1],
  501. m1[0] * m2[2] + m1[2] * m2[3],
  502. m1[1] * m2[2] + m1[3] * m2[3],
  503. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  504. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  505. ];
  506. };
  507. // For 2d affine transforms
  508. Util.applyTransform = function Util_applyTransform(p, m) {
  509. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  510. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  511. return [xt, yt];
  512. };
  513. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  514. var d = m[0] * m[3] - m[1] * m[2];
  515. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  516. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  517. return [xt, yt];
  518. };
  519. // Applies the transform to the rectangle and finds the minimum axially
  520. // aligned bounding box.
  521. Util.getAxialAlignedBoundingBox =
  522. function Util_getAxialAlignedBoundingBox(r, m) {
  523. var p1 = Util.applyTransform(r, m);
  524. var p2 = Util.applyTransform(r.slice(2, 4), m);
  525. var p3 = Util.applyTransform([r[0], r[3]], m);
  526. var p4 = Util.applyTransform([r[2], r[1]], m);
  527. return [
  528. Math.min(p1[0], p2[0], p3[0], p4[0]),
  529. Math.min(p1[1], p2[1], p3[1], p4[1]),
  530. Math.max(p1[0], p2[0], p3[0], p4[0]),
  531. Math.max(p1[1], p2[1], p3[1], p4[1])
  532. ];
  533. };
  534. Util.inverseTransform = function Util_inverseTransform(m) {
  535. var d = m[0] * m[3] - m[1] * m[2];
  536. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  537. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  538. };
  539. // Apply a generic 3d matrix M on a 3-vector v:
  540. // | a b c | | X |
  541. // | d e f | x | Y |
  542. // | g h i | | Z |
  543. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  544. // with v as [X,Y,Z]
  545. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  546. return [
  547. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  548. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  549. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  550. ];
  551. };
  552. // This calculation uses Singular Value Decomposition.
  553. // The SVD can be represented with formula A = USV. We are interested in the
  554. // matrix S here because it represents the scale values.
  555. Util.singularValueDecompose2dScale =
  556. function Util_singularValueDecompose2dScale(m) {
  557. var transpose = [m[0], m[2], m[1], m[3]];
  558. // Multiply matrix m with its transpose.
  559. var a = m[0] * transpose[0] + m[1] * transpose[2];
  560. var b = m[0] * transpose[1] + m[1] * transpose[3];
  561. var c = m[2] * transpose[0] + m[3] * transpose[2];
  562. var d = m[2] * transpose[1] + m[3] * transpose[3];
  563. // Solve the second degree polynomial to get roots.
  564. var first = (a + d) / 2;
  565. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  566. var sx = first + second || 1;
  567. var sy = first - second || 1;
  568. // Scale values are the square roots of the eigenvalues.
  569. return [Math.sqrt(sx), Math.sqrt(sy)];
  570. };
  571. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  572. // For coordinate systems whose origin lies in the bottom-left, this
  573. // means normalization to (BL,TR) ordering. For systems with origin in the
  574. // top-left, this means (TL,BR) ordering.
  575. Util.normalizeRect = function Util_normalizeRect(rect) {
  576. var r = rect.slice(0); // clone rect
  577. if (rect[0] > rect[2]) {
  578. r[0] = rect[2];
  579. r[2] = rect[0];
  580. }
  581. if (rect[1] > rect[3]) {
  582. r[1] = rect[3];
  583. r[3] = rect[1];
  584. }
  585. return r;
  586. };
  587. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  588. // intersection of rect1 and rect2. If no intersection, returns 'false'
  589. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  590. Util.intersect = function Util_intersect(rect1, rect2) {
  591. function compare(a, b) {
  592. return a - b;
  593. }
  594. // Order points along the axes
  595. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  596. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  597. result = [];
  598. rect1 = Util.normalizeRect(rect1);
  599. rect2 = Util.normalizeRect(rect2);
  600. // X: first and second points belong to different rectangles?
  601. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  602. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  603. // Intersection must be between second and third points
  604. result[0] = orderedX[1];
  605. result[2] = orderedX[2];
  606. } else {
  607. return false;
  608. }
  609. // Y: first and second points belong to different rectangles?
  610. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  611. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  612. // Intersection must be between second and third points
  613. result[1] = orderedY[1];
  614. result[3] = orderedY[2];
  615. } else {
  616. return false;
  617. }
  618. return result;
  619. };
  620. Util.sign = function Util_sign(num) {
  621. return num < 0 ? -1 : 1;
  622. };
  623. // TODO(mack): Rename appendToArray
  624. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  625. Array.prototype.push.apply(arr1, arr2);
  626. };
  627. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  628. Array.prototype.unshift.apply(arr1, arr2);
  629. };
  630. Util.extendObj = function extendObj(obj1, obj2) {
  631. for (var key in obj2) {
  632. obj1[key] = obj2[key];
  633. }
  634. };
  635. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  636. name) {
  637. while (dict && !dict.has(name)) {
  638. dict = dict.get('Parent');
  639. }
  640. if (!dict) {
  641. return null;
  642. }
  643. return dict.get(name);
  644. };
  645. Util.inherit = function Util_inherit(sub, base, prototype) {
  646. sub.prototype = Object.create(base.prototype);
  647. sub.prototype.constructor = sub;
  648. for (var prop in prototype) {
  649. sub.prototype[prop] = prototype[prop];
  650. }
  651. };
  652. Util.loadScript = function Util_loadScript(src, callback) {
  653. var script = document.createElement('script');
  654. var loaded = false;
  655. script.setAttribute('src', src);
  656. if (callback) {
  657. script.onload = function() {
  658. if (!loaded) {
  659. callback();
  660. }
  661. loaded = true;
  662. };
  663. }
  664. document.getElementsByTagName('head')[0].appendChild(script);
  665. };
  666. return Util;
  667. })();
  668. /**
  669. * PDF page viewport created based on scale, rotation and offset.
  670. * @class
  671. * @alias PDFJS.PageViewport
  672. */
  673. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  674. /**
  675. * @constructor
  676. * @private
  677. * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
  678. * @param scale {number} scale of the viewport.
  679. * @param rotation {number} rotations of the viewport in degrees.
  680. * @param offsetX {number} offset X
  681. * @param offsetY {number} offset Y
  682. * @param dontFlip {boolean} if true, axis Y will not be flipped.
  683. */
  684. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  685. this.viewBox = viewBox;
  686. this.scale = scale;
  687. this.rotation = rotation;
  688. this.offsetX = offsetX;
  689. this.offsetY = offsetY;
  690. // creating transform to convert pdf coordinate system to the normal
  691. // canvas like coordinates taking in account scale and rotation
  692. var centerX = (viewBox[2] + viewBox[0]) / 2;
  693. var centerY = (viewBox[3] + viewBox[1]) / 2;
  694. var rotateA, rotateB, rotateC, rotateD;
  695. rotation = rotation % 360;
  696. rotation = rotation < 0 ? rotation + 360 : rotation;
  697. switch (rotation) {
  698. case 180:
  699. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  700. break;
  701. case 90:
  702. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  703. break;
  704. case 270:
  705. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  706. break;
  707. //case 0:
  708. default:
  709. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  710. break;
  711. }
  712. if (dontFlip) {
  713. rotateC = -rotateC; rotateD = -rotateD;
  714. }
  715. var offsetCanvasX, offsetCanvasY;
  716. var width, height;
  717. if (rotateA === 0) {
  718. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  719. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  720. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  721. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  722. } else {
  723. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  724. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  725. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  726. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  727. }
  728. // creating transform for the following operations:
  729. // translate(-centerX, -centerY), rotate and flip vertically,
  730. // scale, and translate(offsetCanvasX, offsetCanvasY)
  731. this.transform = [
  732. rotateA * scale,
  733. rotateB * scale,
  734. rotateC * scale,
  735. rotateD * scale,
  736. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  737. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  738. ];
  739. this.width = width;
  740. this.height = height;
  741. this.fontScale = scale;
  742. }
  743. PageViewport.prototype = /** @lends PDFJS.PageViewport.prototype */ {
  744. /**
  745. * Clones viewport with additional properties.
  746. * @param args {Object} (optional) If specified, may contain the 'scale' or
  747. * 'rotation' properties to override the corresponding properties in
  748. * the cloned viewport.
  749. * @returns {PDFJS.PageViewport} Cloned viewport.
  750. */
  751. clone: function PageViewPort_clone(args) {
  752. args = args || {};
  753. var scale = 'scale' in args ? args.scale : this.scale;
  754. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  755. return new PageViewport(this.viewBox.slice(), scale, rotation,
  756. this.offsetX, this.offsetY, args.dontFlip);
  757. },
  758. /**
  759. * Converts PDF point to the viewport coordinates. For examples, useful for
  760. * converting PDF location into canvas pixel coordinates.
  761. * @param x {number} X coordinate.
  762. * @param y {number} Y coordinate.
  763. * @returns {Object} Object that contains 'x' and 'y' properties of the
  764. * point in the viewport coordinate space.
  765. * @see {@link convertToPdfPoint}
  766. * @see {@link convertToViewportRectangle}
  767. */
  768. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  769. return Util.applyTransform([x, y], this.transform);
  770. },
  771. /**
  772. * Converts PDF rectangle to the viewport coordinates.
  773. * @param rect {Array} xMin, yMin, xMax and yMax coordinates.
  774. * @returns {Array} Contains corresponding coordinates of the rectangle
  775. * in the viewport coordinate space.
  776. * @see {@link convertToViewportPoint}
  777. */
  778. convertToViewportRectangle:
  779. function PageViewport_convertToViewportRectangle(rect) {
  780. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  781. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  782. return [tl[0], tl[1], br[0], br[1]];
  783. },
  784. /**
  785. * Converts viewport coordinates to the PDF location. For examples, useful
  786. * for converting canvas pixel location into PDF one.
  787. * @param x {number} X coordinate.
  788. * @param y {number} Y coordinate.
  789. * @returns {Object} Object that contains 'x' and 'y' properties of the
  790. * point in the PDF coordinate space.
  791. * @see {@link convertToViewportPoint}
  792. */
  793. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  794. return Util.applyInverseTransform([x, y], this.transform);
  795. }
  796. };
  797. return PageViewport;
  798. })();
  799. var PDFStringTranslateTable = [
  800. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  801. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  802. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  803. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  804. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  805. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  806. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  807. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  808. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  809. ];
  810. function stringToPDFString(str) {
  811. var i, n = str.length, strBuf = [];
  812. if (str[0] === '\xFE' && str[1] === '\xFF') {
  813. // UTF16BE BOM
  814. for (i = 2; i < n; i += 2) {
  815. strBuf.push(String.fromCharCode(
  816. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  817. }
  818. } else {
  819. for (i = 0; i < n; ++i) {
  820. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  821. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  822. }
  823. }
  824. return strBuf.join('');
  825. }
  826. function stringToUTF8String(str) {
  827. return decodeURIComponent(escape(str));
  828. }
  829. function isEmptyObj(obj) {
  830. for (var key in obj) {
  831. return false;
  832. }
  833. return true;
  834. }
  835. function isBool(v) {
  836. return typeof v == 'boolean';
  837. }
  838. function isInt(v) {
  839. return typeof v == 'number' && ((v | 0) == v);
  840. }
  841. function isNum(v) {
  842. return typeof v == 'number';
  843. }
  844. function isString(v) {
  845. return typeof v == 'string';
  846. }
  847. function isNull(v) {
  848. return v === null;
  849. }
  850. function isName(v) {
  851. return v instanceof Name;
  852. }
  853. function isCmd(v, cmd) {
  854. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  855. }
  856. function isDict(v, type) {
  857. if (!(v instanceof Dict)) {
  858. return false;
  859. }
  860. if (!type) {
  861. return true;
  862. }
  863. var dictType = v.get('Type');
  864. return isName(dictType) && dictType.name == type;
  865. }
  866. function isArray(v) {
  867. return v instanceof Array;
  868. }
  869. function isStream(v) {
  870. return typeof v == 'object' && v !== null && v !== undefined &&
  871. ('getBytes' in v);
  872. }
  873. function isArrayBuffer(v) {
  874. return typeof v == 'object' && v !== null && v !== undefined &&
  875. ('byteLength' in v);
  876. }
  877. function isRef(v) {
  878. return v instanceof Ref;
  879. }
  880. function isPDFFunction(v) {
  881. var fnDict;
  882. if (typeof v != 'object') {
  883. return false;
  884. } else if (isDict(v)) {
  885. fnDict = v;
  886. } else if (isStream(v)) {
  887. fnDict = v.dict;
  888. } else {
  889. return false;
  890. }
  891. return fnDict.has('FunctionType');
  892. }
  893. /**
  894. * Promise Capability object.
  895. *
  896. * @typedef {Object} PromiseCapability
  897. * @property {Promise} promise - A promise object.
  898. * @property {function} resolve - Fullfills the promise.
  899. * @property {function} reject - Rejects the promise.
  900. */
  901. /**
  902. * Creates a promise capability object.
  903. * @alias PDFJS.createPromiseCapability
  904. *
  905. * @return {PromiseCapability} A capability object contains:
  906. * - a Promise, resolve and reject methods.
  907. */
  908. function createPromiseCapability() {
  909. var capability = {};
  910. capability.promise = new Promise(function (resolve, reject) {
  911. capability.resolve = resolve;
  912. capability.reject = reject;
  913. });
  914. return capability;
  915. }
  916. PDFJS.createPromiseCapability = createPromiseCapability;
  917. /**
  918. * Polyfill for Promises:
  919. * The following promise implementation tries to generally implment the
  920. * Promise/A+ spec. Some notable differences from other promise libaries are:
  921. * - There currently isn't a seperate deferred and promise object.
  922. * - Unhandled rejections eventually show an error if they aren't handled.
  923. *
  924. * Based off of the work in:
  925. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  926. */
  927. (function PromiseClosure() {
  928. if (globalScope.Promise) {
  929. // Promises existing in the DOM/Worker, checking presence of all/resolve
  930. if (typeof globalScope.Promise.all !== 'function') {
  931. globalScope.Promise.all = function (iterable) {
  932. var count = 0, results = [], resolve, reject;
  933. var promise = new globalScope.Promise(function (resolve_, reject_) {
  934. resolve = resolve_;
  935. reject = reject_;
  936. });
  937. iterable.forEach(function (p, i) {
  938. count++;
  939. p.then(function (result) {
  940. results[i] = result;
  941. count--;
  942. if (count === 0) {
  943. resolve(results);
  944. }
  945. }, reject);
  946. });
  947. if (count === 0) {
  948. resolve(results);
  949. }
  950. return promise;
  951. };
  952. }
  953. if (typeof globalScope.Promise.resolve !== 'function') {
  954. globalScope.Promise.resolve = function (value) {
  955. return new globalScope.Promise(function (resolve) { resolve(value); });
  956. };
  957. }
  958. if (typeof globalScope.Promise.reject !== 'function') {
  959. globalScope.Promise.reject = function (reason) {
  960. return new globalScope.Promise(function (resolve, reject) {
  961. reject(reason);
  962. });
  963. };
  964. }
  965. return;
  966. }
  967. var STATUS_PENDING = 0;
  968. var STATUS_RESOLVED = 1;
  969. var STATUS_REJECTED = 2;
  970. // In an attempt to avoid silent exceptions, unhandled rejections are
  971. // tracked and if they aren't handled in a certain amount of time an
  972. // error is logged.
  973. var REJECTION_TIMEOUT = 500;
  974. var HandlerManager = {
  975. handlers: [],
  976. running: false,
  977. unhandledRejections: [],
  978. pendingRejectionCheck: false,
  979. scheduleHandlers: function scheduleHandlers(promise) {
  980. if (promise._status == STATUS_PENDING) {
  981. return;
  982. }
  983. this.handlers = this.handlers.concat(promise._handlers);
  984. promise._handlers = [];
  985. if (this.running) {
  986. return;
  987. }
  988. this.running = true;
  989. setTimeout(this.runHandlers.bind(this), 0);
  990. },
  991. runHandlers: function runHandlers() {
  992. var RUN_TIMEOUT = 1; // ms
  993. var timeoutAt = Date.now() + RUN_TIMEOUT;
  994. while (this.handlers.length > 0) {
  995. var handler = this.handlers.shift();
  996. var nextStatus = handler.thisPromise._status;
  997. var nextValue = handler.thisPromise._value;
  998. try {
  999. if (nextStatus === STATUS_RESOLVED) {
  1000. if (typeof(handler.onResolve) == 'function') {
  1001. nextValue = handler.onResolve(nextValue);
  1002. }
  1003. } else if (typeof(handler.onReject) === 'function') {
  1004. nextValue = handler.onReject(nextValue);
  1005. nextStatus = STATUS_RESOLVED;
  1006. if (handler.thisPromise._unhandledRejection) {
  1007. this.removeUnhandeledRejection(handler.thisPromise);
  1008. }
  1009. }
  1010. } catch (ex) {
  1011. nextStatus = STATUS_REJECTED;
  1012. nextValue = ex;
  1013. }
  1014. handler.nextPromise._updateStatus(nextStatus, nextValue);
  1015. if (Date.now() >= timeoutAt) {
  1016. break;
  1017. }
  1018. }
  1019. if (this.handlers.length > 0) {
  1020. setTimeout(this.runHandlers.bind(this), 0);
  1021. return;
  1022. }
  1023. this.running = false;
  1024. },
  1025. addUnhandledRejection: function addUnhandledRejection(promise) {
  1026. this.unhandledRejections.push({
  1027. promise: promise,
  1028. time: Date.now()
  1029. });
  1030. this.scheduleRejectionCheck();
  1031. },
  1032. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  1033. promise._unhandledRejection = false;
  1034. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1035. if (this.unhandledRejections[i].promise === promise) {
  1036. this.unhandledRejections.splice(i);
  1037. i--;
  1038. }
  1039. }
  1040. },
  1041. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1042. if (this.pendingRejectionCheck) {
  1043. return;
  1044. }
  1045. this.pendingRejectionCheck = true;
  1046. setTimeout(function rejectionCheck() {
  1047. this.pendingRejectionCheck = false;
  1048. var now = Date.now();
  1049. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1050. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1051. var unhandled = this.unhandledRejections[i].promise._value;
  1052. var msg = 'Unhandled rejection: ' + unhandled;
  1053. if (unhandled.stack) {
  1054. msg += '\n' + unhandled.stack;
  1055. }
  1056. warn(msg);
  1057. this.unhandledRejections.splice(i);
  1058. i--;
  1059. }
  1060. }
  1061. if (this.unhandledRejections.length) {
  1062. this.scheduleRejectionCheck();
  1063. }
  1064. }.bind(this), REJECTION_TIMEOUT);
  1065. }
  1066. };
  1067. function Promise(resolver) {
  1068. this._status = STATUS_PENDING;
  1069. this._handlers = [];
  1070. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1071. }
  1072. /**
  1073. * Builds a promise that is resolved when all the passed in promises are
  1074. * resolved.
  1075. * @param {array} array of data and/or promises to wait for.
  1076. * @return {Promise} New dependant promise.
  1077. */
  1078. Promise.all = function Promise_all(promises) {
  1079. var resolveAll, rejectAll;
  1080. var deferred = new Promise(function (resolve, reject) {
  1081. resolveAll = resolve;
  1082. rejectAll = reject;
  1083. });
  1084. var unresolved = promises.length;
  1085. var results = [];
  1086. if (unresolved === 0) {
  1087. resolveAll(results);
  1088. return deferred;
  1089. }
  1090. function reject(reason) {
  1091. if (deferred._status === STATUS_REJECTED) {
  1092. return;
  1093. }
  1094. results = [];
  1095. rejectAll(reason);
  1096. }
  1097. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1098. var promise = promises[i];
  1099. var resolve = (function(i) {
  1100. return function(value) {
  1101. if (deferred._status === STATUS_REJECTED) {
  1102. return;
  1103. }
  1104. results[i] = value;
  1105. unresolved--;
  1106. if (unresolved === 0) {
  1107. resolveAll(results);
  1108. }
  1109. };
  1110. })(i);
  1111. if (Promise.isPromise(promise)) {
  1112. promise.then(resolve, reject);
  1113. } else {
  1114. resolve(promise);
  1115. }
  1116. }
  1117. return deferred;
  1118. };
  1119. /**
  1120. * Checks if the value is likely a promise (has a 'then' function).
  1121. * @return {boolean} true if value is thenable
  1122. */
  1123. Promise.isPromise = function Promise_isPromise(value) {
  1124. return value && typeof value.then === 'function';
  1125. };
  1126. /**
  1127. * Creates resolved promise
  1128. * @param value resolve value
  1129. * @returns {Promise}
  1130. */
  1131. Promise.resolve = function Promise_resolve(value) {
  1132. return new Promise(function (resolve) { resolve(value); });
  1133. };
  1134. /**
  1135. * Creates rejected promise
  1136. * @param reason rejection value
  1137. * @returns {Promise}
  1138. */
  1139. Promise.reject = function Promise_reject(reason) {
  1140. return new Promise(function (resolve, reject) { reject(reason); });
  1141. };
  1142. Promise.prototype = {
  1143. _status: null,
  1144. _value: null,
  1145. _handlers: null,
  1146. _unhandledRejection: null,
  1147. _updateStatus: function Promise__updateStatus(status, value) {
  1148. if (this._status === STATUS_RESOLVED ||
  1149. this._status === STATUS_REJECTED) {
  1150. return;
  1151. }
  1152. if (status == STATUS_RESOLVED &&
  1153. Promise.isPromise(value)) {
  1154. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1155. this._updateStatus.bind(this, STATUS_REJECTED));
  1156. return;
  1157. }
  1158. this._status = status;
  1159. this._value = value;
  1160. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1161. this._unhandledRejection = true;
  1162. HandlerManager.addUnhandledRejection(this);
  1163. }
  1164. HandlerManager.scheduleHandlers(this);
  1165. },
  1166. _resolve: function Promise_resolve(value) {
  1167. this._updateStatus(STATUS_RESOLVED, value);
  1168. },
  1169. _reject: function Promise_reject(reason) {
  1170. this._updateStatus(STATUS_REJECTED, reason);
  1171. },
  1172. then: function Promise_then(onResolve, onReject) {
  1173. var nextPromise = new Promise(function (resolve, reject) {
  1174. this.resolve = reject;
  1175. this.reject = reject;
  1176. });
  1177. this._handlers.push({
  1178. thisPromise: this,
  1179. onResolve: onResolve,
  1180. onReject: onReject,
  1181. nextPromise: nextPromise
  1182. });
  1183. HandlerManager.scheduleHandlers(this);
  1184. return nextPromise;
  1185. }
  1186. };
  1187. globalScope.Promise = Promise;
  1188. })();
  1189. var StatTimer = (function StatTimerClosure() {
  1190. function rpad(str, pad, length) {
  1191. while (str.length < length) {
  1192. str += pad;
  1193. }
  1194. return str;
  1195. }
  1196. function StatTimer() {
  1197. this.started = {};
  1198. this.times = [];
  1199. this.enabled = true;
  1200. }
  1201. StatTimer.prototype = {
  1202. time: function StatTimer_time(name) {
  1203. if (!this.enabled) {
  1204. return;
  1205. }
  1206. if (name in this.started) {
  1207. warn('Timer is already running for ' + name);
  1208. }
  1209. this.started[name] = Date.now();
  1210. },
  1211. timeEnd: function StatTimer_timeEnd(name) {
  1212. if (!this.enabled) {
  1213. return;
  1214. }
  1215. if (!(name in this.started)) {
  1216. warn('Timer has not been started for ' + name);
  1217. }
  1218. this.times.push({
  1219. 'name': name,
  1220. 'start': this.started[name],
  1221. 'end': Date.now()
  1222. });
  1223. // Remove timer from started so it can be called again.
  1224. delete this.started[name];
  1225. },
  1226. toString: function StatTimer_toString() {
  1227. var i, ii;
  1228. var times = this.times;
  1229. var out = '';
  1230. // Find the longest name for padding purposes.
  1231. var longest = 0;
  1232. for (i = 0, ii = times.length; i < ii; ++i) {
  1233. var name = times[i]['name'];
  1234. if (name.length > longest) {
  1235. longest = name.length;
  1236. }
  1237. }
  1238. for (i = 0, ii = times.length; i < ii; ++i) {
  1239. var span = times[i];
  1240. var duration = span.end - span.start;
  1241. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1242. }
  1243. return out;
  1244. }
  1245. };
  1246. return StatTimer;
  1247. })();
  1248. PDFJS.createBlob = function createBlob(data, contentType) {
  1249. if (typeof Blob !== 'undefined') {
  1250. return new Blob([data], { type: contentType });
  1251. }
  1252. // Blob builder is deprecated in FF14 and removed in FF18.
  1253. var bb = new MozBlobBuilder();
  1254. bb.append(data);
  1255. return bb.getBlob(contentType);
  1256. };
  1257. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1258. // Blob/createObjectURL is not available, falling back to data schema.
  1259. var digits =
  1260. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1261. return function createObjectURL(data, contentType) {
  1262. if (!PDFJS.disableCreateObjectURL &&
  1263. typeof URL !== 'undefined' && URL.createObjectURL) {
  1264. var blob = PDFJS.createBlob(data, contentType);
  1265. return URL.createObjectURL(blob);
  1266. }
  1267. var buffer = 'data:' + contentType + ';base64,';
  1268. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1269. var b1 = data[i] & 0xFF;
  1270. var b2 = data[i + 1] & 0xFF;
  1271. var b3 = data[i + 2] & 0xFF;
  1272. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1273. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1274. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1275. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1276. }
  1277. return buffer;
  1278. };
  1279. })();
  1280. function MessageHandler(name, comObj) {
  1281. this.name = name;
  1282. this.comObj = comObj;
  1283. this.callbackIndex = 1;
  1284. this.postMessageTransfers = true;
  1285. var callbacks = this.callbacks = {};
  1286. var ah = this.actionHandler = {};
  1287. ah['console_log'] = [function ahConsoleLog(data) {
  1288. console.log.apply(console, data);
  1289. }];
  1290. ah['console_error'] = [function ahConsoleError(data) {
  1291. console.error.apply(console, data);
  1292. }];
  1293. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1294. UnsupportedManager.notify(data);
  1295. }];
  1296. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1297. var data = event.data;
  1298. if (data.isReply) {
  1299. var callbackId = data.callbackId;
  1300. if (data.callbackId in callbacks) {
  1301. var callback = callbacks[callbackId];
  1302. delete callbacks[callbackId];
  1303. callback(data.data);
  1304. } else {
  1305. error('Cannot resolve callback ' + callbackId);
  1306. }
  1307. } else if (data.action in ah) {
  1308. var action = ah[data.action];
  1309. if (data.callbackId) {
  1310. var deferred = {};
  1311. var promise = new Promise(function (resolve, reject) {
  1312. deferred.resolve = resolve;
  1313. deferred.reject = reject;
  1314. });
  1315. deferred.promise = promise;
  1316. promise.then(function(resolvedData) {
  1317. comObj.postMessage({
  1318. isReply: true,
  1319. callbackId: data.callbackId,
  1320. data: resolvedData
  1321. });
  1322. });
  1323. action[0].call(action[1], data.data, deferred);
  1324. } else {
  1325. action[0].call(action[1], data.data);
  1326. }
  1327. } else {
  1328. error('Unkown action from worker: ' + data.action);
  1329. }
  1330. };
  1331. }
  1332. MessageHandler.prototype = {
  1333. on: function messageHandlerOn(actionName, handler, scope) {
  1334. var ah = this.actionHandler;
  1335. if (ah[actionName]) {
  1336. error('There is already an actionName called "' + actionName + '"');
  1337. }
  1338. ah[actionName] = [handler, scope];
  1339. },
  1340. /**
  1341. * Sends a message to the comObj to invoke the action with the supplied data.
  1342. * @param {String} actionName Action to call.
  1343. * @param {JSON} data JSON data to send.
  1344. * @param {function} [callback] Optional callback that will handle a reply.
  1345. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1346. */
  1347. send: function messageHandlerSend(actionName, data, callback, transfers) {
  1348. var message = {
  1349. action: actionName,
  1350. data: data
  1351. };
  1352. if (callback) {
  1353. var callbackId = this.callbackIndex++;
  1354. this.callbacks[callbackId] = callback;
  1355. message.callbackId = callbackId;
  1356. }
  1357. if (transfers && this.postMessageTransfers) {
  1358. this.comObj.postMessage(message, transfers);
  1359. } else {
  1360. this.comObj.postMessage(message);
  1361. }
  1362. }
  1363. };
  1364. function loadJpegStream(id, imageUrl, objs) {
  1365. var img = new Image();
  1366. img.onload = (function loadJpegStream_onloadClosure() {
  1367. objs.resolve(id, img);
  1368. });
  1369. img.src = imageUrl;
  1370. }
  1371. var ColorSpace = (function ColorSpaceClosure() {
  1372. // Constructor should define this.numComps, this.defaultColor, this.name
  1373. function ColorSpace() {
  1374. error('should not call ColorSpace constructor');
  1375. }
  1376. ColorSpace.prototype = {
  1377. /**
  1378. * Converts the color value to the RGB color. The color components are
  1379. * located in the src array starting from the srcOffset. Returns the array
  1380. * of the rgb components, each value ranging from [0,255].
  1381. */
  1382. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  1383. var rgb = new Uint8Array(3);
  1384. this.getRgbItem(src, srcOffset, rgb, 0);
  1385. return rgb;
  1386. },
  1387. /**
  1388. * Converts the color value to the RGB color, similar to the getRgb method.
  1389. * The result placed into the dest array starting from the destOffset.
  1390. */
  1391. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  1392. dest, destOffset) {
  1393. error('Should not call ColorSpace.getRgbItem');
  1394. },
  1395. /**
  1396. * Converts the specified number of the color values to the RGB colors.
  1397. * The colors are located in the src array starting from the srcOffset.
  1398. * The result is placed into the dest array starting from the destOffset.
  1399. * The src array items shall be in [0,2^bits) range, the dest array items
  1400. * will be in [0,255] range. alpha01 indicates how many alpha components
  1401. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  1402. * array).
  1403. */
  1404. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  1405. dest, destOffset, bits,
  1406. alpha01) {
  1407. error('Should not call ColorSpace.getRgbBuffer');
  1408. },
  1409. /**
  1410. * Determines the number of bytes required to store the result of the
  1411. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  1412. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  1413. */
  1414. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  1415. alpha01) {
  1416. error('Should not call ColorSpace.getOutputLength');
  1417. },
  1418. /**
  1419. * Returns true if source data will be equal the result/output data.
  1420. */
  1421. isPassthrough: function ColorSpace_isPassthrough(bits) {
  1422. return false;
  1423. },
  1424. /**
  1425. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  1426. * how many alpha components there are in the dest array; it will be either
  1427. * 0 (RGB array) or 1 (RGBA array).
  1428. */
  1429. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  1430. originalHeight, width, height,
  1431. actualHeight, bpc, comps, alpha01) {
  1432. var count = originalWidth * originalHeight;
  1433. var rgbBuf = null;
  1434. var numComponentColors = 1 << bpc;
  1435. var needsResizing = originalHeight != height || originalWidth != width;
  1436. var i, ii;
  1437. if (this.isPassthrough(bpc)) {
  1438. rgbBuf = comps;
  1439. } else if (this.numComps === 1 && count > numComponentColors &&
  1440. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  1441. // Optimization: create a color map when there is just one component and
  1442. // we are converting more colors than the size of the color map. We
  1443. // don't build the map if the colorspace is gray or rgb since those
  1444. // methods are faster than building a map. This mainly offers big speed
  1445. // ups for indexed and alternate colorspaces.
  1446. //
  1447. // TODO it may be worth while to cache the color map. While running
  1448. // testing I never hit a cache so I will leave that out for now (perhaps
  1449. // we are reparsing colorspaces too much?).
  1450. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  1451. new Uint16Array(numComponentColors);
  1452. var key;
  1453. for (i = 0; i < numComponentColors; i++) {
  1454. allColors[i] = i;
  1455. }
  1456. var colorMap = new Uint8Array(numComponentColors * 3);
  1457. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  1458. /* alpha01 = */ 0);
  1459. var destPos, rgbPos;
  1460. if (!needsResizing) {
  1461. // Fill in the RGB values directly into |dest|.
  1462. destPos = 0;
  1463. for (i = 0; i < count; ++i) {
  1464. key = comps[i] * 3;
  1465. dest[destPos++] = colorMap[key];
  1466. dest[destPos++] = colorMap[key + 1];
  1467. dest[destPos++] = colorMap[key + 2];
  1468. destPos += alpha01;
  1469. }
  1470. } else {
  1471. rgbBuf = new Uint8Array(count * 3);
  1472. rgbPos = 0;
  1473. for (i = 0; i < count; ++i) {
  1474. key = comps[i] * 3;
  1475. rgbBuf[rgbPos++] = colorMap[key];
  1476. rgbBuf[rgbPos++] = colorMap[key + 1];
  1477. rgbBuf[rgbPos++] = colorMap[key + 2];
  1478. }
  1479. }
  1480. } else {
  1481. if (!needsResizing) {
  1482. // Fill in the RGB values directly into |dest|.
  1483. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  1484. alpha01);
  1485. } else {
  1486. rgbBuf = new Uint8Array(count * 3);
  1487. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  1488. /* alpha01 = */ 0);
  1489. }
  1490. }
  1491. if (rgbBuf) {
  1492. if (needsResizing) {
  1493. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  1494. height, dest, alpha01);
  1495. } else {
  1496. rgbPos = 0;
  1497. destPos = 0;
  1498. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  1499. dest[destPos++] = rgbBuf[rgbPos++];
  1500. dest[destPos++] = rgbBuf[rgbPos++];
  1501. dest[destPos++] = rgbBuf[rgbPos++];
  1502. destPos += alpha01;
  1503. }
  1504. }
  1505. }
  1506. },
  1507. /**
  1508. * True if the colorspace has components in the default range of [0, 1].
  1509. * This should be true for all colorspaces except for lab color spaces
  1510. * which are [0,100], [-128, 127], [-128, 127].
  1511. */
  1512. usesZeroToOneRange: true
  1513. };
  1514. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  1515. var IR = ColorSpace.parseToIR(cs, xref, res);
  1516. if (IR instanceof AlternateCS) {
  1517. return IR;
  1518. }
  1519. return ColorSpace.fromIR(IR);
  1520. };
  1521. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  1522. var name = isArray(IR) ? IR[0] : IR;
  1523. var whitePoint, blackPoint;
  1524. switch (name) {
  1525. case 'DeviceGrayCS':
  1526. return this.singletons.gray;
  1527. case 'DeviceRgbCS':
  1528. return this.singletons.rgb;
  1529. case 'DeviceCmykCS':
  1530. return this.singletons.cmyk;
  1531. case 'CalGrayCS':
  1532. whitePoint = IR[1].WhitePoint;
  1533. blackPoint = IR[1].BlackPoint;
  1534. var gamma = IR[1].Gamma;
  1535. return new CalGrayCS(whitePoint, blackPoint, gamma);
  1536. case 'PatternCS':
  1537. var basePatternCS = IR[1];
  1538. if (basePatternCS) {
  1539. basePatternCS = ColorSpace.fromIR(basePatternCS);
  1540. }
  1541. return new PatternCS(basePatternCS);
  1542. case 'IndexedCS':
  1543. var baseIndexedCS = IR[1];
  1544. var hiVal = IR[2];
  1545. var lookup = IR[3];
  1546. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  1547. case 'AlternateCS':
  1548. var numComps = IR[1];
  1549. var alt = IR[2];
  1550. var tintFnIR = IR[3];
  1551. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  1552. PDFFunction.fromIR(tintFnIR));
  1553. case 'LabCS':
  1554. whitePoint = IR[1].WhitePoint;
  1555. blackPoint = IR[1].BlackPoint;
  1556. var range = IR[1].Range;
  1557. return new LabCS(whitePoint, blackPoint, range);
  1558. default:
  1559. error('Unkown name ' + name);
  1560. }
  1561. return null;
  1562. };
  1563. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  1564. if (isName(cs)) {
  1565. var colorSpaces = res.get('ColorSpace');
  1566. if (isDict(colorSpaces)) {
  1567. var refcs = colorSpaces.get(cs.name);
  1568. if (refcs) {
  1569. cs = refcs;
  1570. }
  1571. }
  1572. }
  1573. cs = xref.fetchIfRef(cs);
  1574. var mode;
  1575. if (isName(cs)) {
  1576. mode = cs.name;
  1577. this.mode = mode;
  1578. switch (mode) {
  1579. case 'DeviceGray':
  1580. case 'G':
  1581. return 'DeviceGrayCS';
  1582. case 'DeviceRGB':
  1583. case 'RGB':
  1584. return 'DeviceRgbCS';
  1585. case 'DeviceCMYK':
  1586. case 'CMYK':
  1587. return 'DeviceCmykCS';
  1588. case 'Pattern':
  1589. return ['PatternCS', null];
  1590. default:
  1591. error('unrecognized colorspace ' + mode);
  1592. }
  1593. } else if (isArray(cs)) {
  1594. mode = cs[0].name;
  1595. this.mode = mode;
  1596. var numComps, params;
  1597. switch (mode) {
  1598. case 'DeviceGray':
  1599. case 'G':
  1600. return 'DeviceGrayCS';
  1601. case 'DeviceRGB':
  1602. case 'RGB':
  1603. return 'DeviceRgbCS';
  1604. case 'DeviceCMYK':
  1605. case 'CMYK':
  1606. return 'DeviceCmykCS';
  1607. case 'CalGray':
  1608. params = cs[1].getAll();
  1609. return ['CalGrayCS', params];
  1610. case 'CalRGB':
  1611. return 'DeviceRgbCS';
  1612. case 'ICCBased':
  1613. var stream = xref.fetchIfRef(cs[1]);
  1614. var dict = stream.dict;
  1615. numComps = dict.get('N');
  1616. if (numComps == 1) {
  1617. return 'DeviceGrayCS';
  1618. } else if (numComps == 3) {
  1619. return 'DeviceRgbCS';
  1620. } else if (numComps == 4) {
  1621. return 'DeviceCmykCS';
  1622. }
  1623. break;
  1624. case 'Pattern':
  1625. var basePatternCS = cs[1];
  1626. if (basePatternCS) {
  1627. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  1628. }
  1629. return ['PatternCS', basePatternCS];
  1630. case 'Indexed':
  1631. case 'I':
  1632. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  1633. var hiVal = cs[2] + 1;
  1634. var lookup = xref.fetchIfRef(cs[3]);
  1635. if (isStream(lookup)) {
  1636. lookup = lookup.getBytes();
  1637. }
  1638. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  1639. case 'Separation':
  1640. case 'DeviceN':
  1641. var name = cs[1];
  1642. numComps = 1;
  1643. if (isName(name)) {
  1644. numComps = 1;
  1645. } else if (isArray(name)) {
  1646. numComps = name.length;
  1647. }
  1648. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  1649. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  1650. return ['AlternateCS', numComps, alt, tintFnIR];
  1651. case 'Lab':
  1652. params = cs[1].getAll();
  1653. return ['LabCS', params];
  1654. default:
  1655. error('unimplemented color space object "' + mode + '"');
  1656. }
  1657. } else {
  1658. error('unrecognized color space object: "' + cs + '"');
  1659. }
  1660. return null;
  1661. };
  1662. /**
  1663. * Checks if a decode map matches the default decode map for a color space.
  1664. * This handles the general decode maps where there are two values per
  1665. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  1666. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  1667. * slightly different.
  1668. * @param {Array} decode Decode map (usually from an image).
  1669. * @param {Number} n Number of components the color space has.
  1670. */
  1671. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  1672. if (!decode) {
  1673. return true;
  1674. }
  1675. if (n * 2 !== decode.length) {
  1676. warn('The decode map is not the correct length');
  1677. return true;
  1678. }
  1679. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  1680. if (decode[i] !== 0 || decode[i + 1] != 1) {
  1681. return false;
  1682. }
  1683. }
  1684. return true;
  1685. };
  1686. ColorSpace.singletons = {
  1687. get gray() {
  1688. return shadow(this, 'gray', new DeviceGrayCS());
  1689. },
  1690. get rgb() {
  1691. return shadow(this, 'rgb', new DeviceRgbCS());
  1692. },
  1693. get cmyk() {
  1694. return shadow(this, 'cmyk', new DeviceCmykCS());
  1695. }
  1696. };
  1697. return ColorSpace;
  1698. })();
  1699. /**
  1700. * Alternate color space handles both Separation and DeviceN color spaces. A
  1701. * Separation color space is actually just a DeviceN with one color component.
  1702. * Both color spaces use a tinting function to convert colors to a base color
  1703. * space.
  1704. */
  1705. var AlternateCS = (function AlternateCSClosure() {
  1706. function AlternateCS(numComps, base, tintFn) {
  1707. this.name = 'Alternate';
  1708. this.numComps = numComps;
  1709. this.defaultColor = new Float32Array(numComps);
  1710. for (var i = 0; i < numComps; ++i) {
  1711. this.defaultColor[i] = 1;
  1712. }
  1713. this.base = base;
  1714. this.tintFn = tintFn;
  1715. }
  1716. AlternateCS.prototype = {
  1717. getRgb: ColorSpace.prototype.getRgb,
  1718. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  1719. dest, destOffset) {
  1720. var baseNumComps = this.base.numComps;
  1721. var input = 'subarray' in src ?
  1722. src.subarray(srcOffset, srcOffset + this.numComps) :
  1723. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  1724. var tinted = this.tintFn(input);
  1725. this.base.getRgbItem(tinted, 0, dest, destOffset);
  1726. },
  1727. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  1728. dest, destOffset, bits,
  1729. alpha01) {
  1730. var tintFn = this.tintFn;
  1731. var base = this.base;
  1732. var scale = 1 / ((1 << bits) - 1);
  1733. var baseNumComps = base.numComps;
  1734. var usesZeroToOneRange = base.usesZeroToOneRange;
  1735. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  1736. alpha01 === 0;
  1737. var pos = isPassthrough ? destOffset : 0;
  1738. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  1739. var numComps = this.numComps;
  1740. var scaled = new Float32Array(numComps);
  1741. var i, j;
  1742. for (i = 0; i < count; i++) {
  1743. for (j = 0; j < numComps; j++) {
  1744. scaled[j] = src[srcOffset++] * scale;
  1745. }
  1746. var tinted = tintFn(scaled);
  1747. if (usesZeroToOneRange) {
  1748. for (j = 0; j < baseNumComps; j++) {
  1749. baseBuf[pos++] = tinted[j] * 255;
  1750. }
  1751. } else {
  1752. base.getRgbItem(tinted, 0, baseBuf, pos);
  1753. pos += baseNumComps;
  1754. }
  1755. }
  1756. if (!isPassthrough) {
  1757. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  1758. }
  1759. },
  1760. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  1761. alpha01) {
  1762. return this.base.getOutputLength(inputLength *
  1763. this.base.numComps / this.numComps,
  1764. alpha01);
  1765. },
  1766. isPassthrough: ColorSpace.prototype.isPassthrough,
  1767. fillRgb: ColorSpace.prototype.fillRgb,
  1768. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  1769. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1770. },
  1771. usesZeroToOneRange: true
  1772. };
  1773. return AlternateCS;
  1774. })();
  1775. var PatternCS = (function PatternCSClosure() {
  1776. function PatternCS(baseCS) {
  1777. this.name = 'Pattern';
  1778. this.base = baseCS;
  1779. }
  1780. PatternCS.prototype = {};
  1781. return PatternCS;
  1782. })();
  1783. var IndexedCS = (function IndexedCSClosure() {
  1784. function IndexedCS(base, highVal, lookup) {
  1785. this.name = 'Indexed';
  1786. this.numComps = 1;
  1787. this.defaultColor = new Uint8Array([0]);
  1788. this.base = base;
  1789. this.highVal = highVal;
  1790. var baseNumComps = base.numComps;
  1791. var length = baseNumComps * highVal;
  1792. var lookupArray;
  1793. if (isStream(lookup)) {
  1794. lookupArray = new Uint8Array(length);
  1795. var bytes = lookup.getBytes(length);
  1796. lookupArray.set(bytes);
  1797. } else if (isString(lookup)) {
  1798. lookupArray = new Uint8Array(length);
  1799. for (var i = 0; i < length; ++i) {
  1800. lookupArray[i] = lookup.charCodeAt(i);
  1801. }
  1802. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  1803. lookupArray = lookup;
  1804. } else {
  1805. error('Unrecognized lookup table: ' + lookup);
  1806. }
  1807. this.lookup = lookupArray;
  1808. }
  1809. IndexedCS.prototype = {
  1810. getRgb: ColorSpace.prototype.getRgb,
  1811. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  1812. dest, destOffset) {
  1813. var numComps = this.base.numComps;
  1814. var start = src[srcOffset] * numComps;
  1815. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  1816. },
  1817. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  1818. dest, destOffset, bits,
  1819. alpha01) {
  1820. var base = this.base;
  1821. var numComps = base.numComps;
  1822. var outputDelta = base.getOutputLength(numComps, alpha01);
  1823. var lookup = this.lookup;
  1824. for (var i = 0; i < count; ++i) {
  1825. var lookupPos = src[srcOffset++] * numComps;
  1826. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  1827. destOffset += outputDelta;
  1828. }
  1829. },
  1830. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  1831. return this.base.getOutputLength(inputLength * this.base.numComps,
  1832. alpha01);
  1833. },
  1834. isPassthrough: ColorSpace.prototype.isPassthrough,
  1835. fillRgb: ColorSpace.prototype.fillRgb,
  1836. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  1837. // indexed color maps shouldn't be changed
  1838. return true;
  1839. },
  1840. usesZeroToOneRange: true
  1841. };
  1842. return IndexedCS;
  1843. })();
  1844. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  1845. function DeviceGrayCS() {
  1846. this.name = 'DeviceGray';
  1847. this.numComps = 1;
  1848. this.defaultColor = new Float32Array([0]);
  1849. }
  1850. DeviceGrayCS.prototype = {
  1851. getRgb: ColorSpace.prototype.getRgb,
  1852. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  1853. dest, destOffset) {
  1854. var c = (src[srcOffset] * 255) | 0;
  1855. c = c < 0 ? 0 : c > 255 ? 255 : c;
  1856. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  1857. },
  1858. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  1859. dest, destOffset, bits,
  1860. alpha01) {
  1861. var scale = 255 / ((1 << bits) - 1);
  1862. var j = srcOffset, q = destOffset;
  1863. for (var i = 0; i < count; ++i) {
  1864. var c = (scale * src[j++]) | 0;
  1865. dest[q++] = c;
  1866. dest[q++] = c;
  1867. dest[q++] = c;
  1868. q += alpha01;
  1869. }
  1870. },
  1871. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  1872. alpha01) {
  1873. return inputLength * (3 + alpha01);
  1874. },
  1875. isPassthrough: ColorSpace.prototype.isPassthrough,
  1876. fillRgb: ColorSpace.prototype.fillRgb,
  1877. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  1878. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1879. },
  1880. usesZeroToOneRange: true
  1881. };
  1882. return DeviceGrayCS;
  1883. })();
  1884. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  1885. function DeviceRgbCS() {
  1886. this.name = 'DeviceRGB';
  1887. this.numComps = 3;
  1888. this.defaultColor = new Float32Array([0, 0, 0]);
  1889. }
  1890. DeviceRgbCS.prototype = {
  1891. getRgb: ColorSpace.prototype.getRgb,
  1892. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  1893. dest, destOffset) {
  1894. var r = (src[srcOffset] * 255) | 0;
  1895. var g = (src[srcOffset + 1] * 255) | 0;
  1896. var b = (src[srcOffset + 2] * 255) | 0;
  1897. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  1898. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  1899. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  1900. },
  1901. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  1902. dest, destOffset, bits,
  1903. alpha01) {
  1904. if (bits === 8 && alpha01 === 0) {
  1905. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  1906. return;
  1907. }
  1908. var scale = 255 / ((1 << bits) - 1);
  1909. var j = srcOffset, q = destOffset;
  1910. for (var i = 0; i < count; ++i) {
  1911. dest[q++] = (scale * src[j++]) | 0;
  1912. dest[q++] = (scale * src[j++]) | 0;
  1913. dest[q++] = (scale * src[j++]) | 0;
  1914. q += alpha01;
  1915. }
  1916. },
  1917. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  1918. alpha01) {
  1919. return (inputLength * (3 + alpha01) / 3) | 0;
  1920. },
  1921. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  1922. return bits == 8;
  1923. },
  1924. fillRgb: ColorSpace.prototype.fillRgb,
  1925. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  1926. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1927. },
  1928. usesZeroToOneRange: true
  1929. };
  1930. return DeviceRgbCS;
  1931. })();
  1932. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  1933. // The coefficients below was found using numerical analysis: the method of
  1934. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  1935. // where color_value is the tabular value from the table of sampled RGB colors
  1936. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  1937. // CMYK color conversion using the estimation below:
  1938. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  1939. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  1940. var c = src[srcOffset + 0] * srcScale;
  1941. var m = src[srcOffset + 1] * srcScale;
  1942. var y = src[srcOffset + 2] * srcScale;
  1943. var k = src[srcOffset + 3] * srcScale;
  1944. var r =
  1945. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  1946. 18.82290502165302 * y + 212.25662451639585 * k +
  1947. -285.2331026137004) +
  1948. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  1949. -17.873870861415444 * k - 5.497006427196366) +
  1950. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  1951. 17.5119270841813) +
  1952. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  1953. var g =
  1954. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  1955. 6.871425592049007 * y + 31.159100130055922 * k +
  1956. -79.2970844816548) +
  1957. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  1958. 131.35250912493976 * k - 190.9453302588951) +
  1959. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  1960. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  1961. var b =
  1962. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  1963. 30.89978309703729 * y - 0.23883238689178934 * k +
  1964. -14.183576799673286) +
  1965. m * (10.49593273432072 * m + 63.02378494754052 * y +
  1966. 50.606957656360734 * k - 112.23884253719248) +
  1967. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  1968. -193.58209356861505) +
  1969. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  1970. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  1971. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  1972. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  1973. }
  1974. function DeviceCmykCS() {
  1975. this.name = 'DeviceCMYK';
  1976. this.numComps = 4;
  1977. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  1978. }
  1979. DeviceCmykCS.prototype = {
  1980. getRgb: ColorSpace.prototype.getRgb,
  1981. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  1982. dest, destOffset) {
  1983. convertToRgb(src, srcOffset, 1, dest, destOffset);
  1984. },
  1985. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  1986. dest, destOffset, bits,
  1987. alpha01) {
  1988. var scale = 1 / ((1 << bits) - 1);
  1989. for (var i = 0; i < count; i++) {
  1990. convertToRgb(src, srcOffset, scale, dest, destOffset);
  1991. srcOffset += 4;
  1992. destOffset += 3 + alpha01;
  1993. }
  1994. },
  1995. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  1996. alpha01) {
  1997. return (inputLength / 4 * (3 + alpha01)) | 0;
  1998. },
  1999. isPassthrough: ColorSpace.prototype.isPassthrough,
  2000. fillRgb: ColorSpace.prototype.fillRgb,
  2001. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  2002. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2003. },
  2004. usesZeroToOneRange: true
  2005. };
  2006. return DeviceCmykCS;
  2007. })();
  2008. //
  2009. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  2010. //
  2011. var CalGrayCS = (function CalGrayCSClosure() {
  2012. function CalGrayCS(whitePoint, blackPoint, gamma) {
  2013. this.name = 'CalGray';
  2014. this.numComps = 1;
  2015. this.defaultColor = new Float32Array([0]);
  2016. if (!whitePoint) {
  2017. error('WhitePoint missing - required for color space CalGray');
  2018. }
  2019. blackPoint = blackPoint || [0, 0, 0];
  2020. gamma = gamma || 1;
  2021. // Translate arguments to spec variables.
  2022. this.XW = whitePoint[0];
  2023. this.YW = whitePoint[1];
  2024. this.ZW = whitePoint[2];
  2025. this.XB = blackPoint[0];
  2026. this.YB = blackPoint[1];
  2027. this.ZB = blackPoint[2];
  2028. this.G = gamma;
  2029. // Validate variables as per spec.
  2030. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2031. error('Invalid WhitePoint components for ' + this.name +
  2032. ', no fallback available');
  2033. }
  2034. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2035. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  2036. this.XB = this.YB = this.ZB = 0;
  2037. }
  2038. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  2039. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  2040. ', ZB: ' + this.ZB + ', only default values are supported.');
  2041. }
  2042. if (this.G < 1) {
  2043. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  2044. ', falling back to default');
  2045. this.G = 1;
  2046. }
  2047. }
  2048. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  2049. // A represents a gray component of a calibrated gray space.
  2050. // A <---> AG in the spec
  2051. var A = src[srcOffset] * scale;
  2052. var AG = Math.pow(A, cs.G);
  2053. // Computes L as per spec. ( = cs.YW * AG )
  2054. // Except if other than default BlackPoint values are used.
  2055. var L = cs.YW * AG;
  2056. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  2057. // Convert values to rgb range [0, 255].
  2058. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  2059. dest[destOffset] = val;
  2060. dest[destOffset + 1] = val;
  2061. dest[destOffset + 2] = val;
  2062. }
  2063. CalGrayCS.prototype = {
  2064. getRgb: ColorSpace.prototype.getRgb,
  2065. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  2066. dest, destOffset) {
  2067. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  2068. },
  2069. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  2070. dest, destOffset, bits,
  2071. alpha01) {
  2072. var scale = 1 / ((1 << bits) - 1);
  2073. for (var i = 0; i < count; ++i) {
  2074. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  2075. srcOffset += 1;
  2076. destOffset += 3 + alpha01;
  2077. }
  2078. },
  2079. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  2080. return inputLength * (3 + alpha01);
  2081. },
  2082. isPassthrough: ColorSpace.prototype.isPassthrough,
  2083. fillRgb: ColorSpace.prototype.fillRgb,
  2084. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  2085. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2086. },
  2087. usesZeroToOneRange: true
  2088. };
  2089. return CalGrayCS;
  2090. })();
  2091. //
  2092. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  2093. //
  2094. var LabCS = (function LabCSClosure() {
  2095. function LabCS(whitePoint, blackPoint, range) {
  2096. this.name = 'Lab';
  2097. this.numComps = 3;
  2098. this.defaultColor = new Float32Array([0, 0, 0]);
  2099. if (!whitePoint) {
  2100. error('WhitePoint missing - required for color space Lab');
  2101. }
  2102. blackPoint = blackPoint || [0, 0, 0];
  2103. range = range || [-100, 100, -100, 100];
  2104. // Translate args to spec variables
  2105. this.XW = whitePoint[0];
  2106. this.YW = whitePoint[1];
  2107. this.ZW = whitePoint[2];
  2108. this.amin = range[0];
  2109. this.amax = range[1];
  2110. this.bmin = range[2];
  2111. this.bmax = range[3];
  2112. // These are here just for completeness - the spec doesn't offer any
  2113. // formulas that use BlackPoint in Lab
  2114. this.XB = blackPoint[0];
  2115. this.YB = blackPoint[1];
  2116. this.ZB = blackPoint[2];
  2117. // Validate vars as per spec
  2118. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2119. error('Invalid WhitePoint components, no fallback available');
  2120. }
  2121. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2122. info('Invalid BlackPoint, falling back to default');
  2123. this.XB = this.YB = this.ZB = 0;
  2124. }
  2125. if (this.amin > this.amax || this.bmin > this.bmax) {
  2126. info('Invalid Range, falling back to defaults');
  2127. this.amin = -100;
  2128. this.amax = 100;
  2129. this.bmin = -100;
  2130. this.bmax = 100;
  2131. }
  2132. }
  2133. // Function g(x) from spec
  2134. function fn_g(x) {
  2135. if (x >= 6 / 29) {
  2136. return x * x * x;
  2137. } else {
  2138. return (108 / 841) * (x - 4 / 29);
  2139. }
  2140. }
  2141. function decode(value, high1, low2, high2) {
  2142. return low2 + (value) * (high2 - low2) / (high1);
  2143. }
  2144. // If decoding is needed maxVal should be 2^bits per component - 1.
  2145. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  2146. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  2147. // not the usual [0, 1]. If a command like setFillColor is used the src
  2148. // values will already be within the correct range. However, if we are
  2149. // converting an image we have to map the values to the correct range given
  2150. // above.
  2151. // Ls,as,bs <---> L*,a*,b* in the spec
  2152. var Ls = src[srcOffset];
  2153. var as = src[srcOffset + 1];
  2154. var bs = src[srcOffset + 2];
  2155. if (maxVal !== false) {
  2156. Ls = decode(Ls, maxVal, 0, 100);
  2157. as = decode(as, maxVal, cs.amin, cs.amax);
  2158. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  2159. }
  2160. // Adjust limits of 'as' and 'bs'
  2161. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  2162. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  2163. // Computes intermediate variables X,Y,Z as per spec
  2164. var M = (Ls + 16) / 116;
  2165. var L = M + (as / 500);
  2166. var N = M - (bs / 200);
  2167. var X = cs.XW * fn_g(L);
  2168. var Y = cs.YW * fn_g(M);
  2169. var Z = cs.ZW * fn_g(N);
  2170. var r, g, b;
  2171. // Using different conversions for D50 and D65 white points,
  2172. // per http://www.color.org/srgb.pdf
  2173. if (cs.ZW < 1) {
  2174. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  2175. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  2176. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  2177. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  2178. } else {
  2179. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  2180. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  2181. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  2182. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  2183. }
  2184. // clamp color values to [0,1] range then convert to [0,255] range.
  2185. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  2186. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  2187. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  2188. }
  2189. LabCS.prototype = {
  2190. getRgb: ColorSpace.prototype.getRgb,
  2191. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  2192. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  2193. },
  2194. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  2195. dest, destOffset, bits,
  2196. alpha01) {
  2197. var maxVal = (1 << bits) - 1;
  2198. for (var i = 0; i < count; i++) {
  2199. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  2200. srcOffset += 3;
  2201. destOffset += 3 + alpha01;
  2202. }
  2203. },
  2204. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  2205. return (inputLength * (3 + alpha01) / 3) | 0;
  2206. },
  2207. isPassthrough: ColorSpace.prototype.isPassthrough,
  2208. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  2209. // XXX: Decoding is handled with the lab conversion because of the strange
  2210. // ranges that are used.
  2211. return true;
  2212. },
  2213. usesZeroToOneRange: false
  2214. };
  2215. return LabCS;
  2216. })();
  2217. var PDFFunction = (function PDFFunctionClosure() {
  2218. var CONSTRUCT_SAMPLED = 0;
  2219. var CONSTRUCT_INTERPOLATED = 2;
  2220. var CONSTRUCT_STICHED = 3;
  2221. var CONSTRUCT_POSTSCRIPT = 4;
  2222. return {
  2223. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  2224. str) {
  2225. var i, ii;
  2226. var length = 1;
  2227. for (i = 0, ii = size.length; i < ii; i++) {
  2228. length *= size[i];
  2229. }
  2230. length *= outputSize;
  2231. var array = [];
  2232. var codeSize = 0;
  2233. var codeBuf = 0;
  2234. // 32 is a valid bps so shifting won't work
  2235. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  2236. var strBytes = str.getBytes((length * bps + 7) / 8);
  2237. var strIdx = 0;
  2238. for (i = 0; i < length; i++) {
  2239. while (codeSize < bps) {
  2240. codeBuf <<= 8;
  2241. codeBuf |= strBytes[strIdx++];
  2242. codeSize += 8;
  2243. }
  2244. codeSize -= bps;
  2245. array.push((codeBuf >> codeSize) * sampleMul);
  2246. codeBuf &= (1 << codeSize) - 1;
  2247. }
  2248. return array;
  2249. },
  2250. getIR: function PDFFunction_getIR(xref, fn) {
  2251. var dict = fn.dict;
  2252. if (!dict) {
  2253. dict = fn;
  2254. }
  2255. var types = [this.constructSampled,
  2256. null,
  2257. this.constructInterpolated,
  2258. this.constructStiched,
  2259. this.constructPostScript];
  2260. var typeNum = dict.get('FunctionType');
  2261. var typeFn = types[typeNum];
  2262. if (!typeFn) {
  2263. error('Unknown type of function');
  2264. }
  2265. return typeFn.call(this, fn, dict, xref);
  2266. },
  2267. fromIR: function PDFFunction_fromIR(IR) {
  2268. var type = IR[0];
  2269. switch (type) {
  2270. case CONSTRUCT_SAMPLED:
  2271. return this.constructSampledFromIR(IR);
  2272. case CONSTRUCT_INTERPOLATED:
  2273. return this.constructInterpolatedFromIR(IR);
  2274. case CONSTRUCT_STICHED:
  2275. return this.constructStichedFromIR(IR);
  2276. //case CONSTRUCT_POSTSCRIPT:
  2277. default:
  2278. return this.constructPostScriptFromIR(IR);
  2279. }
  2280. },
  2281. parse: function PDFFunction_parse(xref, fn) {
  2282. var IR = this.getIR(xref, fn);
  2283. return this.fromIR(IR);
  2284. },
  2285. constructSampled: function PDFFunction_constructSampled(str, dict) {
  2286. function toMultiArray(arr) {
  2287. var inputLength = arr.length;
  2288. var out = [];
  2289. var index = 0;
  2290. for (var i = 0; i < inputLength; i += 2) {
  2291. out[index] = [arr[i], arr[i + 1]];
  2292. ++index;
  2293. }
  2294. return out;
  2295. }
  2296. var domain = dict.get('Domain');
  2297. var range = dict.get('Range');
  2298. if (!domain || !range) {
  2299. error('No domain or range');
  2300. }
  2301. var inputSize = domain.length / 2;
  2302. var outputSize = range.length / 2;
  2303. domain = toMultiArray(domain);
  2304. range = toMultiArray(range);
  2305. var size = dict.get('Size');
  2306. var bps = dict.get('BitsPerSample');
  2307. var order = dict.get('Order') || 1;
  2308. if (order !== 1) {
  2309. // No description how cubic spline interpolation works in PDF32000:2008
  2310. // As in poppler, ignoring order, linear interpolation may work as good
  2311. info('No support for cubic spline interpolation: ' + order);
  2312. }
  2313. var encode = dict.get('Encode');
  2314. if (!encode) {
  2315. encode = [];
  2316. for (var i = 0; i < inputSize; ++i) {
  2317. encode.push(0);
  2318. encode.push(size[i] - 1);
  2319. }
  2320. }
  2321. encode = toMultiArray(encode);
  2322. var decode = dict.get('Decode');
  2323. if (!decode) {
  2324. decode = range;
  2325. } else {
  2326. decode = toMultiArray(decode);
  2327. }
  2328. var samples = this.getSampleArray(size, outputSize, bps, str);
  2329. return [
  2330. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  2331. outputSize, Math.pow(2, bps) - 1, range
  2332. ];
  2333. },
  2334. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  2335. // See chapter 3, page 109 of the PDF reference
  2336. function interpolate(x, xmin, xmax, ymin, ymax) {
  2337. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  2338. }
  2339. return function constructSampledFromIRResult(args) {
  2340. // See chapter 3, page 110 of the PDF reference.
  2341. var m = IR[1];
  2342. var domain = IR[2];
  2343. var encode = IR[3];
  2344. var decode = IR[4];
  2345. var samples = IR[5];
  2346. var size = IR[6];
  2347. var n = IR[7];
  2348. //var mask = IR[8];
  2349. var range = IR[9];
  2350. if (m != args.length) {
  2351. error('Incorrect number of arguments: ' + m + ' != ' +
  2352. args.length);
  2353. }
  2354. var x = args;
  2355. // Building the cube vertices: its part and sample index
  2356. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  2357. var cubeVertices = 1 << m;
  2358. var cubeN = new Float64Array(cubeVertices);
  2359. var cubeVertex = new Uint32Array(cubeVertices);
  2360. var i, j;
  2361. for (j = 0; j < cubeVertices; j++) {
  2362. cubeN[j] = 1;
  2363. }
  2364. var k = n, pos = 1;
  2365. // Map x_i to y_j for 0 <= i < m using the sampled function.
  2366. for (i = 0; i < m; ++i) {
  2367. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  2368. var domain_2i = domain[i][0];
  2369. var domain_2i_1 = domain[i][1];
  2370. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  2371. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  2372. // Encode_2i, Encode_2i+1)
  2373. var e = interpolate(xi, domain_2i, domain_2i_1,
  2374. encode[i][0], encode[i][1]);
  2375. // e_i' = min(max(e_i, 0), Size_i - 1)
  2376. var size_i = size[i];
  2377. e = Math.min(Math.max(e, 0), size_i - 1);
  2378. // Adjusting the cube: N and vertex sample index
  2379. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  2380. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  2381. var n1 = e - e0; // (e - e0) / (e1 - e0);
  2382. var offset0 = e0 * k;
  2383. var offset1 = offset0 + k; // e1 * k
  2384. for (j = 0; j < cubeVertices; j++) {
  2385. if (j & pos) {
  2386. cubeN[j] *= n1;
  2387. cubeVertex[j] += offset1;
  2388. } else {
  2389. cubeN[j] *= n0;
  2390. cubeVertex[j] += offset0;
  2391. }
  2392. }
  2393. k *= size_i;
  2394. pos <<= 1;
  2395. }
  2396. var y = new Float64Array(n);
  2397. for (j = 0; j < n; ++j) {
  2398. // Sum all cube vertices' samples portions
  2399. var rj = 0;
  2400. for (i = 0; i < cubeVertices; i++) {
  2401. rj += samples[cubeVertex[i] + j] * cubeN[i];
  2402. }
  2403. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  2404. // Decode_2j, Decode_2j+1)
  2405. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  2406. // y_j = min(max(r_j, range_2j), range_2j+1)
  2407. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  2408. }
  2409. return y;
  2410. };
  2411. },
  2412. constructInterpolated: function PDFFunction_constructInterpolated(str,
  2413. dict) {
  2414. var c0 = dict.get('C0') || [0];
  2415. var c1 = dict.get('C1') || [1];
  2416. var n = dict.get('N');
  2417. if (!isArray(c0) || !isArray(c1)) {
  2418. error('Illegal dictionary for interpolated function');
  2419. }
  2420. var length = c0.length;
  2421. var diff = [];
  2422. for (var i = 0; i < length; ++i) {
  2423. diff.push(c1[i] - c0[i]);
  2424. }
  2425. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  2426. },
  2427. constructInterpolatedFromIR:
  2428. function PDFFunction_constructInterpolatedFromIR(IR) {
  2429. var c0 = IR[1];
  2430. var diff = IR[2];
  2431. var n = IR[3];
  2432. var length = diff.length;
  2433. return function constructInterpolatedFromIRResult(args) {
  2434. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  2435. var out = [];
  2436. for (var j = 0; j < length; ++j) {
  2437. out.push(c0[j] + (x * diff[j]));
  2438. }
  2439. return out;
  2440. };
  2441. },
  2442. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  2443. var domain = dict.get('Domain');
  2444. if (!domain) {
  2445. error('No domain');
  2446. }
  2447. var inputSize = domain.length / 2;
  2448. if (inputSize != 1) {
  2449. error('Bad domain for stiched function');
  2450. }
  2451. var fnRefs = dict.get('Functions');
  2452. var fns = [];
  2453. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  2454. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  2455. }
  2456. var bounds = dict.get('Bounds');
  2457. var encode = dict.get('Encode');
  2458. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  2459. },
  2460. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  2461. var domain = IR[1];
  2462. var bounds = IR[2];
  2463. var encode = IR[3];
  2464. var fnsIR = IR[4];
  2465. var fns = [];
  2466. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  2467. fns.push(PDFFunction.fromIR(fnsIR[i]));
  2468. }
  2469. return function constructStichedFromIRResult(args) {
  2470. var clip = function constructStichedFromIRClip(v, min, max) {
  2471. if (v > max) {
  2472. v = max;
  2473. } else if (v < min) {
  2474. v = min;
  2475. }
  2476. return v;
  2477. };
  2478. // clip to domain
  2479. var v = clip(args[0], domain[0], domain[1]);
  2480. // calulate which bound the value is in
  2481. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  2482. if (v < bounds[i]) {
  2483. break;
  2484. }
  2485. }
  2486. // encode value into domain of function
  2487. var dmin = domain[0];
  2488. if (i > 0) {
  2489. dmin = bounds[i - 1];
  2490. }
  2491. var dmax = domain[1];
  2492. if (i < bounds.length) {
  2493. dmax = bounds[i];
  2494. }
  2495. var rmin = encode[2 * i];
  2496. var rmax = encode[2 * i + 1];
  2497. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  2498. // call the appropriate function
  2499. return fns[i]([v2]);
  2500. };
  2501. },
  2502. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  2503. xref) {
  2504. var domain = dict.get('Domain');
  2505. var range = dict.get('Range');
  2506. if (!domain) {
  2507. error('No domain.');
  2508. }
  2509. if (!range) {
  2510. error('No range.');
  2511. }
  2512. var lexer = new PostScriptLexer(fn);
  2513. var parser = new PostScriptParser(lexer);
  2514. var code = parser.parse();
  2515. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  2516. },
  2517. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  2518. IR) {
  2519. var domain = IR[1];
  2520. var range = IR[2];
  2521. var code = IR[3];
  2522. var numOutputs = range.length / 2;
  2523. var evaluator = new PostScriptEvaluator(code);
  2524. // Cache the values for a big speed up, the cache size is limited though
  2525. // since the number of possible values can be huge from a PS function.
  2526. var cache = new FunctionCache();
  2527. return function constructPostScriptFromIRResult(args) {
  2528. var initialStack = [];
  2529. for (var i = 0, ii = (domain.length / 2); i < ii; ++i) {
  2530. initialStack.push(args[i]);
  2531. }
  2532. var key = initialStack.join('_');
  2533. if (cache.has(key)) {
  2534. return cache.get(key);
  2535. }
  2536. var stack = evaluator.execute(initialStack);
  2537. var transformed = [];
  2538. for (i = numOutputs - 1; i >= 0; --i) {
  2539. var out = stack.pop();
  2540. var rangeIndex = 2 * i;
  2541. if (out < range[rangeIndex]) {
  2542. out = range[rangeIndex];
  2543. } else if (out > range[rangeIndex + 1]) {
  2544. out = range[rangeIndex + 1];
  2545. }
  2546. transformed[i] = out;
  2547. }
  2548. cache.set(key, transformed);
  2549. return transformed;
  2550. };
  2551. }
  2552. };
  2553. })();
  2554. var FunctionCache = (function FunctionCacheClosure() {
  2555. // Of 10 PDF's with type4 functions the maxium number of distinct values seen
  2556. // was 256. This still may need some tweaking in the future though.
  2557. var MAX_CACHE_SIZE = 1024;
  2558. function FunctionCache() {
  2559. this.cache = {};
  2560. this.total = 0;
  2561. }
  2562. FunctionCache.prototype = {
  2563. has: function FunctionCache_has(key) {
  2564. return key in this.cache;
  2565. },
  2566. get: function FunctionCache_get(key) {
  2567. return this.cache[key];
  2568. },
  2569. set: function FunctionCache_set(key, value) {
  2570. if (this.total < MAX_CACHE_SIZE) {
  2571. this.cache[key] = value;
  2572. this.total++;
  2573. }
  2574. }
  2575. };
  2576. return FunctionCache;
  2577. })();
  2578. var PostScriptStack = (function PostScriptStackClosure() {
  2579. var MAX_STACK_SIZE = 100;
  2580. function PostScriptStack(initialStack) {
  2581. this.stack = initialStack || [];
  2582. }
  2583. PostScriptStack.prototype = {
  2584. push: function PostScriptStack_push(value) {
  2585. if (this.stack.length >= MAX_STACK_SIZE) {
  2586. error('PostScript function stack overflow.');
  2587. }
  2588. this.stack.push(value);
  2589. },
  2590. pop: function PostScriptStack_pop() {
  2591. if (this.stack.length <= 0) {
  2592. error('PostScript function stack underflow.');
  2593. }
  2594. return this.stack.pop();
  2595. },
  2596. copy: function PostScriptStack_copy(n) {
  2597. if (this.stack.length + n >= MAX_STACK_SIZE) {
  2598. error('PostScript function stack overflow.');
  2599. }
  2600. var stack = this.stack;
  2601. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  2602. stack.push(stack[i]);
  2603. }
  2604. },
  2605. index: function PostScriptStack_index(n) {
  2606. this.push(this.stack[this.stack.length - n - 1]);
  2607. },
  2608. // rotate the last n stack elements p times
  2609. roll: function PostScriptStack_roll(n, p) {
  2610. var stack = this.stack;
  2611. var l = stack.length - n;
  2612. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  2613. for (i = l, j = r; i < j; i++, j--) {
  2614. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2615. }
  2616. for (i = l, j = c - 1; i < j; i++, j--) {
  2617. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2618. }
  2619. for (i = c, j = r; i < j; i++, j--) {
  2620. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2621. }
  2622. }
  2623. };
  2624. return PostScriptStack;
  2625. })();
  2626. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  2627. function PostScriptEvaluator(operators) {
  2628. this.operators = operators;
  2629. }
  2630. PostScriptEvaluator.prototype = {
  2631. execute: function PostScriptEvaluator_execute(initialStack) {
  2632. var stack = new PostScriptStack(initialStack);
  2633. var counter = 0;
  2634. var operators = this.operators;
  2635. var length = operators.length;
  2636. var operator, a, b;
  2637. while (counter < length) {
  2638. operator = operators[counter++];
  2639. if (typeof operator == 'number') {
  2640. // Operator is really an operand and should be pushed to the stack.
  2641. stack.push(operator);
  2642. continue;
  2643. }
  2644. switch (operator) {
  2645. // non standard ps operators
  2646. case 'jz': // jump if false
  2647. b = stack.pop();
  2648. a = stack.pop();
  2649. if (!a) {
  2650. counter = b;
  2651. }
  2652. break;
  2653. case 'j': // jump
  2654. a = stack.pop();
  2655. counter = a;
  2656. break;
  2657. // all ps operators in alphabetical order (excluding if/ifelse)
  2658. case 'abs':
  2659. a = stack.pop();
  2660. stack.push(Math.abs(a));
  2661. break;
  2662. case 'add':
  2663. b = stack.pop();
  2664. a = stack.pop();
  2665. stack.push(a + b);
  2666. break;
  2667. case 'and':
  2668. b = stack.pop();
  2669. a = stack.pop();
  2670. if (isBool(a) && isBool(b)) {
  2671. stack.push(a && b);
  2672. } else {
  2673. stack.push(a & b);
  2674. }
  2675. break;
  2676. case 'atan':
  2677. a = stack.pop();
  2678. stack.push(Math.atan(a));
  2679. break;
  2680. case 'bitshift':
  2681. b = stack.pop();
  2682. a = stack.pop();
  2683. if (a > 0) {
  2684. stack.push(a << b);
  2685. } else {
  2686. stack.push(a >> b);
  2687. }
  2688. break;
  2689. case 'ceiling':
  2690. a = stack.pop();
  2691. stack.push(Math.ceil(a));
  2692. break;
  2693. case 'copy':
  2694. a = stack.pop();
  2695. stack.copy(a);
  2696. break;
  2697. case 'cos':
  2698. a = stack.pop();
  2699. stack.push(Math.cos(a));
  2700. break;
  2701. case 'cvi':
  2702. a = stack.pop() | 0;
  2703. stack.push(a);
  2704. break;
  2705. case 'cvr':
  2706. // noop
  2707. break;
  2708. case 'div':
  2709. b = stack.pop();
  2710. a = stack.pop();
  2711. stack.push(a / b);
  2712. break;
  2713. case 'dup':
  2714. stack.copy(1);
  2715. break;
  2716. case 'eq':
  2717. b = stack.pop();
  2718. a = stack.pop();
  2719. stack.push(a == b);
  2720. break;
  2721. case 'exch':
  2722. stack.roll(2, 1);
  2723. break;
  2724. case 'exp':
  2725. b = stack.pop();
  2726. a = stack.pop();
  2727. stack.push(Math.pow(a, b));
  2728. break;
  2729. case 'false':
  2730. stack.push(false);
  2731. break;
  2732. case 'floor':
  2733. a = stack.pop();
  2734. stack.push(Math.floor(a));
  2735. break;
  2736. case 'ge':
  2737. b = stack.pop();
  2738. a = stack.pop();
  2739. stack.push(a >= b);
  2740. break;
  2741. case 'gt':
  2742. b = stack.pop();
  2743. a = stack.pop();
  2744. stack.push(a > b);
  2745. break;
  2746. case 'idiv':
  2747. b = stack.pop();
  2748. a = stack.pop();
  2749. stack.push((a / b) | 0);
  2750. break;
  2751. case 'index':
  2752. a = stack.pop();
  2753. stack.index(a);
  2754. break;
  2755. case 'le':
  2756. b = stack.pop();
  2757. a = stack.pop();
  2758. stack.push(a <= b);
  2759. break;
  2760. case 'ln':
  2761. a = stack.pop();
  2762. stack.push(Math.log(a));
  2763. break;
  2764. case 'log':
  2765. a = stack.pop();
  2766. stack.push(Math.log(a) / Math.LN10);
  2767. break;
  2768. case 'lt':
  2769. b = stack.pop();
  2770. a = stack.pop();
  2771. stack.push(a < b);
  2772. break;
  2773. case 'mod':
  2774. b = stack.pop();
  2775. a = stack.pop();
  2776. stack.push(a % b);
  2777. break;
  2778. case 'mul':
  2779. b = stack.pop();
  2780. a = stack.pop();
  2781. stack.push(a * b);
  2782. break;
  2783. case 'ne':
  2784. b = stack.pop();
  2785. a = stack.pop();
  2786. stack.push(a != b);
  2787. break;
  2788. case 'neg':
  2789. a = stack.pop();
  2790. stack.push(-a);
  2791. break;
  2792. case 'not':
  2793. a = stack.pop();
  2794. if (isBool(a)) {
  2795. stack.push(!a);
  2796. } else {
  2797. stack.push(~a);
  2798. }
  2799. break;
  2800. case 'or':
  2801. b = stack.pop();
  2802. a = stack.pop();
  2803. if (isBool(a) && isBool(b)) {
  2804. stack.push(a || b);
  2805. } else {
  2806. stack.push(a | b);
  2807. }
  2808. break;
  2809. case 'pop':
  2810. stack.pop();
  2811. break;
  2812. case 'roll':
  2813. b = stack.pop();
  2814. a = stack.pop();
  2815. stack.roll(a, b);
  2816. break;
  2817. case 'round':
  2818. a = stack.pop();
  2819. stack.push(Math.round(a));
  2820. break;
  2821. case 'sin':
  2822. a = stack.pop();
  2823. stack.push(Math.sin(a));
  2824. break;
  2825. case 'sqrt':
  2826. a = stack.pop();
  2827. stack.push(Math.sqrt(a));
  2828. break;
  2829. case 'sub':
  2830. b = stack.pop();
  2831. a = stack.pop();
  2832. stack.push(a - b);
  2833. break;
  2834. case 'true':
  2835. stack.push(true);
  2836. break;
  2837. case 'truncate':
  2838. a = stack.pop();
  2839. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  2840. stack.push(a);
  2841. break;
  2842. case 'xor':
  2843. b = stack.pop();
  2844. a = stack.pop();
  2845. if (isBool(a) && isBool(b)) {
  2846. stack.push(a != b);
  2847. } else {
  2848. stack.push(a ^ b);
  2849. }
  2850. break;
  2851. default:
  2852. error('Unknown operator ' + operator);
  2853. break;
  2854. }
  2855. }
  2856. return stack.stack;
  2857. }
  2858. };
  2859. return PostScriptEvaluator;
  2860. })();
  2861. var DEFAULT_ICON_SIZE = 22; // px
  2862. var HIGHLIGHT_OFFSET = 4; // px
  2863. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  2864. var Annotation = (function AnnotationClosure() {
  2865. // 12.5.5: Algorithm: Appearance streams
  2866. function getTransformMatrix(rect, bbox, matrix) {
  2867. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  2868. var minX = bounds[0];
  2869. var minY = bounds[1];
  2870. var maxX = bounds[2];
  2871. var maxY = bounds[3];
  2872. if (minX === maxX || minY === maxY) {
  2873. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  2874. // just apply the transform for rect
  2875. return [1, 0, 0, 1, rect[0], rect[1]];
  2876. }
  2877. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  2878. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  2879. return [
  2880. xRatio,
  2881. 0,
  2882. 0,
  2883. yRatio,
  2884. rect[0] - minX * xRatio,
  2885. rect[1] - minY * yRatio
  2886. ];
  2887. }
  2888. function getDefaultAppearance(dict) {
  2889. var appearanceState = dict.get('AP');
  2890. if (!isDict(appearanceState)) {
  2891. return;
  2892. }
  2893. var appearance;
  2894. var appearances = appearanceState.get('N');
  2895. if (isDict(appearances)) {
  2896. var as = dict.get('AS');
  2897. if (as && appearances.has(as.name)) {
  2898. appearance = appearances.get(as.name);
  2899. }
  2900. } else {
  2901. appearance = appearances;
  2902. }
  2903. return appearance;
  2904. }
  2905. function Annotation(params) {
  2906. if (params.data) {
  2907. this.data = params.data;
  2908. return;
  2909. }
  2910. var dict = params.dict;
  2911. var data = this.data = {};
  2912. data.subtype = dict.get('Subtype').name;
  2913. var rect = dict.get('Rect') || [0, 0, 0, 0];
  2914. data.rect = Util.normalizeRect(rect);
  2915. data.annotationFlags = dict.get('F');
  2916. var color = dict.get('C');
  2917. if (isArray(color) && color.length === 3) {
  2918. // TODO(mack): currently only supporting rgb; need support different
  2919. // colorspaces
  2920. data.color = color;
  2921. } else {
  2922. data.color = [0, 0, 0];
  2923. }
  2924. // Some types of annotations have border style dict which has more
  2925. // info than the border array
  2926. if (dict.has('BS')) {
  2927. var borderStyle = dict.get('BS');
  2928. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  2929. } else {
  2930. var borderArray = dict.get('Border') || [0, 0, 1];
  2931. data.borderWidth = borderArray[2] || 0;
  2932. // TODO: implement proper support for annotations with line dash patterns.
  2933. var dashArray = borderArray[3];
  2934. if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
  2935. var dashArrayLength = dashArray.length;
  2936. if (dashArrayLength > 0) {
  2937. // According to the PDF specification: the elements in a dashArray
  2938. // shall be numbers that are nonnegative and not all equal to zero.
  2939. var isInvalid = false;
  2940. var numPositive = 0;
  2941. for (var i = 0; i < dashArrayLength; i++) {
  2942. var validNumber = (+dashArray[i] >= 0);
  2943. if (!validNumber) {
  2944. isInvalid = true;
  2945. break;
  2946. } else if (dashArray[i] > 0) {
  2947. numPositive++;
  2948. }
  2949. }
  2950. if (isInvalid || numPositive === 0) {
  2951. data.borderWidth = 0;
  2952. }
  2953. }
  2954. }
  2955. }
  2956. this.appearance = getDefaultAppearance(dict);
  2957. data.hasAppearance = !!this.appearance;
  2958. data.id = params.ref.num;
  2959. }
  2960. Annotation.prototype = {
  2961. getData: function Annotation_getData() {
  2962. return this.data;
  2963. },
  2964. hasHtml: function Annotation_hasHtml() {
  2965. return false;
  2966. },
  2967. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  2968. throw new NotImplementedException(
  2969. 'getHtmlElement() should be implemented in subclass');
  2970. },
  2971. // TODO(mack): Remove this, it's not really that helpful.
  2972. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  2973. borderWidth) {
  2974. assert(!isWorker,
  2975. 'getEmptyContainer() should be called from main thread');
  2976. var bWidth = borderWidth || 0;
  2977. rect = rect || this.data.rect;
  2978. var element = document.createElement(tagName);
  2979. element.style.borderWidth = bWidth + 'px';
  2980. var width = rect[2] - rect[0] - 2 * bWidth;
  2981. var height = rect[3] - rect[1] - 2 * bWidth;
  2982. element.style.width = width + 'px';
  2983. element.style.height = height + 'px';
  2984. return element;
  2985. },
  2986. isInvisible: function Annotation_isInvisible() {
  2987. var data = this.data;
  2988. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  2989. return false;
  2990. } else {
  2991. return !!(data &&
  2992. data.annotationFlags && // Default: not invisible
  2993. data.annotationFlags & 0x1); // Invisible
  2994. }
  2995. },
  2996. isViewable: function Annotation_isViewable() {
  2997. var data = this.data;
  2998. return !!(!this.isInvisible() &&
  2999. data &&
  3000. (!data.annotationFlags ||
  3001. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  3002. data.rect); // rectangle is nessessary
  3003. },
  3004. isPrintable: function Annotation_isPrintable() {
  3005. var data = this.data;
  3006. return !!(!this.isInvisible() &&
  3007. data &&
  3008. data.annotationFlags && // Default: not printable
  3009. data.annotationFlags & 0x4 && // Print
  3010. data.rect); // rectangle is nessessary
  3011. },
  3012. loadResources: function Annotation_loadResources(keys) {
  3013. return new Promise(function (resolve, reject) {
  3014. this.appearance.dict.getAsync('Resources').then(function (resources) {
  3015. if (!resources) {
  3016. resolve();
  3017. return;
  3018. }
  3019. var objectLoader = new ObjectLoader(resources.map,
  3020. keys,
  3021. resources.xref);
  3022. objectLoader.load().then(function() {
  3023. resolve(resources);
  3024. }, reject);
  3025. }, reject);
  3026. }.bind(this));
  3027. },
  3028. getOperatorList: function Annotation_getOperatorList(evaluator) {
  3029. var capability = createPromiseCapability();
  3030. if (!this.appearance) {
  3031. capability.resolve(new OperatorList());
  3032. return capability.promise;
  3033. }
  3034. var data = this.data;
  3035. var appearanceDict = this.appearance.dict;
  3036. var resourcesPromise = this.loadResources([
  3037. 'ExtGState',
  3038. 'ColorSpace',
  3039. 'Pattern',
  3040. 'Shading',
  3041. 'XObject',
  3042. 'Font'
  3043. // ProcSet
  3044. // Properties
  3045. ]);
  3046. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  3047. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  3048. var transform = getTransformMatrix(data.rect, bbox, matrix);
  3049. resourcesPromise.then(function(resources) {
  3050. var opList = new OperatorList();
  3051. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  3052. evaluator.getOperatorList(this.appearance, resources, opList);
  3053. opList.addOp(OPS.endAnnotation, []);
  3054. capability.resolve(opList);
  3055. this.appearance.reset();
  3056. }.bind(this), capability.reject);
  3057. return capability.promise;
  3058. }
  3059. };
  3060. Annotation.getConstructor =
  3061. function Annotation_getConstructor(subtype, fieldType) {
  3062. if (!subtype) {
  3063. return;
  3064. }
  3065. // TODO(mack): Implement FreeText annotations
  3066. if (subtype === 'Link') {
  3067. return LinkAnnotation;
  3068. } else if (subtype === 'Text') {
  3069. return TextAnnotation;
  3070. } else if (subtype === 'Widget') {
  3071. if (!fieldType) {
  3072. return;
  3073. }
  3074. if (fieldType === 'Tx') {
  3075. return TextWidgetAnnotation;
  3076. } else {
  3077. return WidgetAnnotation;
  3078. }
  3079. } else {
  3080. return Annotation;
  3081. }
  3082. };
  3083. // TODO(mack): Support loading annotation from data
  3084. Annotation.fromData = function Annotation_fromData(data) {
  3085. var subtype = data.subtype;
  3086. var fieldType = data.fieldType;
  3087. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3088. if (Constructor) {
  3089. return new Constructor({ data: data });
  3090. }
  3091. };
  3092. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  3093. var dict = xref.fetchIfRef(ref);
  3094. if (!isDict(dict)) {
  3095. return;
  3096. }
  3097. var subtype = dict.get('Subtype');
  3098. subtype = isName(subtype) ? subtype.name : '';
  3099. if (!subtype) {
  3100. return;
  3101. }
  3102. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3103. fieldType = isName(fieldType) ? fieldType.name : '';
  3104. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3105. if (!Constructor) {
  3106. return;
  3107. }
  3108. var params = {
  3109. dict: dict,
  3110. ref: ref,
  3111. };
  3112. var annotation = new Constructor(params);
  3113. if (annotation.isViewable() || annotation.isPrintable()) {
  3114. return annotation;
  3115. } else {
  3116. warn('unimplemented annotation type: ' + subtype);
  3117. }
  3118. };
  3119. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  3120. annotations, opList, pdfManager, partialEvaluator, intent) {
  3121. function reject(e) {
  3122. annotationsReadyCapability.reject(e);
  3123. }
  3124. var annotationsReadyCapability = createPromiseCapability();
  3125. var annotationPromises = [];
  3126. for (var i = 0, n = annotations.length; i < n; ++i) {
  3127. if (intent === 'display' && annotations[i].isViewable() ||
  3128. intent === 'print' && annotations[i].isPrintable()) {
  3129. annotationPromises.push(
  3130. annotations[i].getOperatorList(partialEvaluator));
  3131. }
  3132. }
  3133. Promise.all(annotationPromises).then(function(datas) {
  3134. opList.addOp(OPS.beginAnnotations, []);
  3135. for (var i = 0, n = datas.length; i < n; ++i) {
  3136. var annotOpList = datas[i];
  3137. opList.addOpList(annotOpList);
  3138. }
  3139. opList.addOp(OPS.endAnnotations, []);
  3140. annotationsReadyCapability.resolve();
  3141. }, reject);
  3142. return annotationsReadyCapability.promise;
  3143. };
  3144. return Annotation;
  3145. })();
  3146. PDFJS.Annotation = Annotation;
  3147. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  3148. function WidgetAnnotation(params) {
  3149. Annotation.call(this, params);
  3150. if (params.data) {
  3151. return;
  3152. }
  3153. var dict = params.dict;
  3154. var data = this.data;
  3155. data.fieldValue = stringToPDFString(
  3156. Util.getInheritableProperty(dict, 'V') || '');
  3157. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  3158. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  3159. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3160. data.fieldType = isName(fieldType) ? fieldType.name : '';
  3161. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  3162. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  3163. // Building the full field name by collecting the field and
  3164. // its ancestors 'T' data and joining them using '.'.
  3165. var fieldName = [];
  3166. var namedItem = dict;
  3167. var ref = params.ref;
  3168. while (namedItem) {
  3169. var parent = namedItem.get('Parent');
  3170. var parentRef = namedItem.getRaw('Parent');
  3171. var name = namedItem.get('T');
  3172. if (name) {
  3173. fieldName.unshift(stringToPDFString(name));
  3174. } else {
  3175. // The field name is absent, that means more than one field
  3176. // with the same name may exist. Replacing the empty name
  3177. // with the '`' plus index in the parent's 'Kids' array.
  3178. // This is not in the PDF spec but necessary to id the
  3179. // the input controls.
  3180. var kids = parent.get('Kids');
  3181. var j, jj;
  3182. for (j = 0, jj = kids.length; j < jj; j++) {
  3183. var kidRef = kids[j];
  3184. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  3185. break;
  3186. }
  3187. }
  3188. fieldName.unshift('`' + j);
  3189. }
  3190. namedItem = parent;
  3191. ref = parentRef;
  3192. }
  3193. data.fullName = fieldName.join('.');
  3194. }
  3195. var parent = Annotation.prototype;
  3196. Util.inherit(WidgetAnnotation, Annotation, {
  3197. isViewable: function WidgetAnnotation_isViewable() {
  3198. if (this.data.fieldType === 'Sig') {
  3199. warn('unimplemented annotation type: Widget signature');
  3200. return false;
  3201. }
  3202. return parent.isViewable.call(this);
  3203. }
  3204. });
  3205. return WidgetAnnotation;
  3206. })();
  3207. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  3208. function TextWidgetAnnotation(params) {
  3209. WidgetAnnotation.call(this, params);
  3210. if (params.data) {
  3211. return;
  3212. }
  3213. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  3214. }
  3215. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  3216. function setTextStyles(element, item, fontObj) {
  3217. var style = element.style;
  3218. style.fontSize = item.fontSize + 'px';
  3219. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  3220. if (!fontObj) {
  3221. return;
  3222. }
  3223. style.fontWeight = fontObj.black ?
  3224. (fontObj.bold ? 'bolder' : 'bold') :
  3225. (fontObj.bold ? 'bold' : 'normal');
  3226. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  3227. var fontName = fontObj.loadedName;
  3228. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  3229. // Use a reasonable default font if the font doesn't specify a fallback
  3230. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  3231. style.fontFamily = fontFamily + fallbackName;
  3232. }
  3233. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  3234. hasHtml: function TextWidgetAnnotation_hasHtml() {
  3235. return !this.data.hasAppearance && !!this.data.fieldValue;
  3236. },
  3237. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  3238. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3239. var item = this.data;
  3240. var element = this.getEmptyContainer('div');
  3241. element.style.display = 'table';
  3242. var content = document.createElement('div');
  3243. content.textContent = item.fieldValue;
  3244. var textAlignment = item.textAlignment;
  3245. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  3246. content.style.verticalAlign = 'middle';
  3247. content.style.display = 'table-cell';
  3248. var fontObj = item.fontRefName ?
  3249. commonObjs.getData(item.fontRefName) : null;
  3250. setTextStyles(content, item, fontObj);
  3251. element.appendChild(content);
  3252. return element;
  3253. },
  3254. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  3255. if (this.appearance) {
  3256. return Annotation.prototype.getOperatorList.call(this, evaluator);
  3257. }
  3258. var opList = new OperatorList();
  3259. var data = this.data;
  3260. // Even if there is an appearance stream, ignore it. This is the
  3261. // behaviour used by Adobe Reader.
  3262. if (!data.defaultAppearance) {
  3263. return Promise.resolve(opList);
  3264. }
  3265. var stream = new Stream(stringToBytes(data.defaultAppearance));
  3266. evaluator.getOperatorList(stream, this.fieldResources, opList);
  3267. return Promise.resolve(opList);
  3268. }
  3269. });
  3270. return TextWidgetAnnotation;
  3271. })();
  3272. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  3273. function InteractiveAnnotation(params) {
  3274. Annotation.call(this, params);
  3275. }
  3276. Util.inherit(InteractiveAnnotation, Annotation, {
  3277. hasHtml: function InteractiveAnnotation_hasHtml() {
  3278. return true;
  3279. },
  3280. highlight: function InteractiveAnnotation_highlight() {
  3281. if (this.highlightElement &&
  3282. this.highlightElement.hasAttribute('hidden')) {
  3283. this.highlightElement.removeAttribute('hidden');
  3284. }
  3285. },
  3286. unhighlight: function InteractiveAnnotation_unhighlight() {
  3287. if (this.highlightElement &&
  3288. !this.highlightElement.hasAttribute('hidden')) {
  3289. this.highlightElement.setAttribute('hidden', true);
  3290. }
  3291. },
  3292. initContainer: function InteractiveAnnotation_initContainer() {
  3293. var item = this.data;
  3294. var rect = item.rect;
  3295. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  3296. container.style.backgroundColor = item.color;
  3297. var color = item.color;
  3298. var rgb = [];
  3299. for (var i = 0; i < 3; ++i) {
  3300. rgb[i] = Math.round(color[i] * 255);
  3301. }
  3302. item.colorCssRgb = Util.makeCssRgb(rgb);
  3303. var highlight = document.createElement('div');
  3304. highlight.className = 'annotationHighlight';
  3305. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  3306. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  3307. highlight.setAttribute('hidden', true);
  3308. this.highlightElement = highlight;
  3309. container.appendChild(this.highlightElement);
  3310. return container;
  3311. }
  3312. });
  3313. return InteractiveAnnotation;
  3314. })();
  3315. var TextAnnotation = (function TextAnnotationClosure() {
  3316. function TextAnnotation(params) {
  3317. InteractiveAnnotation.call(this, params);
  3318. if (params.data) {
  3319. return;
  3320. }
  3321. var dict = params.dict;
  3322. var data = this.data;
  3323. var content = dict.get('Contents');
  3324. var title = dict.get('T');
  3325. data.content = stringToPDFString(content || '');
  3326. data.title = stringToPDFString(title || '');
  3327. if (data.hasAppearance) {
  3328. data.name = 'NoIcon';
  3329. } else {
  3330. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  3331. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  3332. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  3333. }
  3334. if (dict.has('C')) {
  3335. data.hasBgColor = true;
  3336. }
  3337. }
  3338. var ANNOT_MIN_SIZE = 10;
  3339. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  3340. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  3341. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3342. var item = this.data;
  3343. var rect = item.rect;
  3344. // sanity check because of OOo-generated PDFs
  3345. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  3346. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  3347. }
  3348. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  3349. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  3350. }
  3351. var container = this.initContainer();
  3352. container.className = 'annotText';
  3353. var image = document.createElement('img');
  3354. image.style.height = container.style.height;
  3355. image.style.width = container.style.width;
  3356. var iconName = item.name;
  3357. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  3358. iconName.toLowerCase() + '.svg';
  3359. image.alt = '[{{type}} Annotation]';
  3360. image.dataset.l10nId = 'text_annotation_type';
  3361. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  3362. var contentWrapper = document.createElement('div');
  3363. contentWrapper.className = 'annotTextContentWrapper';
  3364. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  3365. contentWrapper.style.top = '-10px';
  3366. var content = document.createElement('div');
  3367. content.className = 'annotTextContent';
  3368. content.setAttribute('hidden', true);
  3369. var i, ii;
  3370. if (item.hasBgColor) {
  3371. var color = item.color;
  3372. var rgb = [];
  3373. for (i = 0; i < 3; ++i) {
  3374. // Enlighten the color (70%)
  3375. var c = Math.round(color[i] * 255);
  3376. rgb[i] = Math.round((255 - c) * 0.7) + c;
  3377. }
  3378. content.style.backgroundColor = Util.makeCssRgb(rgb);
  3379. }
  3380. var title = document.createElement('h1');
  3381. var text = document.createElement('p');
  3382. title.textContent = item.title;
  3383. if (!item.content && !item.title) {
  3384. content.setAttribute('hidden', true);
  3385. } else {
  3386. var e = document.createElement('span');
  3387. var lines = item.content.split(/(?:\r\n?|\n)/);
  3388. for (i = 0, ii = lines.length; i < ii; ++i) {
  3389. var line = lines[i];
  3390. e.appendChild(document.createTextNode(line));
  3391. if (i < (ii - 1)) {
  3392. e.appendChild(document.createElement('br'));
  3393. }
  3394. }
  3395. text.appendChild(e);
  3396. var pinned = false;
  3397. var showAnnotation = function showAnnotation(pin) {
  3398. if (pin) {
  3399. pinned = true;
  3400. }
  3401. if (content.hasAttribute('hidden')) {
  3402. container.style.zIndex += 1;
  3403. content.removeAttribute('hidden');
  3404. }
  3405. };
  3406. var hideAnnotation = function hideAnnotation(unpin) {
  3407. if (unpin) {
  3408. pinned = false;
  3409. }
  3410. if (!content.hasAttribute('hidden') && !pinned) {
  3411. container.style.zIndex -= 1;
  3412. content.setAttribute('hidden', true);
  3413. }
  3414. };
  3415. var toggleAnnotation = function toggleAnnotation() {
  3416. if (pinned) {
  3417. hideAnnotation(true);
  3418. } else {
  3419. showAnnotation(true);
  3420. }
  3421. };
  3422. image.addEventListener('click', function image_clickHandler() {
  3423. toggleAnnotation();
  3424. }, false);
  3425. image.addEventListener('mouseover', function image_mouseOverHandler() {
  3426. showAnnotation();
  3427. }, false);
  3428. image.addEventListener('mouseout', function image_mouseOutHandler() {
  3429. hideAnnotation();
  3430. }, false);
  3431. content.addEventListener('click', function content_clickHandler() {
  3432. hideAnnotation(true);
  3433. }, false);
  3434. }
  3435. content.appendChild(title);
  3436. content.appendChild(text);
  3437. contentWrapper.appendChild(content);
  3438. container.appendChild(image);
  3439. container.appendChild(contentWrapper);
  3440. return container;
  3441. }
  3442. });
  3443. return TextAnnotation;
  3444. })();
  3445. var LinkAnnotation = (function LinkAnnotationClosure() {
  3446. function LinkAnnotation(params) {
  3447. InteractiveAnnotation.call(this, params);
  3448. if (params.data) {
  3449. return;
  3450. }
  3451. var dict = params.dict;
  3452. var data = this.data;
  3453. var action = dict.get('A');
  3454. if (action) {
  3455. var linkType = action.get('S').name;
  3456. if (linkType === 'URI') {
  3457. var url = action.get('URI');
  3458. if (isName(url)) {
  3459. // Some bad PDFs do not put parentheses around relative URLs.
  3460. url = '/' + url.name;
  3461. } else if (url) {
  3462. url = addDefaultProtocolToUrl(url);
  3463. }
  3464. // TODO: pdf spec mentions urls can be relative to a Base
  3465. // entry in the dictionary.
  3466. if (!isValidUrl(url, false)) {
  3467. url = '';
  3468. }
  3469. data.url = url;
  3470. } else if (linkType === 'GoTo') {
  3471. data.dest = action.get('D');
  3472. } else if (linkType === 'GoToR') {
  3473. var urlDict = action.get('F');
  3474. if (isDict(urlDict)) {
  3475. // We assume that the 'url' is a Filspec dictionary
  3476. // and fetch the url without checking any further
  3477. url = urlDict.get('F') || '';
  3478. }
  3479. // TODO: pdf reference says that GoToR
  3480. // can also have 'NewWindow' attribute
  3481. if (!isValidUrl(url, false)) {
  3482. url = '';
  3483. }
  3484. data.url = url;
  3485. data.dest = action.get('D');
  3486. } else if (linkType === 'Named') {
  3487. data.action = action.get('N').name;
  3488. } else {
  3489. warn('unrecognized link type: ' + linkType);
  3490. }
  3491. } else if (dict.has('Dest')) {
  3492. // simple destination link
  3493. var dest = dict.get('Dest');
  3494. data.dest = isName(dest) ? dest.name : dest;
  3495. }
  3496. }
  3497. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  3498. function addDefaultProtocolToUrl(url) {
  3499. if (url && url.indexOf('www.') === 0) {
  3500. return ('http://' + url);
  3501. }
  3502. return url;
  3503. }
  3504. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  3505. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  3506. return false;
  3507. },
  3508. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  3509. var container = this.initContainer();
  3510. container.className = 'annotLink';
  3511. var item = this.data;
  3512. container.style.borderColor = item.colorCssRgb;
  3513. container.style.borderStyle = 'solid';
  3514. var link = document.createElement('a');
  3515. link.href = link.title = this.data.url || '';
  3516. container.appendChild(link);
  3517. return container;
  3518. }
  3519. });
  3520. return LinkAnnotation;
  3521. })();
  3522. var NetworkManager = (function NetworkManagerClosure() {
  3523. var OK_RESPONSE = 200;
  3524. var PARTIAL_CONTENT_RESPONSE = 206;
  3525. function NetworkManager(url, args) {
  3526. this.url = url;
  3527. args = args || {};
  3528. this.isHttp = /^https?:/i.test(url);
  3529. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  3530. this.withCredentials = args.withCredentials || false;
  3531. this.getXhr = args.getXhr ||
  3532. function NetworkManager_getXhr() {
  3533. return new XMLHttpRequest();
  3534. };
  3535. this.currXhrId = 0;
  3536. this.pendingRequests = {};
  3537. this.loadedRequests = {};
  3538. }
  3539. function getArrayBuffer(xhr) {
  3540. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  3541. xhr.responseArrayBuffer || xhr.response);
  3542. if (typeof data !== 'string') {
  3543. return data;
  3544. }
  3545. var length = data.length;
  3546. var buffer = new Uint8Array(length);
  3547. for (var i = 0; i < length; i++) {
  3548. buffer[i] = data.charCodeAt(i) & 0xFF;
  3549. }
  3550. return buffer;
  3551. }
  3552. NetworkManager.prototype = {
  3553. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  3554. var args = {
  3555. begin: begin,
  3556. end: end
  3557. };
  3558. for (var prop in listeners) {
  3559. args[prop] = listeners[prop];
  3560. }
  3561. return this.request(args);
  3562. },
  3563. requestFull: function NetworkManager_requestRange(listeners) {
  3564. return this.request(listeners);
  3565. },
  3566. request: function NetworkManager_requestRange(args) {
  3567. var xhr = this.getXhr();
  3568. var xhrId = this.currXhrId++;
  3569. var pendingRequest = this.pendingRequests[xhrId] = {
  3570. xhr: xhr
  3571. };
  3572. xhr.open('GET', this.url);
  3573. xhr.withCredentials = this.withCredentials;
  3574. for (var property in this.httpHeaders) {
  3575. var value = this.httpHeaders[property];
  3576. if (typeof value === 'undefined') {
  3577. continue;
  3578. }
  3579. xhr.setRequestHeader(property, value);
  3580. }
  3581. if (this.isHttp && 'begin' in args && 'end' in args) {
  3582. var rangeStr = args.begin + '-' + (args.end - 1);
  3583. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  3584. pendingRequest.expectedStatus = 206;
  3585. } else {
  3586. pendingRequest.expectedStatus = 200;
  3587. }
  3588. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  3589. if (args.onProgress) {
  3590. xhr.onprogress = args.onProgress;
  3591. }
  3592. if (args.onError) {
  3593. xhr.onerror = function(evt) {
  3594. args.onError(xhr.status);
  3595. };
  3596. }
  3597. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  3598. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  3599. pendingRequest.onDone = args.onDone;
  3600. pendingRequest.onError = args.onError;
  3601. xhr.send(null);
  3602. return xhrId;
  3603. },
  3604. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  3605. var pendingRequest = this.pendingRequests[xhrId];
  3606. if (!pendingRequest) {
  3607. // Maybe abortRequest was called...
  3608. return;
  3609. }
  3610. var xhr = pendingRequest.xhr;
  3611. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  3612. pendingRequest.onHeadersReceived();
  3613. delete pendingRequest.onHeadersReceived;
  3614. }
  3615. if (xhr.readyState !== 4) {
  3616. return;
  3617. }
  3618. if (!(xhrId in this.pendingRequests)) {
  3619. // The XHR request might have been aborted in onHeadersReceived()
  3620. // callback, in which case we should abort request
  3621. return;
  3622. }
  3623. delete this.pendingRequests[xhrId];
  3624. // success status == 0 can be on ftp, file and other protocols
  3625. if (xhr.status === 0 && this.isHttp) {
  3626. if (pendingRequest.onError) {
  3627. pendingRequest.onError(xhr.status);
  3628. }
  3629. return;
  3630. }
  3631. var xhrStatus = xhr.status || OK_RESPONSE;
  3632. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  3633. // "A server MAY ignore the Range header". This means it's possible to
  3634. // get a 200 rather than a 206 response from a range request.
  3635. var ok_response_on_range_request =
  3636. xhrStatus === OK_RESPONSE &&
  3637. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  3638. if (!ok_response_on_range_request &&
  3639. xhrStatus !== pendingRequest.expectedStatus) {
  3640. if (pendingRequest.onError) {
  3641. pendingRequest.onError(xhr.status);
  3642. }
  3643. return;
  3644. }
  3645. this.loadedRequests[xhrId] = true;
  3646. var chunk = getArrayBuffer(xhr);
  3647. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  3648. var rangeHeader = xhr.getResponseHeader('Content-Range');
  3649. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  3650. var begin = parseInt(matches[1], 10);
  3651. pendingRequest.onDone({
  3652. begin: begin,
  3653. chunk: chunk
  3654. });
  3655. } else {
  3656. pendingRequest.onDone({
  3657. begin: 0,
  3658. chunk: chunk
  3659. });
  3660. }
  3661. },
  3662. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  3663. for (var xhrId in this.pendingRequests) {
  3664. return true;
  3665. }
  3666. return false;
  3667. },
  3668. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  3669. return this.pendingRequests[xhrId].xhr;
  3670. },
  3671. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  3672. return xhrId in this.pendingRequests;
  3673. },
  3674. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  3675. return xhrId in this.loadedRequests;
  3676. },
  3677. abortAllRequests: function NetworkManager_abortAllRequests() {
  3678. for (var xhrId in this.pendingRequests) {
  3679. this.abortRequest(xhrId | 0);
  3680. }
  3681. },
  3682. abortRequest: function NetworkManager_abortRequest(xhrId) {
  3683. var xhr = this.pendingRequests[xhrId].xhr;
  3684. delete this.pendingRequests[xhrId];
  3685. xhr.abort();
  3686. }
  3687. };
  3688. return NetworkManager;
  3689. })();
  3690. var ChunkedStream = (function ChunkedStreamClosure() {
  3691. function ChunkedStream(length, chunkSize, manager) {
  3692. this.bytes = new Uint8Array(length);
  3693. this.start = 0;
  3694. this.pos = 0;
  3695. this.end = length;
  3696. this.chunkSize = chunkSize;
  3697. this.loadedChunks = [];
  3698. this.numChunksLoaded = 0;
  3699. this.numChunks = Math.ceil(length / chunkSize);
  3700. this.manager = manager;
  3701. this.initialDataLength = 0;
  3702. }
  3703. // required methods for a stream. if a particular stream does not
  3704. // implement these, an error should be thrown
  3705. ChunkedStream.prototype = {
  3706. getMissingChunks: function ChunkedStream_getMissingChunks() {
  3707. var chunks = [];
  3708. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  3709. if (!(chunk in this.loadedChunks)) {
  3710. chunks.push(chunk);
  3711. }
  3712. }
  3713. return chunks;
  3714. },
  3715. getBaseStreams: function ChunkedStream_getBaseStreams() {
  3716. return [this];
  3717. },
  3718. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  3719. return this.numChunksLoaded === this.numChunks;
  3720. },
  3721. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  3722. var end = begin + chunk.byteLength;
  3723. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  3724. // Using this.length is inaccurate here since this.start can be moved
  3725. // See ChunkedStream.moveStart()
  3726. var length = this.bytes.length;
  3727. assert(end % this.chunkSize === 0 || end === length,
  3728. 'Bad end offset: ' + end);
  3729. this.bytes.set(new Uint8Array(chunk), begin);
  3730. var chunkSize = this.chunkSize;
  3731. var beginChunk = Math.floor(begin / chunkSize);
  3732. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3733. var curChunk;
  3734. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  3735. if (!(curChunk in this.loadedChunks)) {
  3736. this.loadedChunks[curChunk] = true;
  3737. ++this.numChunksLoaded;
  3738. }
  3739. }
  3740. },
  3741. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  3742. this.bytes.set(data);
  3743. this.initialDataLength = data.length;
  3744. var endChunk = (this.end === data.length ?
  3745. this.numChunks : Math.floor(data.length / this.chunkSize));
  3746. for (var i = 0; i < endChunk; i++) {
  3747. this.loadedChunks[i] = true;
  3748. ++this.numChunksLoaded;
  3749. }
  3750. },
  3751. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  3752. if (begin >= end) {
  3753. return;
  3754. }
  3755. if (end <= this.initialDataLength) {
  3756. return;
  3757. }
  3758. var chunkSize = this.chunkSize;
  3759. var beginChunk = Math.floor(begin / chunkSize);
  3760. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3761. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3762. if (!(chunk in this.loadedChunks)) {
  3763. throw new MissingDataException(begin, end);
  3764. }
  3765. }
  3766. },
  3767. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  3768. var chunk, n;
  3769. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  3770. if (!(chunk in this.loadedChunks)) {
  3771. return chunk;
  3772. }
  3773. }
  3774. // Wrap around to beginning
  3775. for (chunk = 0; chunk < beginChunk; ++chunk) {
  3776. if (!(chunk in this.loadedChunks)) {
  3777. return chunk;
  3778. }
  3779. }
  3780. return null;
  3781. },
  3782. hasChunk: function ChunkedStream_hasChunk(chunk) {
  3783. return chunk in this.loadedChunks;
  3784. },
  3785. get length() {
  3786. return this.end - this.start;
  3787. },
  3788. getByte: function ChunkedStream_getByte() {
  3789. var pos = this.pos;
  3790. if (pos >= this.end) {
  3791. return -1;
  3792. }
  3793. this.ensureRange(pos, pos + 1);
  3794. return this.bytes[this.pos++];
  3795. },
  3796. getUint16: function ChunkedStream_getUint16() {
  3797. var b0 = this.getByte();
  3798. var b1 = this.getByte();
  3799. return (b0 << 8) + b1;
  3800. },
  3801. getInt32: function ChunkedStream_getInt32() {
  3802. var b0 = this.getByte();
  3803. var b1 = this.getByte();
  3804. var b2 = this.getByte();
  3805. var b3 = this.getByte();
  3806. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  3807. },
  3808. // returns subarray of original buffer
  3809. // should only be read
  3810. getBytes: function ChunkedStream_getBytes(length) {
  3811. var bytes = this.bytes;
  3812. var pos = this.pos;
  3813. var strEnd = this.end;
  3814. if (!length) {
  3815. this.ensureRange(pos, strEnd);
  3816. return bytes.subarray(pos, strEnd);
  3817. }
  3818. var end = pos + length;
  3819. if (end > strEnd) {
  3820. end = strEnd;
  3821. }
  3822. this.ensureRange(pos, end);
  3823. this.pos = end;
  3824. return bytes.subarray(pos, end);
  3825. },
  3826. peekBytes: function ChunkedStream_peekBytes(length) {
  3827. var bytes = this.getBytes(length);
  3828. this.pos -= bytes.length;
  3829. return bytes;
  3830. },
  3831. getByteRange: function ChunkedStream_getBytes(begin, end) {
  3832. this.ensureRange(begin, end);
  3833. return this.bytes.subarray(begin, end);
  3834. },
  3835. skip: function ChunkedStream_skip(n) {
  3836. if (!n) {
  3837. n = 1;
  3838. }
  3839. this.pos += n;
  3840. },
  3841. reset: function ChunkedStream_reset() {
  3842. this.pos = this.start;
  3843. },
  3844. moveStart: function ChunkedStream_moveStart() {
  3845. this.start = this.pos;
  3846. },
  3847. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  3848. this.ensureRange(start, start + length);
  3849. function ChunkedStreamSubstream() {}
  3850. ChunkedStreamSubstream.prototype = Object.create(this);
  3851. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  3852. var chunkSize = this.chunkSize;
  3853. var beginChunk = Math.floor(this.start / chunkSize);
  3854. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  3855. var missingChunks = [];
  3856. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3857. if (!(chunk in this.loadedChunks)) {
  3858. missingChunks.push(chunk);
  3859. }
  3860. }
  3861. return missingChunks;
  3862. };
  3863. var subStream = new ChunkedStreamSubstream();
  3864. subStream.pos = subStream.start = start;
  3865. subStream.end = start + length || this.end;
  3866. subStream.dict = dict;
  3867. return subStream;
  3868. },
  3869. isStream: true
  3870. };
  3871. return ChunkedStream;
  3872. })();
  3873. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  3874. function ChunkedStreamManager(length, chunkSize, url, args) {
  3875. this.stream = new ChunkedStream(length, chunkSize, this);
  3876. this.length = length;
  3877. this.chunkSize = chunkSize;
  3878. this.url = url;
  3879. this.disableAutoFetch = args.disableAutoFetch;
  3880. var msgHandler = this.msgHandler = args.msgHandler;
  3881. if (args.chunkedViewerLoading) {
  3882. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  3883. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  3884. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3885. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  3886. };
  3887. } else {
  3888. var getXhr = function getXhr() {
  3889. return new XMLHttpRequest();
  3890. };
  3891. this.networkManager = new NetworkManager(this.url, {
  3892. getXhr: getXhr,
  3893. httpHeaders: args.httpHeaders,
  3894. withCredentials: args.withCredentials
  3895. });
  3896. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3897. this.networkManager.requestRange(begin, end, {
  3898. onDone: this.onReceiveData.bind(this),
  3899. onProgress: this.onProgress.bind(this)
  3900. });
  3901. };
  3902. }
  3903. this.currRequestId = 0;
  3904. this.chunksNeededByRequest = {};
  3905. this.requestsByChunk = {};
  3906. this.callbacksByRequest = {};
  3907. this._loadedStreamCapability = createPromiseCapability();
  3908. if (args.initialData) {
  3909. this.setInitialData(args.initialData);
  3910. }
  3911. }
  3912. ChunkedStreamManager.prototype = {
  3913. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  3914. this.stream.onReceiveInitialData(data);
  3915. if (this.stream.allChunksLoaded()) {
  3916. this._loadedStreamCapability.resolve(this.stream);
  3917. } else if (this.msgHandler) {
  3918. this.msgHandler.send('DocProgress', {
  3919. loaded: data.length,
  3920. total: this.length
  3921. });
  3922. }
  3923. },
  3924. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  3925. return this._loadedStreamCapability.promise;
  3926. },
  3927. // Get all the chunks that are not yet loaded and groups them into
  3928. // contiguous ranges to load in as few requests as possible
  3929. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  3930. var missingChunks = this.stream.getMissingChunks();
  3931. this.requestChunks(missingChunks);
  3932. return this._loadedStreamCapability.promise;
  3933. },
  3934. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  3935. callback) {
  3936. var requestId = this.currRequestId++;
  3937. var chunksNeeded;
  3938. var i, ii;
  3939. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  3940. for (i = 0, ii = chunks.length; i < ii; i++) {
  3941. if (!this.stream.hasChunk(chunks[i])) {
  3942. chunksNeeded[chunks[i]] = true;
  3943. }
  3944. }
  3945. if (isEmptyObj(chunksNeeded)) {
  3946. if (callback) {
  3947. callback();
  3948. }
  3949. return;
  3950. }
  3951. this.callbacksByRequest[requestId] = callback;
  3952. var chunksToRequest = [];
  3953. for (var chunk in chunksNeeded) {
  3954. chunk = chunk | 0;
  3955. if (!(chunk in this.requestsByChunk)) {
  3956. this.requestsByChunk[chunk] = [];
  3957. chunksToRequest.push(chunk);
  3958. }
  3959. this.requestsByChunk[chunk].push(requestId);
  3960. }
  3961. if (!chunksToRequest.length) {
  3962. return;
  3963. }
  3964. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  3965. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  3966. var groupedChunk = groupedChunksToRequest[i];
  3967. var begin = groupedChunk.beginChunk * this.chunkSize;
  3968. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  3969. this.sendRequest(begin, end);
  3970. }
  3971. },
  3972. getStream: function ChunkedStreamManager_getStream() {
  3973. return this.stream;
  3974. },
  3975. // Loads any chunks in the requested range that are not yet loaded
  3976. requestRange: function ChunkedStreamManager_requestRange(
  3977. begin, end, callback) {
  3978. end = Math.min(end, this.length);
  3979. var beginChunk = this.getBeginChunk(begin);
  3980. var endChunk = this.getEndChunk(end);
  3981. var chunks = [];
  3982. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3983. chunks.push(chunk);
  3984. }
  3985. this.requestChunks(chunks, callback);
  3986. },
  3987. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  3988. callback) {
  3989. ranges = ranges || [];
  3990. var chunksToRequest = [];
  3991. for (var i = 0; i < ranges.length; i++) {
  3992. var beginChunk = this.getBeginChunk(ranges[i].begin);
  3993. var endChunk = this.getEndChunk(ranges[i].end);
  3994. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3995. if (chunksToRequest.indexOf(chunk) < 0) {
  3996. chunksToRequest.push(chunk);
  3997. }
  3998. }
  3999. }
  4000. chunksToRequest.sort(function(a, b) { return a - b; });
  4001. this.requestChunks(chunksToRequest, callback);
  4002. },
  4003. // Groups a sorted array of chunks into as few continguous larger
  4004. // chunks as possible
  4005. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  4006. var groupedChunks = [];
  4007. var beginChunk = -1;
  4008. var prevChunk = -1;
  4009. for (var i = 0; i < chunks.length; ++i) {
  4010. var chunk = chunks[i];
  4011. if (beginChunk < 0) {
  4012. beginChunk = chunk;
  4013. }
  4014. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  4015. groupedChunks.push({ beginChunk: beginChunk,
  4016. endChunk: prevChunk + 1 });
  4017. beginChunk = chunk;
  4018. }
  4019. if (i + 1 === chunks.length) {
  4020. groupedChunks.push({ beginChunk: beginChunk,
  4021. endChunk: chunk + 1 });
  4022. }
  4023. prevChunk = chunk;
  4024. }
  4025. return groupedChunks;
  4026. },
  4027. onProgress: function ChunkedStreamManager_onProgress(args) {
  4028. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  4029. args.loaded);
  4030. this.msgHandler.send('DocProgress', {
  4031. loaded: bytesLoaded,
  4032. total: this.length
  4033. });
  4034. },
  4035. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  4036. var chunk = args.chunk;
  4037. var begin = args.begin;
  4038. var end = begin + chunk.byteLength;
  4039. var beginChunk = this.getBeginChunk(begin);
  4040. var endChunk = this.getEndChunk(end);
  4041. this.stream.onReceiveData(begin, chunk);
  4042. if (this.stream.allChunksLoaded()) {
  4043. this._loadedStreamCapability.resolve(this.stream);
  4044. }
  4045. var loadedRequests = [];
  4046. var i, requestId;
  4047. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  4048. // The server might return more chunks than requested
  4049. var requestIds = this.requestsByChunk[chunk] || [];
  4050. delete this.requestsByChunk[chunk];
  4051. for (i = 0; i < requestIds.length; ++i) {
  4052. requestId = requestIds[i];
  4053. var chunksNeeded = this.chunksNeededByRequest[requestId];
  4054. if (chunk in chunksNeeded) {
  4055. delete chunksNeeded[chunk];
  4056. }
  4057. if (!isEmptyObj(chunksNeeded)) {
  4058. continue;
  4059. }
  4060. loadedRequests.push(requestId);
  4061. }
  4062. }
  4063. // If there are no pending requests, automatically fetch the next
  4064. // unfetched chunk of the PDF
  4065. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  4066. var nextEmptyChunk;
  4067. if (this.stream.numChunksLoaded === 1) {
  4068. // This is a special optimization so that after fetching the first
  4069. // chunk, rather than fetching the second chunk, we fetch the last
  4070. // chunk.
  4071. var lastChunk = this.stream.numChunks - 1;
  4072. if (!this.stream.hasChunk(lastChunk)) {
  4073. nextEmptyChunk = lastChunk;
  4074. }
  4075. } else {
  4076. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  4077. }
  4078. if (isInt(nextEmptyChunk)) {
  4079. this.requestChunks([nextEmptyChunk]);
  4080. }
  4081. }
  4082. for (i = 0; i < loadedRequests.length; ++i) {
  4083. requestId = loadedRequests[i];
  4084. var callback = this.callbacksByRequest[requestId];
  4085. delete this.callbacksByRequest[requestId];
  4086. if (callback) {
  4087. callback();
  4088. }
  4089. }
  4090. this.msgHandler.send('DocProgress', {
  4091. loaded: this.stream.numChunksLoaded * this.chunkSize,
  4092. total: this.length
  4093. });
  4094. },
  4095. onError: function ChunkedStreamManager_onError(err) {
  4096. this._loadedStreamCapability.reject(err);
  4097. },
  4098. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  4099. var chunk = Math.floor(begin / this.chunkSize);
  4100. return chunk;
  4101. },
  4102. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  4103. if (end % this.chunkSize === 0) {
  4104. return end / this.chunkSize;
  4105. }
  4106. // 0 -> 0
  4107. // 1 -> 1
  4108. // 99 -> 1
  4109. // 100 -> 1
  4110. // 101 -> 2
  4111. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  4112. return chunk;
  4113. }
  4114. };
  4115. return ChunkedStreamManager;
  4116. })();
  4117. // The maximum number of bytes fetched per range request
  4118. var RANGE_CHUNK_SIZE = 65536;
  4119. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  4120. var BasePdfManager = (function BasePdfManagerClosure() {
  4121. function BasePdfManager() {
  4122. throw new Error('Cannot initialize BaseManagerManager');
  4123. }
  4124. BasePdfManager.prototype = {
  4125. onLoadedStream: function BasePdfManager_onLoadedStream() {
  4126. throw new NotImplementedException();
  4127. },
  4128. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  4129. return this.ensure(this.pdfDocument, prop, args);
  4130. },
  4131. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  4132. return this.ensure(this.pdfDocument.xref, prop, args);
  4133. },
  4134. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  4135. return this.ensure(this.pdfDocument.catalog, prop, args);
  4136. },
  4137. getPage: function BasePdfManager_pagePage(pageIndex) {
  4138. return this.pdfDocument.getPage(pageIndex);
  4139. },
  4140. cleanup: function BasePdfManager_cleanup() {
  4141. return this.pdfDocument.cleanup();
  4142. },
  4143. ensure: function BasePdfManager_ensure(obj, prop, args) {
  4144. return new NotImplementedException();
  4145. },
  4146. requestRange: function BasePdfManager_ensure(begin, end) {
  4147. return new NotImplementedException();
  4148. },
  4149. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  4150. return new NotImplementedException();
  4151. },
  4152. updatePassword: function BasePdfManager_updatePassword(password) {
  4153. this.pdfDocument.xref.password = this.password = password;
  4154. if (this._passwordChangedCapability) {
  4155. this._passwordChangedCapability.resolve();
  4156. }
  4157. },
  4158. passwordChanged: function BasePdfManager_passwordChanged() {
  4159. this._passwordChangedCapability = createPromiseCapability();
  4160. return this._passwordChangedCapability.promise;
  4161. },
  4162. terminate: function BasePdfManager_terminate() {
  4163. return new NotImplementedException();
  4164. }
  4165. };
  4166. return BasePdfManager;
  4167. })();
  4168. var LocalPdfManager = (function LocalPdfManagerClosure() {
  4169. function LocalPdfManager(data, password) {
  4170. var stream = new Stream(data);
  4171. this.pdfDocument = new PDFDocument(this, stream, password);
  4172. this._loadedStreamCapability = createPromiseCapability();
  4173. this._loadedStreamCapability.resolve(stream);
  4174. }
  4175. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4176. LocalPdfManager.prototype.constructor = LocalPdfManager;
  4177. LocalPdfManager.prototype.ensure =
  4178. function LocalPdfManager_ensure(obj, prop, args) {
  4179. return new Promise(function (resolve, reject) {
  4180. try {
  4181. var value = obj[prop];
  4182. var result;
  4183. if (typeof value === 'function') {
  4184. result = value.apply(obj, args);
  4185. } else {
  4186. result = value;
  4187. }
  4188. resolve(result);
  4189. } catch (e) {
  4190. reject(e);
  4191. }
  4192. });
  4193. };
  4194. LocalPdfManager.prototype.requestRange =
  4195. function LocalPdfManager_requestRange(begin, end) {
  4196. return Promise.resolve();
  4197. };
  4198. LocalPdfManager.prototype.requestLoadedStream =
  4199. function LocalPdfManager_requestLoadedStream() {
  4200. };
  4201. LocalPdfManager.prototype.onLoadedStream =
  4202. function LocalPdfManager_getLoadedStream() {
  4203. return this._loadedStreamCapability.promise;
  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 pdfManager = this;
  4232. return new Promise(function (resolve, reject) {
  4233. function ensureHelper() {
  4234. try {
  4235. var result;
  4236. var value = obj[prop];
  4237. if (typeof value === 'function') {
  4238. result = value.apply(obj, args);
  4239. } else {
  4240. result = value;
  4241. }
  4242. resolve(result);
  4243. } catch(e) {
  4244. if (!(e instanceof MissingDataException)) {
  4245. reject(e);
  4246. return;
  4247. }
  4248. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  4249. }
  4250. }
  4251. ensureHelper();
  4252. });
  4253. };
  4254. NetworkPdfManager.prototype.requestRange =
  4255. function NetworkPdfManager_requestRange(begin, end) {
  4256. return new Promise(function (resolve) {
  4257. this.streamManager.requestRange(begin, end, function() {
  4258. resolve();
  4259. });
  4260. }.bind(this));
  4261. };
  4262. NetworkPdfManager.prototype.requestLoadedStream =
  4263. function NetworkPdfManager_requestLoadedStream() {
  4264. this.streamManager.requestAllChunks();
  4265. };
  4266. NetworkPdfManager.prototype.onLoadedStream =
  4267. function NetworkPdfManager_getLoadedStream() {
  4268. return this.streamManager.onLoadedStream();
  4269. };
  4270. NetworkPdfManager.prototype.terminate =
  4271. function NetworkPdfManager_terminate() {
  4272. this.streamManager.networkManager.abortAllRequests();
  4273. };
  4274. return NetworkPdfManager;
  4275. })();
  4276. var Page = (function PageClosure() {
  4277. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  4278. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  4279. this.pdfManager = pdfManager;
  4280. this.pageIndex = pageIndex;
  4281. this.pageDict = pageDict;
  4282. this.xref = xref;
  4283. this.ref = ref;
  4284. this.fontCache = fontCache;
  4285. this.idCounters = {
  4286. obj: 0
  4287. };
  4288. this.resourcesPromise = null;
  4289. }
  4290. Page.prototype = {
  4291. getPageProp: function Page_getPageProp(key) {
  4292. return this.pageDict.get(key);
  4293. },
  4294. getInheritedPageProp: function Page_inheritPageProp(key) {
  4295. var dict = this.pageDict;
  4296. var value = dict.get(key);
  4297. while (value === undefined) {
  4298. dict = dict.get('Parent');
  4299. if (!dict) {
  4300. break;
  4301. }
  4302. value = dict.get(key);
  4303. }
  4304. return value;
  4305. },
  4306. get content() {
  4307. return this.getPageProp('Contents');
  4308. },
  4309. get resources() {
  4310. var value = this.getInheritedPageProp('Resources');
  4311. // For robustness: The spec states that a \Resources entry has to be
  4312. // present, but can be empty. Some document omit it still. In this case
  4313. // return an empty dictionary:
  4314. if (value === undefined) {
  4315. value = Dict.empty;
  4316. }
  4317. return shadow(this, 'resources', value);
  4318. },
  4319. get mediaBox() {
  4320. var obj = this.getInheritedPageProp('MediaBox');
  4321. // Reset invalid media box to letter size.
  4322. if (!isArray(obj) || obj.length !== 4) {
  4323. obj = LETTER_SIZE_MEDIABOX;
  4324. }
  4325. return shadow(this, 'mediaBox', obj);
  4326. },
  4327. get view() {
  4328. var mediaBox = this.mediaBox;
  4329. var cropBox = this.getInheritedPageProp('CropBox');
  4330. if (!isArray(cropBox) || cropBox.length !== 4) {
  4331. return shadow(this, 'view', mediaBox);
  4332. }
  4333. // From the spec, 6th ed., p.963:
  4334. // "The crop, bleed, trim, and art boxes should not ordinarily
  4335. // extend beyond the boundaries of the media box. If they do, they are
  4336. // effectively reduced to their intersection with the media box."
  4337. cropBox = Util.intersect(cropBox, mediaBox);
  4338. if (!cropBox) {
  4339. return shadow(this, 'view', mediaBox);
  4340. }
  4341. return shadow(this, 'view', cropBox);
  4342. },
  4343. get annotationRefs() {
  4344. return shadow(this, 'annotationRefs',
  4345. this.getInheritedPageProp('Annots'));
  4346. },
  4347. get rotate() {
  4348. var rotate = this.getInheritedPageProp('Rotate') || 0;
  4349. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  4350. if (rotate % 90 !== 0) {
  4351. rotate = 0;
  4352. } else if (rotate >= 360) {
  4353. rotate = rotate % 360;
  4354. } else if (rotate < 0) {
  4355. // The spec doesn't cover negatives, assume its counterclockwise
  4356. // rotation. The following is the other implementation of modulo.
  4357. rotate = ((rotate % 360) + 360) % 360;
  4358. }
  4359. return shadow(this, 'rotate', rotate);
  4360. },
  4361. getContentStream: function Page_getContentStream() {
  4362. var content = this.content;
  4363. var stream;
  4364. if (isArray(content)) {
  4365. // fetching items
  4366. var xref = this.xref;
  4367. var i, n = content.length;
  4368. var streams = [];
  4369. for (i = 0; i < n; ++i) {
  4370. streams.push(xref.fetchIfRef(content[i]));
  4371. }
  4372. stream = new StreamsSequenceStream(streams);
  4373. } else if (isStream(content)) {
  4374. stream = content;
  4375. } else {
  4376. // replacing non-existent page content with empty one
  4377. stream = new NullStream();
  4378. }
  4379. return stream;
  4380. },
  4381. loadResources: function Page_loadResources(keys) {
  4382. if (!this.resourcesPromise) {
  4383. // TODO: add async getInheritedPageProp and remove this.
  4384. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  4385. }
  4386. return this.resourcesPromise.then(function resourceSuccess() {
  4387. var objectLoader = new ObjectLoader(this.resources.map,
  4388. keys,
  4389. this.xref);
  4390. return objectLoader.load();
  4391. }.bind(this));
  4392. },
  4393. getOperatorList: function Page_getOperatorList(handler, intent) {
  4394. var self = this;
  4395. var capability = createPromiseCapability();
  4396. function reject(e) {
  4397. capability.reject(e);
  4398. }
  4399. var pageListCapability = createPromiseCapability();
  4400. var pdfManager = this.pdfManager;
  4401. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4402. []);
  4403. var resourcesPromise = this.loadResources([
  4404. 'ExtGState',
  4405. 'ColorSpace',
  4406. 'Pattern',
  4407. 'Shading',
  4408. 'XObject',
  4409. 'Font'
  4410. // ProcSet
  4411. // Properties
  4412. ]);
  4413. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  4414. handler, this.pageIndex,
  4415. 'p' + this.pageIndex + '_',
  4416. this.idCounters,
  4417. this.fontCache);
  4418. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise],
  4419. reject);
  4420. dataPromises.then(function(data) {
  4421. var contentStream = data[0];
  4422. var opList = new OperatorList(intent, handler, self.pageIndex);
  4423. handler.send('StartRenderPage', {
  4424. transparency: partialEvaluator.hasBlendModes(self.resources),
  4425. pageIndex: self.pageIndex,
  4426. intent: intent
  4427. });
  4428. partialEvaluator.getOperatorList(contentStream, self.resources, opList);
  4429. pageListCapability.resolve(opList);
  4430. });
  4431. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  4432. Promise.all([pageListCapability.promise, annotationsPromise]).then(
  4433. function(datas) {
  4434. var pageOpList = datas[0];
  4435. var annotations = datas[1];
  4436. if (annotations.length === 0) {
  4437. pageOpList.flush(true);
  4438. capability.resolve(pageOpList);
  4439. return;
  4440. }
  4441. var annotationsReadyPromise = Annotation.appendToOperatorList(
  4442. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  4443. annotationsReadyPromise.then(function () {
  4444. pageOpList.flush(true);
  4445. capability.resolve(pageOpList);
  4446. }, reject);
  4447. }, reject);
  4448. return capability.promise;
  4449. },
  4450. extractTextContent: function Page_extractTextContent() {
  4451. var handler = {
  4452. on: function nullHandlerOn() {},
  4453. send: function nullHandlerSend() {}
  4454. };
  4455. var self = this;
  4456. var pdfManager = this.pdfManager;
  4457. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4458. []);
  4459. var resourcesPromise = this.loadResources([
  4460. 'ExtGState',
  4461. 'XObject',
  4462. 'Font'
  4463. ]);
  4464. var dataPromises = Promise.all([contentStreamPromise,
  4465. resourcesPromise]);
  4466. return dataPromises.then(function(data) {
  4467. var contentStream = data[0];
  4468. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  4469. handler, self.pageIndex,
  4470. 'p' + self.pageIndex + '_',
  4471. self.idCounters,
  4472. self.fontCache);
  4473. return partialEvaluator.getTextContent(contentStream,
  4474. self.resources);
  4475. });
  4476. },
  4477. getAnnotationsData: function Page_getAnnotationsData() {
  4478. var annotations = this.annotations;
  4479. var annotationsData = [];
  4480. for (var i = 0, n = annotations.length; i < n; ++i) {
  4481. annotationsData.push(annotations[i].getData());
  4482. }
  4483. return annotationsData;
  4484. },
  4485. get annotations() {
  4486. var annotations = [];
  4487. var annotationRefs = (this.annotationRefs || []);
  4488. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  4489. var annotationRef = annotationRefs[i];
  4490. var annotation = Annotation.fromRef(this.xref, annotationRef);
  4491. if (annotation) {
  4492. annotations.push(annotation);
  4493. }
  4494. }
  4495. return shadow(this, 'annotations', annotations);
  4496. }
  4497. };
  4498. return Page;
  4499. })();
  4500. /**
  4501. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  4502. * `PDFDoc`, this one doesn't have any job management code.
  4503. * Right now there exists one PDFDocument on the main thread + one object
  4504. * for each worker. If there is no worker support enabled, there are two
  4505. * `PDFDocument` objects on the main thread created.
  4506. */
  4507. var PDFDocument = (function PDFDocumentClosure() {
  4508. function PDFDocument(pdfManager, arg, password) {
  4509. if (isStream(arg)) {
  4510. init.call(this, pdfManager, arg, password);
  4511. } else if (isArrayBuffer(arg)) {
  4512. init.call(this, pdfManager, new Stream(arg), password);
  4513. } else {
  4514. error('PDFDocument: Unknown argument type');
  4515. }
  4516. }
  4517. function init(pdfManager, stream, password) {
  4518. assert(stream.length > 0, 'stream must have data');
  4519. this.pdfManager = pdfManager;
  4520. this.stream = stream;
  4521. var xref = new XRef(this.stream, password, pdfManager);
  4522. this.xref = xref;
  4523. }
  4524. function find(stream, needle, limit, backwards) {
  4525. var pos = stream.pos;
  4526. var end = stream.end;
  4527. var strBuf = [];
  4528. if (pos + limit > end) {
  4529. limit = end - pos;
  4530. }
  4531. for (var n = 0; n < limit; ++n) {
  4532. strBuf.push(String.fromCharCode(stream.getByte()));
  4533. }
  4534. var str = strBuf.join('');
  4535. stream.pos = pos;
  4536. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  4537. if (index == -1) {
  4538. return false; /* not found */
  4539. }
  4540. stream.pos += index;
  4541. return true; /* found */
  4542. }
  4543. var DocumentInfoValidators = {
  4544. get entries() {
  4545. // Lazily build this since all the validation functions below are not
  4546. // defined until after this file loads.
  4547. return shadow(this, 'entries', {
  4548. Title: isString,
  4549. Author: isString,
  4550. Subject: isString,
  4551. Keywords: isString,
  4552. Creator: isString,
  4553. Producer: isString,
  4554. CreationDate: isString,
  4555. ModDate: isString,
  4556. Trapped: isName
  4557. });
  4558. }
  4559. };
  4560. PDFDocument.prototype = {
  4561. parse: function PDFDocument_parse(recoveryMode) {
  4562. this.setup(recoveryMode);
  4563. try {
  4564. // checking if AcroForm is present
  4565. this.acroForm = this.catalog.catDict.get('AcroForm');
  4566. if (this.acroForm) {
  4567. this.xfa = this.acroForm.get('XFA');
  4568. var fields = this.acroForm.get('Fields');
  4569. if ((!fields || !isArray(fields) || fields.length === 0) &&
  4570. !this.xfa) {
  4571. // no fields and no XFA -- not a form (?)
  4572. this.acroForm = null;
  4573. }
  4574. }
  4575. } catch (ex) {
  4576. info('Something wrong with AcroForm entry');
  4577. this.acroForm = null;
  4578. }
  4579. },
  4580. get linearization() {
  4581. var length = this.stream.length;
  4582. var linearization = false;
  4583. if (length) {
  4584. try {
  4585. linearization = new Linearization(this.stream);
  4586. if (linearization.length != length) {
  4587. linearization = false;
  4588. }
  4589. } catch (err) {
  4590. if (err instanceof MissingDataException) {
  4591. throw err;
  4592. }
  4593. info('The linearization data is not available ' +
  4594. 'or unreadable PDF data is found');
  4595. linearization = false;
  4596. }
  4597. }
  4598. // shadow the prototype getter with a data property
  4599. return shadow(this, 'linearization', linearization);
  4600. },
  4601. get startXRef() {
  4602. var stream = this.stream;
  4603. var startXRef = 0;
  4604. var linearization = this.linearization;
  4605. if (linearization) {
  4606. // Find end of first obj.
  4607. stream.reset();
  4608. if (find(stream, 'endobj', 1024)) {
  4609. startXRef = stream.pos + 6;
  4610. }
  4611. } else {
  4612. // Find startxref by jumping backward from the end of the file.
  4613. var step = 1024;
  4614. var found = false, pos = stream.end;
  4615. while (!found && pos > 0) {
  4616. pos -= step - 'startxref'.length;
  4617. if (pos < 0) {
  4618. pos = 0;
  4619. }
  4620. stream.pos = pos;
  4621. found = find(stream, 'startxref', step, true);
  4622. }
  4623. if (found) {
  4624. stream.skip(9);
  4625. var ch;
  4626. do {
  4627. ch = stream.getByte();
  4628. } while (Lexer.isSpace(ch));
  4629. var str = '';
  4630. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  4631. str += String.fromCharCode(ch);
  4632. ch = stream.getByte();
  4633. }
  4634. startXRef = parseInt(str, 10);
  4635. if (isNaN(startXRef)) {
  4636. startXRef = 0;
  4637. }
  4638. }
  4639. }
  4640. // shadow the prototype getter with a data property
  4641. return shadow(this, 'startXRef', startXRef);
  4642. },
  4643. get mainXRefEntriesOffset() {
  4644. var mainXRefEntriesOffset = 0;
  4645. var linearization = this.linearization;
  4646. if (linearization) {
  4647. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  4648. }
  4649. // shadow the prototype getter with a data property
  4650. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  4651. },
  4652. // Find the header, remove leading garbage and setup the stream
  4653. // starting from the header.
  4654. checkHeader: function PDFDocument_checkHeader() {
  4655. var stream = this.stream;
  4656. stream.reset();
  4657. if (find(stream, '%PDF-', 1024)) {
  4658. // Found the header, trim off any garbage before it.
  4659. stream.moveStart();
  4660. // Reading file format version
  4661. var MAX_VERSION_LENGTH = 12;
  4662. var version = '', ch;
  4663. while ((ch = stream.getByte()) > 0x20) { // SPACE
  4664. if (version.length >= MAX_VERSION_LENGTH) {
  4665. break;
  4666. }
  4667. version += String.fromCharCode(ch);
  4668. }
  4669. // removing "%PDF-"-prefix
  4670. this.pdfFormatVersion = version.substring(5);
  4671. return;
  4672. }
  4673. // May not be a PDF file, continue anyway.
  4674. },
  4675. parseStartXRef: function PDFDocument_parseStartXRef() {
  4676. var startXRef = this.startXRef;
  4677. this.xref.setStartXRef(startXRef);
  4678. },
  4679. setup: function PDFDocument_setup(recoveryMode) {
  4680. this.xref.parse(recoveryMode);
  4681. this.catalog = new Catalog(this.pdfManager, this.xref);
  4682. },
  4683. get numPages() {
  4684. var linearization = this.linearization;
  4685. var num = linearization ? linearization.numPages : this.catalog.numPages;
  4686. // shadow the prototype getter
  4687. return shadow(this, 'numPages', num);
  4688. },
  4689. get documentInfo() {
  4690. var docInfo = {
  4691. PDFFormatVersion: this.pdfFormatVersion,
  4692. IsAcroFormPresent: !!this.acroForm,
  4693. IsXFAPresent: !!this.xfa
  4694. };
  4695. var infoDict;
  4696. try {
  4697. infoDict = this.xref.trailer.get('Info');
  4698. } catch (err) {
  4699. info('The document information dictionary is invalid.');
  4700. }
  4701. if (infoDict) {
  4702. var validEntries = DocumentInfoValidators.entries;
  4703. // Only fill the document info with valid entries from the spec.
  4704. for (var key in validEntries) {
  4705. if (infoDict.has(key)) {
  4706. var value = infoDict.get(key);
  4707. // Make sure the value conforms to the spec.
  4708. if (validEntries[key](value)) {
  4709. docInfo[key] = (typeof value !== 'string' ?
  4710. value : stringToPDFString(value));
  4711. } else {
  4712. info('Bad value in document info for "' + key + '"');
  4713. }
  4714. }
  4715. }
  4716. }
  4717. return shadow(this, 'documentInfo', docInfo);
  4718. },
  4719. get fingerprint() {
  4720. var xref = this.xref, hash, fileID = '';
  4721. if (xref.trailer.has('ID')) {
  4722. hash = stringToBytes(xref.trailer.get('ID')[0]);
  4723. } else {
  4724. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  4725. }
  4726. for (var i = 0, n = hash.length; i < n; i++) {
  4727. fileID += hash[i].toString(16);
  4728. }
  4729. return shadow(this, 'fingerprint', fileID);
  4730. },
  4731. getPage: function PDFDocument_getPage(pageIndex) {
  4732. return this.catalog.getPage(pageIndex);
  4733. },
  4734. cleanup: function PDFDocument_cleanup() {
  4735. return this.catalog.cleanup();
  4736. }
  4737. };
  4738. return PDFDocument;
  4739. })();
  4740. var Name = (function NameClosure() {
  4741. function Name(name) {
  4742. this.name = name;
  4743. }
  4744. Name.prototype = {};
  4745. var nameCache = {};
  4746. Name.get = function Name_get(name) {
  4747. var nameValue = nameCache[name];
  4748. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  4749. };
  4750. return Name;
  4751. })();
  4752. var Cmd = (function CmdClosure() {
  4753. function Cmd(cmd) {
  4754. this.cmd = cmd;
  4755. }
  4756. Cmd.prototype = {};
  4757. var cmdCache = {};
  4758. Cmd.get = function Cmd_get(cmd) {
  4759. var cmdValue = cmdCache[cmd];
  4760. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  4761. };
  4762. return Cmd;
  4763. })();
  4764. var Dict = (function DictClosure() {
  4765. var nonSerializable = function nonSerializableClosure() {
  4766. return nonSerializable; // creating closure on some variable
  4767. };
  4768. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  4769. 'Background': true,
  4770. 'ExtGState': true,
  4771. 'Halftone': true,
  4772. 'Layout': true,
  4773. 'Mask': true,
  4774. 'Pagination': true,
  4775. 'Printing': true
  4776. };
  4777. function isRecursionAllowedFor(dict) {
  4778. if (!isName(dict.Type)) {
  4779. return true;
  4780. }
  4781. var dictType = dict.Type.name;
  4782. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  4783. }
  4784. // xref is optional
  4785. function Dict(xref) {
  4786. // Map should only be used internally, use functions below to access.
  4787. this.map = Object.create(null);
  4788. this.xref = xref;
  4789. this.objId = null;
  4790. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  4791. }
  4792. Dict.prototype = {
  4793. assignXref: function Dict_assignXref(newXref) {
  4794. this.xref = newXref;
  4795. },
  4796. // automatically dereferences Ref objects
  4797. get: function Dict_get(key1, key2, key3) {
  4798. var value;
  4799. var xref = this.xref;
  4800. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  4801. typeof key2 == 'undefined') {
  4802. return xref ? xref.fetchIfRef(value) : value;
  4803. }
  4804. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  4805. typeof key3 == 'undefined') {
  4806. return xref ? xref.fetchIfRef(value) : value;
  4807. }
  4808. value = this.map[key3] || null;
  4809. return xref ? xref.fetchIfRef(value) : value;
  4810. },
  4811. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  4812. getAsync: function Dict_getAsync(key1, key2, key3) {
  4813. var value;
  4814. var xref = this.xref;
  4815. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  4816. typeof key2 === undefined) {
  4817. if (xref) {
  4818. return xref.fetchIfRefAsync(value);
  4819. }
  4820. return Promise.resolve(value);
  4821. }
  4822. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  4823. typeof key3 === undefined) {
  4824. if (xref) {
  4825. return xref.fetchIfRefAsync(value);
  4826. }
  4827. return Promise.resolve(value);
  4828. }
  4829. value = this.map[key3] || null;
  4830. if (xref) {
  4831. return xref.fetchIfRefAsync(value);
  4832. }
  4833. return Promise.resolve(value);
  4834. },
  4835. // no dereferencing
  4836. getRaw: function Dict_getRaw(key) {
  4837. return this.map[key];
  4838. },
  4839. // creates new map and dereferences all Refs
  4840. getAll: function Dict_getAll() {
  4841. var all = Object.create(null);
  4842. var queue = null;
  4843. var key, obj;
  4844. for (key in this.map) {
  4845. obj = this.get(key);
  4846. if (obj instanceof Dict) {
  4847. if (isRecursionAllowedFor(obj)) {
  4848. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  4849. } else {
  4850. all[key] = this.getRaw(key);
  4851. }
  4852. } else {
  4853. all[key] = obj;
  4854. }
  4855. }
  4856. if (!queue) {
  4857. return all;
  4858. }
  4859. // trying to take cyclic references into the account
  4860. var processed = Object.create(null);
  4861. while (queue.length > 0) {
  4862. var item = queue.shift();
  4863. var itemObj = item.obj;
  4864. var objId = itemObj.objId;
  4865. if (objId && objId in processed) {
  4866. item.target[item.key] = processed[objId];
  4867. continue;
  4868. }
  4869. var dereferenced = Object.create(null);
  4870. for (key in itemObj.map) {
  4871. obj = itemObj.get(key);
  4872. if (obj instanceof Dict) {
  4873. if (isRecursionAllowedFor(obj)) {
  4874. queue.push({target: dereferenced, key: key, obj: obj});
  4875. } else {
  4876. dereferenced[key] = itemObj.getRaw(key);
  4877. }
  4878. } else {
  4879. dereferenced[key] = obj;
  4880. }
  4881. }
  4882. if (objId) {
  4883. processed[objId] = dereferenced;
  4884. }
  4885. item.target[item.key] = dereferenced;
  4886. }
  4887. return all;
  4888. },
  4889. set: function Dict_set(key, value) {
  4890. this.map[key] = value;
  4891. },
  4892. has: function Dict_has(key) {
  4893. return key in this.map;
  4894. },
  4895. forEach: function Dict_forEach(callback) {
  4896. for (var key in this.map) {
  4897. callback(key, this.get(key));
  4898. }
  4899. }
  4900. };
  4901. Dict.empty = new Dict(null);
  4902. return Dict;
  4903. })();
  4904. var Ref = (function RefClosure() {
  4905. function Ref(num, gen) {
  4906. this.num = num;
  4907. this.gen = gen;
  4908. }
  4909. Ref.prototype = {};
  4910. return Ref;
  4911. })();
  4912. // The reference is identified by number and generation.
  4913. // This structure stores only one instance of the reference.
  4914. var RefSet = (function RefSetClosure() {
  4915. function RefSet() {
  4916. this.dict = {};
  4917. }
  4918. RefSet.prototype = {
  4919. has: function RefSet_has(ref) {
  4920. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4921. },
  4922. put: function RefSet_put(ref) {
  4923. this.dict['R' + ref.num + '.' + ref.gen] = true;
  4924. },
  4925. remove: function RefSet_remove(ref) {
  4926. delete this.dict['R' + ref.num + '.' + ref.gen];
  4927. }
  4928. };
  4929. return RefSet;
  4930. })();
  4931. var RefSetCache = (function RefSetCacheClosure() {
  4932. function RefSetCache() {
  4933. this.dict = Object.create(null);
  4934. }
  4935. RefSetCache.prototype = {
  4936. get: function RefSetCache_get(ref) {
  4937. return this.dict['R' + ref.num + '.' + ref.gen];
  4938. },
  4939. has: function RefSetCache_has(ref) {
  4940. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4941. },
  4942. put: function RefSetCache_put(ref, obj) {
  4943. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  4944. },
  4945. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  4946. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  4947. },
  4948. forEach: function RefSetCache_forEach(fn, thisArg) {
  4949. for (var i in this.dict) {
  4950. fn.call(thisArg, this.dict[i]);
  4951. }
  4952. },
  4953. clear: function RefSetCache_clear() {
  4954. this.dict = Object.create(null);
  4955. }
  4956. };
  4957. return RefSetCache;
  4958. })();
  4959. var Catalog = (function CatalogClosure() {
  4960. function Catalog(pdfManager, xref) {
  4961. this.pdfManager = pdfManager;
  4962. this.xref = xref;
  4963. this.catDict = xref.getCatalogObj();
  4964. this.fontCache = new RefSetCache();
  4965. assert(isDict(this.catDict),
  4966. 'catalog object is not a dictionary');
  4967. this.pagePromises = [];
  4968. }
  4969. Catalog.prototype = {
  4970. get metadata() {
  4971. var streamRef = this.catDict.getRaw('Metadata');
  4972. if (!isRef(streamRef)) {
  4973. return shadow(this, 'metadata', null);
  4974. }
  4975. var encryptMetadata = (!this.xref.encrypt ? false :
  4976. this.xref.encrypt.encryptMetadata);
  4977. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  4978. var metadata;
  4979. if (stream && isDict(stream.dict)) {
  4980. var type = stream.dict.get('Type');
  4981. var subtype = stream.dict.get('Subtype');
  4982. if (isName(type) && isName(subtype) &&
  4983. type.name === 'Metadata' && subtype.name === 'XML') {
  4984. // XXX: This should examine the charset the XML document defines,
  4985. // however since there are currently no real means to decode
  4986. // arbitrary charsets, let's just hope that the author of the PDF
  4987. // was reasonable enough to stick with the XML default charset,
  4988. // which is UTF-8.
  4989. try {
  4990. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  4991. } catch (e) {
  4992. info('Skipping invalid metadata.');
  4993. }
  4994. }
  4995. }
  4996. return shadow(this, 'metadata', metadata);
  4997. },
  4998. get toplevelPagesDict() {
  4999. var pagesObj = this.catDict.get('Pages');
  5000. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  5001. // shadow the prototype getter
  5002. return shadow(this, 'toplevelPagesDict', pagesObj);
  5003. },
  5004. get documentOutline() {
  5005. var obj = null;
  5006. try {
  5007. obj = this.readDocumentOutline();
  5008. } catch (ex) {
  5009. if (ex instanceof MissingDataException) {
  5010. throw ex;
  5011. }
  5012. warn('Unable to read document outline');
  5013. }
  5014. return shadow(this, 'documentOutline', obj);
  5015. },
  5016. readDocumentOutline: function Catalog_readDocumentOutline() {
  5017. var xref = this.xref;
  5018. var obj = this.catDict.get('Outlines');
  5019. var root = { items: [] };
  5020. if (isDict(obj)) {
  5021. obj = obj.getRaw('First');
  5022. var processed = new RefSet();
  5023. if (isRef(obj)) {
  5024. var queue = [{obj: obj, parent: root}];
  5025. // to avoid recursion keeping track of the items
  5026. // in the processed dictionary
  5027. processed.put(obj);
  5028. while (queue.length > 0) {
  5029. var i = queue.shift();
  5030. var outlineDict = xref.fetchIfRef(i.obj);
  5031. if (outlineDict === null) {
  5032. continue;
  5033. }
  5034. if (!outlineDict.has('Title')) {
  5035. error('Invalid outline item');
  5036. }
  5037. var dest = outlineDict.get('A');
  5038. if (dest) {
  5039. dest = dest.get('D');
  5040. } else if (outlineDict.has('Dest')) {
  5041. dest = outlineDict.getRaw('Dest');
  5042. if (isName(dest)) {
  5043. dest = dest.name;
  5044. }
  5045. }
  5046. var title = outlineDict.get('Title');
  5047. var outlineItem = {
  5048. dest: dest,
  5049. title: stringToPDFString(title),
  5050. color: outlineDict.get('C') || [0, 0, 0],
  5051. count: outlineDict.get('Count'),
  5052. bold: !!(outlineDict.get('F') & 2),
  5053. italic: !!(outlineDict.get('F') & 1),
  5054. items: []
  5055. };
  5056. i.parent.items.push(outlineItem);
  5057. obj = outlineDict.getRaw('First');
  5058. if (isRef(obj) && !processed.has(obj)) {
  5059. queue.push({obj: obj, parent: outlineItem});
  5060. processed.put(obj);
  5061. }
  5062. obj = outlineDict.getRaw('Next');
  5063. if (isRef(obj) && !processed.has(obj)) {
  5064. queue.push({obj: obj, parent: i.parent});
  5065. processed.put(obj);
  5066. }
  5067. }
  5068. }
  5069. }
  5070. return (root.items.length > 0 ? root.items : null);
  5071. },
  5072. get numPages() {
  5073. var obj = this.toplevelPagesDict.get('Count');
  5074. assert(
  5075. isInt(obj),
  5076. 'page count in top level pages object is not an integer'
  5077. );
  5078. // shadow the prototype getter
  5079. return shadow(this, 'num', obj);
  5080. },
  5081. get destinations() {
  5082. function fetchDestination(dest) {
  5083. return isDict(dest) ? dest.get('D') : dest;
  5084. }
  5085. var xref = this.xref;
  5086. var dests = {}, nameTreeRef, nameDictionaryRef;
  5087. var obj = this.catDict.get('Names');
  5088. if (obj) {
  5089. nameTreeRef = obj.getRaw('Dests');
  5090. } else if (this.catDict.has('Dests')) {
  5091. nameDictionaryRef = this.catDict.get('Dests');
  5092. }
  5093. if (nameDictionaryRef) {
  5094. // reading simple destination dictionary
  5095. obj = nameDictionaryRef;
  5096. obj.forEach(function catalogForEach(key, value) {
  5097. if (!value) {
  5098. return;
  5099. }
  5100. dests[key] = fetchDestination(value);
  5101. });
  5102. }
  5103. if (nameTreeRef) {
  5104. var nameTree = new NameTree(nameTreeRef, xref);
  5105. var names = nameTree.getAll();
  5106. for (var name in names) {
  5107. if (!names.hasOwnProperty(name)) {
  5108. continue;
  5109. }
  5110. dests[name] = fetchDestination(names[name]);
  5111. }
  5112. }
  5113. return shadow(this, 'destinations', dests);
  5114. },
  5115. get attachments() {
  5116. var xref = this.xref;
  5117. var attachments, nameTreeRef;
  5118. var obj = this.catDict.get('Names');
  5119. if (obj) {
  5120. nameTreeRef = obj.getRaw('EmbeddedFiles');
  5121. }
  5122. if (nameTreeRef) {
  5123. var nameTree = new NameTree(nameTreeRef, xref);
  5124. var names = nameTree.getAll();
  5125. for (var name in names) {
  5126. if (!names.hasOwnProperty(name)) {
  5127. continue;
  5128. }
  5129. var fs = new FileSpec(names[name], xref);
  5130. if (!attachments) {
  5131. attachments = {};
  5132. }
  5133. attachments[stringToPDFString(name)] = fs.serializable;
  5134. }
  5135. }
  5136. return shadow(this, 'attachments', attachments);
  5137. },
  5138. get javaScript() {
  5139. var xref = this.xref;
  5140. var obj = this.catDict.get('Names');
  5141. var javaScript = [];
  5142. if (obj && obj.has('JavaScript')) {
  5143. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  5144. var names = nameTree.getAll();
  5145. for (var name in names) {
  5146. if (!names.hasOwnProperty(name)) {
  5147. continue;
  5148. }
  5149. // We don't really use the JavaScript right now. This code is
  5150. // defensive so we don't cause errors on document load.
  5151. var jsDict = names[name];
  5152. if (!isDict(jsDict)) {
  5153. continue;
  5154. }
  5155. var type = jsDict.get('S');
  5156. if (!isName(type) || type.name !== 'JavaScript') {
  5157. continue;
  5158. }
  5159. var js = jsDict.get('JS');
  5160. if (!isString(js) && !isStream(js)) {
  5161. continue;
  5162. }
  5163. if (isStream(js)) {
  5164. js = bytesToString(js.getBytes());
  5165. }
  5166. javaScript.push(stringToPDFString(js));
  5167. }
  5168. }
  5169. return shadow(this, 'javaScript', javaScript);
  5170. },
  5171. cleanup: function Catalog_cleanup() {
  5172. this.fontCache.forEach(function (font) {
  5173. delete font.sent;
  5174. delete font.translated;
  5175. });
  5176. this.fontCache.clear();
  5177. },
  5178. getPage: function Catalog_getPage(pageIndex) {
  5179. if (!(pageIndex in this.pagePromises)) {
  5180. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  5181. function (a) {
  5182. var dict = a[0];
  5183. var ref = a[1];
  5184. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  5185. this.fontCache);
  5186. }.bind(this)
  5187. );
  5188. }
  5189. return this.pagePromises[pageIndex];
  5190. },
  5191. getPageDict: function Catalog_getPageDict(pageIndex) {
  5192. var capability = createPromiseCapability();
  5193. var nodesToVisit = [this.catDict.getRaw('Pages')];
  5194. var currentPageIndex = 0;
  5195. var xref = this.xref;
  5196. function next() {
  5197. while (nodesToVisit.length) {
  5198. var currentNode = nodesToVisit.pop();
  5199. if (isRef(currentNode)) {
  5200. xref.fetchAsync(currentNode).then(function (obj) {
  5201. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  5202. if (pageIndex === currentPageIndex) {
  5203. capability.resolve([obj, currentNode]);
  5204. } else {
  5205. currentPageIndex++;
  5206. next();
  5207. }
  5208. return;
  5209. }
  5210. nodesToVisit.push(obj);
  5211. next();
  5212. }.bind(this), capability.reject.bind(capability));
  5213. return;
  5214. }
  5215. // must be a child page dictionary
  5216. assert(
  5217. isDict(currentNode),
  5218. 'page dictionary kid reference points to wrong type of object'
  5219. );
  5220. var count = currentNode.get('Count');
  5221. // Skip nodes where the page can't be.
  5222. if (currentPageIndex + count <= pageIndex) {
  5223. currentPageIndex += count;
  5224. continue;
  5225. }
  5226. var kids = currentNode.get('Kids');
  5227. assert(isArray(kids), 'page dictionary kids object is not an array');
  5228. if (count === kids.length) {
  5229. // Nodes that don't have the page have been skipped and this is the
  5230. // bottom of the tree which means the page requested must be a
  5231. // descendant of this pages node. Ideally we would just resolve the
  5232. // promise with the page ref here, but there is the case where more
  5233. // pages nodes could link to single a page (see issue 3666 pdf). To
  5234. // handle this push it back on the queue so if it is a pages node it
  5235. // will be descended into.
  5236. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  5237. currentPageIndex = pageIndex;
  5238. continue;
  5239. } else {
  5240. for (var last = kids.length - 1; last >= 0; last--) {
  5241. nodesToVisit.push(kids[last]);
  5242. }
  5243. }
  5244. }
  5245. capability.reject('Page index ' + pageIndex + ' not found.');
  5246. }
  5247. next();
  5248. return capability.promise;
  5249. },
  5250. getPageIndex: function Catalog_getPageIndex(ref) {
  5251. // The page tree nodes have the count of all the leaves below them. To get
  5252. // how many pages are before we just have to walk up the tree and keep
  5253. // adding the count of siblings to the left of the node.
  5254. var xref = this.xref;
  5255. function pagesBeforeRef(kidRef) {
  5256. var total = 0;
  5257. var parentRef;
  5258. return xref.fetchAsync(kidRef).then(function (node) {
  5259. if (!node) {
  5260. return null;
  5261. }
  5262. parentRef = node.getRaw('Parent');
  5263. return node.getAsync('Parent');
  5264. }).then(function (parent) {
  5265. if (!parent) {
  5266. return null;
  5267. }
  5268. return parent.getAsync('Kids');
  5269. }).then(function (kids) {
  5270. if (!kids) {
  5271. return null;
  5272. }
  5273. var kidPromises = [];
  5274. var found = false;
  5275. for (var i = 0; i < kids.length; i++) {
  5276. var kid = kids[i];
  5277. assert(isRef(kid), 'kids must be a ref');
  5278. if (kid.num == kidRef.num) {
  5279. found = true;
  5280. break;
  5281. }
  5282. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  5283. if (kid.has('Count')) {
  5284. var count = kid.get('Count');
  5285. total += count;
  5286. } else { // page leaf node
  5287. total++;
  5288. }
  5289. }));
  5290. }
  5291. if (!found) {
  5292. error('kid ref not found in parents kids');
  5293. }
  5294. return Promise.all(kidPromises).then(function () {
  5295. return [total, parentRef];
  5296. });
  5297. });
  5298. }
  5299. var total = 0;
  5300. function next(ref) {
  5301. return pagesBeforeRef(ref).then(function (args) {
  5302. if (!args) {
  5303. return total;
  5304. }
  5305. var count = args[0];
  5306. var parentRef = args[1];
  5307. total += count;
  5308. return next(parentRef);
  5309. });
  5310. }
  5311. return next(ref);
  5312. }
  5313. };
  5314. return Catalog;
  5315. })();
  5316. var XRef = (function XRefClosure() {
  5317. function XRef(stream, password) {
  5318. this.stream = stream;
  5319. this.entries = [];
  5320. this.xrefstms = {};
  5321. // prepare the XRef cache
  5322. this.cache = [];
  5323. this.password = password;
  5324. }
  5325. XRef.prototype = {
  5326. setStartXRef: function XRef_setStartXRef(startXRef) {
  5327. // Store the starting positions of xref tables as we process them
  5328. // so we can recover from missing data errors
  5329. this.startXRefQueue = [startXRef];
  5330. },
  5331. parse: function XRef_parse(recoveryMode) {
  5332. var trailerDict;
  5333. if (!recoveryMode) {
  5334. trailerDict = this.readXRef();
  5335. } else {
  5336. warn('Indexing all PDF objects');
  5337. trailerDict = this.indexObjects();
  5338. }
  5339. trailerDict.assignXref(this);
  5340. this.trailer = trailerDict;
  5341. var encrypt = trailerDict.get('Encrypt');
  5342. if (encrypt) {
  5343. var ids = trailerDict.get('ID');
  5344. var fileId = (ids && ids.length) ? ids[0] : '';
  5345. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  5346. this.password);
  5347. }
  5348. // get the root dictionary (catalog) object
  5349. if (!(this.root = trailerDict.get('Root'))) {
  5350. error('Invalid root reference');
  5351. }
  5352. },
  5353. processXRefTable: function XRef_processXRefTable(parser) {
  5354. if (!('tableState' in this)) {
  5355. // Stores state of the table as we process it so we can resume
  5356. // from middle of table in case of missing data error
  5357. this.tableState = {
  5358. entryNum: 0,
  5359. streamPos: parser.lexer.stream.pos,
  5360. parserBuf1: parser.buf1,
  5361. parserBuf2: parser.buf2
  5362. };
  5363. }
  5364. var obj = this.readXRefTable(parser);
  5365. // Sanity check
  5366. if (!isCmd(obj, 'trailer')) {
  5367. error('Invalid XRef table: could not find trailer dictionary');
  5368. }
  5369. // Read trailer dictionary, e.g.
  5370. // trailer
  5371. // << /Size 22
  5372. // /Root 20R
  5373. // /Info 10R
  5374. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  5375. // >>
  5376. // The parser goes through the entire stream << ... >> and provides
  5377. // a getter interface for the key-value table
  5378. var dict = parser.getObj();
  5379. // The pdflib PDF generator can generate a nested trailer dictionary
  5380. if (!isDict(dict) && dict.dict) {
  5381. dict = dict.dict;
  5382. }
  5383. if (!isDict(dict)) {
  5384. error('Invalid XRef table: could not parse trailer dictionary');
  5385. }
  5386. delete this.tableState;
  5387. return dict;
  5388. },
  5389. readXRefTable: function XRef_readXRefTable(parser) {
  5390. // Example of cross-reference table:
  5391. // xref
  5392. // 0 1 <-- subsection header (first obj #, obj count)
  5393. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  5394. // 23 2 <-- subsection header ... and so on ...
  5395. // 0000025518 00002 n
  5396. // 0000025635 00000 n
  5397. // trailer
  5398. // ...
  5399. var stream = parser.lexer.stream;
  5400. var tableState = this.tableState;
  5401. stream.pos = tableState.streamPos;
  5402. parser.buf1 = tableState.parserBuf1;
  5403. parser.buf2 = tableState.parserBuf2;
  5404. // Outer loop is over subsection headers
  5405. var obj;
  5406. while (true) {
  5407. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  5408. if (isCmd(obj = parser.getObj(), 'trailer')) {
  5409. break;
  5410. }
  5411. tableState.firstEntryNum = obj;
  5412. tableState.entryCount = parser.getObj();
  5413. }
  5414. var first = tableState.firstEntryNum;
  5415. var count = tableState.entryCount;
  5416. if (!isInt(first) || !isInt(count)) {
  5417. error('Invalid XRef table: wrong types in subsection header');
  5418. }
  5419. // Inner loop is over objects themselves
  5420. for (var i = tableState.entryNum; i < count; i++) {
  5421. tableState.streamPos = stream.pos;
  5422. tableState.entryNum = i;
  5423. tableState.parserBuf1 = parser.buf1;
  5424. tableState.parserBuf2 = parser.buf2;
  5425. var entry = {};
  5426. entry.offset = parser.getObj();
  5427. entry.gen = parser.getObj();
  5428. var type = parser.getObj();
  5429. if (isCmd(type, 'f')) {
  5430. entry.free = true;
  5431. } else if (isCmd(type, 'n')) {
  5432. entry.uncompressed = true;
  5433. }
  5434. // Validate entry obj
  5435. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  5436. !(entry.free || entry.uncompressed)) {
  5437. console.log(entry.offset, entry.gen, entry.free,
  5438. entry.uncompressed);
  5439. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  5440. }
  5441. if (!this.entries[i + first]) {
  5442. this.entries[i + first] = entry;
  5443. }
  5444. }
  5445. tableState.entryNum = 0;
  5446. tableState.streamPos = stream.pos;
  5447. tableState.parserBuf1 = parser.buf1;
  5448. tableState.parserBuf2 = parser.buf2;
  5449. delete tableState.firstEntryNum;
  5450. delete tableState.entryCount;
  5451. }
  5452. // Per issue 3248: hp scanners generate bad XRef
  5453. if (first === 1 && this.entries[1] && this.entries[1].free) {
  5454. // shifting the entries
  5455. this.entries.shift();
  5456. }
  5457. // Sanity check: as per spec, first object must be free
  5458. if (this.entries[0] && !this.entries[0].free) {
  5459. error('Invalid XRef table: unexpected first object');
  5460. }
  5461. return obj;
  5462. },
  5463. processXRefStream: function XRef_processXRefStream(stream) {
  5464. if (!('streamState' in this)) {
  5465. // Stores state of the stream as we process it so we can resume
  5466. // from middle of stream in case of missing data error
  5467. var streamParameters = stream.dict;
  5468. var byteWidths = streamParameters.get('W');
  5469. var range = streamParameters.get('Index');
  5470. if (!range) {
  5471. range = [0, streamParameters.get('Size')];
  5472. }
  5473. this.streamState = {
  5474. entryRanges: range,
  5475. byteWidths: byteWidths,
  5476. entryNum: 0,
  5477. streamPos: stream.pos
  5478. };
  5479. }
  5480. this.readXRefStream(stream);
  5481. delete this.streamState;
  5482. return stream.dict;
  5483. },
  5484. readXRefStream: function XRef_readXRefStream(stream) {
  5485. var i, j;
  5486. var streamState = this.streamState;
  5487. stream.pos = streamState.streamPos;
  5488. var byteWidths = streamState.byteWidths;
  5489. var typeFieldWidth = byteWidths[0];
  5490. var offsetFieldWidth = byteWidths[1];
  5491. var generationFieldWidth = byteWidths[2];
  5492. var entryRanges = streamState.entryRanges;
  5493. while (entryRanges.length > 0) {
  5494. var first = entryRanges[0];
  5495. var n = entryRanges[1];
  5496. if (!isInt(first) || !isInt(n)) {
  5497. error('Invalid XRef range fields: ' + first + ', ' + n);
  5498. }
  5499. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  5500. !isInt(generationFieldWidth)) {
  5501. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  5502. }
  5503. for (i = streamState.entryNum; i < n; ++i) {
  5504. streamState.entryNum = i;
  5505. streamState.streamPos = stream.pos;
  5506. var type = 0, offset = 0, generation = 0;
  5507. for (j = 0; j < typeFieldWidth; ++j) {
  5508. type = (type << 8) | stream.getByte();
  5509. }
  5510. // if type field is absent, its default value is 1
  5511. if (typeFieldWidth === 0) {
  5512. type = 1;
  5513. }
  5514. for (j = 0; j < offsetFieldWidth; ++j) {
  5515. offset = (offset << 8) | stream.getByte();
  5516. }
  5517. for (j = 0; j < generationFieldWidth; ++j) {
  5518. generation = (generation << 8) | stream.getByte();
  5519. }
  5520. var entry = {};
  5521. entry.offset = offset;
  5522. entry.gen = generation;
  5523. switch (type) {
  5524. case 0:
  5525. entry.free = true;
  5526. break;
  5527. case 1:
  5528. entry.uncompressed = true;
  5529. break;
  5530. case 2:
  5531. break;
  5532. default:
  5533. error('Invalid XRef entry type: ' + type);
  5534. }
  5535. if (!this.entries[first + i]) {
  5536. this.entries[first + i] = entry;
  5537. }
  5538. }
  5539. streamState.entryNum = 0;
  5540. streamState.streamPos = stream.pos;
  5541. entryRanges.splice(0, 2);
  5542. }
  5543. },
  5544. indexObjects: function XRef_indexObjects() {
  5545. // Simple scan through the PDF content to find objects,
  5546. // trailers and XRef streams.
  5547. function readToken(data, offset) {
  5548. var token = '', ch = data[offset];
  5549. while (ch !== 13 && ch !== 10) {
  5550. if (++offset >= data.length) {
  5551. break;
  5552. }
  5553. token += String.fromCharCode(ch);
  5554. ch = data[offset];
  5555. }
  5556. return token;
  5557. }
  5558. function skipUntil(data, offset, what) {
  5559. var length = what.length, dataLength = data.length;
  5560. var skipped = 0;
  5561. // finding byte sequence
  5562. while (offset < dataLength) {
  5563. var i = 0;
  5564. while (i < length && data[offset + i] == what[i]) {
  5565. ++i;
  5566. }
  5567. if (i >= length) {
  5568. break; // sequence found
  5569. }
  5570. offset++;
  5571. skipped++;
  5572. }
  5573. return skipped;
  5574. }
  5575. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  5576. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  5577. 101, 102]);
  5578. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  5579. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  5580. var stream = this.stream;
  5581. stream.pos = 0;
  5582. var buffer = stream.getBytes();
  5583. var position = stream.start, length = buffer.length;
  5584. var trailers = [], xrefStms = [];
  5585. while (position < length) {
  5586. var ch = buffer[position];
  5587. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  5588. ++position;
  5589. continue;
  5590. }
  5591. if (ch === 37) { // %-comment
  5592. do {
  5593. ++position;
  5594. if (position >= length) {
  5595. break;
  5596. }
  5597. ch = buffer[position];
  5598. } while (ch !== 13 && ch !== 10);
  5599. continue;
  5600. }
  5601. var token = readToken(buffer, position);
  5602. var m;
  5603. if (token === 'xref') {
  5604. position += skipUntil(buffer, position, trailerBytes);
  5605. trailers.push(position);
  5606. position += skipUntil(buffer, position, startxrefBytes);
  5607. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  5608. this.entries[m[1]] = {
  5609. offset: position,
  5610. gen: m[2] | 0,
  5611. uncompressed: true
  5612. };
  5613. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  5614. var content = buffer.subarray(position, position + contentLength);
  5615. // checking XRef stream suspect
  5616. // (it shall have '/XRef' and next char is not a letter)
  5617. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  5618. if (xrefTagOffset < contentLength &&
  5619. content[xrefTagOffset + 5] < 64) {
  5620. xrefStms.push(position);
  5621. this.xrefstms[position] = 1; // don't read it recursively
  5622. }
  5623. position += contentLength;
  5624. } else {
  5625. position += token.length + 1;
  5626. }
  5627. }
  5628. // reading XRef streams
  5629. var i, ii;
  5630. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  5631. this.startXRefQueue.push(xrefStms[i]);
  5632. this.readXRef(/* recoveryMode */ true);
  5633. }
  5634. // finding main trailer
  5635. var dict;
  5636. for (i = 0, ii = trailers.length; i < ii; ++i) {
  5637. stream.pos = trailers[i];
  5638. var parser = new Parser(new Lexer(stream), true, null);
  5639. var obj = parser.getObj();
  5640. if (!isCmd(obj, 'trailer')) {
  5641. continue;
  5642. }
  5643. // read the trailer dictionary
  5644. if (!isDict(dict = parser.getObj())) {
  5645. continue;
  5646. }
  5647. // taking the first one with 'ID'
  5648. if (dict.has('ID')) {
  5649. return dict;
  5650. }
  5651. }
  5652. // no tailer with 'ID', taking last one (if exists)
  5653. if (dict) {
  5654. return dict;
  5655. }
  5656. // nothing helps
  5657. // calling error() would reject worker with an UnknownErrorException.
  5658. throw new InvalidPDFException('Invalid PDF structure');
  5659. },
  5660. readXRef: function XRef_readXRef(recoveryMode) {
  5661. var stream = this.stream;
  5662. try {
  5663. while (this.startXRefQueue.length) {
  5664. var startXRef = this.startXRefQueue[0];
  5665. stream.pos = startXRef + stream.start;
  5666. var parser = new Parser(new Lexer(stream), true, null);
  5667. var obj = parser.getObj();
  5668. var dict;
  5669. // Get dictionary
  5670. if (isCmd(obj, 'xref')) {
  5671. // Parse end-of-file XRef
  5672. dict = this.processXRefTable(parser);
  5673. if (!this.topDict) {
  5674. this.topDict = dict;
  5675. }
  5676. // Recursively get other XRefs 'XRefStm', if any
  5677. obj = dict.get('XRefStm');
  5678. if (isInt(obj)) {
  5679. var pos = obj;
  5680. // ignore previously loaded xref streams
  5681. // (possible infinite recursion)
  5682. if (!(pos in this.xrefstms)) {
  5683. this.xrefstms[pos] = 1;
  5684. this.startXRefQueue.push(pos);
  5685. }
  5686. }
  5687. } else if (isInt(obj)) {
  5688. // Parse in-stream XRef
  5689. if (!isInt(parser.getObj()) ||
  5690. !isCmd(parser.getObj(), 'obj') ||
  5691. !isStream(obj = parser.getObj())) {
  5692. error('Invalid XRef stream');
  5693. }
  5694. dict = this.processXRefStream(obj);
  5695. if (!this.topDict) {
  5696. this.topDict = dict;
  5697. }
  5698. if (!dict) {
  5699. error('Failed to read XRef stream');
  5700. }
  5701. } else {
  5702. error('Invalid XRef stream header');
  5703. }
  5704. // Recursively get previous dictionary, if any
  5705. obj = dict.get('Prev');
  5706. if (isInt(obj)) {
  5707. this.startXRefQueue.push(obj);
  5708. } else if (isRef(obj)) {
  5709. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  5710. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  5711. this.startXRefQueue.push(obj.num);
  5712. }
  5713. this.startXRefQueue.shift();
  5714. }
  5715. return this.topDict;
  5716. } catch (e) {
  5717. if (e instanceof MissingDataException) {
  5718. throw e;
  5719. }
  5720. info('(while reading XRef): ' + e);
  5721. }
  5722. if (recoveryMode) {
  5723. return;
  5724. }
  5725. throw new XRefParseException();
  5726. },
  5727. getEntry: function XRef_getEntry(i) {
  5728. var xrefEntry = this.entries[i];
  5729. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  5730. return xrefEntry;
  5731. }
  5732. return null;
  5733. },
  5734. fetchIfRef: function XRef_fetchIfRef(obj) {
  5735. if (!isRef(obj)) {
  5736. return obj;
  5737. }
  5738. return this.fetch(obj);
  5739. },
  5740. fetch: function XRef_fetch(ref, suppressEncryption) {
  5741. assert(isRef(ref), 'ref object is not a reference');
  5742. var num = ref.num;
  5743. if (num in this.cache) {
  5744. var cacheEntry = this.cache[num];
  5745. return cacheEntry;
  5746. }
  5747. var xrefEntry = this.getEntry(num);
  5748. // the referenced entry can be free
  5749. if (xrefEntry === null) {
  5750. return (this.cache[num] = null);
  5751. }
  5752. if (xrefEntry.uncompressed) {
  5753. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  5754. } else {
  5755. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  5756. }
  5757. if (isDict(xrefEntry)) {
  5758. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  5759. }
  5760. return xrefEntry;
  5761. },
  5762. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  5763. suppressEncryption) {
  5764. var gen = ref.gen;
  5765. var num = ref.num;
  5766. if (xrefEntry.gen !== gen) {
  5767. error('inconsistent generation in XRef');
  5768. }
  5769. var stream = this.stream.makeSubStream(xrefEntry.offset +
  5770. this.stream.start);
  5771. var parser = new Parser(new Lexer(stream), true, this);
  5772. var obj1 = parser.getObj();
  5773. var obj2 = parser.getObj();
  5774. var obj3 = parser.getObj();
  5775. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  5776. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  5777. !isCmd(obj3)) {
  5778. error('bad XRef entry');
  5779. }
  5780. if (!isCmd(obj3, 'obj')) {
  5781. // some bad PDFs use "obj1234" and really mean 1234
  5782. if (obj3.cmd.indexOf('obj') === 0) {
  5783. num = parseInt(obj3.cmd.substring(3), 10);
  5784. if (!isNaN(num)) {
  5785. return num;
  5786. }
  5787. }
  5788. error('bad XRef entry');
  5789. }
  5790. if (this.encrypt && !suppressEncryption) {
  5791. try {
  5792. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  5793. gen));
  5794. } catch (ex) {
  5795. // Almost all streams must be encrypted, but sometimes
  5796. // they are not, probably due to some broken generators.
  5797. // Retrying without encryption...
  5798. return this.fetch(ref, true);
  5799. }
  5800. } else {
  5801. xrefEntry = parser.getObj();
  5802. }
  5803. if (!isStream(xrefEntry)) {
  5804. this.cache[num] = xrefEntry;
  5805. }
  5806. return xrefEntry;
  5807. },
  5808. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  5809. suppressEncryption) {
  5810. var tableOffset = xrefEntry.offset;
  5811. var stream = this.fetch(new Ref(tableOffset, 0));
  5812. if (!isStream(stream)) {
  5813. error('bad ObjStm stream');
  5814. }
  5815. var first = stream.dict.get('First');
  5816. var n = stream.dict.get('N');
  5817. if (!isInt(first) || !isInt(n)) {
  5818. error('invalid first and n parameters for ObjStm stream');
  5819. }
  5820. var parser = new Parser(new Lexer(stream), false, this);
  5821. parser.allowStreams = true;
  5822. var i, entries = [], num, nums = [];
  5823. // read the object numbers to populate cache
  5824. for (i = 0; i < n; ++i) {
  5825. num = parser.getObj();
  5826. if (!isInt(num)) {
  5827. error('invalid object number in the ObjStm stream: ' + num);
  5828. }
  5829. nums.push(num);
  5830. var offset = parser.getObj();
  5831. if (!isInt(offset)) {
  5832. error('invalid object offset in the ObjStm stream: ' + offset);
  5833. }
  5834. }
  5835. // read stream objects for cache
  5836. for (i = 0; i < n; ++i) {
  5837. entries.push(parser.getObj());
  5838. num = nums[i];
  5839. var entry = this.entries[num];
  5840. if (entry && entry.offset === tableOffset && entry.gen === i) {
  5841. this.cache[num] = entries[i];
  5842. }
  5843. }
  5844. xrefEntry = entries[xrefEntry.gen];
  5845. if (xrefEntry === undefined) {
  5846. error('bad XRef entry for compressed object');
  5847. }
  5848. return xrefEntry;
  5849. },
  5850. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  5851. if (!isRef(obj)) {
  5852. return Promise.resolve(obj);
  5853. }
  5854. return this.fetchAsync(obj);
  5855. },
  5856. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  5857. return new Promise(function (resolve, reject) {
  5858. var tryFetch = function () {
  5859. try {
  5860. resolve(this.fetch(ref, suppressEncryption));
  5861. } catch (e) {
  5862. if (e instanceof MissingDataException) {
  5863. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  5864. return;
  5865. }
  5866. reject(e);
  5867. }
  5868. }.bind(this);
  5869. tryFetch();
  5870. }.bind(this));
  5871. },
  5872. getCatalogObj: function XRef_getCatalogObj() {
  5873. return this.root;
  5874. }
  5875. };
  5876. return XRef;
  5877. })();
  5878. /**
  5879. * A NameTree is like a Dict but has some advantageous properties, see the
  5880. * spec (7.9.6) for more details.
  5881. * TODO: implement all the Dict functions and make this more efficent.
  5882. */
  5883. var NameTree = (function NameTreeClosure() {
  5884. function NameTree(root, xref) {
  5885. this.root = root;
  5886. this.xref = xref;
  5887. }
  5888. NameTree.prototype = {
  5889. getAll: function NameTree_getAll() {
  5890. var dict = {};
  5891. if (!this.root) {
  5892. return dict;
  5893. }
  5894. var xref = this.xref;
  5895. // reading name tree
  5896. var processed = new RefSet();
  5897. processed.put(this.root);
  5898. var queue = [this.root];
  5899. while (queue.length > 0) {
  5900. var i, n;
  5901. var obj = xref.fetchIfRef(queue.shift());
  5902. if (!isDict(obj)) {
  5903. continue;
  5904. }
  5905. if (obj.has('Kids')) {
  5906. var kids = obj.get('Kids');
  5907. for (i = 0, n = kids.length; i < n; i++) {
  5908. var kid = kids[i];
  5909. if (processed.has(kid)) {
  5910. error('invalid destinations');
  5911. }
  5912. queue.push(kid);
  5913. processed.put(kid);
  5914. }
  5915. continue;
  5916. }
  5917. var names = obj.get('Names');
  5918. if (names) {
  5919. for (i = 0, n = names.length; i < n; i += 2) {
  5920. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  5921. }
  5922. }
  5923. }
  5924. return dict;
  5925. }
  5926. };
  5927. return NameTree;
  5928. })();
  5929. /**
  5930. * "A PDF file can refer to the contents of another file by using a File
  5931. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  5932. * NOTE: Only embedded files are supported (as part of the attachments support)
  5933. * TODO: support the 'URL' file system (with caching if !/V), portable
  5934. * collections attributes and related files (/RF)
  5935. */
  5936. var FileSpec = (function FileSpecClosure() {
  5937. function FileSpec(root, xref) {
  5938. if (!root || !isDict(root)) {
  5939. return;
  5940. }
  5941. this.xref = xref;
  5942. this.root = root;
  5943. if (root.has('FS')) {
  5944. this.fs = root.get('FS');
  5945. }
  5946. this.description = root.has('Desc') ?
  5947. stringToPDFString(root.get('Desc')) :
  5948. '';
  5949. if (root.has('RF')) {
  5950. warn('Related file specifications are not supported');
  5951. }
  5952. this.contentAvailable = true;
  5953. if (!root.has('EF')) {
  5954. this.contentAvailable = false;
  5955. warn('Non-embedded file specifications are not supported');
  5956. }
  5957. }
  5958. function pickPlatformItem(dict) {
  5959. // Look for the filename in this order:
  5960. // UF, F, Unix, Mac, DOS
  5961. if (dict.has('UF')) {
  5962. return dict.get('UF');
  5963. } else if (dict.has('F')) {
  5964. return dict.get('F');
  5965. } else if (dict.has('Unix')) {
  5966. return dict.get('Unix');
  5967. } else if (dict.has('Mac')) {
  5968. return dict.get('Mac');
  5969. } else if (dict.has('DOS')) {
  5970. return dict.get('DOS');
  5971. } else {
  5972. return null;
  5973. }
  5974. }
  5975. FileSpec.prototype = {
  5976. get filename() {
  5977. if (!this._filename && this.root) {
  5978. var filename = pickPlatformItem(this.root) || 'unnamed';
  5979. this._filename = stringToPDFString(filename).
  5980. replace(/\\\\/g, '\\').
  5981. replace(/\\\//g, '/').
  5982. replace(/\\/g, '/');
  5983. }
  5984. return this._filename;
  5985. },
  5986. get content() {
  5987. if (!this.contentAvailable) {
  5988. return null;
  5989. }
  5990. if (!this.contentRef && this.root) {
  5991. this.contentRef = pickPlatformItem(this.root.get('EF'));
  5992. }
  5993. var content = null;
  5994. if (this.contentRef) {
  5995. var xref = this.xref;
  5996. var fileObj = xref.fetchIfRef(this.contentRef);
  5997. if (fileObj && isStream(fileObj)) {
  5998. content = fileObj.getBytes();
  5999. } else {
  6000. warn('Embedded file specification points to non-existing/invalid ' +
  6001. 'content');
  6002. }
  6003. } else {
  6004. warn('Embedded file specification does not have a content');
  6005. }
  6006. return content;
  6007. },
  6008. get serializable() {
  6009. return {
  6010. filename: this.filename,
  6011. content: this.content
  6012. };
  6013. }
  6014. };
  6015. return FileSpec;
  6016. })();
  6017. /**
  6018. * A helper for loading missing data in object graphs. It traverses the graph
  6019. * depth first and queues up any objects that have missing data. Once it has
  6020. * has traversed as many objects that are available it attempts to bundle the
  6021. * missing data requests and then resume from the nodes that weren't ready.
  6022. *
  6023. * NOTE: It provides protection from circular references by keeping track of
  6024. * of loaded references. However, you must be careful not to load any graphs
  6025. * that have references to the catalog or other pages since that will cause the
  6026. * entire PDF document object graph to be traversed.
  6027. */
  6028. var ObjectLoader = (function() {
  6029. function mayHaveChildren(value) {
  6030. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  6031. }
  6032. function addChildren(node, nodesToVisit) {
  6033. var value;
  6034. if (isDict(node) || isStream(node)) {
  6035. var map;
  6036. if (isDict(node)) {
  6037. map = node.map;
  6038. } else {
  6039. map = node.dict.map;
  6040. }
  6041. for (var key in map) {
  6042. value = map[key];
  6043. if (mayHaveChildren(value)) {
  6044. nodesToVisit.push(value);
  6045. }
  6046. }
  6047. } else if (isArray(node)) {
  6048. for (var i = 0, ii = node.length; i < ii; i++) {
  6049. value = node[i];
  6050. if (mayHaveChildren(value)) {
  6051. nodesToVisit.push(value);
  6052. }
  6053. }
  6054. }
  6055. }
  6056. function ObjectLoader(obj, keys, xref) {
  6057. this.obj = obj;
  6058. this.keys = keys;
  6059. this.xref = xref;
  6060. this.refSet = null;
  6061. }
  6062. ObjectLoader.prototype = {
  6063. load: function ObjectLoader_load() {
  6064. var keys = this.keys;
  6065. this.capability = createPromiseCapability();
  6066. // Don't walk the graph if all the data is already loaded.
  6067. if (!(this.xref.stream instanceof ChunkedStream) ||
  6068. this.xref.stream.getMissingChunks().length === 0) {
  6069. this.capability.resolve();
  6070. return this.capability.promise;
  6071. }
  6072. this.refSet = new RefSet();
  6073. // Setup the initial nodes to visit.
  6074. var nodesToVisit = [];
  6075. for (var i = 0; i < keys.length; i++) {
  6076. nodesToVisit.push(this.obj[keys[i]]);
  6077. }
  6078. this.walk(nodesToVisit);
  6079. return this.capability.promise;
  6080. },
  6081. walk: function ObjectLoader_walk(nodesToVisit) {
  6082. var nodesToRevisit = [];
  6083. var pendingRequests = [];
  6084. // DFS walk of the object graph.
  6085. while (nodesToVisit.length) {
  6086. var currentNode = nodesToVisit.pop();
  6087. // Only references or chunked streams can cause missing data exceptions.
  6088. if (isRef(currentNode)) {
  6089. // Skip nodes that have already been visited.
  6090. if (this.refSet.has(currentNode)) {
  6091. continue;
  6092. }
  6093. try {
  6094. var ref = currentNode;
  6095. this.refSet.put(ref);
  6096. currentNode = this.xref.fetch(currentNode);
  6097. } catch (e) {
  6098. if (!(e instanceof MissingDataException)) {
  6099. throw e;
  6100. }
  6101. nodesToRevisit.push(currentNode);
  6102. pendingRequests.push({ begin: e.begin, end: e.end });
  6103. }
  6104. }
  6105. if (currentNode && currentNode.getBaseStreams) {
  6106. var baseStreams = currentNode.getBaseStreams();
  6107. var foundMissingData = false;
  6108. for (var i = 0; i < baseStreams.length; i++) {
  6109. var stream = baseStreams[i];
  6110. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  6111. foundMissingData = true;
  6112. pendingRequests.push({
  6113. begin: stream.start,
  6114. end: stream.end
  6115. });
  6116. }
  6117. }
  6118. if (foundMissingData) {
  6119. nodesToRevisit.push(currentNode);
  6120. }
  6121. }
  6122. addChildren(currentNode, nodesToVisit);
  6123. }
  6124. if (pendingRequests.length) {
  6125. this.xref.stream.manager.requestRanges(pendingRequests,
  6126. function pendingRequestCallback() {
  6127. nodesToVisit = nodesToRevisit;
  6128. for (var i = 0; i < nodesToRevisit.length; i++) {
  6129. var node = nodesToRevisit[i];
  6130. // Remove any reference nodes from the currrent refset so they
  6131. // aren't skipped when we revist them.
  6132. if (isRef(node)) {
  6133. this.refSet.remove(node);
  6134. }
  6135. }
  6136. this.walk(nodesToVisit);
  6137. }.bind(this));
  6138. return;
  6139. }
  6140. // Everything is loaded.
  6141. this.refSet = null;
  6142. this.capability.resolve();
  6143. }
  6144. };
  6145. return ObjectLoader;
  6146. })();
  6147. var ISOAdobeCharset = [
  6148. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  6149. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  6150. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  6151. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  6152. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  6153. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  6154. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  6155. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  6156. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  6157. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  6158. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  6159. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  6160. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  6161. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  6162. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  6163. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  6164. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  6165. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  6166. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  6167. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  6168. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  6169. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  6170. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  6171. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  6172. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  6173. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  6174. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  6175. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  6176. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  6177. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  6178. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  6179. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  6180. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  6181. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  6182. ];
  6183. var ExpertCharset = [
  6184. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  6185. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  6186. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  6187. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  6188. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  6189. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  6190. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  6191. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  6192. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6193. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6194. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6195. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  6196. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  6197. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  6198. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  6199. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  6200. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  6201. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  6202. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  6203. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  6204. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  6205. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  6206. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6207. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6208. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6209. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6210. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6211. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6212. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  6213. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  6214. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  6215. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  6216. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  6217. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  6218. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  6219. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  6220. 'Ydieresissmall'
  6221. ];
  6222. var ExpertSubsetCharset = [
  6223. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  6224. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  6225. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  6226. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  6227. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  6228. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  6229. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  6230. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6231. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6232. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6233. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  6234. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  6235. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  6236. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6237. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6238. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6239. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6240. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6241. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6242. 'periodinferior', 'commainferior'
  6243. ];
  6244. var CIDToUnicodeMaps = {
  6245. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  6246. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  6247. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  6248. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  6249. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  6250. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  6251. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  6252. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  6253. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  6254. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  6255. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  6256. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  6257. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  6258. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  6259. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  6260. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  6261. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  6262. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  6263. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  6264. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  6265. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  6266. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  6267. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  6268. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  6269. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  6270. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  6271. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  6272. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  6273. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  6274. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  6275. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  6276. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  6277. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  6278. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  6279. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  6280. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  6281. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  6282. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  6283. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  6284. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  6285. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  6286. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  6287. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  6288. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  6289. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  6290. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  6291. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  6292. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  6293. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  6294. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  6295. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  6296. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  6297. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  6298. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  6299. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  6300. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  6301. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  6302. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  6303. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  6304. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  6305. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  6306. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  6307. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  6308. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  6309. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  6310. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  6311. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  6312. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  6313. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  6314. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  6315. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  6316. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  6317. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  6318. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  6319. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  6320. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  6321. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  6322. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  6323. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  6324. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  6325. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  6326. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  6327. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  6328. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  6329. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  6330. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  6331. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  6332. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  6333. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  6334. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  6335. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  6336. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  6337. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  6338. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  6339. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  6340. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  6341. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  6342. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  6343. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  6344. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  6345. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  6346. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  6347. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  6348. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  6349. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  6350. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  6351. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  6352. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  6353. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  6354. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  6355. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  6356. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  6357. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  6358. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  6359. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  6360. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  6361. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  6362. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  6363. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  6364. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  6365. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  6366. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  6367. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  6368. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  6369. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  6370. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  6371. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  6372. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  6373. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  6374. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  6375. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  6376. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  6377. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  6378. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  6379. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  6380. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  6381. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  6382. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  6383. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  6384. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  6385. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  6386. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  6387. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  6388. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  6389. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  6390. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  6391. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  6392. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  6393. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  6394. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  6395. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  6396. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  6397. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  6398. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  6399. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  6400. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  6401. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  6402. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  6403. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  6404. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  6405. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  6406. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  6407. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  6408. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  6409. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  6410. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  6411. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  6412. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  6413. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  6414. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  6415. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  6416. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  6417. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  6418. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  6419. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  6420. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  6421. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  6422. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  6423. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  6424. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  6425. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  6426. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  6427. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  6428. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  6429. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  6430. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  6431. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  6432. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  6433. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  6434. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  6435. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  6436. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  6437. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  6438. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  6439. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  6440. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  6441. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  6442. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  6443. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  6444. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  6445. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  6446. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  6447. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  6448. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  6449. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  6450. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  6451. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  6452. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  6453. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  6454. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  6455. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  6456. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  6457. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  6458. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  6459. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  6460. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  6461. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  6462. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  6463. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  6464. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  6465. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  6466. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  6467. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  6468. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  6469. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  6470. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  6471. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  6472. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  6473. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  6474. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  6475. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  6476. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  6477. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  6478. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  6479. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  6480. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  6481. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  6482. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  6483. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  6484. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  6485. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  6486. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  6487. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  6488. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  6489. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  6490. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  6491. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  6492. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  6493. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  6494. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  6495. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  6496. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  6497. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  6498. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  6499. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  6500. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  6501. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  6502. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  6503. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  6504. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  6505. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  6506. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  6507. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  6508. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  6509. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  6510. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  6511. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  6512. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  6513. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  6514. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  6515. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  6516. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  6517. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  6518. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  6519. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  6520. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  6521. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  6522. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  6523. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  6524. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  6525. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  6526. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  6527. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  6528. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  6529. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  6530. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  6531. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  6532. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  6533. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  6534. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  6535. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  6536. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  6537. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  6538. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  6539. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  6540. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  6541. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  6542. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  6543. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  6544. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  6545. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  6546. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  6547. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  6548. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  6549. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  6550. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  6551. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  6552. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  6553. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  6554. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  6555. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  6556. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  6557. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  6558. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  6559. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  6560. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  6561. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  6562. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  6563. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  6564. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  6565. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  6566. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  6567. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  6568. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  6569. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  6570. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  6571. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  6572. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  6573. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  6574. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  6575. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  6576. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  6577. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  6578. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  6579. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  6580. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  6581. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  6582. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  6583. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  6584. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  6585. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  6586. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  6587. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  6588. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  6589. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  6590. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  6591. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  6592. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  6593. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  6594. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  6595. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  6596. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  6597. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  6598. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  6599. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  6600. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  6601. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  6602. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  6603. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  6604. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  6605. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  6606. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  6607. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  6608. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  6609. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  6610. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  6611. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  6612. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  6613. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  6614. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  6615. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  6616. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  6617. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  6618. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  6619. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  6620. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  6621. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  6622. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  6623. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  6624. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  6625. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  6626. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  6627. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  6628. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  6629. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  6630. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  6631. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  6632. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  6633. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  6634. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  6635. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  6636. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  6637. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  6638. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  6639. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  6640. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  6641. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  6642. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  6643. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  6644. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  6645. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  6646. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  6647. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  6648. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  6649. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  6650. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  6651. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  6652. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  6653. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  6654. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  6655. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  6656. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  6657. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  6658. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  6659. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  6660. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  6661. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  6662. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  6663. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  6664. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  6665. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  6666. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  6667. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  6668. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  6669. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  6670. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  6671. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  6672. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  6673. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  6674. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  6675. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  6676. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  6677. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  6678. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  6679. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  6680. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  6681. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  6682. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  6683. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  6684. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  6685. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  6686. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  6687. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  6688. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  6689. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  6690. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  6691. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  6692. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  6693. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  6694. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  6695. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  6696. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  6697. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  6698. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  6699. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  6700. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  6701. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  6702. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  6703. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  6704. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  6705. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  6706. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  6707. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  6708. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  6709. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  6710. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  6711. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  6712. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  6713. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  6714. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  6715. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  6716. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  6717. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  6718. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  6719. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  6720. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  6721. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  6722. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  6723. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  6724. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  6725. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  6726. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  6727. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  6728. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  6729. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  6730. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  6731. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  6732. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  6733. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  6734. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  6735. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  6736. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  6737. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  6738. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  6739. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  6740. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  6741. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  6742. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  6743. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  6744. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  6745. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  6746. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  6747. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  6748. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  6749. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  6750. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  6751. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  6752. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  6753. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  6754. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  6755. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  6756. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  6757. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  6758. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  6759. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  6760. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  6761. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  6762. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  6763. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  6764. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  6765. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  6766. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  6767. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  6768. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  6769. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  6770. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  6771. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  6772. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  6773. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  6774. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  6775. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  6776. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  6777. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  6778. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  6779. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  6780. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  6781. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  6782. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  6783. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  6784. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  6785. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  6786. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  6787. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  6788. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  6789. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  6790. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  6791. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  6792. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  6793. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  6794. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  6795. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  6796. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  6797. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  6798. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  6799. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  6800. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  6801. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  6802. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  6803. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  6804. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  6805. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  6806. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  6807. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  6808. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  6809. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  6810. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  6811. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  6812. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  6813. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  6814. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  6815. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  6816. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  6817. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  6818. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  6819. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  6820. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  6821. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  6822. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  6823. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  6824. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  6825. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  6826. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  6827. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  6828. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  6829. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  6830. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  6831. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  6832. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  6833. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  6834. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  6835. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  6836. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  6837. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  6838. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  6839. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  6840. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  6841. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  6842. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  6843. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  6844. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  6845. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  6846. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  6847. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  6848. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  6849. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  6850. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  6851. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  6852. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  6853. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  6854. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  6855. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  6856. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  6857. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  6858. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  6859. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  6860. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  6861. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  6862. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  6863. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  6864. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  6865. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  6866. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  6867. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  6868. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  6869. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  6870. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  6871. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  6872. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  6873. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  6874. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  6875. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  6876. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  6877. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  6878. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  6879. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  6880. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  6881. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  6882. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  6883. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  6884. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  6885. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  6886. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  6887. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  6888. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  6889. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  6890. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  6891. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  6892. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  6893. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  6894. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  6895. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  6896. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  6897. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  6898. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  6899. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  6900. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  6901. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  6902. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  6903. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  6904. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  6905. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  6906. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  6907. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  6908. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  6909. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  6910. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  6911. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  6912. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  6913. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  6914. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  6915. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  6916. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  6917. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  6918. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  6919. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  6920. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  6921. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  6922. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  6923. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  6924. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  6925. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  6926. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  6927. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  6928. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  6929. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  6930. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  6931. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  6932. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  6933. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  6934. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  6935. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  6936. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  6937. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  6938. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  6939. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  6940. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  6941. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  6942. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  6943. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  6944. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  6945. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  6946. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  6947. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  6948. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  6949. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  6950. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  6951. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  6952. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  6953. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  6954. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  6955. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  6956. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  6957. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  6958. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  6959. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  6960. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  6961. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  6962. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  6963. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  6964. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  6965. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  6966. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  6967. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  6968. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  6969. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  6970. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  6971. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  6972. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  6973. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  6974. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  6975. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  6976. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  6977. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  6978. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  6979. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  6980. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  6981. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  6982. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  6983. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  6984. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  6985. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  6986. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  6987. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  6988. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  6989. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  6990. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  6991. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  6992. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  6993. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  6994. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  6995. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  6996. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  6997. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  6998. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  6999. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  7000. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  7001. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  7002. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  7003. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  7004. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  7005. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  7006. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  7007. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  7008. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  7009. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  7010. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  7011. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  7012. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  7013. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  7014. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  7015. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  7016. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  7017. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  7018. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  7019. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  7020. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  7021. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  7022. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  7023. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  7024. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  7025. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  7026. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  7027. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  7028. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  7029. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  7030. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  7031. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  7032. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  7033. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  7034. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  7035. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  7036. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  7037. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  7038. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  7039. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  7040. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  7041. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  7042. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  7043. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  7044. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  7045. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  7046. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  7047. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  7048. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  7049. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  7050. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  7051. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  7052. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  7053. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  7054. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  7055. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  7056. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  7057. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  7058. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  7059. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  7060. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  7061. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  7062. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  7063. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  7064. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  7065. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  7066. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  7067. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  7068. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  7069. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  7070. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  7071. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  7072. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  7073. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  7074. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  7075. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  7076. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  7077. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  7078. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  7079. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  7080. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  7081. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  7082. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  7083. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  7084. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  7085. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  7086. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  7087. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  7088. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  7089. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  7090. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  7091. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  7092. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  7093. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  7094. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  7095. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  7096. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  7097. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  7098. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  7099. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  7100. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  7101. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  7102. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  7103. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  7104. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  7105. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  7106. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  7107. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  7108. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  7109. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  7110. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  7111. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  7112. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  7113. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  7114. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  7115. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  7116. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  7117. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  7118. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  7119. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  7120. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  7121. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  7122. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  7123. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  7124. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  7125. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  7126. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  7127. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  7128. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  7129. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  7130. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  7131. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  7132. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  7133. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  7134. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  7135. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  7136. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  7137. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  7138. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  7139. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  7140. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  7141. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  7142. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  7143. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  7144. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  7145. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  7146. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  7147. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  7148. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  7149. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  7150. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  7151. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  7152. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  7153. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  7154. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  7155. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  7156. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  7157. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  7158. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  7159. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  7160. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  7161. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  7162. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  7163. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  7164. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  7165. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  7166. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  7167. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  7168. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  7169. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  7170. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  7171. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  7172. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  7173. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  7174. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  7175. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  7176. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  7177. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  7178. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  7179. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  7180. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  7181. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  7182. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  7183. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  7184. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  7185. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  7186. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  7187. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  7188. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  7189. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  7190. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  7191. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  7192. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  7193. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  7194. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  7195. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  7196. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  7197. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  7198. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  7199. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  7200. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  7201. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  7202. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  7203. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  7204. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  7205. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  7206. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  7207. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  7208. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  7209. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  7210. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  7211. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  7212. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  7213. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  7214. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  7215. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  7216. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  7217. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  7218. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  7219. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  7220. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  7221. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  7222. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  7223. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  7224. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  7225. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  7226. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  7227. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  7228. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  7229. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  7230. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  7231. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  7232. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  7233. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  7234. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  7235. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  7236. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  7237. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  7238. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  7239. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  7240. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  7241. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  7242. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  7243. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  7244. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  7245. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  7246. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  7247. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  7248. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  7249. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  7250. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  7251. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  7252. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  7253. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  7254. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  7255. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  7256. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  7257. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  7258. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  7259. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  7260. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  7261. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  7262. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  7263. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  7264. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  7265. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  7266. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  7267. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  7268. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  7269. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  7270. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  7271. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  7272. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  7273. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  7274. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  7275. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  7276. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  7277. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  7278. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  7279. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  7280. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  7281. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  7282. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  7283. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  7284. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  7285. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  7286. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  7287. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  7288. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  7289. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  7290. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  7291. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  7292. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  7293. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  7294. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  7295. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  7296. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  7297. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  7298. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  7299. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  7300. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  7301. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  7302. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  7303. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  7304. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  7305. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  7306. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  7307. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  7308. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  7309. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  7310. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  7311. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  7312. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  7313. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  7314. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  7315. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  7316. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  7317. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  7318. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  7319. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  7320. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  7321. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  7322. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  7323. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  7324. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  7325. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  7326. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  7327. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  7328. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  7329. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  7330. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  7331. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  7332. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  7333. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  7334. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  7335. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  7336. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  7337. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  7338. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  7339. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  7340. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  7341. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  7342. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  7343. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  7344. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  7345. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  7346. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  7347. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  7348. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  7349. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  7350. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  7351. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  7352. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  7353. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  7354. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  7355. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  7356. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  7357. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  7358. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  7359. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  7360. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  7361. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  7362. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  7363. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  7364. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  7365. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  7366. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  7367. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  7368. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  7369. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  7370. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  7371. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  7372. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  7373. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  7374. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  7375. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  7376. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  7377. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  7378. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  7379. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  7380. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  7381. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  7382. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  7383. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  7384. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  7385. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  7386. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  7387. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  7388. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  7389. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  7390. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  7391. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  7392. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  7393. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  7394. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  7395. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  7396. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  7397. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  7398. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  7399. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  7400. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  7401. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  7402. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  7403. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  7404. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  7405. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  7406. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  7407. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  7408. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  7409. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  7410. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  7411. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  7412. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  7413. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  7414. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  7415. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  7416. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  7417. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  7418. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  7419. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  7420. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  7421. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  7422. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  7423. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  7424. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  7425. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  7426. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  7427. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  7428. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  7429. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  7430. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  7431. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  7432. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  7433. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  7434. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  7435. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  7436. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  7437. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  7438. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  7439. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  7440. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  7441. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  7442. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  7443. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  7444. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  7445. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  7446. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  7447. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  7448. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  7449. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  7450. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  7451. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  7452. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  7453. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  7454. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  7455. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  7456. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  7457. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  7458. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  7459. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  7460. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  7461. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  7462. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  7463. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  7464. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  7465. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  7466. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  7467. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  7468. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  7469. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  7470. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  7471. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  7472. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  7473. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  7474. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  7475. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  7476. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  7477. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  7478. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  7479. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  7480. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  7481. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  7482. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  7483. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  7484. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  7485. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  7486. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  7487. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  7488. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  7489. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  7490. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  7491. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  7492. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  7493. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  7494. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  7495. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  7496. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  7497. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  7498. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  7499. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  7500. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  7501. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  7502. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  7503. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  7504. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  7505. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  7506. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  7507. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  7508. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  7509. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  7510. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  7511. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  7512. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  7513. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  7514. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  7515. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  7516. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  7517. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  7518. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  7519. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  7520. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  7521. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  7522. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  7523. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  7524. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  7525. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  7526. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  7527. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  7528. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  7529. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  7530. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  7531. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  7532. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  7533. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  7534. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  7535. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  7536. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  7537. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  7538. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  7539. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  7540. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  7541. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  7542. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  7543. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  7544. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  7545. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  7546. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  7547. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  7548. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  7549. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  7550. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  7551. 38315, 38741, 171581, 173594],
  7552. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  7553. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  7554. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  7555. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  7556. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  7557. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  7558. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  7559. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  7560. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  7561. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  7562. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  7563. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  7564. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  7565. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  7566. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  7567. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  7568. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  7569. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  7570. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  7571. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  7572. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  7573. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  7574. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  7575. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  7576. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  7577. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  7578. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  7579. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  7580. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  7581. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  7582. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  7583. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  7584. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  7585. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  7586. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  7587. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  7588. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  7589. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  7590. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  7591. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  7592. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  7593. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  7594. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  7595. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  7596. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  7597. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  7598. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  7599. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  7600. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  7601. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  7602. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  7603. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  7604. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  7605. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  7606. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  7607. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  7608. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  7609. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  7610. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  7611. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  7612. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  7613. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  7614. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  7615. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  7616. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  7617. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  7618. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  7619. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  7620. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  7621. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  7622. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  7623. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  7624. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  7625. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  7626. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  7627. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  7628. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  7629. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  7630. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  7631. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  7632. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  7633. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  7634. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  7635. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  7636. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  7637. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  7638. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  7639. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  7640. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  7641. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  7642. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  7643. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  7644. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  7645. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  7646. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  7647. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  7648. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  7649. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  7650. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  7651. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  7652. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  7653. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  7654. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  7655. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  7656. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  7657. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  7658. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  7659. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  7660. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  7661. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  7662. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  7663. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  7664. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  7665. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  7666. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  7667. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  7668. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  7669. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  7670. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  7671. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  7672. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  7673. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  7674. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  7675. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  7676. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  7677. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  7678. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  7679. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  7680. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  7681. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  7682. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  7683. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  7684. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  7685. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  7686. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  7687. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  7688. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  7689. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  7690. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  7691. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  7692. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  7693. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  7694. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  7695. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  7696. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  7697. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  7698. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  7699. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  7700. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  7701. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  7702. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  7703. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  7704. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  7705. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  7706. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  7707. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  7708. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  7709. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  7710. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  7711. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  7712. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  7713. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  7714. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  7715. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  7716. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  7717. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  7718. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  7719. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  7720. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  7721. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  7722. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  7723. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  7724. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  7725. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  7726. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  7727. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  7728. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  7729. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  7730. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  7731. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  7732. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  7733. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  7734. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  7735. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  7736. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  7737. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  7738. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  7739. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  7740. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  7741. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  7742. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  7743. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  7744. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  7745. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  7746. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  7747. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  7748. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  7749. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  7750. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  7751. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  7752. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  7753. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  7754. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  7755. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  7756. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  7757. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  7758. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  7759. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  7760. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  7761. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  7762. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  7763. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  7764. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  7765. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  7766. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  7767. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  7768. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  7769. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  7770. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  7771. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  7772. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  7773. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  7774. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  7775. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  7776. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  7777. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  7778. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  7779. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  7780. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  7781. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  7782. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  7783. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  7784. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  7785. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  7786. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  7787. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  7788. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  7789. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  7790. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  7791. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  7792. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  7793. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  7794. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  7795. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  7796. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  7797. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  7798. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  7799. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  7800. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  7801. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  7802. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  7803. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  7804. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  7805. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  7806. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  7807. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  7808. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  7809. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  7810. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  7811. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  7812. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  7813. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  7814. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  7815. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  7816. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  7817. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  7818. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  7819. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  7820. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  7821. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  7822. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  7823. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  7824. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  7825. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  7826. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  7827. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  7828. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  7829. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  7830. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  7831. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  7832. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  7833. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  7834. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  7835. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  7836. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  7837. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  7838. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  7839. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  7840. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  7841. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  7842. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  7843. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  7844. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  7845. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  7846. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  7847. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  7848. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  7849. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  7850. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  7851. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  7852. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  7853. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  7854. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  7855. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  7856. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  7857. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  7858. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  7859. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  7860. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  7861. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  7862. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  7863. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  7864. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  7865. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  7866. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  7867. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  7868. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  7869. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  7870. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  7871. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  7872. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  7873. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  7874. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  7875. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  7876. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  7877. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  7878. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  7879. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  7880. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  7881. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  7882. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  7883. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  7884. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  7885. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  7886. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  7887. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  7888. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  7889. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  7890. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  7891. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  7892. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  7893. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  7894. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  7895. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  7896. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  7897. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  7898. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  7899. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  7900. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  7901. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  7902. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  7903. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  7904. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  7905. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  7906. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  7907. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  7908. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  7909. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  7910. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  7911. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  7912. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  7913. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  7914. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  7915. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  7916. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  7917. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  7918. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  7919. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  7920. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  7921. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  7922. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  7923. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  7924. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  7925. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  7926. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  7927. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  7928. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  7929. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  7930. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  7931. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  7932. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  7933. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  7934. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  7935. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  7936. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  7937. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  7938. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  7939. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  7940. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  7941. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  7942. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  7943. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  7944. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  7945. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  7946. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  7947. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  7948. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  7949. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  7950. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  7951. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  7952. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  7953. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  7954. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  7955. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  7956. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  7957. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  7958. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  7959. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  7960. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  7961. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  7962. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  7963. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  7964. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  7965. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  7966. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  7967. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  7968. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  7969. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  7970. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  7971. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  7972. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  7973. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  7974. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  7975. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  7976. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  7977. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  7978. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  7979. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  7980. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  7981. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  7982. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  7983. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  7984. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  7985. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  7986. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  7987. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  7988. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  7989. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  7990. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  7991. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  7992. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  7993. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  7994. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  7995. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  7996. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  7997. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  7998. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  7999. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  8000. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  8001. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  8002. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  8003. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  8004. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  8005. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  8006. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  8007. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  8008. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  8009. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  8010. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  8011. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  8012. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  8013. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  8014. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  8015. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  8016. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  8017. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  8018. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  8019. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  8020. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  8021. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  8022. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  8023. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  8024. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  8025. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  8026. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  8027. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  8028. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  8029. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  8030. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  8031. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  8032. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  8033. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  8034. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  8035. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  8036. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  8037. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  8038. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  8039. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  8040. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  8041. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  8042. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  8043. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  8044. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  8045. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  8046. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  8047. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  8048. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  8049. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  8050. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  8051. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  8052. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  8053. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  8054. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  8055. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  8056. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  8057. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  8058. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  8059. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  8060. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  8061. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  8062. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  8063. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  8064. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  8065. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  8066. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  8067. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  8068. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  8069. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  8070. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  8071. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  8072. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  8073. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  8074. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  8075. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  8076. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  8077. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  8078. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  8079. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  8080. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  8081. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  8082. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  8083. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  8084. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  8085. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  8086. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  8087. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  8088. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  8089. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  8090. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  8091. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  8092. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  8093. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  8094. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  8095. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  8096. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  8097. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  8098. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  8099. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  8100. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  8101. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  8102. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  8103. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  8104. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  8105. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  8106. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  8107. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  8108. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  8109. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  8110. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  8111. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  8112. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  8113. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  8114. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  8115. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  8116. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  8117. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  8118. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  8119. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  8120. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  8121. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  8122. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  8123. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  8124. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  8125. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  8126. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  8127. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  8128. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  8129. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  8130. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  8131. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  8132. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  8133. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  8134. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  8135. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  8136. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  8137. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  8138. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  8139. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  8140. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  8141. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  8142. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  8143. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  8144. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  8145. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  8146. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  8147. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  8148. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  8149. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  8150. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  8151. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  8152. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  8153. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  8154. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  8155. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  8156. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  8157. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  8158. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  8159. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  8160. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  8161. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  8162. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  8163. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  8164. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  8165. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  8166. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  8167. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  8168. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  8169. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  8170. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  8171. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  8172. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  8173. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  8174. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  8175. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  8176. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  8177. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  8178. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  8179. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  8180. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  8181. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  8182. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  8183. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  8184. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  8185. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  8186. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  8187. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  8188. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  8189. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  8190. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  8191. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  8192. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  8193. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  8194. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  8195. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  8196. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  8197. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  8198. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  8199. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  8200. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  8201. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  8202. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  8203. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  8204. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  8205. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  8206. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  8207. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  8208. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  8209. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  8210. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  8211. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  8212. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  8213. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  8214. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  8215. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  8216. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  8217. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  8218. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  8219. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  8220. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  8221. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  8222. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  8223. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  8224. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  8225. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  8226. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  8227. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  8228. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  8229. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  8230. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  8231. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  8232. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  8233. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  8234. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  8235. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  8236. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  8237. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  8238. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  8239. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  8240. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  8241. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  8242. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  8243. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  8244. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  8245. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  8246. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  8247. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  8248. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  8249. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  8250. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  8251. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  8252. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  8253. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  8254. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  8255. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  8256. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  8257. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  8258. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  8259. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  8260. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  8261. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  8262. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  8263. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  8264. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  8265. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  8266. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  8267. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  8268. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  8269. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  8270. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  8271. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  8272. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  8273. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  8274. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  8275. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  8276. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  8277. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  8278. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  8279. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  8280. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  8281. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  8282. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  8283. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  8284. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  8285. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  8286. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  8287. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  8288. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  8289. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  8290. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  8291. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  8292. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  8293. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  8294. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  8295. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  8296. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  8297. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  8298. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  8299. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  8300. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  8301. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  8302. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  8303. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  8304. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  8305. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  8306. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  8307. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  8308. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  8309. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  8310. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  8311. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  8312. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  8313. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  8314. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  8315. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  8316. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  8317. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  8318. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  8319. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  8320. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  8321. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  8322. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  8323. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  8324. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  8325. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  8326. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  8327. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  8328. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  8329. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  8330. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  8331. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  8332. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  8333. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  8334. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  8335. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  8336. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  8337. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  8338. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  8339. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  8340. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  8341. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  8342. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  8343. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  8344. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  8345. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  8346. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  8347. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  8348. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  8349. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  8350. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  8351. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  8352. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  8353. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  8354. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  8355. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  8356. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  8357. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  8358. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  8359. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  8360. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  8361. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  8362. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  8363. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  8364. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  8365. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  8366. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  8367. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  8368. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  8369. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  8370. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  8371. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  8372. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  8373. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  8374. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  8375. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  8376. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  8377. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  8378. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  8379. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  8380. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  8381. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  8382. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  8383. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  8384. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  8385. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  8386. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  8387. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  8388. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  8389. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  8390. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  8391. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  8392. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  8393. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  8394. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  8395. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  8396. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  8397. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  8398. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  8399. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  8400. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  8401. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  8402. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  8403. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  8404. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  8405. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  8406. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  8407. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  8408. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  8409. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  8410. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  8411. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  8412. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  8413. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  8414. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  8415. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  8416. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  8417. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  8418. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  8419. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  8420. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  8421. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  8422. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  8423. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  8424. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  8425. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  8426. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  8427. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  8428. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  8429. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  8430. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  8431. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  8432. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  8433. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  8434. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  8435. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  8436. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  8437. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  8438. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  8439. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  8440. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  8441. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  8442. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  8443. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  8444. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  8445. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  8446. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  8447. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  8448. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  8449. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  8450. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  8451. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  8452. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  8453. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  8454. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  8455. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  8456. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  8457. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  8458. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  8459. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  8460. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  8461. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  8462. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  8463. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  8464. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  8465. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  8466. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  8467. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  8468. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  8469. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  8470. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  8471. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  8472. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  8473. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  8474. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  8475. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  8476. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  8477. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  8478. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  8479. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  8480. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  8481. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  8482. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  8483. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  8484. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  8485. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  8486. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  8487. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  8488. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  8489. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  8490. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  8491. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  8492. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  8493. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  8494. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  8495. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  8496. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  8497. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  8498. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  8499. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  8500. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  8501. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  8502. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  8503. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  8504. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  8505. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  8506. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  8507. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  8508. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  8509. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  8510. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  8511. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  8512. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  8513. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  8514. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  8515. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  8516. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  8517. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  8518. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  8519. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  8520. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  8521. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  8522. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  8523. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  8524. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  8525. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  8526. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  8527. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  8528. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  8529. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  8530. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  8531. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  8532. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  8533. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  8534. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  8535. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  8536. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  8537. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  8538. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  8539. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  8540. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  8541. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  8542. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  8543. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  8544. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  8545. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  8546. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  8547. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  8548. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  8549. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  8550. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  8551. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  8552. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  8553. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  8554. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  8555. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  8556. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  8557. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  8558. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  8559. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  8560. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  8561. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  8562. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  8563. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  8564. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  8565. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  8566. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  8567. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  8568. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  8569. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  8570. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  8571. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  8572. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  8573. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  8574. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  8575. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  8576. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  8577. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  8578. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  8579. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  8580. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  8581. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  8582. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  8583. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  8584. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  8585. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  8586. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  8587. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  8588. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  8589. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  8590. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  8591. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  8592. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  8593. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  8594. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  8595. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  8596. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  8597. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  8598. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  8599. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  8600. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  8601. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  8602. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  8603. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  8604. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  8605. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  8606. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  8607. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  8608. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  8609. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  8610. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  8611. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  8612. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  8613. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  8614. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  8615. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  8616. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  8617. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  8618. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  8619. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  8620. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  8621. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  8622. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  8623. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  8624. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  8625. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  8626. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  8627. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  8628. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  8629. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  8630. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  8631. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  8632. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  8633. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  8634. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  8635. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  8636. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  8637. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  8638. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  8639. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  8640. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  8641. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  8642. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  8643. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  8644. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  8645. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  8646. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  8647. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  8648. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  8649. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  8650. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  8651. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  8652. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  8653. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  8654. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  8655. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  8656. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  8657. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  8658. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  8659. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  8660. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  8661. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  8662. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  8663. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  8664. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  8665. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  8666. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  8667. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  8668. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  8669. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  8670. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  8671. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  8672. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  8673. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  8674. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  8675. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  8676. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  8677. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  8678. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  8679. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  8680. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  8681. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  8682. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  8683. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  8684. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  8685. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  8686. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  8687. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  8688. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  8689. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  8690. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  8691. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  8692. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  8693. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  8694. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  8695. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  8696. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  8697. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  8698. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  8699. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  8700. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  8701. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  8702. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  8703. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  8704. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  8705. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  8706. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  8707. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  8708. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  8709. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  8710. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  8711. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  8712. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  8713. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  8714. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  8715. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  8716. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  8717. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  8718. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  8719. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  8720. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  8721. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  8722. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  8723. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  8724. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  8725. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  8726. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  8727. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  8728. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  8729. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  8730. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  8731. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  8732. {f: 6, c: 55198}],
  8733. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  8734. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  8735. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  8736. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  8737. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  8738. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  8739. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  8740. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  8741. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  8742. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  8743. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  8744. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  8745. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  8746. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  8747. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  8748. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  8749. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  8750. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  8751. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  8752. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  8753. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  8754. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  8755. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  8756. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  8757. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  8758. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  8759. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  8760. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  8761. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  8762. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  8763. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  8764. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  8765. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  8766. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  8767. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  8768. [12057, 21353, 63192], [12059, 21430, 63193],
  8769. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  8770. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  8771. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  8772. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  8773. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  8774. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  8775. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  8776. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  8777. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  8778. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  8779. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  8780. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  8781. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  8782. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  8783. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  8784. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  8785. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  8786. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  8787. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  8788. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  8789. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  8790. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  8791. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  8792. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  8793. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  8794. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  8795. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  8796. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  8797. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  8798. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  8799. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  8800. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  8801. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  8802. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  8803. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  8804. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  8805. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  8806. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  8807. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  8808. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  8809. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  8810. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  8811. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  8812. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  8813. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  8814. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  8815. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  8816. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  8817. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  8818. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  8819. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  8820. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  8821. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  8822. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  8823. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  8824. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  8825. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  8826. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  8827. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  8828. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  8829. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  8830. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  8831. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  8832. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  8833. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  8834. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  8835. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  8836. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  8837. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  8838. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  8839. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  8840. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  8841. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  8842. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  8843. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  8844. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  8845. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  8846. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  8847. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  8848. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  8849. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  8850. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  8851. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  8852. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  8853. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  8854. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  8855. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  8856. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  8857. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  8858. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  8859. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  8860. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  8861. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  8862. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  8863. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  8864. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  8865. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  8866. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  8867. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  8868. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  8869. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  8870. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  8871. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  8872. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  8873. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  8874. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  8875. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  8876. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  8877. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  8878. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  8879. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  8880. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  8881. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  8882. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  8883. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  8884. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  8885. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  8886. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  8887. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  8888. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  8889. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  8890. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  8891. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  8892. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  8893. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  8894. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  8895. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  8896. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  8897. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  8898. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  8899. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  8900. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  8901. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  8902. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  8903. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  8904. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  8905. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  8906. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  8907. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  8908. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  8909. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  8910. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  8911. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  8912. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  8913. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  8914. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  8915. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  8916. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  8917. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  8918. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  8919. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  8920. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  8921. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  8922. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  8923. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  8924. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  8925. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  8926. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  8927. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  8928. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  8929. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  8930. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  8931. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  8932. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  8933. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  8934. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  8935. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  8936. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  8937. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  8938. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  8939. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  8940. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  8941. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  8942. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  8943. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  8944. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  8945. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  8946. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  8947. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  8948. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  8949. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  8950. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  8951. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  8952. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  8953. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  8954. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  8955. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  8956. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  8957. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  8958. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  8959. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  8960. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  8961. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  8962. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  8963. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  8964. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  8965. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  8966. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  8967. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  8968. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  8969. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  8970. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  8971. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  8972. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  8973. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  8974. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  8975. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  8976. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  8977. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  8978. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  8979. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  8980. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  8981. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  8982. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  8983. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  8984. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  8985. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  8986. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  8987. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  8988. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  8989. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  8990. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  8991. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  8992. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  8993. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  8994. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  8995. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  8996. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  8997. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  8998. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  8999. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  9000. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  9001. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  9002. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  9003. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  9004. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  9005. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  9006. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  9007. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  9008. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  9009. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  9010. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  9011. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  9012. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  9013. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  9014. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  9015. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  9016. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  9017. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  9018. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  9019. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  9020. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  9021. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  9022. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  9023. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  9024. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  9025. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  9026. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  9027. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  9028. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  9029. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  9030. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  9031. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  9032. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  9033. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  9034. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  9035. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  9036. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  9037. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  9038. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  9039. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  9040. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  9041. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  9042. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  9043. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  9044. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  9045. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  9046. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  9047. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  9048. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  9049. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  9050. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  9051. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  9052. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  9053. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  9054. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  9055. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  9056. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  9057. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  9058. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  9059. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  9060. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  9061. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  9062. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  9063. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  9064. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  9065. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  9066. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  9067. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  9068. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  9069. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  9070. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  9071. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  9072. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  9073. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  9074. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  9075. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  9076. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  9077. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  9078. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  9079. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  9080. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  9081. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  9082. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  9083. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  9084. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  9085. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  9086. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  9087. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  9088. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  9089. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  9090. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  9091. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  9092. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  9093. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  9094. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  9095. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  9096. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  9097. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  9098. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  9099. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  9100. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  9101. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  9102. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  9103. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  9104. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  9105. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  9106. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  9107. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  9108. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  9109. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  9110. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  9111. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  9112. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  9113. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  9114. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  9115. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  9116. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  9117. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  9118. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  9119. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  9120. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  9121. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  9122. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  9123. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  9124. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  9125. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  9126. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  9127. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  9128. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  9129. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  9130. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  9131. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  9132. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  9133. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  9134. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  9135. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  9136. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  9137. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  9138. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  9139. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  9140. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  9141. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  9142. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  9143. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  9144. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  9145. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  9146. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  9147. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  9148. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  9149. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  9150. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  9151. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  9152. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  9153. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  9154. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  9155. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  9156. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  9157. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  9158. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  9159. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  9160. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  9161. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  9162. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  9163. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  9164. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  9165. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  9166. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  9167. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  9168. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  9169. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  9170. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  9171. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  9172. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  9173. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  9174. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  9175. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  9176. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  9177. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  9178. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  9179. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  9180. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  9181. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  9182. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  9183. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  9184. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  9185. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  9186. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  9187. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  9188. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  9189. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  9190. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  9191. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  9192. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  9193. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  9194. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  9195. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  9196. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  9197. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  9198. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  9199. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  9200. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  9201. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  9202. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  9203. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  9204. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  9205. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  9206. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  9207. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  9208. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  9209. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  9210. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  9211. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  9212. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  9213. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  9214. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  9215. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  9216. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  9217. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  9218. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  9219. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  9220. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  9221. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  9222. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  9223. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  9224. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  9225. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  9226. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  9227. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  9228. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  9229. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  9230. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  9231. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  9232. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  9233. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  9234. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  9235. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  9236. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  9237. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  9238. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  9239. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  9240. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  9241. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  9242. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  9243. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  9244. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  9245. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  9246. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  9247. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  9248. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  9249. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  9250. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  9251. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  9252. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  9253. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  9254. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  9255. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  9256. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  9257. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  9258. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  9259. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  9260. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  9261. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  9262. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  9263. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  9264. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  9265. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  9266. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  9267. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  9268. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  9269. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  9270. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  9271. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  9272. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  9273. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  9274. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  9275. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  9276. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  9277. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  9278. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  9279. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  9280. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  9281. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  9282. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  9283. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  9284. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  9285. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  9286. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  9287. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  9288. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  9289. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  9290. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  9291. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  9292. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  9293. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  9294. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  9295. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  9296. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  9297. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  9298. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  9299. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  9300. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  9301. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  9302. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  9303. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  9304. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  9305. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  9306. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  9307. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  9308. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  9309. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  9310. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  9311. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  9312. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  9313. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  9314. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  9315. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  9316. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  9317. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  9318. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  9319. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  9320. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  9321. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  9322. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  9323. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  9324. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  9325. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  9326. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  9327. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  9328. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  9329. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  9330. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  9331. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  9332. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  9333. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  9334. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  9335. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  9336. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  9337. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  9338. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  9339. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  9340. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  9341. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  9342. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  9343. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  9344. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  9345. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  9346. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  9347. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  9348. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  9349. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  9350. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  9351. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  9352. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  9353. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  9354. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  9355. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  9356. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  9357. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  9358. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  9359. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  9360. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  9361. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  9362. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  9363. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  9364. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  9365. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  9366. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  9367. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  9368. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  9369. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  9370. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  9371. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  9372. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  9373. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  9374. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  9375. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  9376. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  9377. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  9378. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  9379. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  9380. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  9381. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  9382. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  9383. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  9384. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  9385. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  9386. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  9387. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  9388. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  9389. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  9390. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  9391. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  9392. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  9393. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  9394. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  9395. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  9396. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  9397. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  9398. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  9399. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  9400. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  9401. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  9402. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  9403. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  9404. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  9405. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  9406. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  9407. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  9408. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  9409. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  9410. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  9411. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  9412. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  9413. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  9414. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  9415. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  9416. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  9417. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  9418. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  9419. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  9420. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  9421. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  9422. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  9423. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  9424. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  9425. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  9426. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  9427. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  9428. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  9429. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  9430. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  9431. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  9432. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  9433. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  9434. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  9435. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  9436. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  9437. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  9438. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  9439. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  9440. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  9441. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  9442. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  9443. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  9444. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  9445. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  9446. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  9447. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  9448. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  9449. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  9450. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  9451. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  9452. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  9453. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  9454. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  9455. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  9456. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  9457. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  9458. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  9459. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  9460. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  9461. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  9462. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  9463. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  9464. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  9465. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  9466. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  9467. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  9468. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  9469. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  9470. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  9471. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  9472. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  9473. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  9474. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  9475. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  9476. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  9477. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  9478. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  9479. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  9480. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  9481. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  9482. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  9483. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  9484. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  9485. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  9486. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  9487. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  9488. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  9489. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  9490. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  9491. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  9492. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  9493. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  9494. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  9495. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  9496. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  9497. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  9498. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  9499. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  9500. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  9501. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  9502. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  9503. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  9504. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  9505. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  9506. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  9507. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  9508. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  9509. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  9510. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  9511. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  9512. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  9513. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  9514. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  9515. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  9516. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  9517. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  9518. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  9519. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  9520. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  9521. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  9522. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  9523. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  9524. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  9525. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  9526. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  9527. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  9528. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  9529. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  9530. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  9531. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  9532. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  9533. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  9534. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  9535. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  9536. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  9537. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  9538. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  9539. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  9540. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  9541. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  9542. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  9543. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  9544. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  9545. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  9546. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  9547. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  9548. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  9549. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  9550. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  9551. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  9552. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  9553. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  9554. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  9555. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  9556. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  9557. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  9558. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  9559. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  9560. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  9561. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  9562. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  9563. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  9564. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  9565. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  9566. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  9567. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  9568. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  9569. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  9570. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  9571. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  9572. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  9573. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  9574. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  9575. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  9576. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  9577. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  9578. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  9579. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  9580. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  9581. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  9582. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  9583. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  9584. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  9585. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  9586. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  9587. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  9588. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  9589. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  9590. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  9591. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  9592. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  9593. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  9594. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  9595. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  9596. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  9597. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  9598. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  9599. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  9600. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  9601. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  9602. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  9603. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  9604. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  9605. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  9606. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  9607. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  9608. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  9609. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  9610. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  9611. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  9612. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  9613. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  9614. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  9615. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  9616. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  9617. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  9618. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  9619. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  9620. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  9621. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  9622. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  9623. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  9624. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  9625. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  9626. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  9627. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  9628. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  9629. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  9630. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  9631. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  9632. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  9633. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  9634. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  9635. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  9636. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  9637. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  9638. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  9639. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  9640. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  9641. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  9642. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  9643. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  9644. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  9645. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  9646. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  9647. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  9648. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  9649. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  9650. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  9651. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  9652. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  9653. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  9654. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  9655. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  9656. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  9657. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  9658. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  9659. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  9660. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  9661. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  9662. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  9663. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  9664. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  9665. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  9666. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  9667. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  9668. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  9669. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  9670. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  9671. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  9672. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  9673. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  9674. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  9675. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  9676. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  9677. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  9678. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  9679. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  9680. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  9681. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  9682. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  9683. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  9684. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  9685. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  9686. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  9687. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  9688. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  9689. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  9690. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  9691. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  9692. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  9693. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  9694. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  9695. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  9696. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  9697. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  9698. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  9699. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  9700. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  9701. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  9702. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  9703. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  9704. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  9705. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  9706. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  9707. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  9708. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  9709. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  9710. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  9711. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  9712. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  9713. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  9714. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  9715. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  9716. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  9717. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  9718. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  9719. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  9720. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  9721. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  9722. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  9723. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  9724. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  9725. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  9726. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  9727. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  9728. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  9729. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  9730. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  9731. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  9732. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  9733. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  9734. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  9735. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  9736. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  9737. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  9738. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  9739. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  9740. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  9741. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  9742. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  9743. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  9744. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  9745. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  9746. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  9747. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  9748. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  9749. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  9750. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  9751. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  9752. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  9753. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  9754. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  9755. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  9756. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  9757. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  9758. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  9759. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  9760. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  9761. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  9762. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  9763. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  9764. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  9765. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  9766. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  9767. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  9768. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  9769. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  9770. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  9771. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  9772. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  9773. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  9774. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  9775. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  9776. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  9777. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  9778. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  9779. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  9780. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  9781. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  9782. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  9783. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  9784. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  9785. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  9786. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  9787. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  9788. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  9789. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  9790. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  9791. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  9792. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  9793. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  9794. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  9795. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  9796. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  9797. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  9798. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  9799. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  9800. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  9801. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  9802. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  9803. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  9804. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  9805. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  9806. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  9807. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  9808. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  9809. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  9810. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  9811. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  9812. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  9813. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  9814. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  9815. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  9816. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  9817. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  9818. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  9819. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  9820. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  9821. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  9822. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  9823. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  9824. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  9825. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  9826. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  9827. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  9828. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  9829. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  9830. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  9831. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  9832. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  9833. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  9834. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  9835. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  9836. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  9837. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  9838. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  9839. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  9840. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  9841. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  9842. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  9843. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  9844. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  9845. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  9846. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  9847. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  9848. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  9849. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  9850. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  9851. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  9852. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  9853. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  9854. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  9855. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  9856. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  9857. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  9858. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  9859. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  9860. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  9861. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  9862. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  9863. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  9864. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  9865. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  9866. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  9867. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  9868. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  9869. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  9870. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  9871. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  9872. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  9873. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  9874. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  9875. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  9876. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  9877. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  9878. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  9879. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  9880. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  9881. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  9882. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  9883. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  9884. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  9885. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  9886. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  9887. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  9888. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  9889. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  9890. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  9891. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  9892. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  9893. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  9894. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  9895. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  9896. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  9897. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  9898. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  9899. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  9900. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  9901. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  9902. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  9903. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  9904. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  9905. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  9906. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  9907. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  9908. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  9909. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  9910. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  9911. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  9912. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  9913. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  9914. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  9915. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  9916. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  9917. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  9918. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  9919. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  9920. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  9921. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  9922. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  9923. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  9924. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  9925. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  9926. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  9927. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  9928. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  9929. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  9930. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  9931. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  9932. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  9933. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  9934. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  9935. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  9936. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  9937. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  9938. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  9939. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  9940. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  9941. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  9942. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  9943. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  9944. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  9945. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  9946. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  9947. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  9948. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  9949. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  9950. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  9951. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  9952. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  9953. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  9954. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  9955. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  9956. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  9957. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  9958. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  9959. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  9960. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  9961. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  9962. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  9963. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  9964. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  9965. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  9966. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  9967. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  9968. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  9969. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  9970. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  9971. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  9972. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  9973. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  9974. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  9975. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  9976. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  9977. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  9978. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  9979. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  9980. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  9981. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  9982. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  9983. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  9984. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  9985. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  9986. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  9987. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  9988. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  9989. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  9990. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  9991. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  9992. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  9993. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  9994. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  9995. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  9996. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  9997. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  9998. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  9999. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  10000. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  10001. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  10002. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  10003. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  10004. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  10005. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  10006. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  10007. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  10008. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  10009. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  10010. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  10011. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  10012. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  10013. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  10014. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  10015. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  10016. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  10017. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  10018. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  10019. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  10020. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  10021. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  10022. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  10023. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  10024. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  10025. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  10026. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  10027. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  10028. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  10029. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  10030. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  10031. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  10032. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  10033. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  10034. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  10035. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  10036. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  10037. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  10038. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  10039. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  10040. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  10041. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  10042. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  10043. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  10044. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  10045. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  10046. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  10047. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  10048. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  10049. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  10050. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  10051. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  10052. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  10053. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  10054. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  10055. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  10056. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  10057. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  10058. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  10059. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  10060. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  10061. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  10062. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  10063. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  10064. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  10065. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  10066. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  10067. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  10068. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  10069. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  10070. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  10071. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  10072. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  10073. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  10074. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  10075. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  10076. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  10077. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  10078. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  10079. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  10080. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  10081. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  10082. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  10083. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  10084. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  10085. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  10086. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  10087. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  10088. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  10089. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  10090. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  10091. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  10092. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  10093. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  10094. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  10095. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  10096. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  10097. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  10098. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  10099. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  10100. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  10101. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  10102. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  10103. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  10104. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  10105. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  10106. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  10107. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  10108. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  10109. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  10110. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  10111. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  10112. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  10113. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  10114. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  10115. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  10116. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  10117. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  10118. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  10119. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  10120. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  10121. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  10122. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  10123. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  10124. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  10125. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  10126. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  10127. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  10128. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  10129. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  10130. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  10131. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  10132. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  10133. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  10134. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  10135. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  10136. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  10137. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  10138. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  10139. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  10140. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  10141. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  10142. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  10143. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  10144. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  10145. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  10146. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  10147. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  10148. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  10149. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  10150. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  10151. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  10152. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  10153. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  10154. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  10155. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  10156. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  10157. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  10158. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  10159. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  10160. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  10161. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  10162. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  10163. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  10164. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  10165. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  10166. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  10167. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  10168. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  10169. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  10170. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  10171. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  10172. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  10173. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  10174. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  10175. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  10176. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  10177. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  10178. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  10179. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  10180. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  10181. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  10182. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  10183. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  10184. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  10185. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  10186. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  10187. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  10188. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  10189. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  10190. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  10191. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  10192. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  10193. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  10194. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  10195. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  10196. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  10197. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  10198. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  10199. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  10200. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  10201. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  10202. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  10203. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  10204. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  10205. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  10206. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  10207. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  10208. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  10209. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  10210. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  10211. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  10212. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  10213. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  10214. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  10215. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  10216. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  10217. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  10218. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  10219. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  10220. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  10221. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  10222. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  10223. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  10224. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  10225. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  10226. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  10227. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  10228. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  10229. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  10230. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  10231. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  10232. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  10233. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  10234. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  10235. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  10236. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  10237. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  10238. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  10239. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  10240. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  10241. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  10242. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  10243. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  10244. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  10245. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  10246. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  10247. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  10248. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  10249. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  10250. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  10251. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  10252. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  10253. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  10254. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  10255. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  10256. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  10257. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  10258. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  10259. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  10260. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  10261. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  10262. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  10263. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  10264. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  10265. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  10266. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  10267. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  10268. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  10269. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  10270. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  10271. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  10272. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  10273. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  10274. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  10275. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  10276. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  10277. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  10278. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  10279. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  10280. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  10281. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  10282. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  10283. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  10284. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  10285. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  10286. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  10287. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  10288. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  10289. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  10290. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  10291. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  10292. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  10293. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  10294. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  10295. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  10296. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  10297. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  10298. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  10299. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  10300. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  10301. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  10302. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  10303. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  10304. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  10305. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  10306. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  10307. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  10308. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  10309. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  10310. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  10311. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  10312. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  10313. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  10314. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  10315. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  10316. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  10317. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  10318. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  10319. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  10320. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  10321. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  10322. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  10323. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  10324. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  10325. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  10326. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  10327. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  10328. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  10329. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  10330. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  10331. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  10332. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  10333. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  10334. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  10335. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  10336. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  10337. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  10338. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  10339. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  10340. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  10341. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  10342. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  10343. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  10344. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  10345. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  10346. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  10347. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  10348. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  10349. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  10350. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  10351. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  10352. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  10353. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  10354. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  10355. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  10356. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  10357. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  10358. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  10359. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  10360. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  10361. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  10362. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  10363. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  10364. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  10365. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  10366. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  10367. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  10368. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  10369. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  10370. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  10371. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  10372. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  10373. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  10374. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  10375. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  10376. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  10377. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  10378. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  10379. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  10380. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  10381. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  10382. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  10383. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  10384. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  10385. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  10386. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  10387. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  10388. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  10389. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  10390. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  10391. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  10392. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  10393. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  10394. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  10395. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  10396. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  10397. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  10398. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  10399. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  10400. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  10401. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  10402. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  10403. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  10404. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  10405. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  10406. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  10407. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  10408. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  10409. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  10410. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  10411. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  10412. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  10413. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  10414. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  10415. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  10416. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  10417. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  10418. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  10419. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  10420. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  10421. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  10422. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  10423. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  10424. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  10425. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  10426. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  10427. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  10428. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  10429. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  10430. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  10431. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  10432. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  10433. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  10434. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  10435. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  10436. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  10437. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  10438. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  10439. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  10440. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  10441. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  10442. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  10443. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  10444. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  10445. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  10446. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  10447. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  10448. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  10449. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  10450. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  10451. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  10452. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  10453. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  10454. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  10455. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  10456. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  10457. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  10458. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  10459. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  10460. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  10461. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  10462. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  10463. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  10464. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  10465. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  10466. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  10467. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  10468. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  10469. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  10470. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  10471. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  10472. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  10473. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  10474. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  10475. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  10476. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  10477. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  10478. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  10479. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  10480. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  10481. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  10482. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  10483. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  10484. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  10485. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  10486. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  10487. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  10488. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  10489. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  10490. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  10491. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  10492. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  10493. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  10494. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  10495. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  10496. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  10497. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  10498. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  10499. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  10500. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  10501. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  10502. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  10503. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  10504. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  10505. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  10506. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  10507. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  10508. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  10509. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  10510. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  10511. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  10512. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  10513. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  10514. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  10515. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  10516. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  10517. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  10518. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  10519. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  10520. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  10521. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  10522. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  10523. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  10524. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  10525. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  10526. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  10527. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  10528. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  10529. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  10530. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  10531. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  10532. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  10533. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  10534. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  10535. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  10536. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  10537. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  10538. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  10539. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  10540. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  10541. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  10542. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  10543. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  10544. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  10545. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  10546. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  10547. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  10548. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  10549. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  10550. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  10551. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  10552. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  10553. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  10554. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  10555. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  10556. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  10557. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  10558. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  10559. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  10560. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  10561. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  10562. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  10563. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  10564. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  10565. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  10566. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  10567. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  10568. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  10569. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  10570. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  10571. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  10572. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  10573. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  10574. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  10575. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  10576. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  10577. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  10578. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  10579. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  10580. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  10581. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  10582. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  10583. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  10584. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  10585. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  10586. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  10587. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  10588. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  10589. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  10590. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  10591. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  10592. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  10593. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  10594. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  10595. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  10596. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  10597. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  10598. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  10599. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  10600. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  10601. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  10602. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  10603. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  10604. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  10605. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  10606. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  10607. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  10608. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  10609. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  10610. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  10611. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  10612. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  10613. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  10614. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  10615. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  10616. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  10617. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  10618. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  10619. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  10620. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  10621. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  10622. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  10623. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  10624. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  10625. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  10626. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  10627. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  10628. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  10629. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  10630. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  10631. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  10632. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  10633. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  10634. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  10635. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  10636. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  10637. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  10638. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  10639. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  10640. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  10641. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  10642. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  10643. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  10644. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  10645. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  10646. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  10647. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  10648. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  10649. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  10650. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  10651. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  10652. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  10653. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  10654. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  10655. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  10656. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  10657. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  10658. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  10659. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  10660. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  10661. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  10662. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  10663. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  10664. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  10665. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  10666. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  10667. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  10668. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  10669. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  10670. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  10671. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  10672. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  10673. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  10674. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  10675. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  10676. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  10677. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  10678. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  10679. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  10680. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  10681. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  10682. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  10683. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  10684. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  10685. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  10686. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  10687. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  10688. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  10689. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  10690. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  10691. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  10692. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  10693. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  10694. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  10695. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  10696. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  10697. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  10698. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  10699. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  10700. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  10701. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  10702. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  10703. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  10704. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  10705. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  10706. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  10707. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  10708. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  10709. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  10710. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  10711. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  10712. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  10713. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  10714. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  10715. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  10716. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  10717. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  10718. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  10719. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  10720. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  10721. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  10722. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  10723. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  10724. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  10725. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  10726. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  10727. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  10728. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  10729. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  10730. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  10731. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  10732. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  10733. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  10734. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  10735. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  10736. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  10737. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  10738. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  10739. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  10740. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  10741. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  10742. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  10743. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  10744. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  10745. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  10746. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  10747. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  10748. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  10749. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  10750. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  10751. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  10752. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  10753. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  10754. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  10755. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  10756. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  10757. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  10758. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  10759. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  10760. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  10761. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  10762. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  10763. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  10764. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  10765. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  10766. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  10767. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  10768. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  10769. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  10770. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  10771. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  10772. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  10773. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  10774. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  10775. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  10776. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  10777. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  10778. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  10779. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  10780. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  10781. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  10782. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  10783. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  10784. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  10785. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  10786. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  10787. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  10788. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  10789. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  10790. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  10791. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  10792. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  10793. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  10794. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  10795. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  10796. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  10797. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  10798. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  10799. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  10800. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  10801. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  10802. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  10803. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  10804. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  10805. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  10806. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  10807. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  10808. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  10809. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  10810. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  10811. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  10812. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  10813. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  10814. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  10815. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  10816. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  10817. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  10818. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  10819. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  10820. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  10821. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  10822. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  10823. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  10824. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  10825. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  10826. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  10827. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  10828. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  10829. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  10830. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  10831. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  10832. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  10833. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  10834. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  10835. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  10836. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  10837. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  10838. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  10839. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  10840. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  10841. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  10842. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  10843. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  10844. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  10845. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  10846. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  10847. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  10848. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  10849. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  10850. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  10851. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  10852. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  10853. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  10854. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  10855. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  10856. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  10857. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  10858. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  10859. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  10860. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  10861. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  10862. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  10863. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  10864. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  10865. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  10866. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  10867. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  10868. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  10869. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  10870. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  10871. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  10872. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  10873. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  10874. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  10875. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  10876. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  10877. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  10878. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  10879. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  10880. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  10881. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  10882. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  10883. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  10884. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  10885. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  10886. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  10887. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  10888. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  10889. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  10890. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  10891. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  10892. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  10893. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  10894. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  10895. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  10896. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  10897. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  10898. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  10899. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  10900. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  10901. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  10902. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  10903. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  10904. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  10905. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  10906. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  10907. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  10908. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  10909. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  10910. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  10911. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  10912. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  10913. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  10914. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  10915. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  10916. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  10917. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  10918. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  10919. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  10920. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  10921. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  10922. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  10923. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  10924. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  10925. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  10926. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  10927. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  10928. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  10929. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  10930. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  10931. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  10932. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  10933. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  10934. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  10935. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  10936. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  10937. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  10938. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  10939. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  10940. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  10941. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  10942. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  10943. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  10944. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  10945. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  10946. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  10947. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  10948. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  10949. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  10950. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  10951. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  10952. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  10953. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  10954. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  10955. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  10956. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  10957. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  10958. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  10959. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  10960. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  10961. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  10962. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  10963. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  10964. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  10965. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  10966. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  10967. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  10968. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  10969. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  10970. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  10971. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  10972. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  10973. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  10974. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  10975. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  10976. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  10977. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  10978. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  10979. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  10980. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  10981. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  10982. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  10983. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  10984. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  10985. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  10986. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  10987. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  10988. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  10989. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  10990. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  10991. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  10992. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  10993. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  10994. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  10995. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  10996. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  10997. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  10998. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  10999. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  11000. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  11001. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  11002. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  11003. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  11004. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  11005. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  11006. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  11007. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  11008. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  11009. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  11010. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  11011. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  11012. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  11013. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  11014. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  11015. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  11016. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  11017. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  11018. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  11019. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  11020. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  11021. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  11022. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  11023. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  11024. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  11025. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  11026. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  11027. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  11028. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  11029. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  11030. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  11031. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  11032. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  11033. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  11034. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  11035. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  11036. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  11037. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  11038. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  11039. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  11040. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  11041. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  11042. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  11043. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  11044. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  11045. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  11046. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  11047. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  11048. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  11049. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  11050. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  11051. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  11052. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  11053. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  11054. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  11055. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  11056. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  11057. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  11058. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  11059. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  11060. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  11061. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  11062. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  11063. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  11064. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  11065. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  11066. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  11067. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  11068. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  11069. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  11070. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  11071. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  11072. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  11073. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  11074. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  11075. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  11076. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  11077. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  11078. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  11079. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  11080. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  11081. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  11082. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  11083. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  11084. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  11085. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  11086. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  11087. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  11088. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  11089. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  11090. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  11091. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  11092. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  11093. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  11094. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  11095. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  11096. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  11097. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  11098. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  11099. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  11100. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  11101. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  11102. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  11103. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  11104. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  11105. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  11106. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  11107. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  11108. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  11109. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  11110. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  11111. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  11112. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  11113. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  11114. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  11115. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  11116. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  11117. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  11118. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  11119. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  11120. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  11121. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  11122. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  11123. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  11124. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  11125. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  11126. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  11127. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  11128. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  11129. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  11130. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  11131. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  11132. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  11133. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  11134. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  11135. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  11136. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  11137. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  11138. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  11139. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  11140. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  11141. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  11142. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  11143. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  11144. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  11145. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  11146. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  11147. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  11148. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  11149. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  11150. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  11151. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  11152. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  11153. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  11154. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  11155. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  11156. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  11157. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  11158. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  11159. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  11160. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  11161. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  11162. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  11163. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  11164. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  11165. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  11166. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  11167. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  11168. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  11169. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  11170. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  11171. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  11172. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  11173. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  11174. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  11175. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  11176. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  11177. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  11178. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  11179. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  11180. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  11181. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  11182. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  11183. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  11184. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  11185. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  11186. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  11187. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  11188. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  11189. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  11190. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  11191. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  11192. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  11193. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  11194. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  11195. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  11196. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  11197. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  11198. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  11199. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  11200. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  11201. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  11202. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  11203. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  11204. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  11205. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  11206. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  11207. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  11208. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  11209. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  11210. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  11211. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  11212. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  11213. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  11214. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  11215. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  11216. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  11217. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  11218. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  11219. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  11220. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  11221. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  11222. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  11223. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  11224. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  11225. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  11226. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  11227. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  11228. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  11229. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  11230. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  11231. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  11232. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  11233. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  11234. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  11235. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  11236. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  11237. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  11238. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  11239. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  11240. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  11241. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  11242. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  11243. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  11244. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  11245. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  11246. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  11247. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  11248. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  11249. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  11250. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  11251. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  11252. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  11253. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  11254. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  11255. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  11256. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  11257. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  11258. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  11259. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  11260. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  11261. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  11262. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  11263. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  11264. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  11265. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  11266. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  11267. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  11268. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  11269. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  11270. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  11271. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  11272. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  11273. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  11274. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  11275. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  11276. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  11277. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  11278. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  11279. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  11280. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  11281. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  11282. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  11283. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  11284. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  11285. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  11286. 23446, 62959, 32347],
  11287. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  11288. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  11289. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  11290. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  11291. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  11292. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  11293. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  11294. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  11295. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  11296. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  11297. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  11298. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  11299. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  11300. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  11301. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  11302. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  11303. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  11304. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  11305. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  11306. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  11307. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  11308. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  11309. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  11310. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  11311. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  11312. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  11313. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  11314. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  11315. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  11316. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  11317. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  11318. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  11319. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  11320. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  11321. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  11322. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  11323. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  11324. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  11325. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  11326. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  11327. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  11328. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  11329. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  11330. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  11331. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  11332. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  11333. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  11334. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  11335. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  11336. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  11337. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  11338. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  11339. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  11340. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  11341. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  11342. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  11343. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  11344. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  11345. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  11346. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  11347. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  11348. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  11349. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  11350. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  11351. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  11352. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  11353. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  11354. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  11355. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  11356. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  11357. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  11358. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  11359. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  11360. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  11361. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  11362. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  11363. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  11364. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  11365. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  11366. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  11367. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  11368. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  11369. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  11370. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  11371. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  11372. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  11373. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  11374. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  11375. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  11376. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  11377. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  11378. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  11379. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  11380. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  11381. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  11382. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  11383. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  11384. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  11385. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  11386. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  11387. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  11388. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  11389. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  11390. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  11391. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  11392. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  11393. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  11394. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  11395. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  11396. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  11397. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  11398. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  11399. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  11400. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  11401. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  11402. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  11403. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  11404. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  11405. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  11406. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  11407. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  11408. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  11409. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  11410. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  11411. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  11412. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  11413. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  11414. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  11415. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  11416. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  11417. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  11418. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  11419. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  11420. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  11421. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  11422. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  11423. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  11424. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  11425. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  11426. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  11427. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  11428. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  11429. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  11430. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  11431. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  11432. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  11433. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  11434. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  11435. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  11436. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  11437. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  11438. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  11439. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  11440. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  11441. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  11442. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  11443. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  11444. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  11445. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  11446. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  11447. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  11448. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  11449. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  11450. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  11451. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  11452. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  11453. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  11454. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  11455. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  11456. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  11457. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  11458. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  11459. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  11460. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  11461. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  11462. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  11463. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  11464. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  11465. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  11466. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  11467. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  11468. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  11469. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  11470. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  11471. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  11472. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  11473. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  11474. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  11475. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  11476. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  11477. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  11478. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  11479. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  11480. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  11481. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  11482. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  11483. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  11484. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  11485. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  11486. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  11487. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  11488. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  11489. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  11490. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  11491. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  11492. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  11493. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  11494. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  11495. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  11496. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  11497. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  11498. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  11499. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  11500. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  11501. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  11502. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  11503. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  11504. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  11505. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  11506. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  11507. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  11508. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  11509. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  11510. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  11511. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  11512. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  11513. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  11514. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  11515. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  11516. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  11517. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  11518. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  11519. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  11520. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  11521. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  11522. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  11523. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  11524. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  11525. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  11526. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  11527. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  11528. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  11529. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  11530. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  11531. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  11532. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  11533. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  11534. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  11535. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  11536. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  11537. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  11538. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  11539. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  11540. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  11541. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  11542. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  11543. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  11544. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  11545. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  11546. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  11547. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  11548. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  11549. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  11550. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  11551. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  11552. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  11553. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  11554. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  11555. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  11556. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  11557. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  11558. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  11559. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  11560. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  11561. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  11562. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  11563. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  11564. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  11565. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  11566. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  11567. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  11568. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  11569. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  11570. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  11571. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  11572. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  11573. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  11574. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  11575. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  11576. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  11577. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  11578. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  11579. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  11580. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  11581. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  11582. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  11583. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  11584. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  11585. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  11586. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  11587. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  11588. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  11589. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  11590. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  11591. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  11592. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  11593. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  11594. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  11595. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  11596. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  11597. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  11598. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  11599. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  11600. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  11601. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  11602. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  11603. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  11604. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  11605. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  11606. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  11607. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  11608. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  11609. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  11610. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  11611. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  11612. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  11613. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  11614. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  11615. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  11616. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  11617. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  11618. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  11619. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  11620. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  11621. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  11622. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  11623. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  11624. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  11625. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  11626. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  11627. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  11628. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  11629. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  11630. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  11631. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  11632. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  11633. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  11634. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  11635. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  11636. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  11637. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  11638. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  11639. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  11640. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  11641. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  11642. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  11643. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  11644. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  11645. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  11646. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  11647. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  11648. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  11649. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  11650. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  11651. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  11652. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  11653. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  11654. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  11655. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  11656. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  11657. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  11658. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  11659. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  11660. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  11661. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  11662. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  11663. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  11664. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  11665. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  11666. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  11667. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  11668. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  11669. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  11670. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  11671. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  11672. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  11673. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  11674. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  11675. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  11676. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  11677. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  11678. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  11679. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  11680. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  11681. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  11682. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  11683. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  11684. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  11685. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  11686. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  11687. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  11688. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  11689. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  11690. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  11691. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  11692. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  11693. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  11694. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  11695. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  11696. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  11697. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  11698. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  11699. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  11700. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  11701. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  11702. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  11703. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  11704. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  11705. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  11706. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  11707. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  11708. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  11709. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  11710. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  11711. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  11712. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  11713. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  11714. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  11715. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  11716. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  11717. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  11718. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  11719. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  11720. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  11721. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  11722. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  11723. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  11724. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  11725. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  11726. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  11727. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  11728. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  11729. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  11730. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  11731. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  11732. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  11733. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  11734. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  11735. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  11736. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  11737. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  11738. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  11739. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  11740. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  11741. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  11742. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  11743. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  11744. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  11745. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  11746. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  11747. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  11748. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  11749. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  11750. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  11751. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  11752. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  11753. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  11754. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  11755. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  11756. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  11757. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  11758. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  11759. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  11760. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  11761. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  11762. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  11763. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  11764. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  11765. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  11766. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  11767. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  11768. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  11769. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  11770. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  11771. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  11772. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  11773. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  11774. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  11775. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  11776. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  11777. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  11778. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  11779. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  11780. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  11781. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  11782. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  11783. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  11784. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  11785. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  11786. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  11787. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  11788. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  11789. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  11790. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  11791. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  11792. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  11793. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  11794. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  11795. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  11796. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  11797. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  11798. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  11799. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  11800. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  11801. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  11802. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  11803. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  11804. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  11805. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  11806. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  11807. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  11808. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  11809. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  11810. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  11811. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  11812. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  11813. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  11814. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  11815. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  11816. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  11817. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  11818. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  11819. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  11820. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  11821. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  11822. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  11823. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  11824. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  11825. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  11826. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  11827. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  11828. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  11829. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  11830. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  11831. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  11832. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  11833. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  11834. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  11835. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  11836. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  11837. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  11838. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  11839. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  11840. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  11841. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  11842. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  11843. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  11844. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  11845. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  11846. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  11847. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  11848. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  11849. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  11850. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  11851. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  11852. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  11853. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  11854. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  11855. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  11856. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  11857. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  11858. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  11859. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  11860. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  11861. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  11862. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  11863. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  11864. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  11865. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  11866. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  11867. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  11868. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  11869. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  11870. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  11871. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  11872. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  11873. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  11874. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  11875. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  11876. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  11877. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  11878. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  11879. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  11880. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  11881. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  11882. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  11883. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  11884. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  11885. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  11886. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  11887. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  11888. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  11889. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  11890. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  11891. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  11892. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  11893. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  11894. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  11895. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  11896. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  11897. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  11898. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  11899. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  11900. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  11901. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  11902. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  11903. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  11904. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  11905. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  11906. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  11907. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  11908. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  11909. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  11910. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  11911. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  11912. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  11913. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  11914. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  11915. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  11916. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  11917. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  11918. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  11919. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  11920. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  11921. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  11922. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  11923. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  11924. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  11925. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  11926. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  11927. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  11928. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  11929. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  11930. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  11931. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  11932. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  11933. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  11934. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  11935. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  11936. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  11937. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  11938. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  11939. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  11940. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  11941. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  11942. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  11943. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  11944. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  11945. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  11946. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  11947. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  11948. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  11949. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  11950. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  11951. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  11952. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  11953. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  11954. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  11955. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  11956. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  11957. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  11958. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  11959. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  11960. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  11961. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  11962. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  11963. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  11964. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  11965. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  11966. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  11967. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  11968. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  11969. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  11970. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  11971. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  11972. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  11973. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  11974. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  11975. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  11976. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  11977. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  11978. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  11979. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  11980. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  11981. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  11982. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  11983. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  11984. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  11985. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  11986. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  11987. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  11988. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  11989. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  11990. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  11991. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  11992. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  11993. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  11994. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  11995. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  11996. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  11997. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  11998. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  11999. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  12000. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  12001. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  12002. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  12003. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  12004. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  12005. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  12006. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  12007. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  12008. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  12009. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  12010. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  12011. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  12012. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  12013. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  12014. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  12015. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  12016. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  12017. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  12018. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  12019. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  12020. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  12021. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  12022. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  12023. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  12024. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  12025. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  12026. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  12027. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  12028. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  12029. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  12030. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  12031. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  12032. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  12033. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  12034. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  12035. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  12036. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  12037. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  12038. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  12039. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  12040. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  12041. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  12042. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  12043. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  12044. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  12045. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  12046. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  12047. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  12048. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  12049. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  12050. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  12051. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  12052. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  12053. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  12054. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  12055. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  12056. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  12057. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  12058. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  12059. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  12060. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  12061. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  12062. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  12063. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  12064. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  12065. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  12066. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  12067. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  12068. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  12069. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  12070. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  12071. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  12072. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  12073. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  12074. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  12075. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  12076. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  12077. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  12078. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  12079. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  12080. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  12081. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  12082. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  12083. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  12084. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  12085. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  12086. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  12087. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  12088. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  12089. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  12090. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  12091. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  12092. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  12093. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  12094. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  12095. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  12096. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  12097. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  12098. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  12099. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  12100. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  12101. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  12102. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  12103. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  12104. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  12105. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  12106. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  12107. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  12108. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  12109. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  12110. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  12111. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  12112. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  12113. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  12114. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  12115. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  12116. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  12117. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  12118. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  12119. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  12120. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  12121. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  12122. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  12123. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  12124. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  12125. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  12126. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  12127. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  12128. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  12129. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  12130. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  12131. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  12132. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  12133. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  12134. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  12135. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  12136. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  12137. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  12138. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  12139. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  12140. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  12141. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  12142. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  12143. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  12144. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  12145. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  12146. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  12147. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  12148. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  12149. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  12150. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  12151. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  12152. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  12153. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  12154. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  12155. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  12156. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  12157. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  12158. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  12159. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  12160. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  12161. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  12162. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  12163. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  12164. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  12165. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  12166. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  12167. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  12168. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  12169. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  12170. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  12171. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  12172. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  12173. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  12174. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  12175. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  12176. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  12177. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  12178. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  12179. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  12180. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  12181. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  12182. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  12183. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  12184. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  12185. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  12186. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  12187. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  12188. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  12189. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  12190. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  12191. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  12192. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  12193. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  12194. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  12195. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  12196. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  12197. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  12198. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  12199. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  12200. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  12201. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  12202. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  12203. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  12204. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  12205. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  12206. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  12207. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  12208. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  12209. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  12210. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  12211. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  12212. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  12213. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  12214. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  12215. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  12216. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  12217. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  12218. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  12219. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  12220. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  12221. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  12222. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  12223. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  12224. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  12225. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  12226. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  12227. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  12228. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  12229. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  12230. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  12231. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  12232. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  12233. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  12234. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  12235. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  12236. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  12237. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  12238. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  12239. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  12240. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  12241. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  12242. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  12243. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  12244. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  12245. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  12246. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  12247. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  12248. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  12249. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  12250. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  12251. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  12252. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  12253. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  12254. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  12255. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  12256. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  12257. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  12258. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  12259. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  12260. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  12261. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  12262. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  12263. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  12264. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  12265. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  12266. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  12267. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  12268. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  12269. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  12270. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  12271. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  12272. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  12273. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  12274. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  12275. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  12276. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  12277. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  12278. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  12279. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  12280. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  12281. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  12282. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  12283. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  12284. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  12285. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  12286. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  12287. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  12288. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  12289. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  12290. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  12291. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  12292. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  12293. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  12294. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  12295. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  12296. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  12297. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  12298. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  12299. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  12300. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  12301. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  12302. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  12303. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  12304. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  12305. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  12306. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  12307. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  12308. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  12309. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  12310. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  12311. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  12312. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  12313. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  12314. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  12315. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  12316. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  12317. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  12318. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  12319. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  12320. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  12321. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  12322. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  12323. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  12324. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  12325. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  12326. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  12327. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  12328. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  12329. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  12330. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  12331. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  12332. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  12333. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  12334. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  12335. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  12336. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  12337. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  12338. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  12339. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  12340. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  12341. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  12342. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  12343. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  12344. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  12345. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  12346. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  12347. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  12348. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  12349. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  12350. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  12351. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  12352. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  12353. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  12354. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  12355. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  12356. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  12357. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  12358. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  12359. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  12360. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  12361. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  12362. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  12363. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  12364. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  12365. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  12366. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  12367. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  12368. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  12369. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  12370. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  12371. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  12372. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  12373. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  12374. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  12375. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  12376. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  12377. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  12378. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  12379. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  12380. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  12381. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  12382. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  12383. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  12384. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  12385. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  12386. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  12387. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  12388. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  12389. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  12390. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  12391. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  12392. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  12393. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  12394. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  12395. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  12396. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  12397. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  12398. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  12399. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  12400. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  12401. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  12402. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  12403. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  12404. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  12405. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  12406. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  12407. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  12408. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  12409. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  12410. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  12411. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  12412. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  12413. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  12414. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  12415. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  12416. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  12417. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  12418. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  12419. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  12420. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  12421. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  12422. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  12423. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  12424. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  12425. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  12426. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  12427. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  12428. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  12429. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  12430. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  12431. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  12432. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  12433. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  12434. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  12435. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  12436. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  12437. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  12438. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  12439. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  12440. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  12441. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  12442. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  12443. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  12444. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  12445. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  12446. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  12447. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  12448. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  12449. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  12450. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  12451. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  12452. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  12453. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  12454. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  12455. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  12456. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  12457. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  12458. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  12459. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  12460. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  12461. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  12462. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  12463. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  12464. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  12465. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  12466. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  12467. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  12468. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  12469. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  12470. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  12471. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  12472. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  12473. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  12474. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  12475. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  12476. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  12477. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  12478. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  12479. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  12480. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  12481. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  12482. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  12483. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  12484. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  12485. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  12486. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  12487. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  12488. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  12489. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  12490. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  12491. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  12492. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  12493. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  12494. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  12495. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  12496. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  12497. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  12498. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  12499. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  12500. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  12501. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  12502. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  12503. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  12504. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  12505. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  12506. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  12507. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  12508. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  12509. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  12510. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  12511. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  12512. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  12513. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  12514. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  12515. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  12516. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  12517. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  12518. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  12519. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  12520. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  12521. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  12522. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  12523. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  12524. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  12525. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  12526. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  12527. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  12528. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  12529. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  12530. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  12531. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  12532. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  12533. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  12534. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  12535. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  12536. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  12537. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  12538. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  12539. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  12540. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  12541. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  12542. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  12543. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  12544. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  12545. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  12546. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  12547. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  12548. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  12549. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  12550. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  12551. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  12552. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  12553. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  12554. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  12555. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  12556. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  12557. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  12558. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  12559. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  12560. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  12561. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  12562. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  12563. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  12564. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  12565. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  12566. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  12567. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  12568. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  12569. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  12570. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  12571. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  12572. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  12573. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  12574. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  12575. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  12576. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  12577. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  12578. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  12579. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  12580. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  12581. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  12582. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  12583. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  12584. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  12585. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  12586. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  12587. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  12588. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  12589. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  12590. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  12591. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  12592. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  12593. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  12594. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  12595. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  12596. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  12597. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  12598. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  12599. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  12600. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  12601. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  12602. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  12603. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  12604. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  12605. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  12606. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  12607. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  12608. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  12609. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  12610. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  12611. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  12612. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  12613. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  12614. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  12615. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  12616. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  12617. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  12618. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  12619. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  12620. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  12621. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  12622. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  12623. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  12624. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  12625. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  12626. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  12627. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  12628. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  12629. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  12630. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  12631. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  12632. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  12633. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  12634. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  12635. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  12636. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  12637. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  12638. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  12639. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  12640. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  12641. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  12642. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  12643. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  12644. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  12645. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  12646. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  12647. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  12648. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  12649. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  12650. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  12651. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  12652. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  12653. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  12654. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  12655. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  12656. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  12657. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  12658. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  12659. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  12660. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  12661. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  12662. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  12663. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  12664. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  12665. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  12666. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  12667. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  12668. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  12669. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  12670. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  12671. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  12672. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  12673. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  12674. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  12675. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  12676. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  12677. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  12678. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  12679. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  12680. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  12681. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  12682. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  12683. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  12684. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  12685. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  12686. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  12687. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  12688. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  12689. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  12690. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  12691. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  12692. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  12693. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  12694. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  12695. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  12696. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  12697. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  12698. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  12699. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  12700. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  12701. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  12702. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  12703. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  12704. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  12705. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  12706. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  12707. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  12708. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  12709. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  12710. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  12711. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  12712. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  12713. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  12714. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  12715. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  12716. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  12717. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  12718. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  12719. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  12720. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  12721. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  12722. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  12723. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  12724. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  12725. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  12726. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  12727. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  12728. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  12729. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  12730. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  12731. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  12732. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  12733. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  12734. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  12735. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  12736. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  12737. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  12738. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  12739. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  12740. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  12741. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  12742. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  12743. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  12744. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  12745. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  12746. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  12747. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  12748. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  12749. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  12750. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  12751. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  12752. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  12753. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  12754. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  12755. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  12756. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  12757. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  12758. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  12759. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  12760. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  12761. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  12762. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  12763. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  12764. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  12765. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  12766. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  12767. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  12768. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  12769. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  12770. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  12771. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  12772. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  12773. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  12774. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  12775. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  12776. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  12777. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  12778. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  12779. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  12780. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  12781. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  12782. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  12783. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  12784. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  12785. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  12786. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  12787. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  12788. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  12789. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  12790. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  12791. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  12792. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  12793. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  12794. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  12795. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  12796. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  12797. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  12798. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  12799. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  12800. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  12801. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  12802. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  12803. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  12804. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  12805. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  12806. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  12807. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  12808. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  12809. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  12810. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  12811. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  12812. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  12813. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  12814. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  12815. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  12816. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  12817. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  12818. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  12819. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  12820. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  12821. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  12822. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  12823. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  12824. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  12825. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  12826. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  12827. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  12828. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  12829. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  12830. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  12831. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  12832. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  12833. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  12834. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  12835. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  12836. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  12837. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  12838. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  12839. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  12840. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  12841. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  12842. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  12843. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  12844. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  12845. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  12846. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  12847. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  12848. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  12849. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  12850. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  12851. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  12852. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  12853. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  12854. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  12855. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  12856. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  12857. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  12858. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  12859. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  12860. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  12861. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  12862. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  12863. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  12864. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  12865. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  12866. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  12867. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  12868. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  12869. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  12870. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  12871. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  12872. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  12873. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  12874. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  12875. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  12876. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  12877. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  12878. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  12879. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  12880. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  12881. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  12882. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  12883. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  12884. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  12885. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  12886. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  12887. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  12888. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  12889. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  12890. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  12891. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  12892. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  12893. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  12894. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  12895. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  12896. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  12897. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  12898. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  12899. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  12900. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  12901. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  12902. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  12903. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  12904. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  12905. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  12906. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  12907. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  12908. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  12909. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  12910. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  12911. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  12912. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  12913. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  12914. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  12915. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  12916. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  12917. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  12918. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  12919. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  12920. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  12921. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  12922. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  12923. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  12924. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  12925. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  12926. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  12927. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  12928. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  12929. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  12930. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  12931. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  12932. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  12933. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  12934. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  12935. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  12936. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  12937. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  12938. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  12939. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  12940. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  12941. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  12942. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  12943. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  12944. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  12945. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  12946. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  12947. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  12948. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  12949. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  12950. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  12951. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  12952. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  12953. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  12954. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  12955. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  12956. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  12957. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  12958. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  12959. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  12960. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  12961. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  12962. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  12963. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  12964. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  12965. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  12966. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  12967. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  12968. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  12969. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  12970. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  12971. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  12972. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  12973. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  12974. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  12975. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  12976. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  12977. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  12978. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  12979. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  12980. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  12981. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  12982. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  12983. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  12984. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  12985. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  12986. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  12987. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  12988. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  12989. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  12990. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  12991. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  12992. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  12993. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  12994. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  12995. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  12996. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  12997. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  12998. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  12999. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  13000. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  13001. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  13002. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  13003. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  13004. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  13005. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  13006. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  13007. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  13008. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  13009. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  13010. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  13011. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  13012. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  13013. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  13014. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  13015. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  13016. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  13017. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  13018. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  13019. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  13020. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  13021. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  13022. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  13023. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  13024. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  13025. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  13026. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  13027. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  13028. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  13029. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  13030. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  13031. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  13032. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  13033. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  13034. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  13035. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  13036. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  13037. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  13038. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  13039. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  13040. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  13041. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  13042. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  13043. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  13044. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  13045. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  13046. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  13047. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  13048. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  13049. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  13050. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  13051. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  13052. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  13053. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  13054. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  13055. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  13056. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  13057. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  13058. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  13059. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  13060. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  13061. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  13062. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  13063. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  13064. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  13065. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  13066. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  13067. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  13068. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  13069. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  13070. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  13071. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  13072. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  13073. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  13074. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  13075. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  13076. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  13077. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  13078. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  13079. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  13080. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  13081. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  13082. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  13083. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  13084. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  13085. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  13086. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  13087. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  13088. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  13089. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  13090. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  13091. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  13092. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  13093. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  13094. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  13095. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  13096. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  13097. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  13098. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  13099. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  13100. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  13101. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  13102. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  13103. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  13104. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  13105. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  13106. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  13107. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  13108. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  13109. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  13110. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  13111. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  13112. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  13113. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  13114. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  13115. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  13116. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  13117. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  13118. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  13119. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  13120. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  13121. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  13122. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  13123. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  13124. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  13125. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  13126. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  13127. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  13128. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  13129. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  13130. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  13131. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  13132. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  13133. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  13134. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  13135. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  13136. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  13137. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  13138. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  13139. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  13140. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  13141. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  13142. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  13143. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  13144. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  13145. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  13146. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  13147. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  13148. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  13149. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  13150. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  13151. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  13152. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  13153. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  13154. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  13155. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  13156. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  13157. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  13158. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  13159. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  13160. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  13161. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  13162. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  13163. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  13164. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  13165. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  13166. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  13167. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  13168. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  13169. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  13170. {f: 7, c: 19887}]
  13171. };
  13172. var ARCFourCipher = (function ARCFourCipherClosure() {
  13173. function ARCFourCipher(key) {
  13174. this.a = 0;
  13175. this.b = 0;
  13176. var s = new Uint8Array(256);
  13177. var i, j = 0, tmp, keyLength = key.length;
  13178. for (i = 0; i < 256; ++i) {
  13179. s[i] = i;
  13180. }
  13181. for (i = 0; i < 256; ++i) {
  13182. tmp = s[i];
  13183. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13184. s[i] = s[j];
  13185. s[j] = tmp;
  13186. }
  13187. this.s = s;
  13188. }
  13189. ARCFourCipher.prototype = {
  13190. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13191. var i, n = data.length, tmp, tmp2;
  13192. var a = this.a, b = this.b, s = this.s;
  13193. var output = new Uint8Array(n);
  13194. for (i = 0; i < n; ++i) {
  13195. a = (a + 1) & 0xFF;
  13196. tmp = s[a];
  13197. b = (b + tmp) & 0xFF;
  13198. tmp2 = s[b];
  13199. s[a] = tmp2;
  13200. s[b] = tmp;
  13201. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13202. }
  13203. this.a = a;
  13204. this.b = b;
  13205. return output;
  13206. }
  13207. };
  13208. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13209. return ARCFourCipher;
  13210. })();
  13211. var calculateMD5 = (function calculateMD5Closure() {
  13212. var r = new Uint8Array([
  13213. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13214. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13215. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13216. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13217. var k = new Int32Array([
  13218. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13219. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13220. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13221. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13222. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13223. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13224. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13225. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13226. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13227. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13228. -145523070, -1120210379, 718787259, -343485551]);
  13229. function hash(data, offset, length) {
  13230. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13231. // pre-processing
  13232. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13233. var padded = new Uint8Array(paddedLength);
  13234. var i, j, n;
  13235. for (i = 0; i < length; ++i) {
  13236. padded[i] = data[offset++];
  13237. }
  13238. padded[i++] = 0x80;
  13239. n = paddedLength - 8;
  13240. while (i < n) {
  13241. padded[i++] = 0;
  13242. }
  13243. padded[i++] = (length << 3) & 0xFF;
  13244. padded[i++] = (length >> 5) & 0xFF;
  13245. padded[i++] = (length >> 13) & 0xFF;
  13246. padded[i++] = (length >> 21) & 0xFF;
  13247. padded[i++] = (length >>> 29) & 0xFF;
  13248. padded[i++] = 0;
  13249. padded[i++] = 0;
  13250. padded[i++] = 0;
  13251. // chunking
  13252. // TODO ArrayBuffer ?
  13253. var w = new Int32Array(16);
  13254. for (i = 0; i < paddedLength;) {
  13255. for (j = 0; j < 16; ++j, i += 4) {
  13256. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13257. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13258. }
  13259. var a = h0, b = h1, c = h2, d = h3, f, g;
  13260. for (j = 0; j < 64; ++j) {
  13261. if (j < 16) {
  13262. f = (b & c) | ((~b) & d);
  13263. g = j;
  13264. } else if (j < 32) {
  13265. f = (d & b) | ((~d) & c);
  13266. g = (5 * j + 1) & 15;
  13267. } else if (j < 48) {
  13268. f = b ^ c ^ d;
  13269. g = (3 * j + 5) & 15;
  13270. } else {
  13271. f = c ^ (b | (~d));
  13272. g = (7 * j) & 15;
  13273. }
  13274. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13275. d = c;
  13276. c = b;
  13277. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13278. a = tmp;
  13279. }
  13280. h0 = (h0 + a) | 0;
  13281. h1 = (h1 + b) | 0;
  13282. h2 = (h2 + c) | 0;
  13283. h3 = (h3 + d) | 0;
  13284. }
  13285. return new Uint8Array([
  13286. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13287. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13288. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13289. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13290. ]);
  13291. }
  13292. return hash;
  13293. })();
  13294. var NullCipher = (function NullCipherClosure() {
  13295. function NullCipher() {}
  13296. NullCipher.prototype = {
  13297. decryptBlock: function NullCipher_decryptBlock(data) {
  13298. return data;
  13299. }
  13300. };
  13301. return NullCipher;
  13302. })();
  13303. var AES128Cipher = (function AES128CipherClosure() {
  13304. var rcon = new Uint8Array([
  13305. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13306. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13307. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13308. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13309. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13310. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13311. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13312. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13313. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13314. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13315. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13316. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13317. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13318. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13319. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13320. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13321. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13322. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13323. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13324. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13325. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13326. 0x74, 0xe8, 0xcb, 0x8d]);
  13327. var s = new Uint8Array([
  13328. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13329. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13330. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13331. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13332. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13333. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13334. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13335. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13336. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13337. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13338. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13339. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13340. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13341. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13342. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13343. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13344. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13345. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13346. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13347. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13348. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13349. 0xb0, 0x54, 0xbb, 0x16]);
  13350. var inv_s = new Uint8Array([
  13351. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13352. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13353. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13354. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13355. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13356. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13357. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13358. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13359. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13360. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13361. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13362. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13363. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13364. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13365. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13366. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13367. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13368. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13369. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13370. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13371. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13372. 0x55, 0x21, 0x0c, 0x7d]);
  13373. var mix = new Uint32Array([
  13374. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13375. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13376. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13377. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13378. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13379. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13380. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13381. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13382. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13383. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13384. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13385. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13386. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13387. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13388. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13389. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13390. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13391. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13392. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13393. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13394. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13395. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13396. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13397. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13398. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13399. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13400. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13401. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13402. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13403. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13404. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13405. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13406. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13407. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13408. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13409. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13410. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13411. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13412. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13413. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13414. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13415. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13416. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13417. function expandKey128(cipherKey) {
  13418. var b = 176, result = new Uint8Array(b);
  13419. result.set(cipherKey);
  13420. for (var j = 16, i = 1; j < b; ++i) {
  13421. // RotWord
  13422. var t1 = result[j - 3], t2 = result[j - 2],
  13423. t3 = result[j - 1], t4 = result[j - 4];
  13424. // SubWord
  13425. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13426. // Rcon
  13427. t1 = t1 ^ rcon[i];
  13428. for (var n = 0; n < 4; ++n) {
  13429. result[j] = (t1 ^= result[j - 16]); j++;
  13430. result[j] = (t2 ^= result[j - 16]); j++;
  13431. result[j] = (t3 ^= result[j - 16]); j++;
  13432. result[j] = (t4 ^= result[j - 16]); j++;
  13433. }
  13434. }
  13435. return result;
  13436. }
  13437. function decrypt128(input, key) {
  13438. var state = new Uint8Array(16);
  13439. state.set(input);
  13440. var i, j, k;
  13441. var t, u, v;
  13442. // AddRoundKey
  13443. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13444. state[j] ^= key[k];
  13445. }
  13446. for (i = 9; i >= 1; --i) {
  13447. // InvShiftRows
  13448. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13449. state[5] = state[1]; state[1] = t;
  13450. t = state[14]; u = state[10]; state[14] = state[6];
  13451. state[10] = state[2]; state[6] = t; state[2] = u;
  13452. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13453. state[11] = t; state[7] = u; state[3] = v;
  13454. // InvSubBytes
  13455. for (j = 0; j < 16; ++j) {
  13456. state[j] = inv_s[state[j]];
  13457. }
  13458. // AddRoundKey
  13459. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13460. state[j] ^= key[k];
  13461. }
  13462. // InvMixColumns
  13463. for (j = 0; j < 16; j += 4) {
  13464. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13465. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13466. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13467. (s3 >>> 24) ^ (s3 << 8));
  13468. state[j] = (t >>> 24) & 0xFF;
  13469. state[j + 1] = (t >> 16) & 0xFF;
  13470. state[j + 2] = (t >> 8) & 0xFF;
  13471. state[j + 3] = t & 0xFF;
  13472. }
  13473. }
  13474. // InvShiftRows
  13475. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13476. state[5] = state[1]; state[1] = t;
  13477. t = state[14]; u = state[10]; state[14] = state[6];
  13478. state[10] = state[2]; state[6] = t; state[2] = u;
  13479. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13480. state[11] = t; state[7] = u; state[3] = v;
  13481. for (j = 0; j < 16; ++j) {
  13482. // InvSubBytes
  13483. state[j] = inv_s[state[j]];
  13484. // AddRoundKey
  13485. state[j] ^= key[j];
  13486. }
  13487. return state;
  13488. }
  13489. function AES128Cipher(key) {
  13490. this.key = expandKey128(key);
  13491. this.buffer = new Uint8Array(16);
  13492. this.bufferPosition = 0;
  13493. }
  13494. function decryptBlock2(data, finalize) {
  13495. var i, j, ii, sourceLength = data.length,
  13496. buffer = this.buffer, bufferLength = this.bufferPosition,
  13497. result = [], iv = this.iv;
  13498. for (i = 0; i < sourceLength; ++i) {
  13499. buffer[bufferLength] = data[i];
  13500. ++bufferLength;
  13501. if (bufferLength < 16) {
  13502. continue;
  13503. }
  13504. // buffer is full, decrypting
  13505. var plain = decrypt128(buffer, this.key);
  13506. // xor-ing the IV vector to get plain text
  13507. for (j = 0; j < 16; ++j) {
  13508. plain[j] ^= iv[j];
  13509. }
  13510. iv = buffer;
  13511. result.push(plain);
  13512. buffer = new Uint8Array(16);
  13513. bufferLength = 0;
  13514. }
  13515. // saving incomplete buffer
  13516. this.buffer = buffer;
  13517. this.bufferLength = bufferLength;
  13518. this.iv = iv;
  13519. if (result.length === 0) {
  13520. return new Uint8Array([]);
  13521. }
  13522. // combining plain text blocks into one
  13523. var outputLength = 16 * result.length;
  13524. if (finalize) {
  13525. // undo a padding that is described in RFC 2898
  13526. var lastBlock = result[result.length - 1];
  13527. outputLength -= lastBlock[15];
  13528. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13529. }
  13530. var output = new Uint8Array(outputLength);
  13531. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13532. output.set(result[i], j);
  13533. }
  13534. return output;
  13535. }
  13536. AES128Cipher.prototype = {
  13537. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13538. var i, sourceLength = data.length;
  13539. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13540. // waiting for IV values -- they are at the start of the stream
  13541. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13542. buffer[bufferLength] = data[i];
  13543. }
  13544. if (bufferLength < 16) {
  13545. // need more data
  13546. this.bufferLength = bufferLength;
  13547. return new Uint8Array([]);
  13548. }
  13549. this.iv = buffer;
  13550. this.buffer = new Uint8Array(16);
  13551. this.bufferLength = 0;
  13552. // starting decryption
  13553. this.decryptBlock = decryptBlock2;
  13554. return this.decryptBlock(data.subarray(16), finalize);
  13555. }
  13556. };
  13557. return AES128Cipher;
  13558. })();
  13559. var CipherTransform = (function CipherTransformClosure() {
  13560. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13561. this.stringCipherConstructor = stringCipherConstructor;
  13562. this.streamCipherConstructor = streamCipherConstructor;
  13563. }
  13564. CipherTransform.prototype = {
  13565. createStream: function CipherTransform_createStream(stream, length) {
  13566. var cipher = new this.streamCipherConstructor();
  13567. return new DecryptStream(stream, length,
  13568. function cipherTransformDecryptStream(data, finalize) {
  13569. return cipher.decryptBlock(data, finalize);
  13570. }
  13571. );
  13572. },
  13573. decryptString: function CipherTransform_decryptString(s) {
  13574. var cipher = new this.stringCipherConstructor();
  13575. var data = stringToBytes(s);
  13576. data = cipher.decryptBlock(data, true);
  13577. return bytesToString(data);
  13578. }
  13579. };
  13580. return CipherTransform;
  13581. })();
  13582. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13583. var defaultPasswordBytes = new Uint8Array([
  13584. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13585. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13586. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13587. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13588. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13589. flags, revision, keyLength, encryptMetadata) {
  13590. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13591. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13592. if (password) {
  13593. n = Math.min(32, password.length);
  13594. for (; i < n; ++i) {
  13595. hashData[i] = password[i];
  13596. }
  13597. }
  13598. j = 0;
  13599. while (i < 32) {
  13600. hashData[i++] = defaultPasswordBytes[j++];
  13601. }
  13602. // as now the padded password in the hashData[0..i]
  13603. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  13604. hashData[i++] = ownerPassword[j];
  13605. }
  13606. hashData[i++] = flags & 0xFF;
  13607. hashData[i++] = (flags >> 8) & 0xFF;
  13608. hashData[i++] = (flags >> 16) & 0xFF;
  13609. hashData[i++] = (flags >>> 24) & 0xFF;
  13610. for (j = 0, n = fileId.length; j < n; ++j) {
  13611. hashData[i++] = fileId[j];
  13612. }
  13613. if (revision >= 4 && !encryptMetadata) {
  13614. hashData[i++] = 0xFF;
  13615. hashData[i++] = 0xFF;
  13616. hashData[i++] = 0xFF;
  13617. hashData[i++] = 0xFF;
  13618. }
  13619. var hash = calculateMD5(hashData, 0, i);
  13620. var keyLengthInBytes = keyLength >> 3;
  13621. if (revision >= 3) {
  13622. for (j = 0; j < 50; ++j) {
  13623. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13624. }
  13625. }
  13626. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13627. var cipher, checkData;
  13628. if (revision >= 3) {
  13629. for (i = 0; i < 32; ++i) {
  13630. hashData[i] = defaultPasswordBytes[i];
  13631. }
  13632. for (j = 0, n = fileId.length; j < n; ++j) {
  13633. hashData[i++] = fileId[j];
  13634. }
  13635. cipher = new ARCFourCipher(encryptionKey);
  13636. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13637. n = encryptionKey.length;
  13638. var derivedKey = new Uint8Array(n), k;
  13639. for (j = 1; j <= 19; ++j) {
  13640. for (k = 0; k < n; ++k) {
  13641. derivedKey[k] = encryptionKey[k] ^ j;
  13642. }
  13643. cipher = new ARCFourCipher(derivedKey);
  13644. checkData = cipher.encryptBlock(checkData);
  13645. }
  13646. for (j = 0, n = checkData.length; j < n; ++j) {
  13647. if (userPassword[j] != checkData[j]) {
  13648. return null;
  13649. }
  13650. }
  13651. } else {
  13652. cipher = new ARCFourCipher(encryptionKey);
  13653. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13654. for (j = 0, n = checkData.length; j < n; ++j) {
  13655. if (userPassword[j] != checkData[j]) {
  13656. return null;
  13657. }
  13658. }
  13659. }
  13660. return encryptionKey;
  13661. }
  13662. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13663. var hashData = new Uint8Array(32), i = 0, j, n;
  13664. n = Math.min(32, password.length);
  13665. for (; i < n; ++i) {
  13666. hashData[i] = password[i];
  13667. }
  13668. j = 0;
  13669. while (i < 32) {
  13670. hashData[i++] = defaultPasswordBytes[j++];
  13671. }
  13672. var hash = calculateMD5(hashData, 0, i);
  13673. var keyLengthInBytes = keyLength >> 3;
  13674. if (revision >= 3) {
  13675. for (j = 0; j < 50; ++j) {
  13676. hash = calculateMD5(hash, 0, hash.length);
  13677. }
  13678. }
  13679. var cipher, userPassword;
  13680. if (revision >= 3) {
  13681. userPassword = ownerPassword;
  13682. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13683. for (j = 19; j >= 0; j--) {
  13684. for (k = 0; k < keyLengthInBytes; ++k) {
  13685. derivedKey[k] = hash[k] ^ j;
  13686. }
  13687. cipher = new ARCFourCipher(derivedKey);
  13688. userPassword = cipher.encryptBlock(userPassword);
  13689. }
  13690. } else {
  13691. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13692. userPassword = cipher.encryptBlock(ownerPassword);
  13693. }
  13694. return userPassword;
  13695. }
  13696. var identityName = Name.get('Identity');
  13697. function CipherTransformFactory(dict, fileId, password) {
  13698. var filter = dict.get('Filter');
  13699. if (!isName(filter) || filter.name != 'Standard') {
  13700. error('unknown encryption method');
  13701. }
  13702. this.dict = dict;
  13703. var algorithm = dict.get('V');
  13704. if (!isInt(algorithm) ||
  13705. (algorithm != 1 && algorithm != 2 && algorithm != 4)) {
  13706. error('unsupported encryption algorithm');
  13707. }
  13708. this.algorithm = algorithm;
  13709. var keyLength = dict.get('Length') || 40;
  13710. if (!isInt(keyLength) ||
  13711. keyLength < 40 || (keyLength % 8) !== 0) {
  13712. error('invalid key length');
  13713. }
  13714. // prepare keys
  13715. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13716. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13717. var flags = dict.get('P');
  13718. var revision = dict.get('R');
  13719. var encryptMetadata = (algorithm == 4 && // meaningful when V is 4
  13720. dict.get('EncryptMetadata') !== false); // makes true as default value
  13721. this.encryptMetadata = encryptMetadata;
  13722. var fileIdBytes = stringToBytes(fileId);
  13723. var passwordBytes;
  13724. if (password) {
  13725. passwordBytes = stringToBytes(password);
  13726. }
  13727. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13728. ownerPassword, userPassword, flags,
  13729. revision, keyLength, encryptMetadata);
  13730. if (!encryptionKey && !password) {
  13731. throw new PasswordException('No password given',
  13732. PasswordResponses.NEED_PASSWORD);
  13733. } else if (!encryptionKey && password) {
  13734. // Attempting use the password as an owner password
  13735. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13736. revision, keyLength);
  13737. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13738. ownerPassword, userPassword, flags,
  13739. revision, keyLength, encryptMetadata);
  13740. }
  13741. if (!encryptionKey) {
  13742. throw new PasswordException('Incorrect Password',
  13743. PasswordResponses.INCORRECT_PASSWORD);
  13744. }
  13745. this.encryptionKey = encryptionKey;
  13746. if (algorithm == 4) {
  13747. this.cf = dict.get('CF');
  13748. this.stmf = dict.get('StmF') || identityName;
  13749. this.strf = dict.get('StrF') || identityName;
  13750. this.eff = dict.get('EFF') || this.strf;
  13751. }
  13752. }
  13753. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13754. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13755. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  13756. key[i] = encryptionKey[i];
  13757. }
  13758. key[i++] = num & 0xFF;
  13759. key[i++] = (num >> 8) & 0xFF;
  13760. key[i++] = (num >> 16) & 0xFF;
  13761. key[i++] = gen & 0xFF;
  13762. key[i++] = (gen >> 8) & 0xFF;
  13763. if (isAes) {
  13764. key[i++] = 0x73;
  13765. key[i++] = 0x41;
  13766. key[i++] = 0x6C;
  13767. key[i++] = 0x54;
  13768. }
  13769. var hash = calculateMD5(key, 0, i);
  13770. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13771. }
  13772. function buildCipherConstructor(cf, name, num, gen, key) {
  13773. var cryptFilter = cf.get(name.name);
  13774. var cfm;
  13775. if (cryptFilter !== null && cryptFilter !== undefined) {
  13776. cfm = cryptFilter.get('CFM');
  13777. }
  13778. if (!cfm || cfm.name == 'None') {
  13779. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13780. return new NullCipher();
  13781. };
  13782. }
  13783. if ('V2' == cfm.name) {
  13784. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13785. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  13786. };
  13787. }
  13788. if ('AESV2' == cfm.name) {
  13789. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13790. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  13791. };
  13792. }
  13793. error('Unknown crypto method');
  13794. }
  13795. CipherTransformFactory.prototype = {
  13796. createCipherTransform:
  13797. function CipherTransformFactory_createCipherTransform(num, gen) {
  13798. if (this.algorithm == 4) {
  13799. return new CipherTransform(
  13800. buildCipherConstructor(this.cf, this.stmf,
  13801. num, gen, this.encryptionKey),
  13802. buildCipherConstructor(this.cf, this.strf,
  13803. num, gen, this.encryptionKey));
  13804. }
  13805. // algorithms 1 and 2
  13806. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13807. var cipherConstructor = function buildCipherCipherConstructor() {
  13808. return new ARCFourCipher(key);
  13809. };
  13810. return new CipherTransform(cipherConstructor, cipherConstructor);
  13811. }
  13812. };
  13813. return CipherTransformFactory;
  13814. })();
  13815. var PatternType = {
  13816. FUNCTION_BASED: 1,
  13817. AXIAL: 2,
  13818. RADIAL: 3,
  13819. FREE_FORM_MESH: 4,
  13820. LATTICE_FORM_MESH: 5,
  13821. COONS_PATCH_MESH: 6,
  13822. TENSOR_PATCH_MESH: 7
  13823. };
  13824. var Pattern = (function PatternClosure() {
  13825. // Constructor should define this.getPattern
  13826. function Pattern() {
  13827. error('should not call Pattern constructor');
  13828. }
  13829. Pattern.prototype = {
  13830. // Input: current Canvas context
  13831. // Output: the appropriate fillStyle or strokeStyle
  13832. getPattern: function Pattern_getPattern(ctx) {
  13833. error('Should not call Pattern.getStyle: ' + ctx);
  13834. }
  13835. };
  13836. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13837. res) {
  13838. var dict = isStream(shading) ? shading.dict : shading;
  13839. var type = dict.get('ShadingType');
  13840. switch (type) {
  13841. case PatternType.AXIAL:
  13842. case PatternType.RADIAL:
  13843. // Both radial and axial shadings are handled by RadialAxial shading.
  13844. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13845. case PatternType.FREE_FORM_MESH:
  13846. case PatternType.LATTICE_FORM_MESH:
  13847. case PatternType.COONS_PATCH_MESH:
  13848. case PatternType.TENSOR_PATCH_MESH:
  13849. return new Shadings.Mesh(shading, matrix, xref, res);
  13850. default:
  13851. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13852. return new Shadings.Dummy();
  13853. }
  13854. };
  13855. return Pattern;
  13856. })();
  13857. var Shadings = {};
  13858. // A small number to offset the first/last color stops so we can insert ones to
  13859. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13860. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13861. // internally so we have to go bigger.
  13862. Shadings.SMALL_NUMBER = 1e-2;
  13863. // Radial and axial shading have very similar implementations
  13864. // If needed, the implementations can be broken into two classes
  13865. Shadings.RadialAxial = (function RadialAxialClosure() {
  13866. function RadialAxial(dict, matrix, xref, res) {
  13867. this.matrix = matrix;
  13868. this.coordsArr = dict.get('Coords');
  13869. this.shadingType = dict.get('ShadingType');
  13870. this.type = 'Pattern';
  13871. var cs = dict.get('ColorSpace', 'CS');
  13872. cs = ColorSpace.parse(cs, xref, res);
  13873. this.cs = cs;
  13874. var t0 = 0.0, t1 = 1.0;
  13875. if (dict.has('Domain')) {
  13876. var domainArr = dict.get('Domain');
  13877. t0 = domainArr[0];
  13878. t1 = domainArr[1];
  13879. }
  13880. var extendStart = false, extendEnd = false;
  13881. if (dict.has('Extend')) {
  13882. var extendArr = dict.get('Extend');
  13883. extendStart = extendArr[0];
  13884. extendEnd = extendArr[1];
  13885. }
  13886. if (this.shadingType === PatternType.RADIAL &&
  13887. (!extendStart || !extendEnd)) {
  13888. // Radial gradient only currently works if either circle is fully within
  13889. // the other circle.
  13890. var x1 = this.coordsArr[0];
  13891. var y1 = this.coordsArr[1];
  13892. var r1 = this.coordsArr[2];
  13893. var x2 = this.coordsArr[3];
  13894. var y2 = this.coordsArr[4];
  13895. var r2 = this.coordsArr[5];
  13896. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13897. if (r1 <= r2 + distance &&
  13898. r2 <= r1 + distance) {
  13899. warn('Unsupported radial gradient.');
  13900. }
  13901. }
  13902. this.extendStart = extendStart;
  13903. this.extendEnd = extendEnd;
  13904. var fnObj = dict.get('Function');
  13905. var fn;
  13906. if (isArray(fnObj)) {
  13907. var fnArray = [];
  13908. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13909. var obj = xref.fetchIfRef(fnObj[j]);
  13910. if (!isPDFFunction(obj)) {
  13911. error('Invalid function');
  13912. }
  13913. fnArray.push(PDFFunction.parse(xref, obj));
  13914. }
  13915. fn = function radialAxialColorFunction(arg) {
  13916. var out = [];
  13917. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13918. out.push(fnArray[i](arg)[0]);
  13919. }
  13920. return out;
  13921. };
  13922. } else {
  13923. if (!isPDFFunction(fnObj)) {
  13924. error('Invalid function');
  13925. }
  13926. fn = PDFFunction.parse(xref, fnObj);
  13927. }
  13928. // 10 samples seems good enough for now, but probably won't work
  13929. // if there are sharp color changes. Ideally, we would implement
  13930. // the spec faithfully and add lossless optimizations.
  13931. var diff = t1 - t0;
  13932. var step = diff / 10;
  13933. var colorStops = this.colorStops = [];
  13934. // Protect against bad domains so we don't end up in an infinte loop below.
  13935. if (t0 >= t1 || step <= 0) {
  13936. // Acrobat doesn't seem to handle these cases so we'll ignore for
  13937. // now.
  13938. info('Bad shading domain.');
  13939. return;
  13940. }
  13941. var rgbColor;
  13942. for (var i = t0; i <= t1; i += step) {
  13943. rgbColor = cs.getRgb(fn([i]), 0);
  13944. var cssColor = Util.makeCssRgb(rgbColor);
  13945. colorStops.push([(i - t0) / diff, cssColor]);
  13946. }
  13947. var background = 'transparent';
  13948. if (dict.has('Background')) {
  13949. rgbColor = cs.getRgb(dict.get('Background'), 0);
  13950. background = Util.makeCssRgb(rgbColor);
  13951. }
  13952. if (!extendStart) {
  13953. // Insert a color stop at the front and offset the first real color stop
  13954. // so it doesn't conflict with the one we insert.
  13955. colorStops.unshift([0, background]);
  13956. colorStops[1][0] += Shadings.SMALL_NUMBER;
  13957. }
  13958. if (!extendEnd) {
  13959. // Same idea as above in extendStart but for the end.
  13960. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  13961. colorStops.push([1, background]);
  13962. }
  13963. this.colorStops = colorStops;
  13964. }
  13965. RadialAxial.prototype = {
  13966. getIR: function RadialAxial_getIR() {
  13967. var coordsArr = this.coordsArr;
  13968. var shadingType = this.shadingType;
  13969. var type, p0, p1, r0, r1;
  13970. if (shadingType == PatternType.AXIAL) {
  13971. p0 = [coordsArr[0], coordsArr[1]];
  13972. p1 = [coordsArr[2], coordsArr[3]];
  13973. r0 = null;
  13974. r1 = null;
  13975. type = 'axial';
  13976. } else if (shadingType == PatternType.RADIAL) {
  13977. p0 = [coordsArr[0], coordsArr[1]];
  13978. p1 = [coordsArr[3], coordsArr[4]];
  13979. r0 = coordsArr[2];
  13980. r1 = coordsArr[5];
  13981. type = 'radial';
  13982. } else {
  13983. error('getPattern type unknown: ' + shadingType);
  13984. }
  13985. var matrix = this.matrix;
  13986. if (matrix) {
  13987. p0 = Util.applyTransform(p0, matrix);
  13988. p1 = Util.applyTransform(p1, matrix);
  13989. }
  13990. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  13991. }
  13992. };
  13993. return RadialAxial;
  13994. })();
  13995. // All mesh shading. For now, they will be presented as set of the triangles
  13996. // to be drawn on the canvas and rgb color for each vertex.
  13997. Shadings.Mesh = (function MeshClosure() {
  13998. function MeshStreamReader(stream, context) {
  13999. this.stream = stream;
  14000. this.context = context;
  14001. this.buffer = 0;
  14002. this.bufferLength = 0;
  14003. }
  14004. MeshStreamReader.prototype = {
  14005. get hasData() {
  14006. if (this.stream.end) {
  14007. return this.stream.pos < this.stream.end;
  14008. }
  14009. if (this.bufferLength > 0) {
  14010. return true;
  14011. }
  14012. var nextByte = this.stream.getByte();
  14013. if (nextByte < 0) {
  14014. return false;
  14015. }
  14016. this.buffer = nextByte;
  14017. this.bufferLength = 8;
  14018. return true;
  14019. },
  14020. readBits: function MeshStreamReader_readBits(n) {
  14021. var buffer = this.buffer;
  14022. var bufferLength = this.bufferLength;
  14023. if (n === 32) {
  14024. if (bufferLength === 0) {
  14025. return ((this.stream.getByte() << 24) |
  14026. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  14027. this.stream.getByte()) >>> 0;
  14028. }
  14029. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  14030. (this.stream.getByte() << 8) | this.stream.getByte();
  14031. var nextByte = this.stream.getByte();
  14032. this.buffer = nextByte & ((1 << bufferLength) - 1);
  14033. return ((buffer << (8 - bufferLength)) |
  14034. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  14035. }
  14036. if (n === 8 && bufferLength === 0) {
  14037. return this.stream.getByte();
  14038. }
  14039. while (bufferLength < n) {
  14040. buffer = (buffer << 8) | this.stream.getByte();
  14041. bufferLength += 8;
  14042. }
  14043. bufferLength -= n;
  14044. this.bufferLength = bufferLength;
  14045. this.buffer = buffer & ((1 << bufferLength) - 1);
  14046. return buffer >> bufferLength;
  14047. },
  14048. align: function MeshStreamReader_align() {
  14049. this.buffer = 0;
  14050. this.bufferLength = 0;
  14051. },
  14052. readFlag: function MeshStreamReader_readFlag() {
  14053. return this.readBits(this.context.bitsPerFlag);
  14054. },
  14055. readCoordinate: function MeshStreamReader_readCoordinate() {
  14056. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  14057. var xi = this.readBits(bitsPerCoordinate);
  14058. var yi = this.readBits(bitsPerCoordinate);
  14059. var decode = this.context.decode;
  14060. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  14061. 2.3283064365386963e-10; // 2 ^ -32
  14062. return [
  14063. xi * scale * (decode[1] - decode[0]) + decode[0],
  14064. yi * scale * (decode[3] - decode[2]) + decode[2]
  14065. ];
  14066. },
  14067. readComponents: function MeshStreamReader_readComponents() {
  14068. var numComps = this.context.numComps;
  14069. var bitsPerComponent = this.context.bitsPerComponent;
  14070. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  14071. 2.3283064365386963e-10; // 2 ^ -32
  14072. var decode = this.context.decode;
  14073. var components = [];
  14074. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  14075. var ci = this.readBits(bitsPerComponent);
  14076. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  14077. }
  14078. if (this.context.colorFn) {
  14079. components = this.context.colorFn(components);
  14080. }
  14081. return this.context.colorSpace.getRgb(components, 0);
  14082. }
  14083. };
  14084. function decodeType4Shading(mesh, reader) {
  14085. var coords = mesh.coords;
  14086. var colors = mesh.colors;
  14087. var operators = [];
  14088. var ps = []; // not maintaining cs since that will match ps
  14089. var verticesLeft = 0; // assuming we have all data to start a new triangle
  14090. while (reader.hasData) {
  14091. var f = reader.readFlag();
  14092. var coord = reader.readCoordinate();
  14093. var color = reader.readComponents();
  14094. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  14095. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  14096. switch (f) {
  14097. case 0:
  14098. verticesLeft = 3;
  14099. break;
  14100. case 1:
  14101. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  14102. verticesLeft = 1;
  14103. break;
  14104. case 2:
  14105. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  14106. verticesLeft = 1;
  14107. break;
  14108. }
  14109. operators.push(f);
  14110. }
  14111. ps.push(coords.length);
  14112. coords.push(coord);
  14113. colors.push(color);
  14114. verticesLeft--;
  14115. reader.align();
  14116. }
  14117. var psPacked = new Int32Array(ps);
  14118. mesh.figures.push({
  14119. type: 'triangles',
  14120. coords: psPacked,
  14121. colors: psPacked
  14122. });
  14123. }
  14124. function decodeType5Shading(mesh, reader, verticesPerRow) {
  14125. var coords = mesh.coords;
  14126. var colors = mesh.colors;
  14127. var ps = []; // not maintaining cs since that will match ps
  14128. while (reader.hasData) {
  14129. var coord = reader.readCoordinate();
  14130. var color = reader.readComponents();
  14131. ps.push(coords.length);
  14132. coords.push(coord);
  14133. colors.push(color);
  14134. }
  14135. var psPacked = new Int32Array(ps);
  14136. mesh.figures.push({
  14137. type: 'lattice',
  14138. coords: psPacked,
  14139. colors: psPacked,
  14140. verticesPerRow: verticesPerRow
  14141. });
  14142. }
  14143. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  14144. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  14145. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  14146. var getB = (function getBClosure() {
  14147. function buildB(count) {
  14148. var lut = [];
  14149. for (var i = 0; i <= count; i++) {
  14150. var t = i / count, t_ = 1 - t;
  14151. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  14152. 3 * t * t * t_, t * t * t]));
  14153. }
  14154. return lut;
  14155. }
  14156. var cache = [];
  14157. return function getB(count) {
  14158. if (!cache[count]) {
  14159. cache[count] = buildB(count);
  14160. }
  14161. return cache[count];
  14162. };
  14163. })();
  14164. function buildFigureFromPatch(mesh, index) {
  14165. var figure = mesh.figures[index];
  14166. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  14167. var coords = mesh.coords, colors = mesh.colors;
  14168. var pi = figure.coords;
  14169. var ci = figure.colors;
  14170. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  14171. coords[pi[12]][0], coords[pi[15]][0]);
  14172. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  14173. coords[pi[12]][1], coords[pi[15]][1]);
  14174. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  14175. coords[pi[12]][0], coords[pi[15]][0]);
  14176. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  14177. coords[pi[12]][1], coords[pi[15]][1]);
  14178. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  14179. (mesh.bounds[2] - mesh.bounds[0]));
  14180. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14181. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  14182. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  14183. (mesh.bounds[3] - mesh.bounds[1]));
  14184. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14185. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  14186. var verticesPerRow = splitXBy + 1;
  14187. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  14188. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  14189. var k = 0;
  14190. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  14191. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  14192. c2 = colors[ci[2]], c3 = colors[ci[3]];
  14193. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  14194. for (var row = 0; row <= splitYBy; row++) {
  14195. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  14196. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  14197. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  14198. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  14199. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  14200. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  14201. for (var col = 0; col <= splitXBy; col++, k++) {
  14202. if ((row === 0 || row === splitYBy) &&
  14203. (col === 0 || col === splitXBy)) {
  14204. continue;
  14205. }
  14206. var x = 0, y = 0;
  14207. var q = 0;
  14208. for (var i = 0; i <= 3; i++) {
  14209. for (var j = 0; j <= 3; j++, q++) {
  14210. var m = bRow[row][i] * bCol[col][j];
  14211. x += coords[pi[q]][0] * m;
  14212. y += coords[pi[q]][1] * m;
  14213. }
  14214. }
  14215. figureCoords[k] = coords.length;
  14216. coords.push([x, y]);
  14217. figureColors[k] = colors.length;
  14218. var newColor = new Uint8Array(3);
  14219. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  14220. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  14221. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  14222. colors.push(newColor);
  14223. }
  14224. }
  14225. figureCoords[0] = pi[0];
  14226. figureColors[0] = ci[0];
  14227. figureCoords[splitXBy] = pi[3];
  14228. figureColors[splitXBy] = ci[1];
  14229. figureCoords[verticesPerRow * splitYBy] = pi[12];
  14230. figureColors[verticesPerRow * splitYBy] = ci[2];
  14231. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  14232. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  14233. mesh.figures[index] = {
  14234. type: 'lattice',
  14235. coords: figureCoords,
  14236. colors: figureColors,
  14237. verticesPerRow: verticesPerRow
  14238. };
  14239. }
  14240. function decodeType6Shading(mesh, reader) {
  14241. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  14242. var coords = mesh.coords;
  14243. var colors = mesh.colors;
  14244. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14245. var cs = new Int32Array(4); // c00, c30, c03, c33
  14246. while (reader.hasData) {
  14247. var f = reader.readFlag();
  14248. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  14249. var i, ii;
  14250. var pi = coords.length;
  14251. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  14252. coords.push(reader.readCoordinate());
  14253. }
  14254. var ci = colors.length;
  14255. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14256. colors.push(reader.readComponents());
  14257. }
  14258. var tmp1, tmp2, tmp3, tmp4;
  14259. switch (f) {
  14260. case 0:
  14261. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14262. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14263. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  14264. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14265. cs[2] = ci + 1; cs[3] = ci + 2;
  14266. cs[0] = ci; cs[1] = ci + 3;
  14267. break;
  14268. case 1:
  14269. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14270. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14271. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  14272. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  14273. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14274. tmp1 = cs[2]; tmp2 = cs[3];
  14275. cs[2] = ci + 1; cs[3] = ci;
  14276. cs[0] = tmp1; cs[1] = tmp2;
  14277. break;
  14278. case 2:
  14279. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14280. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  14281. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  14282. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14283. cs[2] = cs[3]; cs[3] = ci + 1;
  14284. cs[0] = cs[1]; cs[1] = ci;
  14285. break;
  14286. case 3:
  14287. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14288. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14289. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  14290. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14291. cs[2] = cs[0]; cs[3] = cs[1];
  14292. cs[0] = ci; cs[1] = ci + 1;
  14293. break;
  14294. }
  14295. // set p11, p12, p21, p22
  14296. ps[5] = coords.length;
  14297. coords.push([
  14298. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  14299. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  14300. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14301. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  14302. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  14303. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  14304. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14305. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  14306. ]);
  14307. ps[6] = coords.length;
  14308. coords.push([
  14309. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  14310. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  14311. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14312. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  14313. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  14314. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  14315. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14316. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  14317. ]);
  14318. ps[9] = coords.length;
  14319. coords.push([
  14320. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  14321. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  14322. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14323. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  14324. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  14325. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  14326. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14327. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  14328. ]);
  14329. ps[10] = coords.length;
  14330. coords.push([
  14331. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  14332. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  14333. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14334. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  14335. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  14336. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  14337. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14338. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  14339. ]);
  14340. mesh.figures.push({
  14341. type: 'patch',
  14342. coords: new Int32Array(ps), // making copies of ps and cs
  14343. colors: new Int32Array(cs)
  14344. });
  14345. }
  14346. }
  14347. function decodeType7Shading(mesh, reader) {
  14348. var coords = mesh.coords;
  14349. var colors = mesh.colors;
  14350. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14351. var cs = new Int32Array(4); // c00, c30, c03, c33
  14352. while (reader.hasData) {
  14353. var f = reader.readFlag();
  14354. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  14355. var i, ii;
  14356. var pi = coords.length;
  14357. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  14358. coords.push(reader.readCoordinate());
  14359. }
  14360. var ci = colors.length;
  14361. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14362. colors.push(reader.readComponents());
  14363. }
  14364. var tmp1, tmp2, tmp3, tmp4;
  14365. switch (f) {
  14366. case 0:
  14367. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14368. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  14369. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  14370. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14371. cs[2] = ci + 1; cs[3] = ci + 2;
  14372. cs[0] = ci; cs[1] = ci + 3;
  14373. break;
  14374. case 1:
  14375. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14376. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14377. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  14378. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  14379. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14380. tmp1 = cs[2]; tmp2 = cs[3];
  14381. cs[2] = ci + 1; cs[3] = ci;
  14382. cs[0] = tmp1; cs[1] = tmp2;
  14383. break;
  14384. case 2:
  14385. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14386. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  14387. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  14388. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14389. cs[2] = cs[3]; cs[3] = ci + 1;
  14390. cs[0] = cs[1]; cs[1] = ci;
  14391. break;
  14392. case 3:
  14393. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14394. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  14395. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  14396. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14397. cs[2] = cs[0]; cs[3] = cs[1];
  14398. cs[0] = ci; cs[1] = ci + 1;
  14399. break;
  14400. }
  14401. mesh.figures.push({
  14402. type: 'patch',
  14403. coords: new Int32Array(ps), // making copies of ps and cs
  14404. colors: new Int32Array(cs)
  14405. });
  14406. }
  14407. }
  14408. function updateBounds(mesh) {
  14409. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  14410. maxX = minX, maxY = minY;
  14411. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  14412. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  14413. minX = minX > x ? x : minX;
  14414. minY = minY > y ? y : minY;
  14415. maxX = maxX < x ? x : maxX;
  14416. maxY = maxY < y ? y : maxY;
  14417. }
  14418. mesh.bounds = [minX, minY, maxX, maxY];
  14419. }
  14420. function packData(mesh) {
  14421. var i, ii, j, jj;
  14422. var coords = mesh.coords;
  14423. var coordsPacked = new Float32Array(coords.length * 2);
  14424. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  14425. var xy = coords[i];
  14426. coordsPacked[j++] = xy[0];
  14427. coordsPacked[j++] = xy[1];
  14428. }
  14429. mesh.coords = coordsPacked;
  14430. var colors = mesh.colors;
  14431. var colorsPacked = new Uint8Array(colors.length * 3);
  14432. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  14433. var c = colors[i];
  14434. colorsPacked[j++] = c[0];
  14435. colorsPacked[j++] = c[1];
  14436. colorsPacked[j++] = c[2];
  14437. }
  14438. mesh.colors = colorsPacked;
  14439. var figures = mesh.figures;
  14440. for (i = 0, ii = figures.length; i < ii; i++) {
  14441. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  14442. for (j = 0, jj = ps.length; j < jj; j++) {
  14443. ps[j] *= 2;
  14444. cs[j] *= 3;
  14445. }
  14446. }
  14447. }
  14448. function Mesh(stream, matrix, xref, res) {
  14449. assert(isStream(stream), 'Mesh data is not a stream');
  14450. var dict = stream.dict;
  14451. this.matrix = matrix;
  14452. this.shadingType = dict.get('ShadingType');
  14453. this.type = 'Pattern';
  14454. this.bbox = dict.get('BBox');
  14455. var cs = dict.get('ColorSpace', 'CS');
  14456. cs = ColorSpace.parse(cs, xref, res);
  14457. this.cs = cs;
  14458. this.background = dict.has('Background') ?
  14459. cs.getRgb(dict.get('Background'), 0) : null;
  14460. var fnObj = dict.get('Function');
  14461. var fn;
  14462. if (!fnObj) {
  14463. fn = null;
  14464. } else if (isArray(fnObj)) {
  14465. var fnArray = [];
  14466. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  14467. var obj = xref.fetchIfRef(fnObj[j]);
  14468. if (!isPDFFunction(obj)) {
  14469. error('Invalid function');
  14470. }
  14471. fnArray.push(PDFFunction.parse(xref, obj));
  14472. }
  14473. fn = function radialAxialColorFunction(arg) {
  14474. var out = [];
  14475. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  14476. out.push(fnArray[i](arg)[0]);
  14477. }
  14478. return out;
  14479. };
  14480. } else {
  14481. if (!isPDFFunction(fnObj)) {
  14482. error('Invalid function');
  14483. }
  14484. fn = PDFFunction.parse(xref, fnObj);
  14485. }
  14486. this.coords = [];
  14487. this.colors = [];
  14488. this.figures = [];
  14489. var decodeContext = {
  14490. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  14491. bitsPerComponent: dict.get('BitsPerComponent'),
  14492. bitsPerFlag: dict.get('BitsPerFlag'),
  14493. decode: dict.get('Decode'),
  14494. colorFn: fn,
  14495. colorSpace: cs,
  14496. numComps: fn ? 1 : cs.numComps
  14497. };
  14498. var reader = new MeshStreamReader(stream, decodeContext);
  14499. var patchMesh = false;
  14500. switch (this.shadingType) {
  14501. case PatternType.FREE_FORM_MESH:
  14502. decodeType4Shading(this, reader);
  14503. break;
  14504. case PatternType.LATTICE_FORM_MESH:
  14505. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  14506. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  14507. decodeType5Shading(this, reader, verticesPerRow);
  14508. break;
  14509. case PatternType.COONS_PATCH_MESH:
  14510. decodeType6Shading(this, reader);
  14511. patchMesh = true;
  14512. break;
  14513. case PatternType.TENSOR_PATCH_MESH:
  14514. decodeType7Shading(this, reader);
  14515. patchMesh = true;
  14516. break;
  14517. default:
  14518. error('Unsupported mesh type.');
  14519. break;
  14520. }
  14521. if (patchMesh) {
  14522. // dirty bounds calculation for determining, how dense shall be triangles
  14523. updateBounds(this);
  14524. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  14525. buildFigureFromPatch(this, i);
  14526. }
  14527. }
  14528. // calculate bounds
  14529. updateBounds(this);
  14530. packData(this);
  14531. }
  14532. Mesh.prototype = {
  14533. getIR: function Mesh_getIR() {
  14534. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  14535. this.bounds, this.matrix, this.bbox, this.background];
  14536. }
  14537. };
  14538. return Mesh;
  14539. })();
  14540. Shadings.Dummy = (function DummyClosure() {
  14541. function Dummy() {
  14542. this.type = 'Pattern';
  14543. }
  14544. Dummy.prototype = {
  14545. getIR: function Dummy_getIR() {
  14546. return ['Dummy'];
  14547. }
  14548. };
  14549. return Dummy;
  14550. })();
  14551. function getTilingPatternIR(operatorList, dict, args) {
  14552. var matrix = dict.get('Matrix');
  14553. var bbox = dict.get('BBox');
  14554. var xstep = dict.get('XStep');
  14555. var ystep = dict.get('YStep');
  14556. var paintType = dict.get('PaintType');
  14557. var tilingType = dict.get('TilingType');
  14558. return [
  14559. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  14560. paintType, tilingType
  14561. ];
  14562. }
  14563. var PartialEvaluator = (function PartialEvaluatorClosure() {
  14564. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  14565. uniquePrefix, idCounters, fontCache) {
  14566. this.pdfManager = pdfManager;
  14567. this.xref = xref;
  14568. this.handler = handler;
  14569. this.pageIndex = pageIndex;
  14570. this.uniquePrefix = uniquePrefix;
  14571. this.idCounters = idCounters;
  14572. this.fontCache = fontCache;
  14573. }
  14574. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  14575. PartialEvaluator.prototype = {
  14576. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  14577. if (!isDict(resources)) {
  14578. return false;
  14579. }
  14580. var processed = Object.create(null);
  14581. if (resources.objId) {
  14582. processed[resources.objId] = true;
  14583. }
  14584. var nodes = [resources];
  14585. while (nodes.length) {
  14586. var key;
  14587. var node = nodes.shift();
  14588. // First check the current resources for blend modes.
  14589. var graphicStates = node.get('ExtGState');
  14590. if (isDict(graphicStates)) {
  14591. graphicStates = graphicStates.getAll();
  14592. for (key in graphicStates) {
  14593. var graphicState = graphicStates[key];
  14594. var bm = graphicState['BM'];
  14595. if (isName(bm) && bm.name !== 'Normal') {
  14596. return true;
  14597. }
  14598. }
  14599. }
  14600. // Descend into the XObjects to look for more resources and blend modes.
  14601. var xObjects = node.get('XObject');
  14602. if (!isDict(xObjects)) {
  14603. continue;
  14604. }
  14605. xObjects = xObjects.getAll();
  14606. for (key in xObjects) {
  14607. var xObject = xObjects[key];
  14608. if (!isStream(xObject)) {
  14609. continue;
  14610. }
  14611. var xResources = xObject.dict.get('Resources');
  14612. // Checking objId to detect an infinite loop.
  14613. if (isDict(xResources) &&
  14614. (!xResources.objId || !processed[xResources.objId])) {
  14615. nodes.push(xResources);
  14616. if (xResources.objId) {
  14617. processed[xResources.objId] = true;
  14618. }
  14619. }
  14620. }
  14621. }
  14622. return false;
  14623. },
  14624. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  14625. xobj, smask,
  14626. operatorList,
  14627. initialState) {
  14628. var matrix = xobj.dict.get('Matrix');
  14629. var bbox = xobj.dict.get('BBox');
  14630. var group = xobj.dict.get('Group');
  14631. if (group) {
  14632. var groupOptions = {
  14633. matrix: matrix,
  14634. bbox: bbox,
  14635. smask: smask,
  14636. isolated: false,
  14637. knockout: false
  14638. };
  14639. var groupSubtype = group.get('S');
  14640. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  14641. groupOptions.isolated = (group.get('I') || false);
  14642. groupOptions.knockout = (group.get('K') || false);
  14643. var colorSpace = group.get('CS');
  14644. groupOptions.colorSpace = (colorSpace ?
  14645. ColorSpace.parseToIR(colorSpace, this.xref, resources) : null);
  14646. }
  14647. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  14648. }
  14649. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  14650. this.getOperatorList(xobj, (xobj.dict.get('Resources') || resources),
  14651. operatorList, initialState);
  14652. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  14653. if (group) {
  14654. operatorList.addOp(OPS.endGroup, [groupOptions]);
  14655. }
  14656. },
  14657. buildPaintImageXObject:
  14658. function PartialEvaluator_buildPaintImageXObject(resources, image,
  14659. inline, operatorList,
  14660. cacheKey, cache) {
  14661. var self = this;
  14662. var dict = image.dict;
  14663. var w = dict.get('Width', 'W');
  14664. var h = dict.get('Height', 'H');
  14665. if (!(w && isNum(w)) || !(h && isNum(h))) {
  14666. warn('Image dimensions are missing, or not numbers.');
  14667. return;
  14668. }
  14669. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  14670. warn('Image exceeded maximum allowed size and was removed.');
  14671. return;
  14672. }
  14673. var imageMask = (dict.get('ImageMask', 'IM') || false);
  14674. var imgData, args;
  14675. if (imageMask) {
  14676. // This depends on a tmpCanvas being filled with the
  14677. // current fillStyle, such that processing the pixel
  14678. // data can't be done here. Instead of creating a
  14679. // complete PDFImage, only read the information needed
  14680. // for later.
  14681. var width = dict.get('Width', 'W');
  14682. var height = dict.get('Height', 'H');
  14683. var bitStrideLength = (width + 7) >> 3;
  14684. var imgArray = image.getBytes(bitStrideLength * height);
  14685. var decode = dict.get('Decode', 'D');
  14686. var canTransfer = image instanceof DecodeStream;
  14687. var inverseDecode = (!!decode && decode[0] > 0);
  14688. imgData = PDFImage.createMask(imgArray, width, height,
  14689. canTransfer, inverseDecode);
  14690. imgData.cached = true;
  14691. args = [imgData];
  14692. operatorList.addOp(OPS.paintImageMaskXObject, args);
  14693. if (cacheKey) {
  14694. cache.key = cacheKey;
  14695. cache.fn = OPS.paintImageMaskXObject;
  14696. cache.args = args;
  14697. }
  14698. return;
  14699. }
  14700. var softMask = (dict.get('SMask', 'SM') || false);
  14701. var mask = (dict.get('Mask') || false);
  14702. var SMALL_IMAGE_DIMENSIONS = 200;
  14703. // Inlining small images into the queue as RGB data
  14704. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  14705. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  14706. var imageObj = new PDFImage(this.xref, resources, image,
  14707. inline, null, null);
  14708. // We force the use of RGBA_32BPP images here, because we can't handle
  14709. // any other kind.
  14710. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  14711. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  14712. return;
  14713. }
  14714. // If there is no imageMask, create the PDFImage and a lot
  14715. // of image processing can be done here.
  14716. var uniquePrefix = (this.uniquePrefix || '');
  14717. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  14718. operatorList.addDependency(objId);
  14719. args = [objId, w, h];
  14720. if (!softMask && !mask && image instanceof JpegStream &&
  14721. image.isNativelySupported(this.xref, resources)) {
  14722. // These JPEGs don't need any more processing so we can just send it.
  14723. operatorList.addOp(OPS.paintJpegXObject, args);
  14724. this.handler.send('obj',
  14725. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  14726. return;
  14727. }
  14728. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  14729. then(function(imageObj) {
  14730. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  14731. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  14732. null, [imgData.data.buffer]);
  14733. }).then(null, function (reason) {
  14734. warn('Unable to decode image: ' + reason);
  14735. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  14736. });
  14737. operatorList.addOp(OPS.paintImageXObject, args);
  14738. if (cacheKey) {
  14739. cache.key = cacheKey;
  14740. cache.fn = OPS.paintImageXObject;
  14741. cache.args = args;
  14742. }
  14743. },
  14744. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  14745. operatorList,
  14746. stateManager) {
  14747. var smaskContent = smask.get('G');
  14748. var smaskOptions = {
  14749. subtype: smask.get('S').name,
  14750. backdrop: smask.get('BC')
  14751. };
  14752. this.buildFormXObject(resources, smaskContent, smaskOptions,
  14753. operatorList, stateManager.state.clone());
  14754. },
  14755. handleTilingType:
  14756. function PartialEvaluator_handleTilingType(fn, args, resources,
  14757. pattern, patternDict,
  14758. operatorList) {
  14759. // Create an IR of the pattern code.
  14760. var tilingOpList = this.getOperatorList(pattern,
  14761. (patternDict.get('Resources') || resources));
  14762. // Add the dependencies to the parent operator list so they are resolved
  14763. // before sub operator list is executed synchronously.
  14764. operatorList.addDependencies(tilingOpList.dependencies);
  14765. operatorList.addOp(fn, getTilingPatternIR({
  14766. fnArray: tilingOpList.fnArray,
  14767. argsArray: tilingOpList.argsArray
  14768. }, patternDict, args));
  14769. },
  14770. handleSetFont:
  14771. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  14772. operatorList, state) {
  14773. // TODO(mack): Not needed?
  14774. var fontName;
  14775. if (fontArgs) {
  14776. fontArgs = fontArgs.slice();
  14777. fontName = fontArgs[0].name;
  14778. }
  14779. var self = this;
  14780. var font = this.loadFont(fontName, fontRef, this.xref, resources,
  14781. operatorList);
  14782. state.font = font;
  14783. var loadedName = font.loadedName;
  14784. if (!font.sent) {
  14785. var fontData = font.translated.exportData();
  14786. self.handler.send('commonobj', [
  14787. loadedName,
  14788. 'Font',
  14789. fontData
  14790. ]);
  14791. font.sent = true;
  14792. }
  14793. return loadedName;
  14794. },
  14795. handleText: function PartialEvaluator_handleText(chars, state) {
  14796. var font = state.font.translated;
  14797. var glyphs = font.charsToGlyphs(chars);
  14798. var isAddToPathSet = !!(state.textRenderingMode &
  14799. TextRenderingMode.ADD_TO_PATH_FLAG);
  14800. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  14801. for (var i = 0; i < glyphs.length; i++) {
  14802. if (glyphs[i] === null) {
  14803. continue;
  14804. }
  14805. var fontChar = glyphs[i].fontChar;
  14806. if (!font.renderer.hasBuiltPath(fontChar)) {
  14807. var path = font.renderer.getPathJs(fontChar);
  14808. this.handler.send('commonobj', [
  14809. font.loadedName + '_path_' + fontChar,
  14810. 'FontPath',
  14811. path
  14812. ]);
  14813. }
  14814. }
  14815. }
  14816. return glyphs;
  14817. },
  14818. setGState: function PartialEvaluator_setGState(resources, gState,
  14819. operatorList, xref,
  14820. stateManager) {
  14821. var self = this;
  14822. // TODO(mack): This should be rewritten so that this function returns
  14823. // what should be added to the queue during each iteration
  14824. function setGStateForKey(gStateObj, key, value) {
  14825. switch (key) {
  14826. case 'Type':
  14827. break;
  14828. case 'LW':
  14829. case 'LC':
  14830. case 'LJ':
  14831. case 'ML':
  14832. case 'D':
  14833. case 'RI':
  14834. case 'FL':
  14835. case 'CA':
  14836. case 'ca':
  14837. gStateObj.push([key, value]);
  14838. break;
  14839. case 'Font':
  14840. var loadedName = self.handleSetFont(resources, null, value[0],
  14841. operatorList,
  14842. stateManager.state);
  14843. operatorList.addDependency(loadedName);
  14844. gStateObj.push([key, [loadedName, value[1]]]);
  14845. break;
  14846. case 'BM':
  14847. gStateObj.push([key, value]);
  14848. break;
  14849. case 'SMask':
  14850. if (isName(value) && value.name === 'None') {
  14851. gStateObj.push([key, false]);
  14852. break;
  14853. }
  14854. var dict = xref.fetchIfRef(value);
  14855. if (isDict(dict)) {
  14856. self.handleSMask(dict, resources, operatorList, stateManager);
  14857. gStateObj.push([key, true]);
  14858. } else {
  14859. warn('Unsupported SMask type');
  14860. }
  14861. break;
  14862. // Only generate info log messages for the following since
  14863. // they are unlikey to have a big impact on the rendering.
  14864. case 'OP':
  14865. case 'op':
  14866. case 'OPM':
  14867. case 'BG':
  14868. case 'BG2':
  14869. case 'UCR':
  14870. case 'UCR2':
  14871. case 'TR':
  14872. case 'TR2':
  14873. case 'HT':
  14874. case 'SM':
  14875. case 'SA':
  14876. case 'AIS':
  14877. case 'TK':
  14878. // TODO implement these operators.
  14879. info('graphic state operator ' + key);
  14880. break;
  14881. default:
  14882. info('Unknown graphic state operator ' + key);
  14883. break;
  14884. }
  14885. }
  14886. // This array holds the converted/processed state data.
  14887. var gStateObj = [];
  14888. var gStateMap = gState.map;
  14889. for (var key in gStateMap) {
  14890. var value = gStateMap[key];
  14891. setGStateForKey(gStateObj, key, value);
  14892. }
  14893. operatorList.addOp(OPS.setGState, [gStateObj]);
  14894. },
  14895. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  14896. resources,
  14897. parentOperatorList) {
  14898. function errorFont() {
  14899. return {
  14900. translated: new ErrorFont('Font ' + fontName + ' is not available'),
  14901. loadedName: 'g_font_error'
  14902. };
  14903. }
  14904. var fontRef;
  14905. if (font) { // Loading by ref.
  14906. assert(isRef(font));
  14907. fontRef = font;
  14908. } else { // Loading by name.
  14909. var fontRes = resources.get('Font');
  14910. if (fontRes) {
  14911. fontRef = fontRes.getRaw(fontName);
  14912. } else {
  14913. warn('fontRes not available');
  14914. return errorFont();
  14915. }
  14916. }
  14917. if (this.fontCache.has(fontRef)) {
  14918. return this.fontCache.get(fontRef);
  14919. }
  14920. font = xref.fetchIfRef(fontRef);
  14921. if (!isDict(font)) {
  14922. return errorFont();
  14923. }
  14924. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  14925. var descriptor = preEvaluatedFont.descriptor;
  14926. var fontID = fontRef.num + '_' + fontRef.gen;
  14927. if (isDict(descriptor)) {
  14928. if (!descriptor.fontAliases) {
  14929. descriptor.fontAliases = Object.create(null);
  14930. }
  14931. var fontAliases = descriptor.fontAliases;
  14932. var hash = preEvaluatedFont.hash;
  14933. if (fontAliases[hash]) {
  14934. var aliasFontRef = fontAliases[hash].aliasRef;
  14935. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  14936. this.fontCache.putAlias(fontRef, aliasFontRef);
  14937. var cachedFont = this.fontCache.get(fontRef);
  14938. return cachedFont;
  14939. }
  14940. }
  14941. if (!fontAliases[hash]) {
  14942. fontAliases[hash] = {
  14943. fontID: Font.getFontID()
  14944. };
  14945. }
  14946. fontAliases[hash].aliasRef = fontRef;
  14947. fontID = fontAliases[hash].fontID;
  14948. }
  14949. // Workaround for bad PDF generators that don't reference fonts
  14950. // properly, i.e. by not using an object identifier.
  14951. // Check if the fontRef is a Dict (as opposed to a standard object),
  14952. // in which case we don't cache the font and instead reference it by
  14953. // fontName in font.loadedName below.
  14954. var fontRefIsDict = isDict(fontRef);
  14955. if (!fontRefIsDict) {
  14956. this.fontCache.put(fontRef, font);
  14957. }
  14958. // Keep track of each font we translated so the caller can
  14959. // load them asynchronously before calling display on a page.
  14960. font.loadedName = 'g_font_' + (fontRefIsDict ?
  14961. fontName.replace(/\W/g, '') : fontID);
  14962. if (!font.translated) {
  14963. var translated;
  14964. try {
  14965. translated = this.translateFont(preEvaluatedFont, xref);
  14966. } catch (e) {
  14967. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  14968. translated = new ErrorFont(e instanceof Error ? e.message : e);
  14969. }
  14970. font.translated = translated;
  14971. }
  14972. if (font.translated.loadCharProcs) {
  14973. var charProcs = font.get('CharProcs').getAll();
  14974. var fontResources = (font.get('Resources') || resources);
  14975. var charProcKeys = Object.keys(charProcs);
  14976. var charProcOperatorList = {};
  14977. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  14978. var key = charProcKeys[i];
  14979. var glyphStream = charProcs[key];
  14980. var operatorList = this.getOperatorList(glyphStream, fontResources);
  14981. charProcOperatorList[key] = operatorList.getIR();
  14982. if (!parentOperatorList) {
  14983. continue;
  14984. }
  14985. // Add the dependencies to the parent operator list so they are
  14986. // resolved before sub operator list is executed synchronously.
  14987. parentOperatorList.addDependencies(charProcOperatorList.dependencies);
  14988. }
  14989. font.translated.charProcOperatorList = charProcOperatorList;
  14990. }
  14991. font.loaded = true;
  14992. return font;
  14993. },
  14994. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  14995. var lastIndex = operatorList.length - 1;
  14996. if (lastIndex < 0 ||
  14997. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  14998. operatorList.addOp(OPS.constructPath, [[fn], args]);
  14999. } else {
  15000. var opArgs = operatorList.argsArray[lastIndex];
  15001. opArgs[0].push(fn);
  15002. Array.prototype.push.apply(opArgs[1], args);
  15003. }
  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 | 0) {
  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. case OPS.moveTo:
  15159. case OPS.lineTo:
  15160. case OPS.curveTo:
  15161. case OPS.curveTo2:
  15162. case OPS.curveTo3:
  15163. case OPS.closePath:
  15164. self.buildPath(operatorList, fn, args);
  15165. continue;
  15166. }
  15167. operatorList.addOp(fn, args);
  15168. }
  15169. // Some PDFs don't close all restores inside object/form.
  15170. // Closing those for them.
  15171. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  15172. operatorList.addOp(OPS.restore, []);
  15173. }
  15174. return operatorList;
  15175. },
  15176. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  15177. stateManager) {
  15178. stateManager = (stateManager || new StateManager(new TextState()));
  15179. var textContent = {
  15180. items: [],
  15181. styles: Object.create(null)
  15182. };
  15183. var bidiTexts = textContent.items;
  15184. var SPACE_FACTOR = 0.35;
  15185. var MULTI_SPACE_FACTOR = 1.5;
  15186. var self = this;
  15187. var xref = this.xref;
  15188. resources = (xref.fetchIfRef(resources) || Dict.empty);
  15189. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  15190. var xobjs = null;
  15191. var xobjsCache = {};
  15192. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15193. var operation;
  15194. var textState;
  15195. function newTextChunk() {
  15196. var font = textState.font;
  15197. if (!(font.loadedName in textContent.styles)) {
  15198. textContent.styles[font.loadedName] = {
  15199. fontFamily: font.fallbackName,
  15200. ascent: font.ascent,
  15201. descent: font.descent,
  15202. vertical: font.vertical
  15203. };
  15204. }
  15205. return {
  15206. str: '',
  15207. dir: null,
  15208. width: 0,
  15209. height: 0,
  15210. transform: null,
  15211. fontName: font.loadedName
  15212. };
  15213. }
  15214. function runBidi(textChunk) {
  15215. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  15216. textChunk.str = bidiResult.str;
  15217. textChunk.dir = bidiResult.dir;
  15218. return textChunk;
  15219. }
  15220. function handleSetFont(fontName, fontRef) {
  15221. var font = textState.font = self.loadFont(fontName, fontRef, xref,
  15222. resources, null).translated;
  15223. textState.fontMatrix = font.fontMatrix ? font.fontMatrix :
  15224. FONT_IDENTITY_MATRIX;
  15225. }
  15226. function buildTextGeometry(chars, textChunk) {
  15227. var font = textState.font;
  15228. textChunk = textChunk || newTextChunk();
  15229. if (!textChunk.transform) {
  15230. // 9.4.4 Text Space Details
  15231. var tsm = [textState.fontSize * textState.textHScale, 0,
  15232. 0, textState.fontSize,
  15233. 0, textState.textRise];
  15234. var trm = textChunk.transform = Util.transform(textState.ctm,
  15235. Util.transform(textState.textMatrix, tsm));
  15236. if (!font.vertical) {
  15237. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  15238. } else {
  15239. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  15240. }
  15241. }
  15242. var width = 0;
  15243. var height = 0;
  15244. var glyphs = font.charsToGlyphs(chars);
  15245. var defaultVMetrics = font.defaultVMetrics;
  15246. for (var i = 0; i < glyphs.length; i++) {
  15247. var glyph = glyphs[i];
  15248. if (!glyph) { // Previous glyph was a space.
  15249. width += textState.wordSpacing * textState.textHScale;
  15250. continue;
  15251. }
  15252. var vMetricX = null;
  15253. var vMetricY = null;
  15254. var glyphWidth = null;
  15255. if (font.vertical) {
  15256. if (glyph.vmetric) {
  15257. glyphWidth = glyph.vmetric[0];
  15258. vMetricX = glyph.vmetric[1];
  15259. vMetricY = glyph.vmetric[2];
  15260. } else {
  15261. glyphWidth = glyph.width;
  15262. vMetricX = glyph.width * 0.5;
  15263. vMetricY = defaultVMetrics[2];
  15264. }
  15265. } else {
  15266. glyphWidth = glyph.width;
  15267. }
  15268. var glyphUnicode = glyph.unicode;
  15269. if (glyphUnicode in NormalizedUnicodes) {
  15270. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  15271. }
  15272. glyphUnicode = reverseIfRtl(glyphUnicode);
  15273. // The following will calculate the x and y of the individual glyphs.
  15274. // if (font.vertical) {
  15275. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  15276. // textState.fontMatrix[0];
  15277. // tsm[5] -= vMetricY * textState.fontSize *
  15278. // textState.fontMatrix[0];
  15279. // }
  15280. // var trm = Util.transform(textState.textMatrix, tsm);
  15281. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  15282. // var x = pt[0];
  15283. // var y = pt[1];
  15284. var tx = 0;
  15285. var ty = 0;
  15286. if (!font.vertical) {
  15287. var w0 = glyphWidth * textState.fontMatrix[0];
  15288. tx = (w0 * textState.fontSize + textState.charSpacing) *
  15289. textState.textHScale;
  15290. width += tx;
  15291. } else {
  15292. var w1 = glyphWidth * textState.fontMatrix[0];
  15293. ty = w1 * textState.fontSize + textState.charSpacing;
  15294. height += ty;
  15295. }
  15296. textState.translateTextMatrix(tx, ty);
  15297. textChunk.str += glyphUnicode;
  15298. }
  15299. var a = textState.textLineMatrix[0];
  15300. var b = textState.textLineMatrix[1];
  15301. var scaleLineX = Math.sqrt(a * a + b * b);
  15302. a = textState.ctm[0];
  15303. b = textState.ctm[1];
  15304. var scaleCtmX = Math.sqrt(a * a + b * b);
  15305. if (!font.vertical) {
  15306. textChunk.width += width * scaleCtmX * scaleLineX;
  15307. } else {
  15308. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  15309. }
  15310. return textChunk;
  15311. }
  15312. while ((operation = preprocessor.read())) {
  15313. textState = stateManager.state;
  15314. var fn = operation.fn;
  15315. var args = operation.args;
  15316. switch (fn | 0) {
  15317. case OPS.setFont:
  15318. handleSetFont(args[0].name);
  15319. textState.fontSize = args[1];
  15320. break;
  15321. case OPS.setTextRise:
  15322. textState.textRise = args[0];
  15323. break;
  15324. case OPS.setHScale:
  15325. textState.textHScale = args[0] / 100;
  15326. break;
  15327. case OPS.setLeading:
  15328. textState.leading = args[0];
  15329. break;
  15330. case OPS.moveText:
  15331. textState.translateTextLineMatrix(args[0], args[1]);
  15332. textState.textMatrix = textState.textLineMatrix.slice();
  15333. break;
  15334. case OPS.setLeadingMoveText:
  15335. textState.leading = -args[1];
  15336. textState.translateTextLineMatrix(args[0], args[1]);
  15337. textState.textMatrix = textState.textLineMatrix.slice();
  15338. break;
  15339. case OPS.nextLine:
  15340. textState.carriageReturn();
  15341. break;
  15342. case OPS.setTextMatrix:
  15343. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  15344. args[4], args[5]);
  15345. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  15346. args[4], args[5]);
  15347. break;
  15348. case OPS.setCharSpacing:
  15349. textState.charSpacing = args[0];
  15350. break;
  15351. case OPS.setWordSpacing:
  15352. textState.wordSpacing = args[0];
  15353. break;
  15354. case OPS.beginText:
  15355. textState.textMatrix = IDENTITY_MATRIX.slice();
  15356. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  15357. break;
  15358. case OPS.showSpacedText:
  15359. var items = args[0];
  15360. var textChunk = newTextChunk();
  15361. var offset;
  15362. for (var j = 0, jj = items.length; j < jj; j++) {
  15363. if (typeof items[j] === 'string') {
  15364. buildTextGeometry(items[j], textChunk);
  15365. } else {
  15366. var val = items[j] / 1000;
  15367. if (!textState.font.vertical) {
  15368. offset = -val * textState.fontSize * textState.textHScale *
  15369. textState.textMatrix[0];
  15370. textState.translateTextMatrix(offset, 0);
  15371. textChunk.width += offset;
  15372. } else {
  15373. offset = -val * textState.fontSize * textState.textMatrix[3];
  15374. textState.translateTextMatrix(0, offset);
  15375. textChunk.height += offset;
  15376. }
  15377. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  15378. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  15379. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  15380. fakeSpaces = Math.round(fakeSpaces);
  15381. while (fakeSpaces--) {
  15382. textChunk.str += ' ';
  15383. }
  15384. } else if (fakeSpaces > SPACE_FACTOR) {
  15385. textChunk.str += ' ';
  15386. }
  15387. }
  15388. }
  15389. }
  15390. bidiTexts.push(runBidi(textChunk));
  15391. break;
  15392. case OPS.showText:
  15393. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15394. break;
  15395. case OPS.nextLineShowText:
  15396. textState.carriageReturn();
  15397. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15398. break;
  15399. case OPS.nextLineSetSpacingShowText:
  15400. textState.wordSpacing = args[0];
  15401. textState.charSpacing = args[1];
  15402. textState.carriageReturn();
  15403. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  15404. break;
  15405. case OPS.paintXObject:
  15406. if (args[0].code) {
  15407. break;
  15408. }
  15409. if (!xobjs) {
  15410. xobjs = (resources.get('XObject') || Dict.empty);
  15411. }
  15412. var name = args[0].name;
  15413. if (xobjsCache.key === name) {
  15414. if (xobjsCache.texts) {
  15415. Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
  15416. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  15417. }
  15418. break;
  15419. }
  15420. var xobj = xobjs.get(name);
  15421. if (!xobj) {
  15422. break;
  15423. }
  15424. assert(isStream(xobj), 'XObject should be a stream');
  15425. var type = xobj.dict.get('Subtype');
  15426. assert(isName(type),
  15427. 'XObject should have a Name subtype');
  15428. if ('Form' !== type.name) {
  15429. xobjsCache.key = name;
  15430. xobjsCache.texts = null;
  15431. break;
  15432. }
  15433. stateManager.save();
  15434. var matrix = xobj.dict.get('Matrix');
  15435. if (isArray(matrix) && matrix.length === 6) {
  15436. stateManager.transform(matrix);
  15437. }
  15438. var formTextContent = this.getTextContent(
  15439. xobj,
  15440. xobj.dict.get('Resources') || resources,
  15441. stateManager
  15442. );
  15443. Util.concatenateToArray(bidiTexts, formTextContent.items);
  15444. Util.extendObj(textContent.styles, formTextContent.styles);
  15445. stateManager.restore();
  15446. xobjsCache.key = name;
  15447. xobjsCache.texts = formTextContent;
  15448. break;
  15449. case OPS.setGState:
  15450. var dictName = args[0];
  15451. var extGState = resources.get('ExtGState');
  15452. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15453. break;
  15454. }
  15455. var gsState = extGState.get(dictName.name);
  15456. for (var i = 0; i < gsState.length; i++) {
  15457. if (gsState[i] === 'Font') {
  15458. handleSetFont(args[0].name);
  15459. }
  15460. }
  15461. break;
  15462. } // switch
  15463. } // while
  15464. return textContent;
  15465. },
  15466. extractDataStructures: function
  15467. partialEvaluatorExtractDataStructures(dict, baseDict,
  15468. xref, properties) {
  15469. // 9.10.2
  15470. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  15471. if (toUnicode) {
  15472. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  15473. }
  15474. if (properties.composite) {
  15475. // CIDSystemInfo helps to match CID to glyphs
  15476. var cidSystemInfo = dict.get('CIDSystemInfo');
  15477. if (isDict(cidSystemInfo)) {
  15478. properties.cidSystemInfo = {
  15479. registry: cidSystemInfo.get('Registry'),
  15480. ordering: cidSystemInfo.get('Ordering'),
  15481. supplement: cidSystemInfo.get('Supplement')
  15482. };
  15483. }
  15484. var cidToGidMap = dict.get('CIDToGIDMap');
  15485. if (isStream(cidToGidMap)) {
  15486. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  15487. }
  15488. }
  15489. // Based on 9.6.6 of the spec the encoding can come from multiple places
  15490. // and depends on the font type. The base encoding and differences are
  15491. // read here, but the encoding that is actually used is chosen during
  15492. // glyph mapping in the font.
  15493. // TODO: Loading the built in encoding in the font would allow the
  15494. // differences to be merged in here not require us to hold on to it.
  15495. var differences = [];
  15496. var baseEncodingName = null;
  15497. var encoding;
  15498. if (dict.has('Encoding')) {
  15499. encoding = dict.get('Encoding');
  15500. if (isDict(encoding)) {
  15501. baseEncodingName = encoding.get('BaseEncoding');
  15502. baseEncodingName = (isName(baseEncodingName) ?
  15503. baseEncodingName.name : null);
  15504. // Load the differences between the base and original
  15505. if (encoding.has('Differences')) {
  15506. var diffEncoding = encoding.get('Differences');
  15507. var index = 0;
  15508. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  15509. var data = diffEncoding[j];
  15510. if (isNum(data)) {
  15511. index = data;
  15512. } else {
  15513. differences[index++] = data.name;
  15514. }
  15515. }
  15516. }
  15517. } else if (isName(encoding)) {
  15518. baseEncodingName = encoding.name;
  15519. } else {
  15520. error('Encoding is not a Name nor a Dict');
  15521. }
  15522. // According to table 114 if the encoding is a named encoding it must be
  15523. // one of these predefined encodings.
  15524. if ((baseEncodingName !== 'MacRomanEncoding' &&
  15525. baseEncodingName !== 'MacExpertEncoding' &&
  15526. baseEncodingName !== 'WinAnsiEncoding')) {
  15527. baseEncodingName = null;
  15528. }
  15529. }
  15530. if (baseEncodingName) {
  15531. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  15532. } else {
  15533. encoding = (properties.type === 'TrueType' ?
  15534. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  15535. // The Symbolic attribute can be misused for regular fonts
  15536. // Heuristic: we have to check if the font is a standard one also
  15537. if (!!(properties.flags & FontFlags.Symbolic)) {
  15538. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  15539. Encodings.SymbolSetEncoding :
  15540. Encodings.MacRomanEncoding);
  15541. }
  15542. properties.defaultEncoding = encoding;
  15543. }
  15544. properties.differences = differences;
  15545. properties.baseEncodingName = baseEncodingName;
  15546. properties.dict = dict;
  15547. },
  15548. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  15549. var cmapObj = toUnicode;
  15550. if (isName(cmapObj)) {
  15551. return CMapFactory.create(cmapObj).map;
  15552. } else if (isStream(cmapObj)) {
  15553. var cmap = CMapFactory.create(cmapObj).map;
  15554. // Convert UTF-16BE
  15555. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  15556. // to iterate over all keys.
  15557. cmap.forEach(function(token, i) {
  15558. var str = [];
  15559. for (var k = 0; k < token.length; k += 2) {
  15560. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15561. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  15562. str.push(w1);
  15563. continue;
  15564. }
  15565. k += 2;
  15566. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15567. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  15568. }
  15569. cmap[i] = String.fromCharCode.apply(String, str);
  15570. });
  15571. return cmap;
  15572. }
  15573. return null;
  15574. },
  15575. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  15576. // Extract the encoding from the CIDToGIDMap
  15577. var glyphsData = cidToGidStream.getBytes();
  15578. // Set encoding 0 to later verify the font has an encoding
  15579. var result = [];
  15580. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  15581. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  15582. if (glyphID === 0) {
  15583. continue;
  15584. }
  15585. var code = j >> 1;
  15586. result[code] = glyphID;
  15587. }
  15588. return result;
  15589. },
  15590. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  15591. descriptor,
  15592. properties) {
  15593. var glyphsWidths = [];
  15594. var defaultWidth = 0;
  15595. var glyphsVMetrics = [];
  15596. var defaultVMetrics;
  15597. var i, ii, j, jj, start, code, widths;
  15598. if (properties.composite) {
  15599. defaultWidth = dict.get('DW') || 1000;
  15600. widths = dict.get('W');
  15601. if (widths) {
  15602. for (i = 0, ii = widths.length; i < ii; i++) {
  15603. start = widths[i++];
  15604. code = xref.fetchIfRef(widths[i]);
  15605. if (isArray(code)) {
  15606. for (j = 0, jj = code.length; j < jj; j++) {
  15607. glyphsWidths[start++] = code[j];
  15608. }
  15609. } else {
  15610. var width = widths[++i];
  15611. for (j = start; j <= code; j++) {
  15612. glyphsWidths[j] = width;
  15613. }
  15614. }
  15615. }
  15616. }
  15617. if (properties.vertical) {
  15618. var vmetrics = (dict.get('DW2') || [880, -1000]);
  15619. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  15620. vmetrics = dict.get('W2');
  15621. if (vmetrics) {
  15622. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  15623. start = vmetrics[i++];
  15624. code = xref.fetchIfRef(vmetrics[i]);
  15625. if (isArray(code)) {
  15626. for (j = 0, jj = code.length; j < jj; j++) {
  15627. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  15628. }
  15629. } else {
  15630. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  15631. for (j = start; j <= code; j++) {
  15632. glyphsVMetrics[j] = vmetric;
  15633. }
  15634. }
  15635. }
  15636. }
  15637. }
  15638. } else {
  15639. var firstChar = properties.firstChar;
  15640. widths = dict.get('Widths');
  15641. if (widths) {
  15642. j = firstChar;
  15643. for (i = 0, ii = widths.length; i < ii; i++) {
  15644. glyphsWidths[j++] = widths[i];
  15645. }
  15646. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  15647. } else {
  15648. // Trying get the BaseFont metrics (see comment above).
  15649. var baseFontName = dict.get('BaseFont');
  15650. if (isName(baseFontName)) {
  15651. var metrics = this.getBaseFontMetrics(baseFontName.name);
  15652. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  15653. properties);
  15654. defaultWidth = metrics.defaultWidth;
  15655. }
  15656. }
  15657. }
  15658. // Heuristic: detection of monospace font by checking all non-zero widths
  15659. var isMonospace = true;
  15660. var firstWidth = defaultWidth;
  15661. for (var glyph in glyphsWidths) {
  15662. var glyphWidth = glyphsWidths[glyph];
  15663. if (!glyphWidth) {
  15664. continue;
  15665. }
  15666. if (!firstWidth) {
  15667. firstWidth = glyphWidth;
  15668. continue;
  15669. }
  15670. if (firstWidth != glyphWidth) {
  15671. isMonospace = false;
  15672. break;
  15673. }
  15674. }
  15675. if (isMonospace) {
  15676. properties.flags |= FontFlags.FixedPitch;
  15677. }
  15678. properties.defaultWidth = defaultWidth;
  15679. properties.widths = glyphsWidths;
  15680. properties.defaultVMetrics = defaultVMetrics;
  15681. properties.vmetrics = glyphsVMetrics;
  15682. },
  15683. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  15684. // Simulating descriptor flags attribute
  15685. var fontNameWoStyle = baseFontName.split('-')[0];
  15686. return (fontNameWoStyle in serifFonts) ||
  15687. (fontNameWoStyle.search(/serif/gi) !== -1);
  15688. },
  15689. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  15690. var defaultWidth = 0;
  15691. var widths = [];
  15692. var monospace = false;
  15693. var lookupName = (stdFontMap[name] || name);
  15694. if (!(lookupName in Metrics)) {
  15695. // Use default fonts for looking up font metrics if the passed
  15696. // font is not a base font
  15697. if (this.isSerifFont(name)) {
  15698. lookupName = 'Times-Roman';
  15699. } else {
  15700. lookupName = 'Helvetica';
  15701. }
  15702. }
  15703. var glyphWidths = Metrics[lookupName];
  15704. if (isNum(glyphWidths)) {
  15705. defaultWidth = glyphWidths;
  15706. monospace = true;
  15707. } else {
  15708. widths = glyphWidths;
  15709. }
  15710. return {
  15711. defaultWidth: defaultWidth,
  15712. monospace: monospace,
  15713. widths: widths
  15714. };
  15715. },
  15716. buildCharCodeToWidth:
  15717. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  15718. properties) {
  15719. var widths = Object.create(null);
  15720. var differences = properties.differences;
  15721. var encoding = properties.defaultEncoding;
  15722. for (var charCode = 0; charCode < 256; charCode++) {
  15723. if (charCode in differences &&
  15724. widthsByGlyphName[differences[charCode]]) {
  15725. widths[charCode] = widthsByGlyphName[differences[charCode]];
  15726. continue;
  15727. }
  15728. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  15729. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  15730. continue;
  15731. }
  15732. }
  15733. return widths;
  15734. },
  15735. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  15736. var baseDict = dict;
  15737. var type = dict.get('Subtype');
  15738. assert(isName(type), 'invalid font Subtype');
  15739. var composite = false;
  15740. var uint8array;
  15741. if (type.name == 'Type0') {
  15742. // If font is a composite
  15743. // - get the descendant font
  15744. // - set the type according to the descendant font
  15745. // - get the FontDescriptor from the descendant font
  15746. var df = dict.get('DescendantFonts');
  15747. if (!df) {
  15748. error('Descendant fonts are not specified');
  15749. }
  15750. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  15751. type = dict.get('Subtype');
  15752. assert(isName(type), 'invalid font Subtype');
  15753. composite = true;
  15754. }
  15755. var descriptor = dict.get('FontDescriptor');
  15756. if (descriptor) {
  15757. var hash = new MurmurHash3_64();
  15758. var encoding = baseDict.getRaw('Encoding');
  15759. if (isName(encoding)) {
  15760. hash.update(encoding.name);
  15761. } else if (isRef(encoding)) {
  15762. hash.update(encoding.num + '_' + encoding.gen);
  15763. }
  15764. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  15765. if (isStream(toUnicode)) {
  15766. var stream = toUnicode.str || toUnicode;
  15767. uint8array = stream.buffer ?
  15768. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  15769. new Uint8Array(stream.bytes.buffer,
  15770. stream.start, stream.end - stream.start);
  15771. hash.update(uint8array);
  15772. } else if (isName(toUnicode)) {
  15773. hash.update(toUnicode.name);
  15774. }
  15775. var widths = dict.get('Widths') || baseDict.get('Widths');
  15776. if (widths) {
  15777. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  15778. hash.update(uint8array);
  15779. }
  15780. }
  15781. return {
  15782. descriptor: descriptor,
  15783. dict: dict,
  15784. baseDict: baseDict,
  15785. composite: composite,
  15786. hash: hash ? hash.hexdigest() : ''
  15787. };
  15788. },
  15789. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  15790. xref) {
  15791. var baseDict = preEvaluatedFont.baseDict;
  15792. var dict = preEvaluatedFont.dict;
  15793. var composite = preEvaluatedFont.composite;
  15794. var descriptor = preEvaluatedFont.descriptor;
  15795. var type = dict.get('Subtype');
  15796. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  15797. var properties;
  15798. if (!descriptor) {
  15799. if (type.name == 'Type3') {
  15800. // FontDescriptor is only required for Type3 fonts when the document
  15801. // is a tagged pdf. Create a barbebones one to get by.
  15802. descriptor = new Dict(null);
  15803. descriptor.set('FontName', Name.get(type.name));
  15804. } else {
  15805. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  15806. // FontDescriptor was not required.
  15807. // This case is here for compatibility.
  15808. var baseFontName = dict.get('BaseFont');
  15809. if (!isName(baseFontName)) {
  15810. error('Base font is not specified');
  15811. }
  15812. // Using base font name as a font name.
  15813. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  15814. var metrics = this.getBaseFontMetrics(baseFontName);
  15815. // Simulating descriptor flags attribute
  15816. var fontNameWoStyle = baseFontName.split('-')[0];
  15817. var flags =
  15818. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  15819. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  15820. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  15821. FontFlags.Nonsymbolic);
  15822. properties = {
  15823. type: type.name,
  15824. name: baseFontName,
  15825. widths: metrics.widths,
  15826. defaultWidth: metrics.defaultWidth,
  15827. flags: flags,
  15828. firstChar: 0,
  15829. lastChar: maxCharIndex
  15830. };
  15831. this.extractDataStructures(dict, dict, xref, properties);
  15832. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  15833. properties);
  15834. return new Font(baseFontName, null, properties);
  15835. }
  15836. }
  15837. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  15838. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  15839. // to ignore this rule when a variant of a standart font is used.
  15840. // TODO Fill the width array depending on which of the base font this is
  15841. // a variant.
  15842. var firstChar = (dict.get('FirstChar') || 0);
  15843. var lastChar = (dict.get('LastChar') || maxCharIndex);
  15844. var fontName = descriptor.get('FontName');
  15845. var baseFont = dict.get('BaseFont');
  15846. // Some bad PDFs have a string as the font name.
  15847. if (isString(fontName)) {
  15848. fontName = Name.get(fontName);
  15849. }
  15850. if (isString(baseFont)) {
  15851. baseFont = Name.get(baseFont);
  15852. }
  15853. if (type.name !== 'Type3') {
  15854. var fontNameStr = fontName && fontName.name;
  15855. var baseFontStr = baseFont && baseFont.name;
  15856. if (fontNameStr !== baseFontStr) {
  15857. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  15858. '" but should be the same as the Font\'s BaseFont "' +
  15859. baseFontStr + '"');
  15860. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  15861. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  15862. if (fontNameStr && baseFontStr &&
  15863. baseFontStr.search(fontNameStr) === 0) {
  15864. fontName = baseFont;
  15865. }
  15866. }
  15867. }
  15868. fontName = (fontName || baseFont);
  15869. assert(isName(fontName), 'invalid font name');
  15870. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  15871. if (fontFile) {
  15872. if (fontFile.dict) {
  15873. var subtype = fontFile.dict.get('Subtype');
  15874. if (subtype) {
  15875. subtype = subtype.name;
  15876. }
  15877. var length1 = fontFile.dict.get('Length1');
  15878. var length2 = fontFile.dict.get('Length2');
  15879. }
  15880. }
  15881. properties = {
  15882. type: type.name,
  15883. name: fontName.name,
  15884. subtype: subtype,
  15885. file: fontFile,
  15886. length1: length1,
  15887. length2: length2,
  15888. loadedName: baseDict.loadedName,
  15889. composite: composite,
  15890. wideChars: composite,
  15891. fixedPitch: false,
  15892. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  15893. firstChar: firstChar || 0,
  15894. lastChar: (lastChar || maxCharIndex),
  15895. bbox: descriptor.get('FontBBox'),
  15896. ascent: descriptor.get('Ascent'),
  15897. descent: descriptor.get('Descent'),
  15898. xHeight: descriptor.get('XHeight'),
  15899. capHeight: descriptor.get('CapHeight'),
  15900. flags: descriptor.get('Flags'),
  15901. italicAngle: descriptor.get('ItalicAngle'),
  15902. coded: false
  15903. };
  15904. if (composite) {
  15905. var cidEncoding = baseDict.get('Encoding');
  15906. if (isName(cidEncoding)) {
  15907. properties.cidEncoding = cidEncoding.name;
  15908. }
  15909. properties.cMap = CMapFactory.create(cidEncoding,
  15910. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  15911. properties.vertical = properties.cMap.vertical;
  15912. }
  15913. this.extractDataStructures(dict, baseDict, xref, properties);
  15914. this.extractWidths(dict, xref, descriptor, properties);
  15915. if (type.name === 'Type3') {
  15916. properties.coded = true;
  15917. }
  15918. return new Font(fontName.name, fontFile, properties);
  15919. }
  15920. };
  15921. return PartialEvaluator;
  15922. })();
  15923. var OperatorList = (function OperatorListClosure() {
  15924. var CHUNK_SIZE = 1000;
  15925. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  15926. function getTransfers(queue) {
  15927. var transfers = [];
  15928. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  15929. for (var i = 0, ii = queue.length; i < ii; i++) {
  15930. switch (fnArray[i]) {
  15931. case OPS.paintInlineImageXObject:
  15932. case OPS.paintInlineImageXObjectGroup:
  15933. case OPS.paintImageMaskXObject:
  15934. var arg = argsArray[i][0]; // first param in imgData
  15935. if (!arg.cached) {
  15936. transfers.push(arg.data.buffer);
  15937. }
  15938. break;
  15939. }
  15940. }
  15941. return transfers;
  15942. }
  15943. function OperatorList(intent, messageHandler, pageIndex) {
  15944. this.messageHandler = messageHandler;
  15945. this.fnArray = [];
  15946. this.argsArray = [];
  15947. this.dependencies = {};
  15948. this.pageIndex = pageIndex;
  15949. this.intent = intent;
  15950. }
  15951. OperatorList.prototype = {
  15952. get length() {
  15953. return this.argsArray.length;
  15954. },
  15955. addOp: function(fn, args) {
  15956. this.fnArray.push(fn);
  15957. this.argsArray.push(args);
  15958. if (this.messageHandler) {
  15959. if (this.fnArray.length >= CHUNK_SIZE) {
  15960. this.flush();
  15961. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  15962. (fn === OPS.restore || fn === OPS.endText)) {
  15963. // heuristic to flush on boundary of restore or endText
  15964. this.flush();
  15965. }
  15966. }
  15967. },
  15968. addDependency: function(dependency) {
  15969. if (dependency in this.dependencies) {
  15970. return;
  15971. }
  15972. this.dependencies[dependency] = true;
  15973. this.addOp(OPS.dependency, [dependency]);
  15974. },
  15975. addDependencies: function(dependencies) {
  15976. for (var key in dependencies) {
  15977. this.addDependency(key);
  15978. }
  15979. },
  15980. addOpList: function(opList) {
  15981. Util.extendObj(this.dependencies, opList.dependencies);
  15982. for (var i = 0, ii = opList.length; i < ii; i++) {
  15983. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  15984. }
  15985. },
  15986. getIR: function() {
  15987. return {
  15988. fnArray: this.fnArray,
  15989. argsArray: this.argsArray,
  15990. length: this.length
  15991. };
  15992. },
  15993. flush: function(lastChunk) {
  15994. new QueueOptimizer().optimize(this);
  15995. var transfers = getTransfers(this);
  15996. this.messageHandler.send('RenderPageChunk', {
  15997. operatorList: {
  15998. fnArray: this.fnArray,
  15999. argsArray: this.argsArray,
  16000. lastChunk: lastChunk,
  16001. length: this.length
  16002. },
  16003. pageIndex: this.pageIndex,
  16004. intent: this.intent
  16005. }, null, transfers);
  16006. this.dependencies = {};
  16007. this.fnArray.length = 0;
  16008. this.argsArray.length = 0;
  16009. }
  16010. };
  16011. return OperatorList;
  16012. })();
  16013. var StateManager = (function StateManagerClosure() {
  16014. function StateManager(initialState) {
  16015. this.state = initialState;
  16016. this.stateStack = [];
  16017. }
  16018. StateManager.prototype = {
  16019. save: function () {
  16020. var old = this.state;
  16021. this.stateStack.push(this.state);
  16022. this.state = old.clone();
  16023. },
  16024. restore: function () {
  16025. var prev = this.stateStack.pop();
  16026. if (prev) {
  16027. this.state = prev;
  16028. }
  16029. },
  16030. transform: function (args) {
  16031. this.state.ctm = Util.transform(this.state.ctm, args);
  16032. }
  16033. };
  16034. return StateManager;
  16035. })();
  16036. var TextState = (function TextStateClosure() {
  16037. function TextState() {
  16038. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16039. this.fontSize = 0;
  16040. this.font = null;
  16041. this.fontMatrix = FONT_IDENTITY_MATRIX;
  16042. this.textMatrix = IDENTITY_MATRIX.slice();
  16043. this.textLineMatrix = IDENTITY_MATRIX.slice();
  16044. this.charSpacing = 0;
  16045. this.wordSpacing = 0;
  16046. this.leading = 0;
  16047. this.textHScale = 1;
  16048. this.textRise = 0;
  16049. }
  16050. TextState.prototype = {
  16051. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16052. var m = this.textMatrix;
  16053. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16054. },
  16055. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16056. var m = this.textLineMatrix;
  16057. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16058. },
  16059. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  16060. var m = this.textMatrix;
  16061. m[4] = m[0] * x + m[2] * y + m[4];
  16062. m[5] = m[1] * x + m[3] * y + m[5];
  16063. },
  16064. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  16065. var m = this.textLineMatrix;
  16066. m[4] = m[0] * x + m[2] * y + m[4];
  16067. m[5] = m[1] * x + m[3] * y + m[5];
  16068. },
  16069. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  16070. // 9.4.4 Text Space Details
  16071. var tsm = [this.fontSize * this.textHScale, 0,
  16072. 0, this.fontSize,
  16073. 0, this.textRise];
  16074. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  16075. },
  16076. carriageReturn: function TextState_carriageReturn() {
  16077. this.translateTextLineMatrix(0, -this.leading);
  16078. this.textMatrix = this.textLineMatrix.slice();
  16079. },
  16080. clone: function TextState_clone() {
  16081. var clone = Object.create(this);
  16082. clone.textMatrix = this.textMatrix.slice();
  16083. clone.textLineMatrix = this.textLineMatrix.slice();
  16084. clone.fontMatrix = this.fontMatrix.slice();
  16085. return clone;
  16086. }
  16087. };
  16088. return TextState;
  16089. })();
  16090. var EvalState = (function EvalStateClosure() {
  16091. function EvalState() {
  16092. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16093. this.font = null;
  16094. this.textRenderingMode = TextRenderingMode.FILL;
  16095. }
  16096. EvalState.prototype = {
  16097. clone: function CanvasExtraState_clone() {
  16098. return Object.create(this);
  16099. },
  16100. };
  16101. return EvalState;
  16102. })();
  16103. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  16104. // Specifies properties for each command
  16105. //
  16106. // If variableArgs === true: [0, `numArgs`] expected
  16107. // If variableArgs === false: exactly `numArgs` expected
  16108. var OP_MAP = {
  16109. // Graphic state
  16110. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  16111. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  16112. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  16113. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  16114. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  16115. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  16116. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  16117. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  16118. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  16119. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  16120. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  16121. // Path
  16122. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  16123. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  16124. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  16125. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  16126. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  16127. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  16128. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  16129. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  16130. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  16131. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16132. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16133. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  16134. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  16135. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  16136. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  16137. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  16138. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  16139. // Clipping
  16140. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  16141. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  16142. // Text
  16143. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  16144. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  16145. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  16146. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  16147. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  16148. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  16149. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  16150. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  16151. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  16152. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  16153. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  16154. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  16155. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  16156. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  16157. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  16158. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  16159. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  16160. variableArgs: false },
  16161. // Type3 fonts
  16162. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  16163. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  16164. // Color
  16165. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  16166. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  16167. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  16168. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  16169. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  16170. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  16171. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  16172. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  16173. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  16174. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  16175. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  16176. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  16177. // Shading
  16178. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  16179. // Images
  16180. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  16181. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  16182. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  16183. // XObjects
  16184. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  16185. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  16186. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  16187. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  16188. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  16189. variableArgs: false },
  16190. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  16191. // Compatibility
  16192. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  16193. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  16194. // (reserved partial commands for the lexer)
  16195. BM: null,
  16196. BD: null,
  16197. 'true': null,
  16198. fa: null,
  16199. fal: null,
  16200. fals: null,
  16201. 'false': null,
  16202. nu: null,
  16203. nul: null,
  16204. 'null': null
  16205. };
  16206. function EvaluatorPreprocessor(stream, xref, stateManager) {
  16207. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  16208. // dictionary
  16209. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  16210. this.stateManager = stateManager;
  16211. }
  16212. EvaluatorPreprocessor.prototype = {
  16213. get savedStatesDepth() {
  16214. return this.stateManager.stateStack.length;
  16215. },
  16216. read: function EvaluatorPreprocessor_read() {
  16217. var args = [];
  16218. while (true) {
  16219. var obj = this.parser.getObj();
  16220. if (isEOF(obj)) {
  16221. return null; // no more commands
  16222. }
  16223. if (!isCmd(obj)) {
  16224. // argument
  16225. if (obj !== null && obj !== undefined) {
  16226. args.push((obj instanceof Dict ? obj.getAll() : obj));
  16227. assert(args.length <= 33, 'Too many arguments');
  16228. }
  16229. continue;
  16230. }
  16231. var cmd = obj.cmd;
  16232. // Check that the command is valid
  16233. var opSpec = OP_MAP[cmd];
  16234. if (!opSpec) {
  16235. warn('Unknown command "' + cmd + '"');
  16236. continue;
  16237. }
  16238. var fn = opSpec.id;
  16239. // Validate the number of arguments for the command
  16240. if (opSpec.variableArgs) {
  16241. if (args.length > opSpec.numArgs) {
  16242. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  16243. '] args, but received ' + args.length + ' args');
  16244. }
  16245. } else {
  16246. if (args.length < opSpec.numArgs) {
  16247. // If we receive too few args, it's not possible to possible
  16248. // to execute the command, so skip the command
  16249. info('Command ' + fn + ': because expected ' +
  16250. opSpec.numArgs + ' args, but received ' + args.length +
  16251. ' args; skipping');
  16252. args = [];
  16253. continue;
  16254. } else if (args.length > opSpec.numArgs) {
  16255. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  16256. ' args, but received ' + args.length + ' args');
  16257. }
  16258. }
  16259. // TODO figure out how to type-check vararg functions
  16260. this.preprocessCommand(fn, args);
  16261. return { fn: fn, args: args };
  16262. }
  16263. },
  16264. preprocessCommand:
  16265. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  16266. switch (fn | 0) {
  16267. case OPS.save:
  16268. this.stateManager.save();
  16269. break;
  16270. case OPS.restore:
  16271. this.stateManager.restore();
  16272. break;
  16273. case OPS.transform:
  16274. this.stateManager.transform(args);
  16275. break;
  16276. }
  16277. }
  16278. };
  16279. return EvaluatorPreprocessor;
  16280. })();
  16281. var QueueOptimizer = (function QueueOptimizerClosure() {
  16282. function addState(parentState, pattern, fn) {
  16283. var state = parentState;
  16284. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  16285. var item = pattern[i];
  16286. state = (state[item] || (state[item] = []));
  16287. }
  16288. state[pattern[pattern.length - 1]] = fn;
  16289. }
  16290. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  16291. // Handles special case of mainly LaTeX documents which
  16292. // use image masks to draw lines with the current fill style.
  16293. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  16294. // have been found at index.
  16295. for (var i = 0; i < count; i++) {
  16296. var arg = argsArray[index + 4 * i + 2];
  16297. var imageMask = arg.length == 1 && arg[0];
  16298. if (imageMask && imageMask.width == 1 && imageMask.height == 1 &&
  16299. (!imageMask.data.length || (imageMask.data.length == 1 &&
  16300. imageMask.data[0] === 0))) {
  16301. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  16302. continue;
  16303. }
  16304. break;
  16305. }
  16306. return count - i;
  16307. }
  16308. var InitialState = [];
  16309. addState(InitialState,
  16310. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  16311. function foundInlineImageGroup(context) {
  16312. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  16313. // searching for (save, transform, paintInlineImageXObject, restore)+
  16314. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  16315. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  16316. var MAX_WIDTH = 1000;
  16317. var IMAGE_PADDING = 1;
  16318. var fnArray = context.fnArray, argsArray = context.argsArray;
  16319. var j = context.currentOperation - 3, i = j + 4;
  16320. var ii = fnArray.length;
  16321. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16322. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  16323. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  16324. context.currentOperation = i - 1;
  16325. return;
  16326. }
  16327. // assuming that heights of those image is too small (~1 pixel)
  16328. // packing as much as possible by lines
  16329. var maxX = 0;
  16330. var map = [], maxLineHeight = 0;
  16331. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  16332. var q;
  16333. for (q = 0; q < count; q++) {
  16334. var transform = argsArray[j + (q << 2) + 1];
  16335. var img = argsArray[j + (q << 2) + 2][0];
  16336. if (currentX + img.width > MAX_WIDTH) {
  16337. // starting new line
  16338. maxX = Math.max(maxX, currentX);
  16339. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  16340. currentX = 0;
  16341. maxLineHeight = 0;
  16342. }
  16343. map.push({
  16344. transform: transform,
  16345. x: currentX, y: currentY,
  16346. w: img.width, h: img.height
  16347. });
  16348. currentX += img.width + 2 * IMAGE_PADDING;
  16349. maxLineHeight = Math.max(maxLineHeight, img.height);
  16350. }
  16351. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  16352. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  16353. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  16354. var imgRowSize = imgWidth << 2;
  16355. for (q = 0; q < count; q++) {
  16356. var data = argsArray[j + (q << 2) + 2][0].data;
  16357. // copy image by lines and extends pixels into padding
  16358. var rowSize = map[q].w << 2;
  16359. var dataOffset = 0;
  16360. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  16361. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  16362. for (var k = 0, kk = map[q].h; k < kk; k++) {
  16363. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  16364. dataOffset += rowSize;
  16365. offset += imgRowSize;
  16366. }
  16367. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  16368. while (offset >= 0) {
  16369. data[offset - 4] = data[offset];
  16370. data[offset - 3] = data[offset + 1];
  16371. data[offset - 2] = data[offset + 2];
  16372. data[offset - 1] = data[offset + 3];
  16373. data[offset + rowSize] = data[offset + rowSize - 4];
  16374. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  16375. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  16376. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  16377. offset -= imgRowSize;
  16378. }
  16379. }
  16380. // replacing queue items
  16381. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  16382. argsArray.splice(j, count * 4,
  16383. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  16384. data: imgData }, map]);
  16385. context.currentOperation = j;
  16386. });
  16387. addState(InitialState,
  16388. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  16389. function foundImageMaskGroup(context) {
  16390. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  16391. // searching for (save, transform, paintImageMaskXObject, restore)+
  16392. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  16393. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  16394. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  16395. var fnArray = context.fnArray, argsArray = context.argsArray;
  16396. var j = context.currentOperation - 3, i = j + 4;
  16397. var ii = fnArray.length, q;
  16398. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16399. var count = (i - j) >> 2;
  16400. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  16401. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  16402. context.currentOperation = i - 1;
  16403. return;
  16404. }
  16405. var isSameImage = false;
  16406. var transformArgs;
  16407. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  16408. i = j + 4;
  16409. isSameImage = true;
  16410. for (q = 1; q < count; q++, i += 4) {
  16411. var prevTransformArgs = argsArray[i - 3];
  16412. transformArgs = argsArray[i + 1];
  16413. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  16414. prevTransformArgs[0] !== transformArgs[0] ||
  16415. prevTransformArgs[1] !== transformArgs[1] ||
  16416. prevTransformArgs[2] !== transformArgs[2] ||
  16417. prevTransformArgs[3] !== transformArgs[3]) {
  16418. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  16419. isSameImage = false;
  16420. } else {
  16421. count = q;
  16422. }
  16423. break; // different image or transform
  16424. }
  16425. }
  16426. }
  16427. if (isSameImage) {
  16428. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  16429. var positions = new Float32Array(count * 2);
  16430. i = j + 1;
  16431. for (q = 0; q < count; q++) {
  16432. transformArgs = argsArray[i];
  16433. positions[(q << 1)] = transformArgs[4];
  16434. positions[(q << 1) + 1] = transformArgs[5];
  16435. i += 4;
  16436. }
  16437. // replacing queue items
  16438. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  16439. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  16440. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  16441. context.currentOperation = j;
  16442. } else {
  16443. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  16444. var images = [];
  16445. for (q = 0; q < count; q++) {
  16446. transformArgs = argsArray[j + (q << 2) + 1];
  16447. var maskParams = argsArray[j + (q << 2) + 2][0];
  16448. images.push({ data: maskParams.data, width: maskParams.width,
  16449. height: maskParams.height,
  16450. transform: transformArgs });
  16451. }
  16452. // replacing queue items
  16453. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  16454. argsArray.splice(j, count * 4, [images]);
  16455. context.currentOperation = j;
  16456. }
  16457. });
  16458. addState(InitialState,
  16459. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  16460. function (context) {
  16461. var MIN_IMAGES_IN_BLOCK = 3;
  16462. var MAX_IMAGES_IN_BLOCK = 1000;
  16463. var fnArray = context.fnArray, argsArray = context.argsArray;
  16464. var j = context.currentOperation - 3, i = j + 4;
  16465. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  16466. return;
  16467. }
  16468. var ii = fnArray.length;
  16469. var transformArgs;
  16470. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  16471. if (fnArray[i - 3] !== fnArray[i + 1] ||
  16472. fnArray[i - 2] !== fnArray[i + 2] ||
  16473. fnArray[i - 1] !== fnArray[i + 3]) {
  16474. break;
  16475. }
  16476. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  16477. break; // different image
  16478. }
  16479. var prevTransformArgs = argsArray[i - 3];
  16480. transformArgs = argsArray[i + 1];
  16481. if (prevTransformArgs[0] !== transformArgs[0] ||
  16482. prevTransformArgs[1] !== transformArgs[1] ||
  16483. prevTransformArgs[2] !== transformArgs[2] ||
  16484. prevTransformArgs[3] !== transformArgs[3]) {
  16485. break; // different transform
  16486. }
  16487. }
  16488. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  16489. if (count < MIN_IMAGES_IN_BLOCK) {
  16490. context.currentOperation = i - 1;
  16491. return;
  16492. }
  16493. var positions = new Float32Array(count * 2);
  16494. i = j + 1;
  16495. for (var q = 0; q < count; q++) {
  16496. transformArgs = argsArray[i];
  16497. positions[(q << 1)] = transformArgs[4];
  16498. positions[(q << 1) + 1] = transformArgs[5];
  16499. i += 4;
  16500. }
  16501. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  16502. argsArray[j + 1][3], positions];
  16503. // replacing queue items
  16504. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  16505. argsArray.splice(j, count * 4, args);
  16506. context.currentOperation = j;
  16507. });
  16508. addState(InitialState,
  16509. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  16510. function (context) {
  16511. // moving single chars with same font into beginText/endText groups
  16512. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  16513. var MIN_CHARS_IN_BLOCK = 3;
  16514. var MAX_CHARS_IN_BLOCK = 1000;
  16515. var fnArray = context.fnArray, argsArray = context.argsArray;
  16516. var j = context.currentOperation - 4, i = j + 5;
  16517. var ii = fnArray.length;
  16518. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  16519. if (fnArray[i] === OPS.setFont) {
  16520. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  16521. argsArray[i - 5][1] !== argsArray[i][1]) {
  16522. break;
  16523. }
  16524. }
  16525. }
  16526. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  16527. if (count < MIN_CHARS_IN_BLOCK) {
  16528. context.currentOperation = i - 1;
  16529. return;
  16530. }
  16531. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  16532. fnArray[j - 3] === fnArray[j + 2] &&
  16533. fnArray[j - 2] === fnArray[j + 3] &&
  16534. fnArray[j - 1] === fnArray[j + 4] &&
  16535. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  16536. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  16537. // extending one block ahead (very first block might have 'dependency')
  16538. count++;
  16539. j -= 5;
  16540. }
  16541. var k = j + 7;
  16542. i = j + 4;
  16543. for (var q = 1; q < count; q++) {
  16544. fnArray[i] = fnArray[k];
  16545. argsArray[i] = argsArray[k];
  16546. fnArray[i + 1] = fnArray[k + 1];
  16547. argsArray[i + 1] = argsArray[k + 1];
  16548. i += 2;
  16549. k += 5;
  16550. }
  16551. var removed = (count - 1) * 3;
  16552. fnArray.splice(i, removed);
  16553. argsArray.splice(i, removed);
  16554. context.currentOperation = i;
  16555. });
  16556. function QueueOptimizer() {}
  16557. QueueOptimizer.prototype = {
  16558. optimize: function QueueOptimizer_optimize(queue) {
  16559. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16560. var context = {
  16561. currentOperation: 0,
  16562. fnArray: fnArray,
  16563. argsArray: argsArray
  16564. };
  16565. var i, ii = argsArray.length;
  16566. var state;
  16567. for (i = 0; i < ii; i++) {
  16568. state = (state || InitialState)[fnArray[i]];
  16569. if (typeof state === 'function') { // we found some handler
  16570. context.currentOperation = i;
  16571. state = state(context);
  16572. i = context.currentOperation;
  16573. ii = context.fnArray.length;
  16574. }
  16575. }
  16576. }
  16577. };
  16578. return QueueOptimizer;
  16579. })();
  16580. var BUILT_IN_CMAPS = [
  16581. // << Start unicode maps.
  16582. 'Adobe-GB1-UCS2',
  16583. 'Adobe-CNS1-UCS2',
  16584. 'Adobe-Japan1-UCS2',
  16585. 'Adobe-Korea1-UCS2',
  16586. // >> End unicode maps.
  16587. '78-EUC-H',
  16588. '78-EUC-V',
  16589. '78-H',
  16590. '78-RKSJ-H',
  16591. '78-RKSJ-V',
  16592. '78-V',
  16593. '78ms-RKSJ-H',
  16594. '78ms-RKSJ-V',
  16595. '83pv-RKSJ-H',
  16596. '90ms-RKSJ-H',
  16597. '90ms-RKSJ-V',
  16598. '90msp-RKSJ-H',
  16599. '90msp-RKSJ-V',
  16600. '90pv-RKSJ-H',
  16601. '90pv-RKSJ-V',
  16602. 'Add-H',
  16603. 'Add-RKSJ-H',
  16604. 'Add-RKSJ-V',
  16605. 'Add-V',
  16606. 'Adobe-CNS1-0',
  16607. 'Adobe-CNS1-1',
  16608. 'Adobe-CNS1-2',
  16609. 'Adobe-CNS1-3',
  16610. 'Adobe-CNS1-4',
  16611. 'Adobe-CNS1-5',
  16612. 'Adobe-CNS1-6',
  16613. 'Adobe-GB1-0',
  16614. 'Adobe-GB1-1',
  16615. 'Adobe-GB1-2',
  16616. 'Adobe-GB1-3',
  16617. 'Adobe-GB1-4',
  16618. 'Adobe-GB1-5',
  16619. 'Adobe-Japan1-0',
  16620. 'Adobe-Japan1-1',
  16621. 'Adobe-Japan1-2',
  16622. 'Adobe-Japan1-3',
  16623. 'Adobe-Japan1-4',
  16624. 'Adobe-Japan1-5',
  16625. 'Adobe-Japan1-6',
  16626. 'Adobe-Korea1-0',
  16627. 'Adobe-Korea1-1',
  16628. 'Adobe-Korea1-2',
  16629. 'B5-H',
  16630. 'B5-V',
  16631. 'B5pc-H',
  16632. 'B5pc-V',
  16633. 'CNS-EUC-H',
  16634. 'CNS-EUC-V',
  16635. 'CNS1-H',
  16636. 'CNS1-V',
  16637. 'CNS2-H',
  16638. 'CNS2-V',
  16639. 'ETHK-B5-H',
  16640. 'ETHK-B5-V',
  16641. 'ETen-B5-H',
  16642. 'ETen-B5-V',
  16643. 'ETenms-B5-H',
  16644. 'ETenms-B5-V',
  16645. 'EUC-H',
  16646. 'EUC-V',
  16647. 'Ext-H',
  16648. 'Ext-RKSJ-H',
  16649. 'Ext-RKSJ-V',
  16650. 'Ext-V',
  16651. 'GB-EUC-H',
  16652. 'GB-EUC-V',
  16653. 'GB-H',
  16654. 'GB-V',
  16655. 'GBK-EUC-H',
  16656. 'GBK-EUC-V',
  16657. 'GBK2K-H',
  16658. 'GBK2K-V',
  16659. 'GBKp-EUC-H',
  16660. 'GBKp-EUC-V',
  16661. 'GBT-EUC-H',
  16662. 'GBT-EUC-V',
  16663. 'GBT-H',
  16664. 'GBT-V',
  16665. 'GBTpc-EUC-H',
  16666. 'GBTpc-EUC-V',
  16667. 'GBpc-EUC-H',
  16668. 'GBpc-EUC-V',
  16669. 'H',
  16670. 'HKdla-B5-H',
  16671. 'HKdla-B5-V',
  16672. 'HKdlb-B5-H',
  16673. 'HKdlb-B5-V',
  16674. 'HKgccs-B5-H',
  16675. 'HKgccs-B5-V',
  16676. 'HKm314-B5-H',
  16677. 'HKm314-B5-V',
  16678. 'HKm471-B5-H',
  16679. 'HKm471-B5-V',
  16680. 'HKscs-B5-H',
  16681. 'HKscs-B5-V',
  16682. 'Hankaku',
  16683. 'Hiragana',
  16684. 'KSC-EUC-H',
  16685. 'KSC-EUC-V',
  16686. 'KSC-H',
  16687. 'KSC-Johab-H',
  16688. 'KSC-Johab-V',
  16689. 'KSC-V',
  16690. 'KSCms-UHC-H',
  16691. 'KSCms-UHC-HW-H',
  16692. 'KSCms-UHC-HW-V',
  16693. 'KSCms-UHC-V',
  16694. 'KSCpc-EUC-H',
  16695. 'KSCpc-EUC-V',
  16696. 'Katakana',
  16697. 'NWP-H',
  16698. 'NWP-V',
  16699. 'RKSJ-H',
  16700. 'RKSJ-V',
  16701. 'Roman',
  16702. 'UniCNS-UCS2-H',
  16703. 'UniCNS-UCS2-V',
  16704. 'UniCNS-UTF16-H',
  16705. 'UniCNS-UTF16-V',
  16706. 'UniCNS-UTF32-H',
  16707. 'UniCNS-UTF32-V',
  16708. 'UniCNS-UTF8-H',
  16709. 'UniCNS-UTF8-V',
  16710. 'UniGB-UCS2-H',
  16711. 'UniGB-UCS2-V',
  16712. 'UniGB-UTF16-H',
  16713. 'UniGB-UTF16-V',
  16714. 'UniGB-UTF32-H',
  16715. 'UniGB-UTF32-V',
  16716. 'UniGB-UTF8-H',
  16717. 'UniGB-UTF8-V',
  16718. 'UniJIS-UCS2-H',
  16719. 'UniJIS-UCS2-HW-H',
  16720. 'UniJIS-UCS2-HW-V',
  16721. 'UniJIS-UCS2-V',
  16722. 'UniJIS-UTF16-H',
  16723. 'UniJIS-UTF16-V',
  16724. 'UniJIS-UTF32-H',
  16725. 'UniJIS-UTF32-V',
  16726. 'UniJIS-UTF8-H',
  16727. 'UniJIS-UTF8-V',
  16728. 'UniJIS2004-UTF16-H',
  16729. 'UniJIS2004-UTF16-V',
  16730. 'UniJIS2004-UTF32-H',
  16731. 'UniJIS2004-UTF32-V',
  16732. 'UniJIS2004-UTF8-H',
  16733. 'UniJIS2004-UTF8-V',
  16734. 'UniJISPro-UCS2-HW-V',
  16735. 'UniJISPro-UCS2-V',
  16736. 'UniJISPro-UTF8-V',
  16737. 'UniJISX0213-UTF32-H',
  16738. 'UniJISX0213-UTF32-V',
  16739. 'UniJISX02132004-UTF32-H',
  16740. 'UniJISX02132004-UTF32-V',
  16741. 'UniKS-UCS2-H',
  16742. 'UniKS-UCS2-V',
  16743. 'UniKS-UTF16-H',
  16744. 'UniKS-UTF16-V',
  16745. 'UniKS-UTF32-H',
  16746. 'UniKS-UTF32-V',
  16747. 'UniKS-UTF8-H',
  16748. 'UniKS-UTF8-V',
  16749. 'V',
  16750. 'WP-Symbol'];
  16751. // CMap, not to be confused with TrueType's cmap.
  16752. var CMap = (function CMapClosure() {
  16753. function CMap(builtInCMap) {
  16754. // Codespace ranges are stored as follows:
  16755. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  16756. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  16757. this.codespaceRanges = [[], [], [], []];
  16758. this.numCodespaceRanges = 0;
  16759. this.map = [];
  16760. this.vertical = false;
  16761. this.useCMap = null;
  16762. this.builtInCMap = builtInCMap;
  16763. }
  16764. CMap.prototype = {
  16765. addCodespaceRange: function(n, low, high) {
  16766. this.codespaceRanges[n - 1].push(low, high);
  16767. this.numCodespaceRanges++;
  16768. },
  16769. mapRange: function(low, high, dstLow) {
  16770. var lastByte = dstLow.length - 1;
  16771. while (low <= high) {
  16772. this.map[low] = dstLow;
  16773. // Only the last byte has to be incremented.
  16774. dstLow = dstLow.substr(0, lastByte) +
  16775. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  16776. ++low;
  16777. }
  16778. },
  16779. mapRangeToArray: function(low, high, array) {
  16780. var i = 0;
  16781. while (low <= high) {
  16782. this.map[low] = array[i++];
  16783. ++low;
  16784. }
  16785. },
  16786. mapOne: function(src, dst) {
  16787. this.map[src] = dst;
  16788. },
  16789. lookup: function(code) {
  16790. return this.map[code];
  16791. },
  16792. readCharCode: function(str, offset) {
  16793. var c = 0;
  16794. var codespaceRanges = this.codespaceRanges;
  16795. var codespaceRangesLen = this.codespaceRanges.length;
  16796. // 9.7.6.2 CMap Mapping
  16797. // The code length is at most 4.
  16798. for (var n = 0; n < codespaceRangesLen; n++) {
  16799. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  16800. // Check each codespace range to see if it falls within.
  16801. var codespaceRange = codespaceRanges[n];
  16802. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  16803. var low = codespaceRange[k++];
  16804. var high = codespaceRange[k++];
  16805. if (c >= low && c <= high) {
  16806. return [c, n + 1];
  16807. }
  16808. }
  16809. }
  16810. return [0, 1];
  16811. }
  16812. };
  16813. return CMap;
  16814. })();
  16815. var IdentityCMap = (function IdentityCMapClosure() {
  16816. function IdentityCMap(vertical, n) {
  16817. CMap.call(this);
  16818. this.vertical = vertical;
  16819. this.addCodespaceRange(n, 0, 0xffff);
  16820. this.mapRange(0, 0xffff, '\u0000');
  16821. }
  16822. Util.inherit(IdentityCMap, CMap, {});
  16823. return IdentityCMap;
  16824. })();
  16825. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  16826. function fetchBinaryData(url) {
  16827. var nonBinaryRequest = PDFJS.disableWorker;
  16828. var request = new XMLHttpRequest();
  16829. request.open('GET', url, false);
  16830. if (!nonBinaryRequest) {
  16831. try {
  16832. request.responseType = 'arraybuffer';
  16833. nonBinaryRequest = request.responseType !== 'arraybuffer';
  16834. } catch (e) {
  16835. nonBinaryRequest = true;
  16836. }
  16837. }
  16838. if (nonBinaryRequest && request.overrideMimeType) {
  16839. request.overrideMimeType('text/plain; charset=x-user-defined');
  16840. }
  16841. request.send(null);
  16842. if (request.status === 0 && /^https?:/i.test(url)) {
  16843. error('Unable to get binary cMap at: ' + url);
  16844. }
  16845. if (nonBinaryRequest) {
  16846. var data = Array.prototype.map.call(request.responseText, function (ch) {
  16847. return ch.charCodeAt(0) & 255;
  16848. });
  16849. return new Uint8Array(data);
  16850. }
  16851. return new Uint8Array(request.response);
  16852. }
  16853. function hexToInt(a, size) {
  16854. var n = 0;
  16855. for (var i = 0; i <= size; i++) {
  16856. n = (n << 8) | a[i];
  16857. }
  16858. return n >>> 0;
  16859. }
  16860. function hexToStr(a, size) {
  16861. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  16862. }
  16863. function addHex(a, b, size) {
  16864. var c = 0;
  16865. for (var i = size; i >= 0; i--) {
  16866. c += a[i] + b[i];
  16867. a[i] = c & 255;
  16868. c >>= 8;
  16869. }
  16870. }
  16871. function incHex(a, size) {
  16872. var c = 1;
  16873. for (var i = size; i >= 0 && c > 0; i--) {
  16874. c += a[i];
  16875. a[i] = c & 255;
  16876. c >>= 8;
  16877. }
  16878. }
  16879. var MAX_NUM_SIZE = 16;
  16880. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  16881. function BinaryCMapStream(data) {
  16882. this.buffer = data;
  16883. this.pos = 0;
  16884. this.end = data.length;
  16885. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  16886. }
  16887. BinaryCMapStream.prototype = {
  16888. readByte: function () {
  16889. if (this.pos >= this.end) {
  16890. return -1;
  16891. }
  16892. return this.buffer[this.pos++];
  16893. },
  16894. readNumber: function () {
  16895. var n = 0;
  16896. var last;
  16897. do {
  16898. var b = this.readByte();
  16899. if (b < 0) {
  16900. error('unexpected EOF in bcmap');
  16901. }
  16902. last = !(b & 0x80);
  16903. n = (n << 7) | (b & 0x7F);
  16904. } while (!last);
  16905. return n;
  16906. },
  16907. readSigned: function () {
  16908. var n = this.readNumber();
  16909. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  16910. },
  16911. readHex: function (num, size) {
  16912. num.set(this.buffer.subarray(this.pos,
  16913. this.pos + size + 1));
  16914. this.pos += size + 1;
  16915. },
  16916. readHexNumber: function (num, size) {
  16917. var last;
  16918. var stack = this.tmpBuf, sp = 0;
  16919. do {
  16920. var b = this.readByte();
  16921. if (b < 0) {
  16922. error('unexpected EOF in bcmap');
  16923. }
  16924. last = !(b & 0x80);
  16925. stack[sp++] = b & 0x7F;
  16926. } while (!last);
  16927. var i = size, buffer = 0, bufferSize = 0;
  16928. while (i >= 0) {
  16929. while (bufferSize < 8 && stack.length > 0) {
  16930. buffer = (stack[--sp] << bufferSize) | buffer;
  16931. bufferSize += 7;
  16932. }
  16933. num[i] = buffer & 255;
  16934. i--;
  16935. buffer >>= 8;
  16936. bufferSize -= 8;
  16937. }
  16938. },
  16939. readHexSigned: function (num, size) {
  16940. this.readHexNumber(num, size);
  16941. var sign = num[size] & 1 ? 255 : 0;
  16942. var c = 0;
  16943. for (var i = 0; i <= size; i++) {
  16944. c = ((c & 1) << 8) | num[i];
  16945. num[i] = (c >> 1) ^ sign;
  16946. }
  16947. },
  16948. readString: function () {
  16949. var len = this.readNumber();
  16950. var s = '';
  16951. for (var i = 0; i < len; i++) {
  16952. s += String.fromCharCode(this.readNumber());
  16953. }
  16954. return s;
  16955. }
  16956. };
  16957. function processBinaryCMap(url, cMap, extend) {
  16958. var data = fetchBinaryData(url);
  16959. var stream = new BinaryCMapStream(data);
  16960. var header = stream.readByte();
  16961. cMap.vertical = !!(header & 1);
  16962. var useCMap = null;
  16963. var start = new Uint8Array(MAX_NUM_SIZE);
  16964. var end = new Uint8Array(MAX_NUM_SIZE);
  16965. var char = new Uint8Array(MAX_NUM_SIZE);
  16966. var charCode = new Uint8Array(MAX_NUM_SIZE);
  16967. var tmp = new Uint8Array(MAX_NUM_SIZE);
  16968. var code;
  16969. var b;
  16970. while ((b = stream.readByte()) >= 0) {
  16971. var type = b >> 5;
  16972. if (type === 7) { // metadata, e.g. comment or usecmap
  16973. switch (b & 0x1F) {
  16974. case 0:
  16975. stream.readString(); // skipping comment
  16976. break;
  16977. case 1:
  16978. useCMap = stream.readString();
  16979. break;
  16980. }
  16981. continue;
  16982. }
  16983. var sequence = !!(b & 0x10);
  16984. var dataSize = b & 15;
  16985. assert(dataSize + 1 <= MAX_NUM_SIZE);
  16986. var ucs2DataSize = 1;
  16987. var subitemsCount = stream.readNumber();
  16988. var i;
  16989. switch (type) {
  16990. case 0: // codespacerange
  16991. stream.readHex(start, dataSize);
  16992. stream.readHexNumber(end, dataSize);
  16993. addHex(end, start, dataSize);
  16994. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  16995. hexToInt(end, dataSize));
  16996. for (i = 1; i < subitemsCount; i++) {
  16997. incHex(end, dataSize);
  16998. stream.readHexNumber(start, dataSize);
  16999. addHex(start, end, dataSize);
  17000. stream.readHexNumber(end, dataSize);
  17001. addHex(end, start, dataSize);
  17002. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  17003. hexToInt(end, dataSize));
  17004. }
  17005. break;
  17006. case 1: // notdefrange
  17007. stream.readHex(start, dataSize);
  17008. stream.readHexNumber(end, dataSize);
  17009. addHex(end, start, dataSize);
  17010. code = stream.readNumber();
  17011. // undefined range, skipping
  17012. for (i = 1; i < subitemsCount; i++) {
  17013. incHex(end, dataSize);
  17014. stream.readHexNumber(start, dataSize);
  17015. addHex(start, end, dataSize);
  17016. stream.readHexNumber(end, dataSize);
  17017. addHex(end, start, dataSize);
  17018. code = stream.readNumber();
  17019. // nop
  17020. }
  17021. break;
  17022. case 2: // cidchar
  17023. stream.readHex(char, dataSize);
  17024. code = stream.readNumber();
  17025. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17026. for (i = 1; i < subitemsCount; i++) {
  17027. incHex(char, dataSize);
  17028. if (!sequence) {
  17029. stream.readHexNumber(tmp, dataSize);
  17030. addHex(char, tmp, dataSize);
  17031. }
  17032. code = stream.readSigned() + (code + 1);
  17033. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17034. }
  17035. break;
  17036. case 3: // cidrange
  17037. stream.readHex(start, dataSize);
  17038. stream.readHexNumber(end, dataSize);
  17039. addHex(end, start, dataSize);
  17040. code = stream.readNumber();
  17041. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17042. String.fromCharCode(code));
  17043. for (i = 1; i < subitemsCount; i++) {
  17044. incHex(end, dataSize);
  17045. if (!sequence) {
  17046. stream.readHexNumber(start, dataSize);
  17047. addHex(start, end, dataSize);
  17048. } else {
  17049. start.set(end);
  17050. }
  17051. stream.readHexNumber(end, dataSize);
  17052. addHex(end, start, dataSize);
  17053. code = stream.readNumber();
  17054. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17055. String.fromCharCode(code));
  17056. }
  17057. break;
  17058. case 4: // bfchar
  17059. stream.readHex(char, ucs2DataSize);
  17060. stream.readHex(charCode, dataSize);
  17061. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17062. hexToStr(charCode, dataSize));
  17063. for (i = 1; i < subitemsCount; i++) {
  17064. incHex(char, ucs2DataSize);
  17065. if (!sequence) {
  17066. stream.readHexNumber(tmp, ucs2DataSize);
  17067. addHex(char, tmp, ucs2DataSize);
  17068. }
  17069. incHex(charCode, dataSize);
  17070. stream.readHexSigned(tmp, dataSize);
  17071. addHex(charCode, tmp, dataSize);
  17072. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17073. hexToStr(charCode, dataSize));
  17074. }
  17075. break;
  17076. case 5: // bfrange
  17077. stream.readHex(start, ucs2DataSize);
  17078. stream.readHexNumber(end, ucs2DataSize);
  17079. addHex(end, start, ucs2DataSize);
  17080. stream.readHex(charCode, dataSize);
  17081. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17082. hexToInt(end, ucs2DataSize),
  17083. hexToStr(charCode, dataSize));
  17084. for (i = 1; i < subitemsCount; i++) {
  17085. incHex(end, ucs2DataSize);
  17086. if (!sequence) {
  17087. stream.readHexNumber(start, ucs2DataSize);
  17088. addHex(start, end, ucs2DataSize);
  17089. } else {
  17090. start.set(end);
  17091. }
  17092. stream.readHexNumber(end, ucs2DataSize);
  17093. addHex(end, start, ucs2DataSize);
  17094. stream.readHex(charCode, dataSize);
  17095. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17096. hexToInt(end, ucs2DataSize),
  17097. hexToStr(charCode, dataSize));
  17098. }
  17099. break;
  17100. default:
  17101. error('Unknown type: ' + type);
  17102. break;
  17103. }
  17104. }
  17105. if (useCMap) {
  17106. extend(useCMap);
  17107. }
  17108. return cMap;
  17109. }
  17110. function BinaryCMapReader() {}
  17111. BinaryCMapReader.prototype = {
  17112. read: processBinaryCMap
  17113. };
  17114. return BinaryCMapReader;
  17115. })();
  17116. var CMapFactory = (function CMapFactoryClosure() {
  17117. function strToInt(str) {
  17118. var a = 0;
  17119. for (var i = 0; i < str.length; i++) {
  17120. a = (a << 8) | str.charCodeAt(i);
  17121. }
  17122. return a >>> 0;
  17123. }
  17124. function expectString(obj) {
  17125. if (!isString(obj)) {
  17126. error('Malformed CMap: expected string.');
  17127. }
  17128. }
  17129. function expectInt(obj) {
  17130. if (!isInt(obj)) {
  17131. error('Malformed CMap: expected int.');
  17132. }
  17133. }
  17134. function parseBfChar(cMap, lexer) {
  17135. while (true) {
  17136. var obj = lexer.getObj();
  17137. if (isEOF(obj)) {
  17138. break;
  17139. }
  17140. if (isCmd(obj, 'endbfchar')) {
  17141. return;
  17142. }
  17143. expectString(obj);
  17144. var src = strToInt(obj);
  17145. obj = lexer.getObj();
  17146. // TODO are /dstName used?
  17147. expectString(obj);
  17148. var dst = obj;
  17149. cMap.mapOne(src, dst);
  17150. }
  17151. }
  17152. function parseBfRange(cMap, lexer) {
  17153. while (true) {
  17154. var obj = lexer.getObj();
  17155. if (isEOF(obj)) {
  17156. break;
  17157. }
  17158. if (isCmd(obj, 'endbfrange')) {
  17159. return;
  17160. }
  17161. expectString(obj);
  17162. var low = strToInt(obj);
  17163. obj = lexer.getObj();
  17164. expectString(obj);
  17165. var high = strToInt(obj);
  17166. obj = lexer.getObj();
  17167. if (isInt(obj) || isString(obj)) {
  17168. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  17169. cMap.mapRange(low, high, dstLow);
  17170. } else if (isCmd(obj, '[')) {
  17171. obj = lexer.getObj();
  17172. var array = [];
  17173. while (!isCmd(obj, ']') && !isEOF(obj)) {
  17174. array.push(obj);
  17175. obj = lexer.getObj();
  17176. }
  17177. cMap.mapRangeToArray(low, high, array);
  17178. } else {
  17179. break;
  17180. }
  17181. }
  17182. error('Invalid bf range.');
  17183. }
  17184. function parseCidChar(cMap, lexer) {
  17185. while (true) {
  17186. var obj = lexer.getObj();
  17187. if (isEOF(obj)) {
  17188. break;
  17189. }
  17190. if (isCmd(obj, 'endcidchar')) {
  17191. return;
  17192. }
  17193. expectString(obj);
  17194. var src = strToInt(obj);
  17195. obj = lexer.getObj();
  17196. expectInt(obj);
  17197. var dst = String.fromCharCode(obj);
  17198. cMap.mapOne(src, dst);
  17199. }
  17200. }
  17201. function parseCidRange(cMap, lexer) {
  17202. while (true) {
  17203. var obj = lexer.getObj();
  17204. if (isEOF(obj)) {
  17205. break;
  17206. }
  17207. if (isCmd(obj, 'endcidrange')) {
  17208. return;
  17209. }
  17210. expectString(obj);
  17211. var low = strToInt(obj);
  17212. obj = lexer.getObj();
  17213. expectString(obj);
  17214. var high = strToInt(obj);
  17215. obj = lexer.getObj();
  17216. expectInt(obj);
  17217. var dstLow = String.fromCharCode(obj);
  17218. cMap.mapRange(low, high, dstLow);
  17219. }
  17220. }
  17221. function parseCodespaceRange(cMap, lexer) {
  17222. while (true) {
  17223. var obj = lexer.getObj();
  17224. if (isEOF(obj)) {
  17225. break;
  17226. }
  17227. if (isCmd(obj, 'endcodespacerange')) {
  17228. return;
  17229. }
  17230. if (!isString(obj)) {
  17231. break;
  17232. }
  17233. var low = strToInt(obj);
  17234. obj = lexer.getObj();
  17235. if (!isString(obj)) {
  17236. break;
  17237. }
  17238. var high = strToInt(obj);
  17239. cMap.addCodespaceRange(obj.length, low, high);
  17240. }
  17241. error('Invalid codespace range.');
  17242. }
  17243. function parseWMode(cMap, lexer) {
  17244. var obj = lexer.getObj();
  17245. if (isInt(obj)) {
  17246. cMap.vertical = !!obj;
  17247. }
  17248. }
  17249. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  17250. var previous;
  17251. var embededUseCMap;
  17252. objLoop: while (true) {
  17253. var obj = lexer.getObj();
  17254. if (isEOF(obj)) {
  17255. break;
  17256. } else if (isName(obj)) {
  17257. if (obj.name === 'WMode') {
  17258. parseWMode(cMap, lexer);
  17259. }
  17260. previous = obj;
  17261. } else if (isCmd(obj)) {
  17262. switch (obj.cmd) {
  17263. case 'endcmap':
  17264. break objLoop;
  17265. case 'usecmap':
  17266. if (isName(previous)) {
  17267. embededUseCMap = previous.name;
  17268. }
  17269. break;
  17270. case 'begincodespacerange':
  17271. parseCodespaceRange(cMap, lexer);
  17272. break;
  17273. case 'beginbfchar':
  17274. parseBfChar(cMap, lexer);
  17275. break;
  17276. case 'begincidchar':
  17277. parseCidChar(cMap, lexer);
  17278. break;
  17279. case 'beginbfrange':
  17280. parseBfRange(cMap, lexer);
  17281. break;
  17282. case 'begincidrange':
  17283. parseCidRange(cMap, lexer);
  17284. break;
  17285. }
  17286. }
  17287. }
  17288. if (!useCMap && embededUseCMap) {
  17289. // Load the usecmap definition from the file only if there wasn't one
  17290. // specified.
  17291. useCMap = embededUseCMap;
  17292. }
  17293. if (useCMap) {
  17294. extendCMap(cMap, builtInCMapParams, useCMap);
  17295. }
  17296. }
  17297. function extendCMap(cMap, builtInCMapParams, useCMap) {
  17298. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  17299. // If there aren't any code space ranges defined clone all the parent ones
  17300. // into this cMap.
  17301. if (cMap.numCodespaceRanges === 0) {
  17302. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  17303. for (var i = 0; i < useCodespaceRanges.length; i++) {
  17304. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  17305. }
  17306. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  17307. }
  17308. // Merge the map into the current one, making sure not to override
  17309. // any previously defined entries.
  17310. for (var key in cMap.useCMap.map) {
  17311. if (key in cMap.map) {
  17312. continue;
  17313. }
  17314. cMap.map[key] = cMap.useCMap.map[key];
  17315. }
  17316. }
  17317. function parseBinaryCMap(name, builtInCMapParams) {
  17318. var url = builtInCMapParams.url + name + '.bcmap';
  17319. var cMap = new CMap(true);
  17320. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  17321. extendCMap(cMap, builtInCMapParams, useCMap);
  17322. });
  17323. return cMap;
  17324. }
  17325. function createBuiltInCMap(name, builtInCMapParams) {
  17326. if (name === 'Identity-H') {
  17327. return new IdentityCMap(false, 2);
  17328. } else if (name === 'Identity-V') {
  17329. return new IdentityCMap(true, 2);
  17330. }
  17331. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  17332. error('Unknown cMap name: ' + name);
  17333. }
  17334. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  17335. if (builtInCMapParams.packed) {
  17336. return parseBinaryCMap(name, builtInCMapParams);
  17337. }
  17338. var request = new XMLHttpRequest();
  17339. var url = builtInCMapParams.url + name;
  17340. request.open('GET', url, false);
  17341. request.send(null);
  17342. if (request.status === 0 && /^https?:/i.test(url)) {
  17343. error('Unable to get cMap at: ' + url);
  17344. }
  17345. var cMap = new CMap(true);
  17346. var lexer = new Lexer(new StringStream(request.responseText));
  17347. parseCMap(cMap, lexer, builtInCMapParams, null);
  17348. return cMap;
  17349. }
  17350. return {
  17351. create: function (encoding, builtInCMapParams, useCMap) {
  17352. if (isName(encoding)) {
  17353. return createBuiltInCMap(encoding.name, builtInCMapParams);
  17354. } else if (isStream(encoding)) {
  17355. var cMap = new CMap();
  17356. var lexer = new Lexer(encoding);
  17357. try {
  17358. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  17359. } catch (e) {
  17360. warn('Invalid CMap data. ' + e);
  17361. }
  17362. return cMap;
  17363. }
  17364. error('Encoding required.');
  17365. }
  17366. };
  17367. })();
  17368. // Unicode Private Use Area
  17369. var PRIVATE_USE_OFFSET_START = 0xE000;
  17370. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  17371. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  17372. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  17373. // except for Type 3 fonts
  17374. var PDF_GLYPH_SPACE_UNITS = 1000;
  17375. // Hinting is currently disabled due to unknown problems on windows
  17376. // in tracemonkey and various other pdfs with type1 fonts.
  17377. var HINTING_ENABLED = false;
  17378. // Accented charactars are not displayed properly on windows, using this flag
  17379. // to control analysis of seac charstrings.
  17380. var SEAC_ANALYSIS_ENABLED = false;
  17381. var FontFlags = {
  17382. FixedPitch: 1,
  17383. Serif: 2,
  17384. Symbolic: 4,
  17385. Script: 8,
  17386. Nonsymbolic: 32,
  17387. Italic: 64,
  17388. AllCap: 65536,
  17389. SmallCap: 131072,
  17390. ForceBold: 262144
  17391. };
  17392. var Encodings = {
  17393. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17394. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17395. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  17396. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  17397. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  17398. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  17399. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  17400. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  17401. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  17402. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  17403. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  17404. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  17405. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  17406. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  17407. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  17408. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  17409. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  17410. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  17411. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  17412. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17413. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  17414. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  17415. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  17416. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  17417. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  17418. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  17419. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  17420. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  17421. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  17422. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  17423. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  17424. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  17425. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  17426. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  17427. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  17428. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  17429. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  17430. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  17431. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  17432. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  17433. 'Ydieresissmall'],
  17434. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17435. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17436. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  17437. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  17438. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  17439. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  17440. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  17441. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  17442. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  17443. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  17444. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  17445. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  17446. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  17447. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  17448. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  17449. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  17450. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  17451. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  17452. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  17453. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  17454. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  17455. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  17456. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  17457. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  17458. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  17459. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  17460. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  17461. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  17462. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  17463. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  17464. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  17465. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  17466. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  17467. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  17468. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  17469. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  17470. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  17471. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  17472. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  17473. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  17474. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17475. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17476. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17477. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17478. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17479. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17480. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17481. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17482. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17483. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17484. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17485. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  17486. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  17487. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  17488. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17489. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  17490. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  17491. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  17492. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  17493. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  17494. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  17495. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  17496. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  17497. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  17498. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  17499. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  17500. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  17501. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  17502. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  17503. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  17504. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  17505. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  17506. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  17507. 'ogonek', 'caron'],
  17508. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17509. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17510. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17511. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  17512. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17513. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17514. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17515. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17516. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17517. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  17518. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  17519. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17520. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17521. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  17522. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  17523. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  17524. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  17525. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  17526. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  17527. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  17528. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  17529. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  17530. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  17531. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  17532. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  17533. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17534. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17535. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17536. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17537. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17538. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17539. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17540. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17541. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17542. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17543. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17544. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17545. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  17546. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  17547. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  17548. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  17549. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  17550. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  17551. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  17552. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  17553. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  17554. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  17555. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  17556. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  17557. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  17558. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  17559. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  17560. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  17561. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  17562. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  17563. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  17564. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  17565. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  17566. 'ydieresis'],
  17567. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17568. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17569. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  17570. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  17571. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  17572. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  17573. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  17574. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  17575. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  17576. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  17577. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  17578. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  17579. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  17580. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  17581. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  17582. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17583. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  17584. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  17585. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  17586. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  17587. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  17588. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  17589. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  17590. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  17591. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  17592. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  17593. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  17594. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  17595. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  17596. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  17597. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  17598. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  17599. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  17600. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  17601. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  17602. 'bracerightbt'],
  17603. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17604. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17605. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  17606. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  17607. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  17608. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  17609. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  17610. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  17611. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  17612. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  17613. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  17614. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17615. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17616. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  17617. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  17618. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  17619. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  17620. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  17621. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  17622. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  17623. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  17624. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  17625. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  17626. 'a188', 'a189', 'a190', 'a191']
  17627. };
  17628. /**
  17629. * Hold a map of decoded fonts and of the standard fourteen Type1
  17630. * fonts and their acronyms.
  17631. */
  17632. var stdFontMap = {
  17633. 'ArialNarrow': 'Helvetica',
  17634. 'ArialNarrow-Bold': 'Helvetica-Bold',
  17635. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  17636. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  17637. 'ArialBlack': 'Helvetica',
  17638. 'ArialBlack-Bold': 'Helvetica-Bold',
  17639. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  17640. 'ArialBlack-Italic': 'Helvetica-Oblique',
  17641. 'Arial': 'Helvetica',
  17642. 'Arial-Bold': 'Helvetica-Bold',
  17643. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  17644. 'Arial-Italic': 'Helvetica-Oblique',
  17645. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  17646. 'Arial-BoldMT': 'Helvetica-Bold',
  17647. 'Arial-ItalicMT': 'Helvetica-Oblique',
  17648. 'ArialMT': 'Helvetica',
  17649. 'Courier-Bold': 'Courier-Bold',
  17650. 'Courier-BoldItalic': 'Courier-BoldOblique',
  17651. 'Courier-Italic': 'Courier-Oblique',
  17652. 'CourierNew': 'Courier',
  17653. 'CourierNew-Bold': 'Courier-Bold',
  17654. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  17655. 'CourierNew-Italic': 'Courier-Oblique',
  17656. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  17657. 'CourierNewPS-BoldMT': 'Courier-Bold',
  17658. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  17659. 'CourierNewPSMT': 'Courier',
  17660. 'Helvetica-Bold': 'Helvetica-Bold',
  17661. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  17662. 'Helvetica-Italic': 'Helvetica-Oblique',
  17663. 'Symbol-Bold': 'Symbol',
  17664. 'Symbol-BoldItalic': 'Symbol',
  17665. 'Symbol-Italic': 'Symbol',
  17666. 'TimesNewRoman': 'Times-Roman',
  17667. 'TimesNewRoman-Bold': 'Times-Bold',
  17668. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  17669. 'TimesNewRoman-Italic': 'Times-Italic',
  17670. 'TimesNewRomanPS': 'Times-Roman',
  17671. 'TimesNewRomanPS-Bold': 'Times-Bold',
  17672. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  17673. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  17674. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  17675. 'TimesNewRomanPS-Italic': 'Times-Italic',
  17676. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  17677. 'TimesNewRomanPSMT': 'Times-Roman',
  17678. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  17679. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  17680. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  17681. };
  17682. /**
  17683. * Holds the map of the non-standard fonts that might be included as a standard
  17684. * fonts without glyph data.
  17685. */
  17686. var nonStdFontMap = {
  17687. 'ComicSansMS': 'Comic Sans MS',
  17688. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  17689. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  17690. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  17691. 'LucidaConsole': 'Courier',
  17692. 'LucidaConsole-Bold': 'Courier-Bold',
  17693. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  17694. 'LucidaConsole-Italic': 'Courier-Oblique',
  17695. 'MS-Gothic': 'MS Gothic',
  17696. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  17697. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  17698. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  17699. 'MS-Mincho': 'MS Mincho',
  17700. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  17701. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  17702. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  17703. 'MS-PGothic': 'MS PGothic',
  17704. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  17705. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  17706. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  17707. 'MS-PMincho': 'MS PMincho',
  17708. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  17709. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  17710. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  17711. };
  17712. var serifFonts = {
  17713. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  17714. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  17715. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  17716. 'Arno': true, 'Aster': true, 'Aurora': true,
  17717. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  17718. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  17719. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  17720. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  17721. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  17722. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  17723. 'Cartier': true, 'Caslon': true, 'Catull': true,
  17724. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  17725. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  17726. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  17727. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  17728. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  17729. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  17730. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  17731. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  17732. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  17733. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  17734. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  17735. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  17736. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  17737. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  17738. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  17739. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  17740. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  17741. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  17742. 'Miller': true, 'Minion': true, 'Modern': true,
  17743. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  17744. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  17745. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  17746. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  17747. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  17748. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  17749. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  17750. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  17751. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  17752. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  17753. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  17754. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  17755. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  17756. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  17757. };
  17758. var symbolsFonts = {
  17759. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  17760. };
  17761. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  17762. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  17763. // glyphs, but common for some set of the standard fonts.
  17764. var GlyphMapForStandardFonts = {
  17765. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  17766. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  17767. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  17768. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  17769. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  17770. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  17771. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  17772. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  17773. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  17774. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  17775. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  17776. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  17777. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  17778. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  17779. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  17780. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  17781. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  17782. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  17783. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  17784. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  17785. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  17786. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  17787. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  17788. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  17789. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  17790. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  17791. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  17792. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  17793. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  17794. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  17795. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  17796. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  17797. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  17798. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  17799. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  17800. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  17801. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  17802. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  17803. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  17804. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  17805. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  17806. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  17807. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  17808. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  17809. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  17810. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  17811. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  17812. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  17813. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  17814. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  17815. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  17816. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  17817. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  17818. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  17819. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  17820. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  17821. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  17822. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  17823. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  17824. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  17825. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  17826. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  17827. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  17828. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  17829. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  17830. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  17831. };
  17832. // Some characters, e.g. copyrightserif, mapped to the private use area and
  17833. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  17834. // to the similar equivalents in the normal characters range.
  17835. function mapSpecialUnicodeValues(code) {
  17836. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  17837. return 0;
  17838. }
  17839. switch (code) {
  17840. case 0xF8E9: // copyrightsans
  17841. case 0xF6D9: // copyrightserif
  17842. return 0x00A9; // copyright
  17843. case 0xF8E8: // registersans
  17844. case 0xF6DA: // registerserif
  17845. return 0x00AE; // registered
  17846. case 0xF8EA: // trademarksans
  17847. case 0xF6DB: // trademarkserif
  17848. return 0x2122; // trademark
  17849. default:
  17850. return code;
  17851. }
  17852. }
  17853. var UnicodeRanges = [
  17854. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  17855. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  17856. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  17857. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  17858. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  17859. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  17860. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  17861. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  17862. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  17863. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  17864. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  17865. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  17866. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  17867. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  17868. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  17869. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  17870. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  17871. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  17872. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  17873. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  17874. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  17875. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  17876. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  17877. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  17878. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  17879. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  17880. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  17881. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  17882. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  17883. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  17884. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  17885. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  17886. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  17887. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  17888. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  17889. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  17890. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  17891. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  17892. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  17893. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  17894. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  17895. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  17896. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  17897. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  17898. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  17899. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  17900. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  17901. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  17902. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  17903. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  17904. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  17905. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  17906. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  17907. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  17908. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  17909. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  17910. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  17911. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  17912. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  17913. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  17914. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  17915. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  17916. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  17917. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  17918. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  17919. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  17920. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  17921. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  17922. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  17923. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  17924. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  17925. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  17926. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  17927. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  17928. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  17929. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  17930. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  17931. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  17932. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  17933. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  17934. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  17935. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  17936. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  17937. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  17938. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  17939. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  17940. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  17941. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  17942. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  17943. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  17944. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  17945. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  17946. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  17947. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  17948. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  17949. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  17950. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  17951. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  17952. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  17953. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  17954. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  17955. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  17956. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  17957. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  17958. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  17959. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  17960. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  17961. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  17962. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  17963. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  17964. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  17965. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  17966. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  17967. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  17968. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  17969. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  17970. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  17971. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  17972. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  17973. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  17974. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  17975. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  17976. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  17977. ];
  17978. var MacStandardGlyphOrdering = [
  17979. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  17980. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  17981. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  17982. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  17983. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  17984. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  17985. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  17986. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  17987. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  17988. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  17989. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  17990. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  17991. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17992. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  17993. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  17994. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  17995. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  17996. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  17997. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  17998. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  17999. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  18000. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  18001. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  18002. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  18003. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  18004. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  18005. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  18006. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  18007. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  18008. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  18009. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  18010. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  18011. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  18012. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  18013. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  18014. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  18015. function getUnicodeRangeFor(value) {
  18016. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  18017. var range = UnicodeRanges[i];
  18018. if (value >= range.begin && value < range.end) {
  18019. return i;
  18020. }
  18021. }
  18022. return -1;
  18023. }
  18024. function isRTLRangeFor(value) {
  18025. var range = UnicodeRanges[13];
  18026. if (value >= range.begin && value < range.end) {
  18027. return true;
  18028. }
  18029. range = UnicodeRanges[11];
  18030. if (value >= range.begin && value < range.end) {
  18031. return true;
  18032. }
  18033. return false;
  18034. }
  18035. // The normalization table is obtained by filtering the Unicode characters
  18036. // database with <compat> entries.
  18037. var NormalizedUnicodes = {
  18038. '\u00A8': '\u0020\u0308',
  18039. '\u00AF': '\u0020\u0304',
  18040. '\u00B4': '\u0020\u0301',
  18041. '\u00B5': '\u03BC',
  18042. '\u00B8': '\u0020\u0327',
  18043. '\u0132': '\u0049\u004A',
  18044. '\u0133': '\u0069\u006A',
  18045. '\u013F': '\u004C\u00B7',
  18046. '\u0140': '\u006C\u00B7',
  18047. '\u0149': '\u02BC\u006E',
  18048. '\u017F': '\u0073',
  18049. '\u01C4': '\u0044\u017D',
  18050. '\u01C5': '\u0044\u017E',
  18051. '\u01C6': '\u0064\u017E',
  18052. '\u01C7': '\u004C\u004A',
  18053. '\u01C8': '\u004C\u006A',
  18054. '\u01C9': '\u006C\u006A',
  18055. '\u01CA': '\u004E\u004A',
  18056. '\u01CB': '\u004E\u006A',
  18057. '\u01CC': '\u006E\u006A',
  18058. '\u01F1': '\u0044\u005A',
  18059. '\u01F2': '\u0044\u007A',
  18060. '\u01F3': '\u0064\u007A',
  18061. '\u02D8': '\u0020\u0306',
  18062. '\u02D9': '\u0020\u0307',
  18063. '\u02DA': '\u0020\u030A',
  18064. '\u02DB': '\u0020\u0328',
  18065. '\u02DC': '\u0020\u0303',
  18066. '\u02DD': '\u0020\u030B',
  18067. '\u037A': '\u0020\u0345',
  18068. '\u0384': '\u0020\u0301',
  18069. '\u03D0': '\u03B2',
  18070. '\u03D1': '\u03B8',
  18071. '\u03D2': '\u03A5',
  18072. '\u03D5': '\u03C6',
  18073. '\u03D6': '\u03C0',
  18074. '\u03F0': '\u03BA',
  18075. '\u03F1': '\u03C1',
  18076. '\u03F2': '\u03C2',
  18077. '\u03F4': '\u0398',
  18078. '\u03F5': '\u03B5',
  18079. '\u03F9': '\u03A3',
  18080. '\u0587': '\u0565\u0582',
  18081. '\u0675': '\u0627\u0674',
  18082. '\u0676': '\u0648\u0674',
  18083. '\u0677': '\u06C7\u0674',
  18084. '\u0678': '\u064A\u0674',
  18085. '\u0E33': '\u0E4D\u0E32',
  18086. '\u0EB3': '\u0ECD\u0EB2',
  18087. '\u0EDC': '\u0EAB\u0E99',
  18088. '\u0EDD': '\u0EAB\u0EA1',
  18089. '\u0F77': '\u0FB2\u0F81',
  18090. '\u0F79': '\u0FB3\u0F81',
  18091. '\u1E9A': '\u0061\u02BE',
  18092. '\u1FBD': '\u0020\u0313',
  18093. '\u1FBF': '\u0020\u0313',
  18094. '\u1FC0': '\u0020\u0342',
  18095. '\u1FFE': '\u0020\u0314',
  18096. '\u2002': '\u0020',
  18097. '\u2003': '\u0020',
  18098. '\u2004': '\u0020',
  18099. '\u2005': '\u0020',
  18100. '\u2006': '\u0020',
  18101. '\u2008': '\u0020',
  18102. '\u2009': '\u0020',
  18103. '\u200A': '\u0020',
  18104. '\u2017': '\u0020\u0333',
  18105. '\u2024': '\u002E',
  18106. '\u2025': '\u002E\u002E',
  18107. '\u2026': '\u002E\u002E\u002E',
  18108. '\u2033': '\u2032\u2032',
  18109. '\u2034': '\u2032\u2032\u2032',
  18110. '\u2036': '\u2035\u2035',
  18111. '\u2037': '\u2035\u2035\u2035',
  18112. '\u203C': '\u0021\u0021',
  18113. '\u203E': '\u0020\u0305',
  18114. '\u2047': '\u003F\u003F',
  18115. '\u2048': '\u003F\u0021',
  18116. '\u2049': '\u0021\u003F',
  18117. '\u2057': '\u2032\u2032\u2032\u2032',
  18118. '\u205F': '\u0020',
  18119. '\u20A8': '\u0052\u0073',
  18120. '\u2100': '\u0061\u002F\u0063',
  18121. '\u2101': '\u0061\u002F\u0073',
  18122. '\u2103': '\u00B0\u0043',
  18123. '\u2105': '\u0063\u002F\u006F',
  18124. '\u2106': '\u0063\u002F\u0075',
  18125. '\u2107': '\u0190',
  18126. '\u2109': '\u00B0\u0046',
  18127. '\u2116': '\u004E\u006F',
  18128. '\u2121': '\u0054\u0045\u004C',
  18129. '\u2135': '\u05D0',
  18130. '\u2136': '\u05D1',
  18131. '\u2137': '\u05D2',
  18132. '\u2138': '\u05D3',
  18133. '\u213B': '\u0046\u0041\u0058',
  18134. '\u2160': '\u0049',
  18135. '\u2161': '\u0049\u0049',
  18136. '\u2162': '\u0049\u0049\u0049',
  18137. '\u2163': '\u0049\u0056',
  18138. '\u2164': '\u0056',
  18139. '\u2165': '\u0056\u0049',
  18140. '\u2166': '\u0056\u0049\u0049',
  18141. '\u2167': '\u0056\u0049\u0049\u0049',
  18142. '\u2168': '\u0049\u0058',
  18143. '\u2169': '\u0058',
  18144. '\u216A': '\u0058\u0049',
  18145. '\u216B': '\u0058\u0049\u0049',
  18146. '\u216C': '\u004C',
  18147. '\u216D': '\u0043',
  18148. '\u216E': '\u0044',
  18149. '\u216F': '\u004D',
  18150. '\u2170': '\u0069',
  18151. '\u2171': '\u0069\u0069',
  18152. '\u2172': '\u0069\u0069\u0069',
  18153. '\u2173': '\u0069\u0076',
  18154. '\u2174': '\u0076',
  18155. '\u2175': '\u0076\u0069',
  18156. '\u2176': '\u0076\u0069\u0069',
  18157. '\u2177': '\u0076\u0069\u0069\u0069',
  18158. '\u2178': '\u0069\u0078',
  18159. '\u2179': '\u0078',
  18160. '\u217A': '\u0078\u0069',
  18161. '\u217B': '\u0078\u0069\u0069',
  18162. '\u217C': '\u006C',
  18163. '\u217D': '\u0063',
  18164. '\u217E': '\u0064',
  18165. '\u217F': '\u006D',
  18166. '\u222C': '\u222B\u222B',
  18167. '\u222D': '\u222B\u222B\u222B',
  18168. '\u222F': '\u222E\u222E',
  18169. '\u2230': '\u222E\u222E\u222E',
  18170. '\u2474': '\u0028\u0031\u0029',
  18171. '\u2475': '\u0028\u0032\u0029',
  18172. '\u2476': '\u0028\u0033\u0029',
  18173. '\u2477': '\u0028\u0034\u0029',
  18174. '\u2478': '\u0028\u0035\u0029',
  18175. '\u2479': '\u0028\u0036\u0029',
  18176. '\u247A': '\u0028\u0037\u0029',
  18177. '\u247B': '\u0028\u0038\u0029',
  18178. '\u247C': '\u0028\u0039\u0029',
  18179. '\u247D': '\u0028\u0031\u0030\u0029',
  18180. '\u247E': '\u0028\u0031\u0031\u0029',
  18181. '\u247F': '\u0028\u0031\u0032\u0029',
  18182. '\u2480': '\u0028\u0031\u0033\u0029',
  18183. '\u2481': '\u0028\u0031\u0034\u0029',
  18184. '\u2482': '\u0028\u0031\u0035\u0029',
  18185. '\u2483': '\u0028\u0031\u0036\u0029',
  18186. '\u2484': '\u0028\u0031\u0037\u0029',
  18187. '\u2485': '\u0028\u0031\u0038\u0029',
  18188. '\u2486': '\u0028\u0031\u0039\u0029',
  18189. '\u2487': '\u0028\u0032\u0030\u0029',
  18190. '\u2488': '\u0031\u002E',
  18191. '\u2489': '\u0032\u002E',
  18192. '\u248A': '\u0033\u002E',
  18193. '\u248B': '\u0034\u002E',
  18194. '\u248C': '\u0035\u002E',
  18195. '\u248D': '\u0036\u002E',
  18196. '\u248E': '\u0037\u002E',
  18197. '\u248F': '\u0038\u002E',
  18198. '\u2490': '\u0039\u002E',
  18199. '\u2491': '\u0031\u0030\u002E',
  18200. '\u2492': '\u0031\u0031\u002E',
  18201. '\u2493': '\u0031\u0032\u002E',
  18202. '\u2494': '\u0031\u0033\u002E',
  18203. '\u2495': '\u0031\u0034\u002E',
  18204. '\u2496': '\u0031\u0035\u002E',
  18205. '\u2497': '\u0031\u0036\u002E',
  18206. '\u2498': '\u0031\u0037\u002E',
  18207. '\u2499': '\u0031\u0038\u002E',
  18208. '\u249A': '\u0031\u0039\u002E',
  18209. '\u249B': '\u0032\u0030\u002E',
  18210. '\u249C': '\u0028\u0061\u0029',
  18211. '\u249D': '\u0028\u0062\u0029',
  18212. '\u249E': '\u0028\u0063\u0029',
  18213. '\u249F': '\u0028\u0064\u0029',
  18214. '\u24A0': '\u0028\u0065\u0029',
  18215. '\u24A1': '\u0028\u0066\u0029',
  18216. '\u24A2': '\u0028\u0067\u0029',
  18217. '\u24A3': '\u0028\u0068\u0029',
  18218. '\u24A4': '\u0028\u0069\u0029',
  18219. '\u24A5': '\u0028\u006A\u0029',
  18220. '\u24A6': '\u0028\u006B\u0029',
  18221. '\u24A7': '\u0028\u006C\u0029',
  18222. '\u24A8': '\u0028\u006D\u0029',
  18223. '\u24A9': '\u0028\u006E\u0029',
  18224. '\u24AA': '\u0028\u006F\u0029',
  18225. '\u24AB': '\u0028\u0070\u0029',
  18226. '\u24AC': '\u0028\u0071\u0029',
  18227. '\u24AD': '\u0028\u0072\u0029',
  18228. '\u24AE': '\u0028\u0073\u0029',
  18229. '\u24AF': '\u0028\u0074\u0029',
  18230. '\u24B0': '\u0028\u0075\u0029',
  18231. '\u24B1': '\u0028\u0076\u0029',
  18232. '\u24B2': '\u0028\u0077\u0029',
  18233. '\u24B3': '\u0028\u0078\u0029',
  18234. '\u24B4': '\u0028\u0079\u0029',
  18235. '\u24B5': '\u0028\u007A\u0029',
  18236. '\u2A0C': '\u222B\u222B\u222B\u222B',
  18237. '\u2A74': '\u003A\u003A\u003D',
  18238. '\u2A75': '\u003D\u003D',
  18239. '\u2A76': '\u003D\u003D\u003D',
  18240. '\u2E9F': '\u6BCD',
  18241. '\u2EF3': '\u9F9F',
  18242. '\u2F00': '\u4E00',
  18243. '\u2F01': '\u4E28',
  18244. '\u2F02': '\u4E36',
  18245. '\u2F03': '\u4E3F',
  18246. '\u2F04': '\u4E59',
  18247. '\u2F05': '\u4E85',
  18248. '\u2F06': '\u4E8C',
  18249. '\u2F07': '\u4EA0',
  18250. '\u2F08': '\u4EBA',
  18251. '\u2F09': '\u513F',
  18252. '\u2F0A': '\u5165',
  18253. '\u2F0B': '\u516B',
  18254. '\u2F0C': '\u5182',
  18255. '\u2F0D': '\u5196',
  18256. '\u2F0E': '\u51AB',
  18257. '\u2F0F': '\u51E0',
  18258. '\u2F10': '\u51F5',
  18259. '\u2F11': '\u5200',
  18260. '\u2F12': '\u529B',
  18261. '\u2F13': '\u52F9',
  18262. '\u2F14': '\u5315',
  18263. '\u2F15': '\u531A',
  18264. '\u2F16': '\u5338',
  18265. '\u2F17': '\u5341',
  18266. '\u2F18': '\u535C',
  18267. '\u2F19': '\u5369',
  18268. '\u2F1A': '\u5382',
  18269. '\u2F1B': '\u53B6',
  18270. '\u2F1C': '\u53C8',
  18271. '\u2F1D': '\u53E3',
  18272. '\u2F1E': '\u56D7',
  18273. '\u2F1F': '\u571F',
  18274. '\u2F20': '\u58EB',
  18275. '\u2F21': '\u5902',
  18276. '\u2F22': '\u590A',
  18277. '\u2F23': '\u5915',
  18278. '\u2F24': '\u5927',
  18279. '\u2F25': '\u5973',
  18280. '\u2F26': '\u5B50',
  18281. '\u2F27': '\u5B80',
  18282. '\u2F28': '\u5BF8',
  18283. '\u2F29': '\u5C0F',
  18284. '\u2F2A': '\u5C22',
  18285. '\u2F2B': '\u5C38',
  18286. '\u2F2C': '\u5C6E',
  18287. '\u2F2D': '\u5C71',
  18288. '\u2F2E': '\u5DDB',
  18289. '\u2F2F': '\u5DE5',
  18290. '\u2F30': '\u5DF1',
  18291. '\u2F31': '\u5DFE',
  18292. '\u2F32': '\u5E72',
  18293. '\u2F33': '\u5E7A',
  18294. '\u2F34': '\u5E7F',
  18295. '\u2F35': '\u5EF4',
  18296. '\u2F36': '\u5EFE',
  18297. '\u2F37': '\u5F0B',
  18298. '\u2F38': '\u5F13',
  18299. '\u2F39': '\u5F50',
  18300. '\u2F3A': '\u5F61',
  18301. '\u2F3B': '\u5F73',
  18302. '\u2F3C': '\u5FC3',
  18303. '\u2F3D': '\u6208',
  18304. '\u2F3E': '\u6236',
  18305. '\u2F3F': '\u624B',
  18306. '\u2F40': '\u652F',
  18307. '\u2F41': '\u6534',
  18308. '\u2F42': '\u6587',
  18309. '\u2F43': '\u6597',
  18310. '\u2F44': '\u65A4',
  18311. '\u2F45': '\u65B9',
  18312. '\u2F46': '\u65E0',
  18313. '\u2F47': '\u65E5',
  18314. '\u2F48': '\u66F0',
  18315. '\u2F49': '\u6708',
  18316. '\u2F4A': '\u6728',
  18317. '\u2F4B': '\u6B20',
  18318. '\u2F4C': '\u6B62',
  18319. '\u2F4D': '\u6B79',
  18320. '\u2F4E': '\u6BB3',
  18321. '\u2F4F': '\u6BCB',
  18322. '\u2F50': '\u6BD4',
  18323. '\u2F51': '\u6BDB',
  18324. '\u2F52': '\u6C0F',
  18325. '\u2F53': '\u6C14',
  18326. '\u2F54': '\u6C34',
  18327. '\u2F55': '\u706B',
  18328. '\u2F56': '\u722A',
  18329. '\u2F57': '\u7236',
  18330. '\u2F58': '\u723B',
  18331. '\u2F59': '\u723F',
  18332. '\u2F5A': '\u7247',
  18333. '\u2F5B': '\u7259',
  18334. '\u2F5C': '\u725B',
  18335. '\u2F5D': '\u72AC',
  18336. '\u2F5E': '\u7384',
  18337. '\u2F5F': '\u7389',
  18338. '\u2F60': '\u74DC',
  18339. '\u2F61': '\u74E6',
  18340. '\u2F62': '\u7518',
  18341. '\u2F63': '\u751F',
  18342. '\u2F64': '\u7528',
  18343. '\u2F65': '\u7530',
  18344. '\u2F66': '\u758B',
  18345. '\u2F67': '\u7592',
  18346. '\u2F68': '\u7676',
  18347. '\u2F69': '\u767D',
  18348. '\u2F6A': '\u76AE',
  18349. '\u2F6B': '\u76BF',
  18350. '\u2F6C': '\u76EE',
  18351. '\u2F6D': '\u77DB',
  18352. '\u2F6E': '\u77E2',
  18353. '\u2F6F': '\u77F3',
  18354. '\u2F70': '\u793A',
  18355. '\u2F71': '\u79B8',
  18356. '\u2F72': '\u79BE',
  18357. '\u2F73': '\u7A74',
  18358. '\u2F74': '\u7ACB',
  18359. '\u2F75': '\u7AF9',
  18360. '\u2F76': '\u7C73',
  18361. '\u2F77': '\u7CF8',
  18362. '\u2F78': '\u7F36',
  18363. '\u2F79': '\u7F51',
  18364. '\u2F7A': '\u7F8A',
  18365. '\u2F7B': '\u7FBD',
  18366. '\u2F7C': '\u8001',
  18367. '\u2F7D': '\u800C',
  18368. '\u2F7E': '\u8012',
  18369. '\u2F7F': '\u8033',
  18370. '\u2F80': '\u807F',
  18371. '\u2F81': '\u8089',
  18372. '\u2F82': '\u81E3',
  18373. '\u2F83': '\u81EA',
  18374. '\u2F84': '\u81F3',
  18375. '\u2F85': '\u81FC',
  18376. '\u2F86': '\u820C',
  18377. '\u2F87': '\u821B',
  18378. '\u2F88': '\u821F',
  18379. '\u2F89': '\u826E',
  18380. '\u2F8A': '\u8272',
  18381. '\u2F8B': '\u8278',
  18382. '\u2F8C': '\u864D',
  18383. '\u2F8D': '\u866B',
  18384. '\u2F8E': '\u8840',
  18385. '\u2F8F': '\u884C',
  18386. '\u2F90': '\u8863',
  18387. '\u2F91': '\u897E',
  18388. '\u2F92': '\u898B',
  18389. '\u2F93': '\u89D2',
  18390. '\u2F94': '\u8A00',
  18391. '\u2F95': '\u8C37',
  18392. '\u2F96': '\u8C46',
  18393. '\u2F97': '\u8C55',
  18394. '\u2F98': '\u8C78',
  18395. '\u2F99': '\u8C9D',
  18396. '\u2F9A': '\u8D64',
  18397. '\u2F9B': '\u8D70',
  18398. '\u2F9C': '\u8DB3',
  18399. '\u2F9D': '\u8EAB',
  18400. '\u2F9E': '\u8ECA',
  18401. '\u2F9F': '\u8F9B',
  18402. '\u2FA0': '\u8FB0',
  18403. '\u2FA1': '\u8FB5',
  18404. '\u2FA2': '\u9091',
  18405. '\u2FA3': '\u9149',
  18406. '\u2FA4': '\u91C6',
  18407. '\u2FA5': '\u91CC',
  18408. '\u2FA6': '\u91D1',
  18409. '\u2FA7': '\u9577',
  18410. '\u2FA8': '\u9580',
  18411. '\u2FA9': '\u961C',
  18412. '\u2FAA': '\u96B6',
  18413. '\u2FAB': '\u96B9',
  18414. '\u2FAC': '\u96E8',
  18415. '\u2FAD': '\u9751',
  18416. '\u2FAE': '\u975E',
  18417. '\u2FAF': '\u9762',
  18418. '\u2FB0': '\u9769',
  18419. '\u2FB1': '\u97CB',
  18420. '\u2FB2': '\u97ED',
  18421. '\u2FB3': '\u97F3',
  18422. '\u2FB4': '\u9801',
  18423. '\u2FB5': '\u98A8',
  18424. '\u2FB6': '\u98DB',
  18425. '\u2FB7': '\u98DF',
  18426. '\u2FB8': '\u9996',
  18427. '\u2FB9': '\u9999',
  18428. '\u2FBA': '\u99AC',
  18429. '\u2FBB': '\u9AA8',
  18430. '\u2FBC': '\u9AD8',
  18431. '\u2FBD': '\u9ADF',
  18432. '\u2FBE': '\u9B25',
  18433. '\u2FBF': '\u9B2F',
  18434. '\u2FC0': '\u9B32',
  18435. '\u2FC1': '\u9B3C',
  18436. '\u2FC2': '\u9B5A',
  18437. '\u2FC3': '\u9CE5',
  18438. '\u2FC4': '\u9E75',
  18439. '\u2FC5': '\u9E7F',
  18440. '\u2FC6': '\u9EA5',
  18441. '\u2FC7': '\u9EBB',
  18442. '\u2FC8': '\u9EC3',
  18443. '\u2FC9': '\u9ECD',
  18444. '\u2FCA': '\u9ED1',
  18445. '\u2FCB': '\u9EF9',
  18446. '\u2FCC': '\u9EFD',
  18447. '\u2FCD': '\u9F0E',
  18448. '\u2FCE': '\u9F13',
  18449. '\u2FCF': '\u9F20',
  18450. '\u2FD0': '\u9F3B',
  18451. '\u2FD1': '\u9F4A',
  18452. '\u2FD2': '\u9F52',
  18453. '\u2FD3': '\u9F8D',
  18454. '\u2FD4': '\u9F9C',
  18455. '\u2FD5': '\u9FA0',
  18456. '\u3036': '\u3012',
  18457. '\u3038': '\u5341',
  18458. '\u3039': '\u5344',
  18459. '\u303A': '\u5345',
  18460. '\u309B': '\u0020\u3099',
  18461. '\u309C': '\u0020\u309A',
  18462. '\u3131': '\u1100',
  18463. '\u3132': '\u1101',
  18464. '\u3133': '\u11AA',
  18465. '\u3134': '\u1102',
  18466. '\u3135': '\u11AC',
  18467. '\u3136': '\u11AD',
  18468. '\u3137': '\u1103',
  18469. '\u3138': '\u1104',
  18470. '\u3139': '\u1105',
  18471. '\u313A': '\u11B0',
  18472. '\u313B': '\u11B1',
  18473. '\u313C': '\u11B2',
  18474. '\u313D': '\u11B3',
  18475. '\u313E': '\u11B4',
  18476. '\u313F': '\u11B5',
  18477. '\u3140': '\u111A',
  18478. '\u3141': '\u1106',
  18479. '\u3142': '\u1107',
  18480. '\u3143': '\u1108',
  18481. '\u3144': '\u1121',
  18482. '\u3145': '\u1109',
  18483. '\u3146': '\u110A',
  18484. '\u3147': '\u110B',
  18485. '\u3148': '\u110C',
  18486. '\u3149': '\u110D',
  18487. '\u314A': '\u110E',
  18488. '\u314B': '\u110F',
  18489. '\u314C': '\u1110',
  18490. '\u314D': '\u1111',
  18491. '\u314E': '\u1112',
  18492. '\u314F': '\u1161',
  18493. '\u3150': '\u1162',
  18494. '\u3151': '\u1163',
  18495. '\u3152': '\u1164',
  18496. '\u3153': '\u1165',
  18497. '\u3154': '\u1166',
  18498. '\u3155': '\u1167',
  18499. '\u3156': '\u1168',
  18500. '\u3157': '\u1169',
  18501. '\u3158': '\u116A',
  18502. '\u3159': '\u116B',
  18503. '\u315A': '\u116C',
  18504. '\u315B': '\u116D',
  18505. '\u315C': '\u116E',
  18506. '\u315D': '\u116F',
  18507. '\u315E': '\u1170',
  18508. '\u315F': '\u1171',
  18509. '\u3160': '\u1172',
  18510. '\u3161': '\u1173',
  18511. '\u3162': '\u1174',
  18512. '\u3163': '\u1175',
  18513. '\u3164': '\u1160',
  18514. '\u3165': '\u1114',
  18515. '\u3166': '\u1115',
  18516. '\u3167': '\u11C7',
  18517. '\u3168': '\u11C8',
  18518. '\u3169': '\u11CC',
  18519. '\u316A': '\u11CE',
  18520. '\u316B': '\u11D3',
  18521. '\u316C': '\u11D7',
  18522. '\u316D': '\u11D9',
  18523. '\u316E': '\u111C',
  18524. '\u316F': '\u11DD',
  18525. '\u3170': '\u11DF',
  18526. '\u3171': '\u111D',
  18527. '\u3172': '\u111E',
  18528. '\u3173': '\u1120',
  18529. '\u3174': '\u1122',
  18530. '\u3175': '\u1123',
  18531. '\u3176': '\u1127',
  18532. '\u3177': '\u1129',
  18533. '\u3178': '\u112B',
  18534. '\u3179': '\u112C',
  18535. '\u317A': '\u112D',
  18536. '\u317B': '\u112E',
  18537. '\u317C': '\u112F',
  18538. '\u317D': '\u1132',
  18539. '\u317E': '\u1136',
  18540. '\u317F': '\u1140',
  18541. '\u3180': '\u1147',
  18542. '\u3181': '\u114C',
  18543. '\u3182': '\u11F1',
  18544. '\u3183': '\u11F2',
  18545. '\u3184': '\u1157',
  18546. '\u3185': '\u1158',
  18547. '\u3186': '\u1159',
  18548. '\u3187': '\u1184',
  18549. '\u3188': '\u1185',
  18550. '\u3189': '\u1188',
  18551. '\u318A': '\u1191',
  18552. '\u318B': '\u1192',
  18553. '\u318C': '\u1194',
  18554. '\u318D': '\u119E',
  18555. '\u318E': '\u11A1',
  18556. '\u3200': '\u0028\u1100\u0029',
  18557. '\u3201': '\u0028\u1102\u0029',
  18558. '\u3202': '\u0028\u1103\u0029',
  18559. '\u3203': '\u0028\u1105\u0029',
  18560. '\u3204': '\u0028\u1106\u0029',
  18561. '\u3205': '\u0028\u1107\u0029',
  18562. '\u3206': '\u0028\u1109\u0029',
  18563. '\u3207': '\u0028\u110B\u0029',
  18564. '\u3208': '\u0028\u110C\u0029',
  18565. '\u3209': '\u0028\u110E\u0029',
  18566. '\u320A': '\u0028\u110F\u0029',
  18567. '\u320B': '\u0028\u1110\u0029',
  18568. '\u320C': '\u0028\u1111\u0029',
  18569. '\u320D': '\u0028\u1112\u0029',
  18570. '\u320E': '\u0028\u1100\u1161\u0029',
  18571. '\u320F': '\u0028\u1102\u1161\u0029',
  18572. '\u3210': '\u0028\u1103\u1161\u0029',
  18573. '\u3211': '\u0028\u1105\u1161\u0029',
  18574. '\u3212': '\u0028\u1106\u1161\u0029',
  18575. '\u3213': '\u0028\u1107\u1161\u0029',
  18576. '\u3214': '\u0028\u1109\u1161\u0029',
  18577. '\u3215': '\u0028\u110B\u1161\u0029',
  18578. '\u3216': '\u0028\u110C\u1161\u0029',
  18579. '\u3217': '\u0028\u110E\u1161\u0029',
  18580. '\u3218': '\u0028\u110F\u1161\u0029',
  18581. '\u3219': '\u0028\u1110\u1161\u0029',
  18582. '\u321A': '\u0028\u1111\u1161\u0029',
  18583. '\u321B': '\u0028\u1112\u1161\u0029',
  18584. '\u321C': '\u0028\u110C\u116E\u0029',
  18585. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  18586. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  18587. '\u3220': '\u0028\u4E00\u0029',
  18588. '\u3221': '\u0028\u4E8C\u0029',
  18589. '\u3222': '\u0028\u4E09\u0029',
  18590. '\u3223': '\u0028\u56DB\u0029',
  18591. '\u3224': '\u0028\u4E94\u0029',
  18592. '\u3225': '\u0028\u516D\u0029',
  18593. '\u3226': '\u0028\u4E03\u0029',
  18594. '\u3227': '\u0028\u516B\u0029',
  18595. '\u3228': '\u0028\u4E5D\u0029',
  18596. '\u3229': '\u0028\u5341\u0029',
  18597. '\u322A': '\u0028\u6708\u0029',
  18598. '\u322B': '\u0028\u706B\u0029',
  18599. '\u322C': '\u0028\u6C34\u0029',
  18600. '\u322D': '\u0028\u6728\u0029',
  18601. '\u322E': '\u0028\u91D1\u0029',
  18602. '\u322F': '\u0028\u571F\u0029',
  18603. '\u3230': '\u0028\u65E5\u0029',
  18604. '\u3231': '\u0028\u682A\u0029',
  18605. '\u3232': '\u0028\u6709\u0029',
  18606. '\u3233': '\u0028\u793E\u0029',
  18607. '\u3234': '\u0028\u540D\u0029',
  18608. '\u3235': '\u0028\u7279\u0029',
  18609. '\u3236': '\u0028\u8CA1\u0029',
  18610. '\u3237': '\u0028\u795D\u0029',
  18611. '\u3238': '\u0028\u52B4\u0029',
  18612. '\u3239': '\u0028\u4EE3\u0029',
  18613. '\u323A': '\u0028\u547C\u0029',
  18614. '\u323B': '\u0028\u5B66\u0029',
  18615. '\u323C': '\u0028\u76E3\u0029',
  18616. '\u323D': '\u0028\u4F01\u0029',
  18617. '\u323E': '\u0028\u8CC7\u0029',
  18618. '\u323F': '\u0028\u5354\u0029',
  18619. '\u3240': '\u0028\u796D\u0029',
  18620. '\u3241': '\u0028\u4F11\u0029',
  18621. '\u3242': '\u0028\u81EA\u0029',
  18622. '\u3243': '\u0028\u81F3\u0029',
  18623. '\u32C0': '\u0031\u6708',
  18624. '\u32C1': '\u0032\u6708',
  18625. '\u32C2': '\u0033\u6708',
  18626. '\u32C3': '\u0034\u6708',
  18627. '\u32C4': '\u0035\u6708',
  18628. '\u32C5': '\u0036\u6708',
  18629. '\u32C6': '\u0037\u6708',
  18630. '\u32C7': '\u0038\u6708',
  18631. '\u32C8': '\u0039\u6708',
  18632. '\u32C9': '\u0031\u0030\u6708',
  18633. '\u32CA': '\u0031\u0031\u6708',
  18634. '\u32CB': '\u0031\u0032\u6708',
  18635. '\u3358': '\u0030\u70B9',
  18636. '\u3359': '\u0031\u70B9',
  18637. '\u335A': '\u0032\u70B9',
  18638. '\u335B': '\u0033\u70B9',
  18639. '\u335C': '\u0034\u70B9',
  18640. '\u335D': '\u0035\u70B9',
  18641. '\u335E': '\u0036\u70B9',
  18642. '\u335F': '\u0037\u70B9',
  18643. '\u3360': '\u0038\u70B9',
  18644. '\u3361': '\u0039\u70B9',
  18645. '\u3362': '\u0031\u0030\u70B9',
  18646. '\u3363': '\u0031\u0031\u70B9',
  18647. '\u3364': '\u0031\u0032\u70B9',
  18648. '\u3365': '\u0031\u0033\u70B9',
  18649. '\u3366': '\u0031\u0034\u70B9',
  18650. '\u3367': '\u0031\u0035\u70B9',
  18651. '\u3368': '\u0031\u0036\u70B9',
  18652. '\u3369': '\u0031\u0037\u70B9',
  18653. '\u336A': '\u0031\u0038\u70B9',
  18654. '\u336B': '\u0031\u0039\u70B9',
  18655. '\u336C': '\u0032\u0030\u70B9',
  18656. '\u336D': '\u0032\u0031\u70B9',
  18657. '\u336E': '\u0032\u0032\u70B9',
  18658. '\u336F': '\u0032\u0033\u70B9',
  18659. '\u3370': '\u0032\u0034\u70B9',
  18660. '\u33E0': '\u0031\u65E5',
  18661. '\u33E1': '\u0032\u65E5',
  18662. '\u33E2': '\u0033\u65E5',
  18663. '\u33E3': '\u0034\u65E5',
  18664. '\u33E4': '\u0035\u65E5',
  18665. '\u33E5': '\u0036\u65E5',
  18666. '\u33E6': '\u0037\u65E5',
  18667. '\u33E7': '\u0038\u65E5',
  18668. '\u33E8': '\u0039\u65E5',
  18669. '\u33E9': '\u0031\u0030\u65E5',
  18670. '\u33EA': '\u0031\u0031\u65E5',
  18671. '\u33EB': '\u0031\u0032\u65E5',
  18672. '\u33EC': '\u0031\u0033\u65E5',
  18673. '\u33ED': '\u0031\u0034\u65E5',
  18674. '\u33EE': '\u0031\u0035\u65E5',
  18675. '\u33EF': '\u0031\u0036\u65E5',
  18676. '\u33F0': '\u0031\u0037\u65E5',
  18677. '\u33F1': '\u0031\u0038\u65E5',
  18678. '\u33F2': '\u0031\u0039\u65E5',
  18679. '\u33F3': '\u0032\u0030\u65E5',
  18680. '\u33F4': '\u0032\u0031\u65E5',
  18681. '\u33F5': '\u0032\u0032\u65E5',
  18682. '\u33F6': '\u0032\u0033\u65E5',
  18683. '\u33F7': '\u0032\u0034\u65E5',
  18684. '\u33F8': '\u0032\u0035\u65E5',
  18685. '\u33F9': '\u0032\u0036\u65E5',
  18686. '\u33FA': '\u0032\u0037\u65E5',
  18687. '\u33FB': '\u0032\u0038\u65E5',
  18688. '\u33FC': '\u0032\u0039\u65E5',
  18689. '\u33FD': '\u0033\u0030\u65E5',
  18690. '\u33FE': '\u0033\u0031\u65E5',
  18691. '\uFB00': '\u0066\u0066',
  18692. '\uFB01': '\u0066\u0069',
  18693. '\uFB02': '\u0066\u006C',
  18694. '\uFB03': '\u0066\u0066\u0069',
  18695. '\uFB04': '\u0066\u0066\u006C',
  18696. '\uFB05': '\u017F\u0074',
  18697. '\uFB06': '\u0073\u0074',
  18698. '\uFB13': '\u0574\u0576',
  18699. '\uFB14': '\u0574\u0565',
  18700. '\uFB15': '\u0574\u056B',
  18701. '\uFB16': '\u057E\u0576',
  18702. '\uFB17': '\u0574\u056D',
  18703. '\uFB4F': '\u05D0\u05DC',
  18704. '\uFB50': '\u0671',
  18705. '\uFB51': '\u0671',
  18706. '\uFB52': '\u067B',
  18707. '\uFB53': '\u067B',
  18708. '\uFB54': '\u067B',
  18709. '\uFB55': '\u067B',
  18710. '\uFB56': '\u067E',
  18711. '\uFB57': '\u067E',
  18712. '\uFB58': '\u067E',
  18713. '\uFB59': '\u067E',
  18714. '\uFB5A': '\u0680',
  18715. '\uFB5B': '\u0680',
  18716. '\uFB5C': '\u0680',
  18717. '\uFB5D': '\u0680',
  18718. '\uFB5E': '\u067A',
  18719. '\uFB5F': '\u067A',
  18720. '\uFB60': '\u067A',
  18721. '\uFB61': '\u067A',
  18722. '\uFB62': '\u067F',
  18723. '\uFB63': '\u067F',
  18724. '\uFB64': '\u067F',
  18725. '\uFB65': '\u067F',
  18726. '\uFB66': '\u0679',
  18727. '\uFB67': '\u0679',
  18728. '\uFB68': '\u0679',
  18729. '\uFB69': '\u0679',
  18730. '\uFB6A': '\u06A4',
  18731. '\uFB6B': '\u06A4',
  18732. '\uFB6C': '\u06A4',
  18733. '\uFB6D': '\u06A4',
  18734. '\uFB6E': '\u06A6',
  18735. '\uFB6F': '\u06A6',
  18736. '\uFB70': '\u06A6',
  18737. '\uFB71': '\u06A6',
  18738. '\uFB72': '\u0684',
  18739. '\uFB73': '\u0684',
  18740. '\uFB74': '\u0684',
  18741. '\uFB75': '\u0684',
  18742. '\uFB76': '\u0683',
  18743. '\uFB77': '\u0683',
  18744. '\uFB78': '\u0683',
  18745. '\uFB79': '\u0683',
  18746. '\uFB7A': '\u0686',
  18747. '\uFB7B': '\u0686',
  18748. '\uFB7C': '\u0686',
  18749. '\uFB7D': '\u0686',
  18750. '\uFB7E': '\u0687',
  18751. '\uFB7F': '\u0687',
  18752. '\uFB80': '\u0687',
  18753. '\uFB81': '\u0687',
  18754. '\uFB82': '\u068D',
  18755. '\uFB83': '\u068D',
  18756. '\uFB84': '\u068C',
  18757. '\uFB85': '\u068C',
  18758. '\uFB86': '\u068E',
  18759. '\uFB87': '\u068E',
  18760. '\uFB88': '\u0688',
  18761. '\uFB89': '\u0688',
  18762. '\uFB8A': '\u0698',
  18763. '\uFB8B': '\u0698',
  18764. '\uFB8C': '\u0691',
  18765. '\uFB8D': '\u0691',
  18766. '\uFB8E': '\u06A9',
  18767. '\uFB8F': '\u06A9',
  18768. '\uFB90': '\u06A9',
  18769. '\uFB91': '\u06A9',
  18770. '\uFB92': '\u06AF',
  18771. '\uFB93': '\u06AF',
  18772. '\uFB94': '\u06AF',
  18773. '\uFB95': '\u06AF',
  18774. '\uFB96': '\u06B3',
  18775. '\uFB97': '\u06B3',
  18776. '\uFB98': '\u06B3',
  18777. '\uFB99': '\u06B3',
  18778. '\uFB9A': '\u06B1',
  18779. '\uFB9B': '\u06B1',
  18780. '\uFB9C': '\u06B1',
  18781. '\uFB9D': '\u06B1',
  18782. '\uFB9E': '\u06BA',
  18783. '\uFB9F': '\u06BA',
  18784. '\uFBA0': '\u06BB',
  18785. '\uFBA1': '\u06BB',
  18786. '\uFBA2': '\u06BB',
  18787. '\uFBA3': '\u06BB',
  18788. '\uFBA4': '\u06C0',
  18789. '\uFBA5': '\u06C0',
  18790. '\uFBA6': '\u06C1',
  18791. '\uFBA7': '\u06C1',
  18792. '\uFBA8': '\u06C1',
  18793. '\uFBA9': '\u06C1',
  18794. '\uFBAA': '\u06BE',
  18795. '\uFBAB': '\u06BE',
  18796. '\uFBAC': '\u06BE',
  18797. '\uFBAD': '\u06BE',
  18798. '\uFBAE': '\u06D2',
  18799. '\uFBAF': '\u06D2',
  18800. '\uFBB0': '\u06D3',
  18801. '\uFBB1': '\u06D3',
  18802. '\uFBD3': '\u06AD',
  18803. '\uFBD4': '\u06AD',
  18804. '\uFBD5': '\u06AD',
  18805. '\uFBD6': '\u06AD',
  18806. '\uFBD7': '\u06C7',
  18807. '\uFBD8': '\u06C7',
  18808. '\uFBD9': '\u06C6',
  18809. '\uFBDA': '\u06C6',
  18810. '\uFBDB': '\u06C8',
  18811. '\uFBDC': '\u06C8',
  18812. '\uFBDD': '\u0677',
  18813. '\uFBDE': '\u06CB',
  18814. '\uFBDF': '\u06CB',
  18815. '\uFBE0': '\u06C5',
  18816. '\uFBE1': '\u06C5',
  18817. '\uFBE2': '\u06C9',
  18818. '\uFBE3': '\u06C9',
  18819. '\uFBE4': '\u06D0',
  18820. '\uFBE5': '\u06D0',
  18821. '\uFBE6': '\u06D0',
  18822. '\uFBE7': '\u06D0',
  18823. '\uFBE8': '\u0649',
  18824. '\uFBE9': '\u0649',
  18825. '\uFBEA': '\u0626\u0627',
  18826. '\uFBEB': '\u0626\u0627',
  18827. '\uFBEC': '\u0626\u06D5',
  18828. '\uFBED': '\u0626\u06D5',
  18829. '\uFBEE': '\u0626\u0648',
  18830. '\uFBEF': '\u0626\u0648',
  18831. '\uFBF0': '\u0626\u06C7',
  18832. '\uFBF1': '\u0626\u06C7',
  18833. '\uFBF2': '\u0626\u06C6',
  18834. '\uFBF3': '\u0626\u06C6',
  18835. '\uFBF4': '\u0626\u06C8',
  18836. '\uFBF5': '\u0626\u06C8',
  18837. '\uFBF6': '\u0626\u06D0',
  18838. '\uFBF7': '\u0626\u06D0',
  18839. '\uFBF8': '\u0626\u06D0',
  18840. '\uFBF9': '\u0626\u0649',
  18841. '\uFBFA': '\u0626\u0649',
  18842. '\uFBFB': '\u0626\u0649',
  18843. '\uFBFC': '\u06CC',
  18844. '\uFBFD': '\u06CC',
  18845. '\uFBFE': '\u06CC',
  18846. '\uFBFF': '\u06CC',
  18847. '\uFC00': '\u0626\u062C',
  18848. '\uFC01': '\u0626\u062D',
  18849. '\uFC02': '\u0626\u0645',
  18850. '\uFC03': '\u0626\u0649',
  18851. '\uFC04': '\u0626\u064A',
  18852. '\uFC05': '\u0628\u062C',
  18853. '\uFC06': '\u0628\u062D',
  18854. '\uFC07': '\u0628\u062E',
  18855. '\uFC08': '\u0628\u0645',
  18856. '\uFC09': '\u0628\u0649',
  18857. '\uFC0A': '\u0628\u064A',
  18858. '\uFC0B': '\u062A\u062C',
  18859. '\uFC0C': '\u062A\u062D',
  18860. '\uFC0D': '\u062A\u062E',
  18861. '\uFC0E': '\u062A\u0645',
  18862. '\uFC0F': '\u062A\u0649',
  18863. '\uFC10': '\u062A\u064A',
  18864. '\uFC11': '\u062B\u062C',
  18865. '\uFC12': '\u062B\u0645',
  18866. '\uFC13': '\u062B\u0649',
  18867. '\uFC14': '\u062B\u064A',
  18868. '\uFC15': '\u062C\u062D',
  18869. '\uFC16': '\u062C\u0645',
  18870. '\uFC17': '\u062D\u062C',
  18871. '\uFC18': '\u062D\u0645',
  18872. '\uFC19': '\u062E\u062C',
  18873. '\uFC1A': '\u062E\u062D',
  18874. '\uFC1B': '\u062E\u0645',
  18875. '\uFC1C': '\u0633\u062C',
  18876. '\uFC1D': '\u0633\u062D',
  18877. '\uFC1E': '\u0633\u062E',
  18878. '\uFC1F': '\u0633\u0645',
  18879. '\uFC20': '\u0635\u062D',
  18880. '\uFC21': '\u0635\u0645',
  18881. '\uFC22': '\u0636\u062C',
  18882. '\uFC23': '\u0636\u062D',
  18883. '\uFC24': '\u0636\u062E',
  18884. '\uFC25': '\u0636\u0645',
  18885. '\uFC26': '\u0637\u062D',
  18886. '\uFC27': '\u0637\u0645',
  18887. '\uFC28': '\u0638\u0645',
  18888. '\uFC29': '\u0639\u062C',
  18889. '\uFC2A': '\u0639\u0645',
  18890. '\uFC2B': '\u063A\u062C',
  18891. '\uFC2C': '\u063A\u0645',
  18892. '\uFC2D': '\u0641\u062C',
  18893. '\uFC2E': '\u0641\u062D',
  18894. '\uFC2F': '\u0641\u062E',
  18895. '\uFC30': '\u0641\u0645',
  18896. '\uFC31': '\u0641\u0649',
  18897. '\uFC32': '\u0641\u064A',
  18898. '\uFC33': '\u0642\u062D',
  18899. '\uFC34': '\u0642\u0645',
  18900. '\uFC35': '\u0642\u0649',
  18901. '\uFC36': '\u0642\u064A',
  18902. '\uFC37': '\u0643\u0627',
  18903. '\uFC38': '\u0643\u062C',
  18904. '\uFC39': '\u0643\u062D',
  18905. '\uFC3A': '\u0643\u062E',
  18906. '\uFC3B': '\u0643\u0644',
  18907. '\uFC3C': '\u0643\u0645',
  18908. '\uFC3D': '\u0643\u0649',
  18909. '\uFC3E': '\u0643\u064A',
  18910. '\uFC3F': '\u0644\u062C',
  18911. '\uFC40': '\u0644\u062D',
  18912. '\uFC41': '\u0644\u062E',
  18913. '\uFC42': '\u0644\u0645',
  18914. '\uFC43': '\u0644\u0649',
  18915. '\uFC44': '\u0644\u064A',
  18916. '\uFC45': '\u0645\u062C',
  18917. '\uFC46': '\u0645\u062D',
  18918. '\uFC47': '\u0645\u062E',
  18919. '\uFC48': '\u0645\u0645',
  18920. '\uFC49': '\u0645\u0649',
  18921. '\uFC4A': '\u0645\u064A',
  18922. '\uFC4B': '\u0646\u062C',
  18923. '\uFC4C': '\u0646\u062D',
  18924. '\uFC4D': '\u0646\u062E',
  18925. '\uFC4E': '\u0646\u0645',
  18926. '\uFC4F': '\u0646\u0649',
  18927. '\uFC50': '\u0646\u064A',
  18928. '\uFC51': '\u0647\u062C',
  18929. '\uFC52': '\u0647\u0645',
  18930. '\uFC53': '\u0647\u0649',
  18931. '\uFC54': '\u0647\u064A',
  18932. '\uFC55': '\u064A\u062C',
  18933. '\uFC56': '\u064A\u062D',
  18934. '\uFC57': '\u064A\u062E',
  18935. '\uFC58': '\u064A\u0645',
  18936. '\uFC59': '\u064A\u0649',
  18937. '\uFC5A': '\u064A\u064A',
  18938. '\uFC5B': '\u0630\u0670',
  18939. '\uFC5C': '\u0631\u0670',
  18940. '\uFC5D': '\u0649\u0670',
  18941. '\uFC5E': '\u0020\u064C\u0651',
  18942. '\uFC5F': '\u0020\u064D\u0651',
  18943. '\uFC60': '\u0020\u064E\u0651',
  18944. '\uFC61': '\u0020\u064F\u0651',
  18945. '\uFC62': '\u0020\u0650\u0651',
  18946. '\uFC63': '\u0020\u0651\u0670',
  18947. '\uFC64': '\u0626\u0631',
  18948. '\uFC65': '\u0626\u0632',
  18949. '\uFC66': '\u0626\u0645',
  18950. '\uFC67': '\u0626\u0646',
  18951. '\uFC68': '\u0626\u0649',
  18952. '\uFC69': '\u0626\u064A',
  18953. '\uFC6A': '\u0628\u0631',
  18954. '\uFC6B': '\u0628\u0632',
  18955. '\uFC6C': '\u0628\u0645',
  18956. '\uFC6D': '\u0628\u0646',
  18957. '\uFC6E': '\u0628\u0649',
  18958. '\uFC6F': '\u0628\u064A',
  18959. '\uFC70': '\u062A\u0631',
  18960. '\uFC71': '\u062A\u0632',
  18961. '\uFC72': '\u062A\u0645',
  18962. '\uFC73': '\u062A\u0646',
  18963. '\uFC74': '\u062A\u0649',
  18964. '\uFC75': '\u062A\u064A',
  18965. '\uFC76': '\u062B\u0631',
  18966. '\uFC77': '\u062B\u0632',
  18967. '\uFC78': '\u062B\u0645',
  18968. '\uFC79': '\u062B\u0646',
  18969. '\uFC7A': '\u062B\u0649',
  18970. '\uFC7B': '\u062B\u064A',
  18971. '\uFC7C': '\u0641\u0649',
  18972. '\uFC7D': '\u0641\u064A',
  18973. '\uFC7E': '\u0642\u0649',
  18974. '\uFC7F': '\u0642\u064A',
  18975. '\uFC80': '\u0643\u0627',
  18976. '\uFC81': '\u0643\u0644',
  18977. '\uFC82': '\u0643\u0645',
  18978. '\uFC83': '\u0643\u0649',
  18979. '\uFC84': '\u0643\u064A',
  18980. '\uFC85': '\u0644\u0645',
  18981. '\uFC86': '\u0644\u0649',
  18982. '\uFC87': '\u0644\u064A',
  18983. '\uFC88': '\u0645\u0627',
  18984. '\uFC89': '\u0645\u0645',
  18985. '\uFC8A': '\u0646\u0631',
  18986. '\uFC8B': '\u0646\u0632',
  18987. '\uFC8C': '\u0646\u0645',
  18988. '\uFC8D': '\u0646\u0646',
  18989. '\uFC8E': '\u0646\u0649',
  18990. '\uFC8F': '\u0646\u064A',
  18991. '\uFC90': '\u0649\u0670',
  18992. '\uFC91': '\u064A\u0631',
  18993. '\uFC92': '\u064A\u0632',
  18994. '\uFC93': '\u064A\u0645',
  18995. '\uFC94': '\u064A\u0646',
  18996. '\uFC95': '\u064A\u0649',
  18997. '\uFC96': '\u064A\u064A',
  18998. '\uFC97': '\u0626\u062C',
  18999. '\uFC98': '\u0626\u062D',
  19000. '\uFC99': '\u0626\u062E',
  19001. '\uFC9A': '\u0626\u0645',
  19002. '\uFC9B': '\u0626\u0647',
  19003. '\uFC9C': '\u0628\u062C',
  19004. '\uFC9D': '\u0628\u062D',
  19005. '\uFC9E': '\u0628\u062E',
  19006. '\uFC9F': '\u0628\u0645',
  19007. '\uFCA0': '\u0628\u0647',
  19008. '\uFCA1': '\u062A\u062C',
  19009. '\uFCA2': '\u062A\u062D',
  19010. '\uFCA3': '\u062A\u062E',
  19011. '\uFCA4': '\u062A\u0645',
  19012. '\uFCA5': '\u062A\u0647',
  19013. '\uFCA6': '\u062B\u0645',
  19014. '\uFCA7': '\u062C\u062D',
  19015. '\uFCA8': '\u062C\u0645',
  19016. '\uFCA9': '\u062D\u062C',
  19017. '\uFCAA': '\u062D\u0645',
  19018. '\uFCAB': '\u062E\u062C',
  19019. '\uFCAC': '\u062E\u0645',
  19020. '\uFCAD': '\u0633\u062C',
  19021. '\uFCAE': '\u0633\u062D',
  19022. '\uFCAF': '\u0633\u062E',
  19023. '\uFCB0': '\u0633\u0645',
  19024. '\uFCB1': '\u0635\u062D',
  19025. '\uFCB2': '\u0635\u062E',
  19026. '\uFCB3': '\u0635\u0645',
  19027. '\uFCB4': '\u0636\u062C',
  19028. '\uFCB5': '\u0636\u062D',
  19029. '\uFCB6': '\u0636\u062E',
  19030. '\uFCB7': '\u0636\u0645',
  19031. '\uFCB8': '\u0637\u062D',
  19032. '\uFCB9': '\u0638\u0645',
  19033. '\uFCBA': '\u0639\u062C',
  19034. '\uFCBB': '\u0639\u0645',
  19035. '\uFCBC': '\u063A\u062C',
  19036. '\uFCBD': '\u063A\u0645',
  19037. '\uFCBE': '\u0641\u062C',
  19038. '\uFCBF': '\u0641\u062D',
  19039. '\uFCC0': '\u0641\u062E',
  19040. '\uFCC1': '\u0641\u0645',
  19041. '\uFCC2': '\u0642\u062D',
  19042. '\uFCC3': '\u0642\u0645',
  19043. '\uFCC4': '\u0643\u062C',
  19044. '\uFCC5': '\u0643\u062D',
  19045. '\uFCC6': '\u0643\u062E',
  19046. '\uFCC7': '\u0643\u0644',
  19047. '\uFCC8': '\u0643\u0645',
  19048. '\uFCC9': '\u0644\u062C',
  19049. '\uFCCA': '\u0644\u062D',
  19050. '\uFCCB': '\u0644\u062E',
  19051. '\uFCCC': '\u0644\u0645',
  19052. '\uFCCD': '\u0644\u0647',
  19053. '\uFCCE': '\u0645\u062C',
  19054. '\uFCCF': '\u0645\u062D',
  19055. '\uFCD0': '\u0645\u062E',
  19056. '\uFCD1': '\u0645\u0645',
  19057. '\uFCD2': '\u0646\u062C',
  19058. '\uFCD3': '\u0646\u062D',
  19059. '\uFCD4': '\u0646\u062E',
  19060. '\uFCD5': '\u0646\u0645',
  19061. '\uFCD6': '\u0646\u0647',
  19062. '\uFCD7': '\u0647\u062C',
  19063. '\uFCD8': '\u0647\u0645',
  19064. '\uFCD9': '\u0647\u0670',
  19065. '\uFCDA': '\u064A\u062C',
  19066. '\uFCDB': '\u064A\u062D',
  19067. '\uFCDC': '\u064A\u062E',
  19068. '\uFCDD': '\u064A\u0645',
  19069. '\uFCDE': '\u064A\u0647',
  19070. '\uFCDF': '\u0626\u0645',
  19071. '\uFCE0': '\u0626\u0647',
  19072. '\uFCE1': '\u0628\u0645',
  19073. '\uFCE2': '\u0628\u0647',
  19074. '\uFCE3': '\u062A\u0645',
  19075. '\uFCE4': '\u062A\u0647',
  19076. '\uFCE5': '\u062B\u0645',
  19077. '\uFCE6': '\u062B\u0647',
  19078. '\uFCE7': '\u0633\u0645',
  19079. '\uFCE8': '\u0633\u0647',
  19080. '\uFCE9': '\u0634\u0645',
  19081. '\uFCEA': '\u0634\u0647',
  19082. '\uFCEB': '\u0643\u0644',
  19083. '\uFCEC': '\u0643\u0645',
  19084. '\uFCED': '\u0644\u0645',
  19085. '\uFCEE': '\u0646\u0645',
  19086. '\uFCEF': '\u0646\u0647',
  19087. '\uFCF0': '\u064A\u0645',
  19088. '\uFCF1': '\u064A\u0647',
  19089. '\uFCF2': '\u0640\u064E\u0651',
  19090. '\uFCF3': '\u0640\u064F\u0651',
  19091. '\uFCF4': '\u0640\u0650\u0651',
  19092. '\uFCF5': '\u0637\u0649',
  19093. '\uFCF6': '\u0637\u064A',
  19094. '\uFCF7': '\u0639\u0649',
  19095. '\uFCF8': '\u0639\u064A',
  19096. '\uFCF9': '\u063A\u0649',
  19097. '\uFCFA': '\u063A\u064A',
  19098. '\uFCFB': '\u0633\u0649',
  19099. '\uFCFC': '\u0633\u064A',
  19100. '\uFCFD': '\u0634\u0649',
  19101. '\uFCFE': '\u0634\u064A',
  19102. '\uFCFF': '\u062D\u0649',
  19103. '\uFD00': '\u062D\u064A',
  19104. '\uFD01': '\u062C\u0649',
  19105. '\uFD02': '\u062C\u064A',
  19106. '\uFD03': '\u062E\u0649',
  19107. '\uFD04': '\u062E\u064A',
  19108. '\uFD05': '\u0635\u0649',
  19109. '\uFD06': '\u0635\u064A',
  19110. '\uFD07': '\u0636\u0649',
  19111. '\uFD08': '\u0636\u064A',
  19112. '\uFD09': '\u0634\u062C',
  19113. '\uFD0A': '\u0634\u062D',
  19114. '\uFD0B': '\u0634\u062E',
  19115. '\uFD0C': '\u0634\u0645',
  19116. '\uFD0D': '\u0634\u0631',
  19117. '\uFD0E': '\u0633\u0631',
  19118. '\uFD0F': '\u0635\u0631',
  19119. '\uFD10': '\u0636\u0631',
  19120. '\uFD11': '\u0637\u0649',
  19121. '\uFD12': '\u0637\u064A',
  19122. '\uFD13': '\u0639\u0649',
  19123. '\uFD14': '\u0639\u064A',
  19124. '\uFD15': '\u063A\u0649',
  19125. '\uFD16': '\u063A\u064A',
  19126. '\uFD17': '\u0633\u0649',
  19127. '\uFD18': '\u0633\u064A',
  19128. '\uFD19': '\u0634\u0649',
  19129. '\uFD1A': '\u0634\u064A',
  19130. '\uFD1B': '\u062D\u0649',
  19131. '\uFD1C': '\u062D\u064A',
  19132. '\uFD1D': '\u062C\u0649',
  19133. '\uFD1E': '\u062C\u064A',
  19134. '\uFD1F': '\u062E\u0649',
  19135. '\uFD20': '\u062E\u064A',
  19136. '\uFD21': '\u0635\u0649',
  19137. '\uFD22': '\u0635\u064A',
  19138. '\uFD23': '\u0636\u0649',
  19139. '\uFD24': '\u0636\u064A',
  19140. '\uFD25': '\u0634\u062C',
  19141. '\uFD26': '\u0634\u062D',
  19142. '\uFD27': '\u0634\u062E',
  19143. '\uFD28': '\u0634\u0645',
  19144. '\uFD29': '\u0634\u0631',
  19145. '\uFD2A': '\u0633\u0631',
  19146. '\uFD2B': '\u0635\u0631',
  19147. '\uFD2C': '\u0636\u0631',
  19148. '\uFD2D': '\u0634\u062C',
  19149. '\uFD2E': '\u0634\u062D',
  19150. '\uFD2F': '\u0634\u062E',
  19151. '\uFD30': '\u0634\u0645',
  19152. '\uFD31': '\u0633\u0647',
  19153. '\uFD32': '\u0634\u0647',
  19154. '\uFD33': '\u0637\u0645',
  19155. '\uFD34': '\u0633\u062C',
  19156. '\uFD35': '\u0633\u062D',
  19157. '\uFD36': '\u0633\u062E',
  19158. '\uFD37': '\u0634\u062C',
  19159. '\uFD38': '\u0634\u062D',
  19160. '\uFD39': '\u0634\u062E',
  19161. '\uFD3A': '\u0637\u0645',
  19162. '\uFD3B': '\u0638\u0645',
  19163. '\uFD3C': '\u0627\u064B',
  19164. '\uFD3D': '\u0627\u064B',
  19165. '\uFD50': '\u062A\u062C\u0645',
  19166. '\uFD51': '\u062A\u062D\u062C',
  19167. '\uFD52': '\u062A\u062D\u062C',
  19168. '\uFD53': '\u062A\u062D\u0645',
  19169. '\uFD54': '\u062A\u062E\u0645',
  19170. '\uFD55': '\u062A\u0645\u062C',
  19171. '\uFD56': '\u062A\u0645\u062D',
  19172. '\uFD57': '\u062A\u0645\u062E',
  19173. '\uFD58': '\u062C\u0645\u062D',
  19174. '\uFD59': '\u062C\u0645\u062D',
  19175. '\uFD5A': '\u062D\u0645\u064A',
  19176. '\uFD5B': '\u062D\u0645\u0649',
  19177. '\uFD5C': '\u0633\u062D\u062C',
  19178. '\uFD5D': '\u0633\u062C\u062D',
  19179. '\uFD5E': '\u0633\u062C\u0649',
  19180. '\uFD5F': '\u0633\u0645\u062D',
  19181. '\uFD60': '\u0633\u0645\u062D',
  19182. '\uFD61': '\u0633\u0645\u062C',
  19183. '\uFD62': '\u0633\u0645\u0645',
  19184. '\uFD63': '\u0633\u0645\u0645',
  19185. '\uFD64': '\u0635\u062D\u062D',
  19186. '\uFD65': '\u0635\u062D\u062D',
  19187. '\uFD66': '\u0635\u0645\u0645',
  19188. '\uFD67': '\u0634\u062D\u0645',
  19189. '\uFD68': '\u0634\u062D\u0645',
  19190. '\uFD69': '\u0634\u062C\u064A',
  19191. '\uFD6A': '\u0634\u0645\u062E',
  19192. '\uFD6B': '\u0634\u0645\u062E',
  19193. '\uFD6C': '\u0634\u0645\u0645',
  19194. '\uFD6D': '\u0634\u0645\u0645',
  19195. '\uFD6E': '\u0636\u062D\u0649',
  19196. '\uFD6F': '\u0636\u062E\u0645',
  19197. '\uFD70': '\u0636\u062E\u0645',
  19198. '\uFD71': '\u0637\u0645\u062D',
  19199. '\uFD72': '\u0637\u0645\u062D',
  19200. '\uFD73': '\u0637\u0645\u0645',
  19201. '\uFD74': '\u0637\u0645\u064A',
  19202. '\uFD75': '\u0639\u062C\u0645',
  19203. '\uFD76': '\u0639\u0645\u0645',
  19204. '\uFD77': '\u0639\u0645\u0645',
  19205. '\uFD78': '\u0639\u0645\u0649',
  19206. '\uFD79': '\u063A\u0645\u0645',
  19207. '\uFD7A': '\u063A\u0645\u064A',
  19208. '\uFD7B': '\u063A\u0645\u0649',
  19209. '\uFD7C': '\u0641\u062E\u0645',
  19210. '\uFD7D': '\u0641\u062E\u0645',
  19211. '\uFD7E': '\u0642\u0645\u062D',
  19212. '\uFD7F': '\u0642\u0645\u0645',
  19213. '\uFD80': '\u0644\u062D\u0645',
  19214. '\uFD81': '\u0644\u062D\u064A',
  19215. '\uFD82': '\u0644\u062D\u0649',
  19216. '\uFD83': '\u0644\u062C\u062C',
  19217. '\uFD84': '\u0644\u062C\u062C',
  19218. '\uFD85': '\u0644\u062E\u0645',
  19219. '\uFD86': '\u0644\u062E\u0645',
  19220. '\uFD87': '\u0644\u0645\u062D',
  19221. '\uFD88': '\u0644\u0645\u062D',
  19222. '\uFD89': '\u0645\u062D\u062C',
  19223. '\uFD8A': '\u0645\u062D\u0645',
  19224. '\uFD8B': '\u0645\u062D\u064A',
  19225. '\uFD8C': '\u0645\u062C\u062D',
  19226. '\uFD8D': '\u0645\u062C\u0645',
  19227. '\uFD8E': '\u0645\u062E\u062C',
  19228. '\uFD8F': '\u0645\u062E\u0645',
  19229. '\uFD92': '\u0645\u062C\u062E',
  19230. '\uFD93': '\u0647\u0645\u062C',
  19231. '\uFD94': '\u0647\u0645\u0645',
  19232. '\uFD95': '\u0646\u062D\u0645',
  19233. '\uFD96': '\u0646\u062D\u0649',
  19234. '\uFD97': '\u0646\u062C\u0645',
  19235. '\uFD98': '\u0646\u062C\u0645',
  19236. '\uFD99': '\u0646\u062C\u0649',
  19237. '\uFD9A': '\u0646\u0645\u064A',
  19238. '\uFD9B': '\u0646\u0645\u0649',
  19239. '\uFD9C': '\u064A\u0645\u0645',
  19240. '\uFD9D': '\u064A\u0645\u0645',
  19241. '\uFD9E': '\u0628\u062E\u064A',
  19242. '\uFD9F': '\u062A\u062C\u064A',
  19243. '\uFDA0': '\u062A\u062C\u0649',
  19244. '\uFDA1': '\u062A\u062E\u064A',
  19245. '\uFDA2': '\u062A\u062E\u0649',
  19246. '\uFDA3': '\u062A\u0645\u064A',
  19247. '\uFDA4': '\u062A\u0645\u0649',
  19248. '\uFDA5': '\u062C\u0645\u064A',
  19249. '\uFDA6': '\u062C\u062D\u0649',
  19250. '\uFDA7': '\u062C\u0645\u0649',
  19251. '\uFDA8': '\u0633\u062E\u0649',
  19252. '\uFDA9': '\u0635\u062D\u064A',
  19253. '\uFDAA': '\u0634\u062D\u064A',
  19254. '\uFDAB': '\u0636\u062D\u064A',
  19255. '\uFDAC': '\u0644\u062C\u064A',
  19256. '\uFDAD': '\u0644\u0645\u064A',
  19257. '\uFDAE': '\u064A\u062D\u064A',
  19258. '\uFDAF': '\u064A\u062C\u064A',
  19259. '\uFDB0': '\u064A\u0645\u064A',
  19260. '\uFDB1': '\u0645\u0645\u064A',
  19261. '\uFDB2': '\u0642\u0645\u064A',
  19262. '\uFDB3': '\u0646\u062D\u064A',
  19263. '\uFDB4': '\u0642\u0645\u062D',
  19264. '\uFDB5': '\u0644\u062D\u0645',
  19265. '\uFDB6': '\u0639\u0645\u064A',
  19266. '\uFDB7': '\u0643\u0645\u064A',
  19267. '\uFDB8': '\u0646\u062C\u062D',
  19268. '\uFDB9': '\u0645\u062E\u064A',
  19269. '\uFDBA': '\u0644\u062C\u0645',
  19270. '\uFDBB': '\u0643\u0645\u0645',
  19271. '\uFDBC': '\u0644\u062C\u0645',
  19272. '\uFDBD': '\u0646\u062C\u062D',
  19273. '\uFDBE': '\u062C\u062D\u064A',
  19274. '\uFDBF': '\u062D\u062C\u064A',
  19275. '\uFDC0': '\u0645\u062C\u064A',
  19276. '\uFDC1': '\u0641\u0645\u064A',
  19277. '\uFDC2': '\u0628\u062D\u064A',
  19278. '\uFDC3': '\u0643\u0645\u0645',
  19279. '\uFDC4': '\u0639\u062C\u0645',
  19280. '\uFDC5': '\u0635\u0645\u0645',
  19281. '\uFDC6': '\u0633\u062E\u064A',
  19282. '\uFDC7': '\u0646\u062C\u064A',
  19283. '\uFE49': '\u203E',
  19284. '\uFE4A': '\u203E',
  19285. '\uFE4B': '\u203E',
  19286. '\uFE4C': '\u203E',
  19287. '\uFE4D': '\u005F',
  19288. '\uFE4E': '\u005F',
  19289. '\uFE4F': '\u005F',
  19290. '\uFE80': '\u0621',
  19291. '\uFE81': '\u0622',
  19292. '\uFE82': '\u0622',
  19293. '\uFE83': '\u0623',
  19294. '\uFE84': '\u0623',
  19295. '\uFE85': '\u0624',
  19296. '\uFE86': '\u0624',
  19297. '\uFE87': '\u0625',
  19298. '\uFE88': '\u0625',
  19299. '\uFE89': '\u0626',
  19300. '\uFE8A': '\u0626',
  19301. '\uFE8B': '\u0626',
  19302. '\uFE8C': '\u0626',
  19303. '\uFE8D': '\u0627',
  19304. '\uFE8E': '\u0627',
  19305. '\uFE8F': '\u0628',
  19306. '\uFE90': '\u0628',
  19307. '\uFE91': '\u0628',
  19308. '\uFE92': '\u0628',
  19309. '\uFE93': '\u0629',
  19310. '\uFE94': '\u0629',
  19311. '\uFE95': '\u062A',
  19312. '\uFE96': '\u062A',
  19313. '\uFE97': '\u062A',
  19314. '\uFE98': '\u062A',
  19315. '\uFE99': '\u062B',
  19316. '\uFE9A': '\u062B',
  19317. '\uFE9B': '\u062B',
  19318. '\uFE9C': '\u062B',
  19319. '\uFE9D': '\u062C',
  19320. '\uFE9E': '\u062C',
  19321. '\uFE9F': '\u062C',
  19322. '\uFEA0': '\u062C',
  19323. '\uFEA1': '\u062D',
  19324. '\uFEA2': '\u062D',
  19325. '\uFEA3': '\u062D',
  19326. '\uFEA4': '\u062D',
  19327. '\uFEA5': '\u062E',
  19328. '\uFEA6': '\u062E',
  19329. '\uFEA7': '\u062E',
  19330. '\uFEA8': '\u062E',
  19331. '\uFEA9': '\u062F',
  19332. '\uFEAA': '\u062F',
  19333. '\uFEAB': '\u0630',
  19334. '\uFEAC': '\u0630',
  19335. '\uFEAD': '\u0631',
  19336. '\uFEAE': '\u0631',
  19337. '\uFEAF': '\u0632',
  19338. '\uFEB0': '\u0632',
  19339. '\uFEB1': '\u0633',
  19340. '\uFEB2': '\u0633',
  19341. '\uFEB3': '\u0633',
  19342. '\uFEB4': '\u0633',
  19343. '\uFEB5': '\u0634',
  19344. '\uFEB6': '\u0634',
  19345. '\uFEB7': '\u0634',
  19346. '\uFEB8': '\u0634',
  19347. '\uFEB9': '\u0635',
  19348. '\uFEBA': '\u0635',
  19349. '\uFEBB': '\u0635',
  19350. '\uFEBC': '\u0635',
  19351. '\uFEBD': '\u0636',
  19352. '\uFEBE': '\u0636',
  19353. '\uFEBF': '\u0636',
  19354. '\uFEC0': '\u0636',
  19355. '\uFEC1': '\u0637',
  19356. '\uFEC2': '\u0637',
  19357. '\uFEC3': '\u0637',
  19358. '\uFEC4': '\u0637',
  19359. '\uFEC5': '\u0638',
  19360. '\uFEC6': '\u0638',
  19361. '\uFEC7': '\u0638',
  19362. '\uFEC8': '\u0638',
  19363. '\uFEC9': '\u0639',
  19364. '\uFECA': '\u0639',
  19365. '\uFECB': '\u0639',
  19366. '\uFECC': '\u0639',
  19367. '\uFECD': '\u063A',
  19368. '\uFECE': '\u063A',
  19369. '\uFECF': '\u063A',
  19370. '\uFED0': '\u063A',
  19371. '\uFED1': '\u0641',
  19372. '\uFED2': '\u0641',
  19373. '\uFED3': '\u0641',
  19374. '\uFED4': '\u0641',
  19375. '\uFED5': '\u0642',
  19376. '\uFED6': '\u0642',
  19377. '\uFED7': '\u0642',
  19378. '\uFED8': '\u0642',
  19379. '\uFED9': '\u0643',
  19380. '\uFEDA': '\u0643',
  19381. '\uFEDB': '\u0643',
  19382. '\uFEDC': '\u0643',
  19383. '\uFEDD': '\u0644',
  19384. '\uFEDE': '\u0644',
  19385. '\uFEDF': '\u0644',
  19386. '\uFEE0': '\u0644',
  19387. '\uFEE1': '\u0645',
  19388. '\uFEE2': '\u0645',
  19389. '\uFEE3': '\u0645',
  19390. '\uFEE4': '\u0645',
  19391. '\uFEE5': '\u0646',
  19392. '\uFEE6': '\u0646',
  19393. '\uFEE7': '\u0646',
  19394. '\uFEE8': '\u0646',
  19395. '\uFEE9': '\u0647',
  19396. '\uFEEA': '\u0647',
  19397. '\uFEEB': '\u0647',
  19398. '\uFEEC': '\u0647',
  19399. '\uFEED': '\u0648',
  19400. '\uFEEE': '\u0648',
  19401. '\uFEEF': '\u0649',
  19402. '\uFEF0': '\u0649',
  19403. '\uFEF1': '\u064A',
  19404. '\uFEF2': '\u064A',
  19405. '\uFEF3': '\u064A',
  19406. '\uFEF4': '\u064A',
  19407. '\uFEF5': '\u0644\u0622',
  19408. '\uFEF6': '\u0644\u0622',
  19409. '\uFEF7': '\u0644\u0623',
  19410. '\uFEF8': '\u0644\u0623',
  19411. '\uFEF9': '\u0644\u0625',
  19412. '\uFEFA': '\u0644\u0625',
  19413. '\uFEFB': '\u0644\u0627',
  19414. '\uFEFC': '\u0644\u0627'
  19415. };
  19416. function reverseIfRtl(chars) {
  19417. var charsLength = chars.length;
  19418. //reverse an arabic ligature
  19419. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  19420. return chars;
  19421. }
  19422. var s = '';
  19423. for (var ii = charsLength - 1; ii >= 0; ii--) {
  19424. s += chars[ii];
  19425. }
  19426. return s;
  19427. }
  19428. function adjustWidths(properties) {
  19429. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  19430. return;
  19431. }
  19432. // adjusting width to fontMatrix scale
  19433. var scale = 0.001 / properties.fontMatrix[0];
  19434. var glyphsWidths = properties.widths;
  19435. for (var glyph in glyphsWidths) {
  19436. glyphsWidths[glyph] *= scale;
  19437. }
  19438. properties.defaultWidth *= scale;
  19439. }
  19440. var Glyph = (function GlyphClosure() {
  19441. function Glyph(fontChar, unicode, accent, width, vmetric, operatorList) {
  19442. this.fontChar = fontChar;
  19443. this.unicode = unicode;
  19444. this.accent = accent;
  19445. this.width = width;
  19446. this.vmetric = vmetric;
  19447. this.operatorList = operatorList;
  19448. }
  19449. Glyph.prototype.matchesForCache =
  19450. function(fontChar, unicode, accent, width, vmetric, operatorList) {
  19451. return this.fontChar === fontChar &&
  19452. this.unicode === unicode &&
  19453. this.accent === accent &&
  19454. this.width === width &&
  19455. this.vmetric === vmetric &&
  19456. this.operatorList === operatorList;
  19457. };
  19458. return Glyph;
  19459. })();
  19460. /**
  19461. * 'Font' is the class the outside world should use, it encapsulate all the font
  19462. * decoding logics whatever type it is (assuming the font type is supported).
  19463. *
  19464. * For example to read a Type1 font and to attach it to the document:
  19465. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  19466. * type1Font.bind();
  19467. */
  19468. var Font = (function FontClosure() {
  19469. function Font(name, file, properties) {
  19470. var charCode;
  19471. this.name = name;
  19472. this.loadedName = properties.loadedName;
  19473. this.coded = properties.coded;
  19474. this.loadCharProcs = properties.coded;
  19475. this.sizes = [];
  19476. this.glyphCache = {};
  19477. var names = name.split('+');
  19478. names = names.length > 1 ? names[1] : names[0];
  19479. names = names.split(/[-,_]/g)[0];
  19480. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  19481. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  19482. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  19483. var type = properties.type;
  19484. this.type = type;
  19485. this.fallbackName = (this.isMonospace ? 'monospace' :
  19486. (this.isSerifFont ? 'serif' : 'sans-serif'));
  19487. this.differences = properties.differences;
  19488. this.widths = properties.widths;
  19489. this.defaultWidth = properties.defaultWidth;
  19490. this.composite = properties.composite;
  19491. this.wideChars = properties.wideChars;
  19492. this.cMap = properties.cMap;
  19493. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  19494. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  19495. this.fontMatrix = properties.fontMatrix;
  19496. var unicode = this.buildToUnicode(properties);
  19497. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  19498. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  19499. this.toFontChar = [];
  19500. if (properties.type == 'Type3') {
  19501. for (charCode = 0; charCode < 256; charCode++) {
  19502. this.toFontChar[charCode] = (this.differences[charCode] ||
  19503. properties.defaultEncoding[charCode]);
  19504. }
  19505. return;
  19506. }
  19507. this.cidEncoding = properties.cidEncoding;
  19508. this.vertical = properties.vertical;
  19509. if (this.vertical) {
  19510. this.vmetrics = properties.vmetrics;
  19511. this.defaultVMetrics = properties.defaultVMetrics;
  19512. }
  19513. if (!file) {
  19514. this.missingFile = true;
  19515. // The file data is not specified. Trying to fix the font name
  19516. // to be used with the canvas.font.
  19517. var fontName = name.replace(/[,_]/g, '-');
  19518. var isStandardFont = fontName in stdFontMap;
  19519. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  19520. this.bold = (fontName.search(/bold/gi) != -1);
  19521. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  19522. (fontName.search(/italic/gi) != -1));
  19523. // Use 'name' instead of 'fontName' here because the original
  19524. // name ArialBlack for example will be replaced by Helvetica.
  19525. this.black = (name.search(/Black/g) != -1);
  19526. // if at least one width is present, remeasure all chars when exists
  19527. this.remeasure = Object.keys(this.widths).length > 0;
  19528. if (isStandardFont && type === 'CIDFontType2' &&
  19529. properties.cidEncoding.indexOf('Identity-') === 0) {
  19530. // Standard fonts might be embedded as CID font without glyph mapping.
  19531. // Building one based on GlyphMapForStandardFonts.
  19532. var map = [];
  19533. for (var code in GlyphMapForStandardFonts) {
  19534. map[+code] = GlyphMapForStandardFonts[code];
  19535. }
  19536. this.toFontChar = map;
  19537. this.toUnicode = map;
  19538. } else if (/Symbol/i.test(fontName)) {
  19539. var symbols = Encodings.SymbolSetEncoding;
  19540. for (charCode in symbols) {
  19541. var fontChar = GlyphsUnicode[symbols[charCode]];
  19542. if (!fontChar) {
  19543. continue;
  19544. }
  19545. this.toFontChar[charCode] = fontChar;
  19546. }
  19547. } else if (isStandardFont) {
  19548. this.toFontChar = [];
  19549. for (charCode in properties.defaultEncoding) {
  19550. var glyphName = properties.differences[charCode] ||
  19551. properties.defaultEncoding[charCode];
  19552. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  19553. }
  19554. } else {
  19555. for (charCode in this.toUnicode) {
  19556. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  19557. }
  19558. }
  19559. this.loadedName = fontName.split('-')[0];
  19560. this.loading = false;
  19561. return;
  19562. }
  19563. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  19564. var subtype = properties.subtype;
  19565. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  19566. // Some TrueType fonts by mistake claim Type1C
  19567. if (isTrueTypeFile(file)) {
  19568. subtype = 'TrueType';
  19569. } else {
  19570. type = 'Type1';
  19571. }
  19572. }
  19573. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  19574. type = 'CIDFontType0';
  19575. }
  19576. // XXX: Temporarily change the type for open type so we trigger a warning.
  19577. // This should be removed when we add support for open type.
  19578. if (subtype === 'OpenType') {
  19579. type = 'OpenType';
  19580. }
  19581. var data;
  19582. switch (type) {
  19583. case 'Type1':
  19584. case 'CIDFontType0':
  19585. this.mimetype = 'font/opentype';
  19586. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  19587. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  19588. adjustWidths(properties);
  19589. // Wrap the CFF data inside an OTF font file
  19590. data = this.convert(name, cff, properties);
  19591. break;
  19592. case 'OpenType':
  19593. case 'TrueType':
  19594. case 'CIDFontType2':
  19595. this.mimetype = 'font/opentype';
  19596. // Repair the TrueType file. It is can be damaged in the point of
  19597. // view of the sanitizer
  19598. data = this.checkAndRepair(name, file, properties);
  19599. break;
  19600. default:
  19601. error('Font ' + type + ' is not supported');
  19602. break;
  19603. }
  19604. this.data = data;
  19605. // Transfer some properties again that could change during font conversion
  19606. this.fontMatrix = properties.fontMatrix;
  19607. this.widths = properties.widths;
  19608. this.defaultWidth = properties.defaultWidth;
  19609. this.encoding = properties.baseEncoding;
  19610. this.seacMap = properties.seacMap;
  19611. this.loading = true;
  19612. }
  19613. Font.getFontID = (function () {
  19614. var ID = 1;
  19615. return function Font_getFontID() {
  19616. return String(ID++);
  19617. };
  19618. })();
  19619. function int16(b0, b1) {
  19620. return (b0 << 8) + b1;
  19621. }
  19622. function int32(b0, b1, b2, b3) {
  19623. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  19624. }
  19625. function getMaxPower2(number) {
  19626. var maxPower = 0;
  19627. var value = number;
  19628. while (value >= 2) {
  19629. value /= 2;
  19630. maxPower++;
  19631. }
  19632. value = 2;
  19633. for (var i = 1; i < maxPower; i++) {
  19634. value *= 2;
  19635. }
  19636. return value;
  19637. }
  19638. function string16(value) {
  19639. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19640. }
  19641. function safeString16(value) {
  19642. // clamp value to the 16-bit int range
  19643. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  19644. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19645. }
  19646. function createOpenTypeHeader(sfnt, file, numTables) {
  19647. // Windows hates the Mac TrueType sfnt version number
  19648. if (sfnt == 'true') {
  19649. sfnt = string32(0x00010000);
  19650. }
  19651. // sfnt version (4 bytes)
  19652. var header = sfnt;
  19653. // numTables (2 bytes)
  19654. header += string16(numTables);
  19655. // searchRange (2 bytes)
  19656. var tablesMaxPower2 = getMaxPower2(numTables);
  19657. var searchRange = tablesMaxPower2 * 16;
  19658. header += string16(searchRange);
  19659. // entrySelector (2 bytes)
  19660. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  19661. // rangeShift (2 bytes)
  19662. header += string16(numTables * 16 - searchRange);
  19663. file.file += header;
  19664. file.virtualOffset += header.length;
  19665. }
  19666. function createTableEntry(file, tag, data) {
  19667. // offset
  19668. var offset = file.virtualOffset;
  19669. // length
  19670. var length = data.length;
  19671. // Per spec tables must be 4-bytes align so add padding as needed
  19672. while (data.length & 3) {
  19673. data.push(0x00);
  19674. }
  19675. while (file.virtualOffset & 3) {
  19676. file.virtualOffset++;
  19677. }
  19678. // checksum
  19679. var checksum = 0, n = data.length;
  19680. for (var i = 0; i < n; i += 4) {
  19681. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  19682. data[i + 3])) | 0;
  19683. }
  19684. var tableEntry = (tag + string32(checksum) +
  19685. string32(offset) + string32(length));
  19686. file.file += tableEntry;
  19687. file.virtualOffset += data.length;
  19688. }
  19689. function isTrueTypeFile(file) {
  19690. var header = file.peekBytes(4);
  19691. return readUint32(header, 0) === 0x00010000;
  19692. }
  19693. /**
  19694. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  19695. * with their unicode value. It also moves char codes that are in known
  19696. * problematic locations.
  19697. * @return {Object} Two properties:
  19698. * 'toFontChar' - maps original char codes(the value that will be read
  19699. * from commands such as show text) to the char codes that will be used in the
  19700. * font that we build
  19701. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  19702. */
  19703. function adjustMapping(charCodeToGlyphId, properties) {
  19704. var toUnicode = properties.toUnicode;
  19705. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  19706. var isIdentityUnicode = properties.isIdentityUnicode;
  19707. var newMap = Object.create(null);
  19708. var toFontChar = [];
  19709. var usedFontCharCodes = [];
  19710. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  19711. for (var originalCharCode in charCodeToGlyphId) {
  19712. originalCharCode |= 0;
  19713. var glyphId = charCodeToGlyphId[originalCharCode];
  19714. var fontCharCode = originalCharCode;
  19715. // First try to map the value to a unicode position if a non identity map
  19716. // was created.
  19717. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  19718. var unicode = toUnicode[fontCharCode];
  19719. // TODO: Try to map ligatures to the correct spot.
  19720. if (unicode.length === 1) {
  19721. fontCharCode = unicode.charCodeAt(0);
  19722. }
  19723. }
  19724. // Try to move control characters, special characters and already mapped
  19725. // characters to the private use area since they will not be drawn by
  19726. // canvas if left in their current position. Also, move characters if the
  19727. // font was symbolic and there is only an identity unicode map since the
  19728. // characters probably aren't in the correct position (fixes an issue
  19729. // with firefox and thuluthfont).
  19730. if ((fontCharCode in usedFontCharCodes ||
  19731. fontCharCode <= 0x1f || // Control chars
  19732. fontCharCode === 0x7F || // Control char
  19733. fontCharCode === 0xAD || // Soft hyphen
  19734. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  19735. // Prevent drawing characters in the specials unicode block.
  19736. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  19737. (isSymbolic && isIdentityUnicode)) &&
  19738. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  19739. // Loop to try and find a free spot in the private use area.
  19740. do {
  19741. fontCharCode = nextAvailableFontCharCode++;
  19742. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  19743. fontCharCode = 0xF020;
  19744. nextAvailableFontCharCode = fontCharCode + 1;
  19745. }
  19746. } while (fontCharCode in usedFontCharCodes &&
  19747. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  19748. }
  19749. newMap[fontCharCode] = glyphId;
  19750. toFontChar[originalCharCode] = fontCharCode;
  19751. usedFontCharCodes[fontCharCode] = true;
  19752. }
  19753. return {
  19754. toFontChar: toFontChar,
  19755. charCodeToGlyphId: newMap,
  19756. nextAvailableFontCharCode: nextAvailableFontCharCode
  19757. };
  19758. }
  19759. function getRanges(glyphs) {
  19760. // Array.sort() sorts by characters, not numerically, so convert to an
  19761. // array of characters.
  19762. var codes = [];
  19763. for (var charCode in glyphs) {
  19764. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  19765. }
  19766. codes.sort(function fontGetRangesSort(a, b) {
  19767. return a.fontCharCode - b.fontCharCode;
  19768. });
  19769. // Split the sorted codes into ranges.
  19770. var ranges = [];
  19771. var length = codes.length;
  19772. for (var n = 0; n < length; ) {
  19773. var start = codes[n].fontCharCode;
  19774. var codeIndices = [codes[n].glyphId];
  19775. ++n;
  19776. var end = start;
  19777. while (n < length && end + 1 == codes[n].fontCharCode) {
  19778. codeIndices.push(codes[n].glyphId);
  19779. ++end;
  19780. ++n;
  19781. if (end === 0xFFFF) {
  19782. break;
  19783. }
  19784. }
  19785. ranges.push([start, end, codeIndices]);
  19786. }
  19787. return ranges;
  19788. }
  19789. function createCmapTable(glyphs) {
  19790. var ranges = getRanges(glyphs);
  19791. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  19792. var cmap = '\x00\x00' + // version
  19793. string16(numTables) + // numTables
  19794. '\x00\x03' + // platformID
  19795. '\x00\x01' + // encodingID
  19796. string32(4 + numTables * 8); // start of the table record
  19797. var i, ii, j, jj;
  19798. for (i = ranges.length - 1; i >= 0; --i) {
  19799. if (ranges[i][0] <= 0xFFFF) { break; }
  19800. }
  19801. var bmpLength = i + 1;
  19802. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  19803. ranges[i][1] = 0xFFFE;
  19804. }
  19805. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  19806. var segCount = bmpLength + trailingRangesCount;
  19807. var segCount2 = segCount * 2;
  19808. var searchRange = getMaxPower2(segCount) * 2;
  19809. var searchEntry = Math.log(segCount) / Math.log(2);
  19810. var rangeShift = 2 * segCount - searchRange;
  19811. // Fill up the 4 parallel arrays describing the segments.
  19812. var startCount = '';
  19813. var endCount = '';
  19814. var idDeltas = '';
  19815. var idRangeOffsets = '';
  19816. var glyphsIds = '';
  19817. var bias = 0;
  19818. var range, start, end, codes;
  19819. for (i = 0, ii = bmpLength; i < ii; i++) {
  19820. range = ranges[i];
  19821. start = range[0];
  19822. end = range[1];
  19823. startCount += string16(start);
  19824. endCount += string16(end);
  19825. codes = range[2];
  19826. var contiguous = true;
  19827. for (j = 1, jj = codes.length; j < jj; ++j) {
  19828. if (codes[j] !== codes[j - 1] + 1) {
  19829. contiguous = false;
  19830. break;
  19831. }
  19832. }
  19833. if (!contiguous) {
  19834. var offset = (segCount - i) * 2 + bias * 2;
  19835. bias += (end - start + 1);
  19836. idDeltas += string16(0);
  19837. idRangeOffsets += string16(offset);
  19838. for (j = 0, jj = codes.length; j < jj; ++j) {
  19839. glyphsIds += string16(codes[j]);
  19840. }
  19841. } else {
  19842. var startCode = codes[0];
  19843. idDeltas += string16((startCode - start) & 0xFFFF);
  19844. idRangeOffsets += string16(0);
  19845. }
  19846. }
  19847. if (trailingRangesCount > 0) {
  19848. endCount += '\xFF\xFF';
  19849. startCount += '\xFF\xFF';
  19850. idDeltas += '\x00\x01';
  19851. idRangeOffsets += '\x00\x00';
  19852. }
  19853. var format314 = '\x00\x00' + // language
  19854. string16(segCount2) +
  19855. string16(searchRange) +
  19856. string16(searchEntry) +
  19857. string16(rangeShift) +
  19858. endCount + '\x00\x00' + startCount +
  19859. idDeltas + idRangeOffsets + glyphsIds;
  19860. var format31012 = '';
  19861. var header31012 = '';
  19862. if (numTables > 1) {
  19863. cmap += '\x00\x03' + // platformID
  19864. '\x00\x0A' + // encodingID
  19865. string32(4 + numTables * 8 +
  19866. 4 + format314.length); // start of the table record
  19867. format31012 = '';
  19868. for (i = 0, ii = ranges.length; i < ii; i++) {
  19869. range = ranges[i];
  19870. start = range[0];
  19871. codes = range[2];
  19872. var code = codes[0];
  19873. for (j = 1, jj = codes.length; j < jj; ++j) {
  19874. if (codes[j] !== codes[j - 1] + 1) {
  19875. end = range[0] + j - 1;
  19876. format31012 += string32(start) + // startCharCode
  19877. string32(end) + // endCharCode
  19878. string32(code); // startGlyphID
  19879. start = end + 1;
  19880. code = codes[j];
  19881. }
  19882. }
  19883. format31012 += string32(start) + // startCharCode
  19884. string32(range[1]) + // endCharCode
  19885. string32(code); // startGlyphID
  19886. }
  19887. header31012 = '\x00\x0C' + // format
  19888. '\x00\x00' + // reserved
  19889. string32(format31012.length + 16) + // length
  19890. '\x00\x00\x00\x00' + // language
  19891. string32(format31012.length / 12); // nGroups
  19892. }
  19893. return stringToArray(cmap +
  19894. '\x00\x04' + // format
  19895. string16(format314.length + 4) + // length
  19896. format314 + header31012 + format31012);
  19897. }
  19898. function validateOS2Table(os2) {
  19899. var stream = new Stream(os2.data);
  19900. var version = stream.getUint16();
  19901. // TODO verify all OS/2 tables fields, but currently we validate only those
  19902. // that give us issues
  19903. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  19904. var selection = stream.getUint16();
  19905. if (version < 4 && (selection & 0x0300)) {
  19906. return false;
  19907. }
  19908. var firstChar = stream.getUint16();
  19909. var lastChar = stream.getUint16();
  19910. if (firstChar > lastChar) {
  19911. return false;
  19912. }
  19913. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  19914. var usWinAscent = stream.getUint16();
  19915. if (usWinAscent === 0) { // makes font unreadable by windows
  19916. return false;
  19917. }
  19918. // OS/2 appears to be valid, resetting some fields
  19919. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  19920. return true;
  19921. }
  19922. function createOS2Table(properties, charstrings, override) {
  19923. override = override || {
  19924. unitsPerEm: 0,
  19925. yMax: 0,
  19926. yMin: 0,
  19927. ascent: 0,
  19928. descent: 0
  19929. };
  19930. var ulUnicodeRange1 = 0;
  19931. var ulUnicodeRange2 = 0;
  19932. var ulUnicodeRange3 = 0;
  19933. var ulUnicodeRange4 = 0;
  19934. var firstCharIndex = null;
  19935. var lastCharIndex = 0;
  19936. if (charstrings) {
  19937. for (var code in charstrings) {
  19938. code |= 0;
  19939. if (firstCharIndex > code || !firstCharIndex) {
  19940. firstCharIndex = code;
  19941. }
  19942. if (lastCharIndex < code) {
  19943. lastCharIndex = code;
  19944. }
  19945. var position = getUnicodeRangeFor(code);
  19946. if (position < 32) {
  19947. ulUnicodeRange1 |= 1 << position;
  19948. } else if (position < 64) {
  19949. ulUnicodeRange2 |= 1 << position - 32;
  19950. } else if (position < 96) {
  19951. ulUnicodeRange3 |= 1 << position - 64;
  19952. } else if (position < 123) {
  19953. ulUnicodeRange4 |= 1 << position - 96;
  19954. } else {
  19955. error('Unicode ranges Bits > 123 are reserved for internal usage');
  19956. }
  19957. }
  19958. } else {
  19959. // TODO
  19960. firstCharIndex = 0;
  19961. lastCharIndex = 255;
  19962. }
  19963. var bbox = properties.bbox || [0, 0, 0, 0];
  19964. var unitsPerEm = (override.unitsPerEm ||
  19965. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  19966. // if the font units differ to the PDF glyph space units
  19967. // then scale up the values
  19968. var scale = (properties.ascentScaled ? 1.0 :
  19969. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  19970. var typoAscent = (override.ascent ||
  19971. Math.round(scale * (properties.ascent || bbox[3])));
  19972. var typoDescent = (override.descent ||
  19973. Math.round(scale * (properties.descent || bbox[1])));
  19974. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  19975. typoDescent = -typoDescent; // fixing incorrect descent
  19976. }
  19977. var winAscent = override.yMax || typoAscent;
  19978. var winDescent = -override.yMin || -typoDescent;
  19979. return '\x00\x03' + // version
  19980. '\x02\x24' + // xAvgCharWidth
  19981. '\x01\xF4' + // usWeightClass
  19982. '\x00\x05' + // usWidthClass
  19983. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  19984. '\x02\x8A' + // ySubscriptXSize
  19985. '\x02\xBB' + // ySubscriptYSize
  19986. '\x00\x00' + // ySubscriptXOffset
  19987. '\x00\x8C' + // ySubscriptYOffset
  19988. '\x02\x8A' + // ySuperScriptXSize
  19989. '\x02\xBB' + // ySuperScriptYSize
  19990. '\x00\x00' + // ySuperScriptXOffset
  19991. '\x01\xDF' + // ySuperScriptYOffset
  19992. '\x00\x31' + // yStrikeOutSize
  19993. '\x01\x02' + // yStrikeOutPosition
  19994. '\x00\x00' + // sFamilyClass
  19995. '\x00\x00\x06' +
  19996. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  19997. '\x00\x00\x00\x00\x00\x00' + // Panose
  19998. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  19999. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  20000. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  20001. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  20002. '\x2A\x32\x31\x2A' + // achVendID
  20003. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  20004. string16(firstCharIndex ||
  20005. properties.firstChar) + // usFirstCharIndex
  20006. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  20007. string16(typoAscent) + // sTypoAscender
  20008. string16(typoDescent) + // sTypoDescender
  20009. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  20010. string16(winAscent) + // usWinAscent
  20011. string16(winDescent) + // usWinDescent
  20012. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  20013. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  20014. string16(properties.xHeight) + // sxHeight
  20015. string16(properties.capHeight) + // sCapHeight
  20016. string16(0) + // usDefaultChar
  20017. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  20018. '\x00\x03'; // usMaxContext
  20019. }
  20020. function createPostTable(properties) {
  20021. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  20022. return ('\x00\x03\x00\x00' + // Version number
  20023. string32(angle) + // italicAngle
  20024. '\x00\x00' + // underlinePosition
  20025. '\x00\x00' + // underlineThickness
  20026. string32(properties.fixedPitch) + // isFixedPitch
  20027. '\x00\x00\x00\x00' + // minMemType42
  20028. '\x00\x00\x00\x00' + // maxMemType42
  20029. '\x00\x00\x00\x00' + // minMemType1
  20030. '\x00\x00\x00\x00'); // maxMemType1
  20031. }
  20032. function createNameTable(name, proto) {
  20033. if (!proto) {
  20034. proto = [[], []]; // no strings and unicode strings
  20035. }
  20036. var strings = [
  20037. proto[0][0] || 'Original licence', // 0.Copyright
  20038. proto[0][1] || name, // 1.Font family
  20039. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  20040. proto[0][3] || 'uniqueID', // 3.Unique ID
  20041. proto[0][4] || name, // 4.Full font name
  20042. proto[0][5] || 'Version 0.11', // 5.Version
  20043. proto[0][6] || '', // 6.Postscript name
  20044. proto[0][7] || 'Unknown', // 7.Trademark
  20045. proto[0][8] || 'Unknown', // 8.Manufacturer
  20046. proto[0][9] || 'Unknown' // 9.Designer
  20047. ];
  20048. // Mac want 1-byte per character strings while Windows want
  20049. // 2-bytes per character, so duplicate the names table
  20050. var stringsUnicode = [];
  20051. var i, ii, j, jj, str;
  20052. for (i = 0, ii = strings.length; i < ii; i++) {
  20053. str = proto[1][i] || strings[i];
  20054. var strBufUnicode = [];
  20055. for (j = 0, jj = str.length; j < jj; j++) {
  20056. strBufUnicode.push(string16(str.charCodeAt(j)));
  20057. }
  20058. stringsUnicode.push(strBufUnicode.join(''));
  20059. }
  20060. var names = [strings, stringsUnicode];
  20061. var platforms = ['\x00\x01', '\x00\x03'];
  20062. var encodings = ['\x00\x00', '\x00\x01'];
  20063. var languages = ['\x00\x00', '\x04\x09'];
  20064. var namesRecordCount = strings.length * platforms.length;
  20065. var nameTable =
  20066. '\x00\x00' + // format
  20067. string16(namesRecordCount) + // Number of names Record
  20068. string16(namesRecordCount * 12 + 6); // Storage
  20069. // Build the name records field
  20070. var strOffset = 0;
  20071. for (i = 0, ii = platforms.length; i < ii; i++) {
  20072. var strs = names[i];
  20073. for (j = 0, jj = strs.length; j < jj; j++) {
  20074. str = strs[j];
  20075. var nameRecord =
  20076. platforms[i] + // platform ID
  20077. encodings[i] + // encoding ID
  20078. languages[i] + // language ID
  20079. string16(j) + // name ID
  20080. string16(str.length) +
  20081. string16(strOffset);
  20082. nameTable += nameRecord;
  20083. strOffset += str.length;
  20084. }
  20085. }
  20086. nameTable += strings.join('') + stringsUnicode.join('');
  20087. return nameTable;
  20088. }
  20089. Font.prototype = {
  20090. name: null,
  20091. font: null,
  20092. mimetype: null,
  20093. encoding: null,
  20094. get renderer() {
  20095. var renderer = FontRendererFactory.create(this);
  20096. return shadow(this, 'renderer', renderer);
  20097. },
  20098. exportData: function Font_exportData() {
  20099. var data = {};
  20100. for (var i in this) {
  20101. if (this.hasOwnProperty(i)) {
  20102. data[i] = this[i];
  20103. }
  20104. }
  20105. return data;
  20106. },
  20107. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  20108. function readTableEntry(file) {
  20109. var tag = bytesToString(file.getBytes(4));
  20110. var checksum = file.getInt32();
  20111. var offset = file.getInt32() >>> 0;
  20112. var length = file.getInt32() >>> 0;
  20113. // Read the table associated data
  20114. var previousPosition = file.pos;
  20115. file.pos = file.start ? file.start : 0;
  20116. file.skip(offset);
  20117. var data = file.getBytes(length);
  20118. file.pos = previousPosition;
  20119. if (tag == 'head') {
  20120. // clearing checksum adjustment
  20121. data[8] = data[9] = data[10] = data[11] = 0;
  20122. data[17] |= 0x20; //Set font optimized for cleartype flag
  20123. }
  20124. return {
  20125. tag: tag,
  20126. checksum: checksum,
  20127. length: length,
  20128. offset: offset,
  20129. data: data
  20130. };
  20131. }
  20132. function readOpenTypeHeader(ttf) {
  20133. return {
  20134. version: bytesToString(ttf.getBytes(4)),
  20135. numTables: ttf.getUint16(),
  20136. searchRange: ttf.getUint16(),
  20137. entrySelector: ttf.getUint16(),
  20138. rangeShift: ttf.getUint16()
  20139. };
  20140. }
  20141. /**
  20142. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  20143. * PDF spec
  20144. */
  20145. function readCmapTable(cmap, font, isSymbolicFont) {
  20146. var segment;
  20147. var start = (font.start ? font.start : 0) + cmap.offset;
  20148. font.pos = start;
  20149. var version = font.getUint16();
  20150. var numTables = font.getUint16();
  20151. var potentialTable;
  20152. var canBreak = false;
  20153. // There's an order of preference in terms of which cmap subtable to
  20154. // use:
  20155. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  20156. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  20157. // The following takes advantage of the fact that the tables are sorted
  20158. // to work.
  20159. for (var i = 0; i < numTables; i++) {
  20160. var platformId = font.getUint16();
  20161. var encodingId = font.getUint16();
  20162. var offset = font.getInt32() >>> 0;
  20163. var useTable = false;
  20164. if (platformId == 1 && encodingId === 0) {
  20165. useTable = true;
  20166. // Continue the loop since there still may be a higher priority
  20167. // table.
  20168. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  20169. useTable = true;
  20170. canBreak = true;
  20171. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  20172. useTable = true;
  20173. canBreak = true;
  20174. }
  20175. if (useTable) {
  20176. potentialTable = {
  20177. platformId: platformId,
  20178. encodingId: encodingId,
  20179. offset: offset
  20180. };
  20181. }
  20182. if (canBreak) {
  20183. break;
  20184. }
  20185. }
  20186. if (!potentialTable) {
  20187. warn('Could not find a preferred cmap table.');
  20188. return [];
  20189. }
  20190. font.pos = start + potentialTable.offset;
  20191. var format = font.getUint16();
  20192. var length = font.getUint16();
  20193. var language = font.getUint16();
  20194. var hasShortCmap = false;
  20195. var mappings = [];
  20196. var j, glyphId;
  20197. // TODO(mack): refactor this cmap subtable reading logic out
  20198. if (format === 0) {
  20199. for (j = 0; j < 256; j++) {
  20200. var index = font.getByte();
  20201. if (!index) {
  20202. continue;
  20203. }
  20204. mappings.push({
  20205. charCode: j,
  20206. glyphId: index
  20207. });
  20208. }
  20209. hasShortCmap = true;
  20210. } else if (format === 4) {
  20211. // re-creating the table in format 4 since the encoding
  20212. // might be changed
  20213. var segCount = (font.getUint16() >> 1);
  20214. font.getBytes(6); // skipping range fields
  20215. var segIndex, segments = [];
  20216. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20217. segments.push({ end: font.getUint16() });
  20218. }
  20219. font.getUint16();
  20220. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20221. segments[segIndex].start = font.getUint16();
  20222. }
  20223. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20224. segments[segIndex].delta = font.getUint16();
  20225. }
  20226. var offsetsCount = 0;
  20227. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20228. segment = segments[segIndex];
  20229. var rangeOffset = font.getUint16();
  20230. if (!rangeOffset) {
  20231. segment.offsetIndex = -1;
  20232. continue;
  20233. }
  20234. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  20235. segment.offsetIndex = offsetIndex;
  20236. offsetsCount = Math.max(offsetsCount, offsetIndex +
  20237. segment.end - segment.start + 1);
  20238. }
  20239. var offsets = [];
  20240. for (j = 0; j < offsetsCount; j++) {
  20241. offsets.push(font.getUint16());
  20242. }
  20243. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20244. segment = segments[segIndex];
  20245. start = segment.start;
  20246. var end = segment.end;
  20247. var delta = segment.delta;
  20248. offsetIndex = segment.offsetIndex;
  20249. for (j = start; j <= end; j++) {
  20250. if (j == 0xFFFF) {
  20251. continue;
  20252. }
  20253. glyphId = (offsetIndex < 0 ?
  20254. j : offsets[offsetIndex + j - start]);
  20255. glyphId = (glyphId + delta) & 0xFFFF;
  20256. if (glyphId === 0) {
  20257. continue;
  20258. }
  20259. mappings.push({
  20260. charCode: j,
  20261. glyphId: glyphId
  20262. });
  20263. }
  20264. }
  20265. } else if (format == 6) {
  20266. // Format 6 is a 2-bytes dense mapping, which means the font data
  20267. // lives glue together even if they are pretty far in the unicode
  20268. // table. (This looks weird, so I can have missed something), this
  20269. // works on Linux but seems to fails on Mac so let's rewrite the
  20270. // cmap table to a 3-1-4 style
  20271. var firstCode = font.getUint16();
  20272. var entryCount = font.getUint16();
  20273. for (j = 0; j < entryCount; j++) {
  20274. glyphId = font.getUint16();
  20275. var charCode = firstCode + j;
  20276. mappings.push({
  20277. charCode: charCode,
  20278. glyphId: glyphId
  20279. });
  20280. }
  20281. } else {
  20282. error('cmap table has unsupported format: ' + format);
  20283. }
  20284. // removing duplicate entries
  20285. mappings.sort(function (a, b) {
  20286. return a.charCode - b.charCode;
  20287. });
  20288. for (i = 1; i < mappings.length; i++) {
  20289. if (mappings[i - 1].charCode === mappings[i].charCode) {
  20290. mappings.splice(i, 1);
  20291. i--;
  20292. }
  20293. }
  20294. return {
  20295. platformId: potentialTable.platformId,
  20296. encodingId: potentialTable.encodingId,
  20297. mappings: mappings,
  20298. hasShortCmap: hasShortCmap
  20299. };
  20300. }
  20301. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  20302. if (!header) {
  20303. if (metrics) {
  20304. metrics.data = null;
  20305. }
  20306. return;
  20307. }
  20308. font.pos = (font.start ? font.start : 0) + header.offset;
  20309. font.pos += header.length - 2;
  20310. var numOfMetrics = font.getUint16();
  20311. if (numOfMetrics > numGlyphs) {
  20312. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  20313. 'greater than the numGlyphs (' + numGlyphs + ')');
  20314. // Reduce numOfMetrics if it is greater than numGlyphs
  20315. numOfMetrics = numGlyphs;
  20316. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  20317. header.data[35] = numOfMetrics & 0x00ff;
  20318. }
  20319. var numOfSidebearings = numGlyphs - numOfMetrics;
  20320. var numMissing = numOfSidebearings -
  20321. ((metrics.length - numOfMetrics * 4) >> 1);
  20322. var i, ii;
  20323. if (numMissing > 0) {
  20324. font.pos = (font.start ? font.start : 0) + metrics.offset;
  20325. var entries = '';
  20326. for (i = 0, ii = metrics.length; i < ii; i++) {
  20327. entries += String.fromCharCode(font.getByte());
  20328. }
  20329. for (i = 0; i < numMissing; i++) {
  20330. entries += '\x00\x00';
  20331. }
  20332. metrics.data = stringToArray(entries);
  20333. }
  20334. }
  20335. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  20336. hintsValid) {
  20337. if (sourceEnd - sourceStart <= 12) {
  20338. // glyph with data less than 12 is invalid one
  20339. return 0;
  20340. }
  20341. var glyf = source.subarray(sourceStart, sourceEnd);
  20342. var contoursCount = (glyf[0] << 8) | glyf[1];
  20343. if (contoursCount & 0x8000) {
  20344. // complex glyph, writing as is
  20345. dest.set(glyf, destStart);
  20346. return glyf.length;
  20347. }
  20348. var i, j = 10, flagsCount = 0;
  20349. for (i = 0; i < contoursCount; i++) {
  20350. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  20351. flagsCount = endPoint + 1;
  20352. j += 2;
  20353. }
  20354. // skipping instructions
  20355. var instructionsStart = j;
  20356. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  20357. j += 2 + instructionsLength;
  20358. var instructionsEnd = j;
  20359. // validating flags
  20360. var coordinatesLength = 0;
  20361. for (i = 0; i < flagsCount; i++) {
  20362. var flag = glyf[j++];
  20363. if (flag & 0xC0) {
  20364. // reserved flags must be zero, cleaning up
  20365. glyf[j - 1] = flag & 0x3F;
  20366. }
  20367. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  20368. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  20369. coordinatesLength += xyLength;
  20370. if (flag & 8) {
  20371. var repeat = glyf[j++];
  20372. i += repeat;
  20373. coordinatesLength += repeat * xyLength;
  20374. }
  20375. }
  20376. // glyph without coordinates will be rejected
  20377. if (coordinatesLength === 0) {
  20378. return 0;
  20379. }
  20380. var glyphDataLength = j + coordinatesLength;
  20381. if (glyphDataLength > glyf.length) {
  20382. // not enough data for coordinates
  20383. return 0;
  20384. }
  20385. if (!hintsValid && instructionsLength > 0) {
  20386. dest.set(glyf.subarray(0, instructionsStart), destStart);
  20387. dest.set([0, 0], destStart + instructionsStart);
  20388. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  20389. destStart + instructionsStart + 2);
  20390. glyphDataLength -= instructionsLength;
  20391. if (glyf.length - glyphDataLength > 3) {
  20392. glyphDataLength = (glyphDataLength + 3) & ~3;
  20393. }
  20394. return glyphDataLength;
  20395. }
  20396. if (glyf.length - glyphDataLength > 3) {
  20397. // truncating and aligning to 4 bytes the long glyph data
  20398. glyphDataLength = (glyphDataLength + 3) & ~3;
  20399. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  20400. return glyphDataLength;
  20401. }
  20402. // glyph data is fine
  20403. dest.set(glyf, destStart);
  20404. return glyf.length;
  20405. }
  20406. function sanitizeHead(head, numGlyphs, locaLength) {
  20407. var data = head.data;
  20408. // Validate version:
  20409. // Should always be 0x00010000
  20410. var version = int32(data[0], data[1], data[2], data[3]);
  20411. if (version >> 16 !== 1) {
  20412. info('Attempting to fix invalid version in head table: ' + version);
  20413. data[0] = 0;
  20414. data[1] = 1;
  20415. data[2] = 0;
  20416. data[3] = 0;
  20417. }
  20418. var indexToLocFormat = int16(data[50], data[51]);
  20419. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  20420. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  20421. indexToLocFormat);
  20422. // The value of indexToLocFormat should be 0 if the loca table
  20423. // consists of short offsets, and should be 1 if the loca table
  20424. // consists of long offsets.
  20425. //
  20426. // The number of entries in the loca table should be numGlyphs + 1.
  20427. //
  20428. // Using this information, we can work backwards to deduce if the
  20429. // size of each offset in the loca table, and thus figure out the
  20430. // appropriate value for indexToLocFormat.
  20431. var numGlyphsPlusOne = numGlyphs + 1;
  20432. if (locaLength === numGlyphsPlusOne << 1) {
  20433. // 0x0000 indicates the loca table consists of short offsets
  20434. data[50] = 0;
  20435. data[51] = 0;
  20436. } else if (locaLength === numGlyphsPlusOne << 2) {
  20437. // 0x0001 indicates the loca table consists of long offsets
  20438. data[50] = 0;
  20439. data[51] = 1;
  20440. } else {
  20441. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  20442. }
  20443. }
  20444. }
  20445. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  20446. isGlyphLocationsLong, hintsValid,
  20447. dupFirstEntry) {
  20448. var itemSize, itemDecode, itemEncode;
  20449. if (isGlyphLocationsLong) {
  20450. itemSize = 4;
  20451. itemDecode = function fontItemDecodeLong(data, offset) {
  20452. return (data[offset] << 24) | (data[offset + 1] << 16) |
  20453. (data[offset + 2] << 8) | data[offset + 3];
  20454. };
  20455. itemEncode = function fontItemEncodeLong(data, offset, value) {
  20456. data[offset] = (value >>> 24) & 0xFF;
  20457. data[offset + 1] = (value >> 16) & 0xFF;
  20458. data[offset + 2] = (value >> 8) & 0xFF;
  20459. data[offset + 3] = value & 0xFF;
  20460. };
  20461. } else {
  20462. itemSize = 2;
  20463. itemDecode = function fontItemDecode(data, offset) {
  20464. return (data[offset] << 9) | (data[offset + 1] << 1);
  20465. };
  20466. itemEncode = function fontItemEncode(data, offset, value) {
  20467. data[offset] = (value >> 9) & 0xFF;
  20468. data[offset + 1] = (value >> 1) & 0xFF;
  20469. };
  20470. }
  20471. var locaData = loca.data;
  20472. var locaDataSize = itemSize * (1 + numGlyphs);
  20473. // is loca.data too short or long?
  20474. if (locaData.length !== locaDataSize) {
  20475. locaData = new Uint8Array(locaDataSize);
  20476. locaData.set(loca.data.subarray(0, locaDataSize));
  20477. loca.data = locaData;
  20478. }
  20479. // removing the invalid glyphs
  20480. var oldGlyfData = glyf.data;
  20481. var oldGlyfDataLength = oldGlyfData.length;
  20482. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  20483. var startOffset = itemDecode(locaData, 0);
  20484. var writeOffset = 0;
  20485. itemEncode(locaData, 0, writeOffset);
  20486. var i, j;
  20487. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20488. var endOffset = itemDecode(locaData, j);
  20489. if (endOffset > oldGlyfDataLength &&
  20490. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  20491. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  20492. // the glyf table size, which makes last glyph out of range.
  20493. endOffset = oldGlyfDataLength;
  20494. }
  20495. if (endOffset > oldGlyfDataLength) {
  20496. // glyph end offset points outside glyf data, rejecting the glyph
  20497. itemEncode(locaData, j, writeOffset);
  20498. startOffset = endOffset;
  20499. continue;
  20500. }
  20501. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  20502. newGlyfData, writeOffset, hintsValid);
  20503. writeOffset += newLength;
  20504. itemEncode(locaData, j, writeOffset);
  20505. startOffset = endOffset;
  20506. }
  20507. if (writeOffset === 0) {
  20508. // glyf table cannot be empty -- redoing the glyf and loca tables
  20509. // to have single glyph with one point
  20510. var simpleGlyph = new Uint8Array(
  20511. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  20512. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20513. itemEncode(locaData, j, simpleGlyph.length);
  20514. }
  20515. glyf.data = simpleGlyph;
  20516. return;
  20517. }
  20518. if (dupFirstEntry) {
  20519. var firstEntryLength = itemDecode(locaData, itemSize);
  20520. if (newGlyfData.length > firstEntryLength + writeOffset) {
  20521. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  20522. } else {
  20523. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  20524. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  20525. }
  20526. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  20527. itemEncode(loca.data, locaData.length - itemSize,
  20528. writeOffset + firstEntryLength);
  20529. } else {
  20530. glyf.data = newGlyfData.subarray(0, writeOffset);
  20531. }
  20532. }
  20533. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  20534. var start = (font.start ? font.start : 0) + post.offset;
  20535. font.pos = start;
  20536. var length = post.length, end = start + length;
  20537. var version = font.getInt32();
  20538. // skip rest to the tables
  20539. font.getBytes(28);
  20540. var glyphNames;
  20541. var valid = true;
  20542. var i;
  20543. switch (version) {
  20544. case 0x00010000:
  20545. glyphNames = MacStandardGlyphOrdering;
  20546. break;
  20547. case 0x00020000:
  20548. var numGlyphs = font.getUint16();
  20549. if (numGlyphs != maxpNumGlyphs) {
  20550. valid = false;
  20551. break;
  20552. }
  20553. var glyphNameIndexes = [];
  20554. for (i = 0; i < numGlyphs; ++i) {
  20555. var index = font.getUint16();
  20556. if (index >= 32768) {
  20557. valid = false;
  20558. break;
  20559. }
  20560. glyphNameIndexes.push(index);
  20561. }
  20562. if (!valid) {
  20563. break;
  20564. }
  20565. var customNames = [];
  20566. while (font.pos < end) {
  20567. var stringLength = font.getByte();
  20568. var string = '';
  20569. for (i = 0; i < stringLength; ++i) {
  20570. string += String.fromCharCode(font.getByte());
  20571. }
  20572. customNames.push(string);
  20573. }
  20574. glyphNames = [];
  20575. for (i = 0; i < numGlyphs; ++i) {
  20576. var j = glyphNameIndexes[i];
  20577. if (j < 258) {
  20578. glyphNames.push(MacStandardGlyphOrdering[j]);
  20579. continue;
  20580. }
  20581. glyphNames.push(customNames[j - 258]);
  20582. }
  20583. break;
  20584. case 0x00030000:
  20585. break;
  20586. default:
  20587. warn('Unknown/unsupported post table version ' + version);
  20588. valid = false;
  20589. break;
  20590. }
  20591. properties.glyphNames = glyphNames;
  20592. return valid;
  20593. }
  20594. function readNameTable(nameTable) {
  20595. var start = (font.start ? font.start : 0) + nameTable.offset;
  20596. font.pos = start;
  20597. var names = [[], []];
  20598. var length = nameTable.length, end = start + length;
  20599. var format = font.getUint16();
  20600. var FORMAT_0_HEADER_LENGTH = 6;
  20601. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  20602. // unsupported name table format or table "too" small
  20603. return names;
  20604. }
  20605. var numRecords = font.getUint16();
  20606. var stringsStart = font.getUint16();
  20607. var records = [];
  20608. var NAME_RECORD_LENGTH = 12;
  20609. var i, ii;
  20610. for (i = 0; i < numRecords &&
  20611. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  20612. var r = {
  20613. platform: font.getUint16(),
  20614. encoding: font.getUint16(),
  20615. language: font.getUint16(),
  20616. name: font.getUint16(),
  20617. length: font.getUint16(),
  20618. offset: font.getUint16()
  20619. };
  20620. // using only Macintosh and Windows platform/encoding names
  20621. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  20622. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  20623. records.push(r);
  20624. }
  20625. }
  20626. for (i = 0, ii = records.length; i < ii; i++) {
  20627. var record = records[i];
  20628. var pos = start + stringsStart + record.offset;
  20629. if (pos + record.length > end) {
  20630. continue; // outside of name table, ignoring
  20631. }
  20632. font.pos = pos;
  20633. var nameIndex = record.name;
  20634. if (record.encoding) {
  20635. // unicode
  20636. var str = '';
  20637. for (var j = 0, jj = record.length; j < jj; j += 2) {
  20638. str += String.fromCharCode(font.getUint16());
  20639. }
  20640. names[1][nameIndex] = str;
  20641. } else {
  20642. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  20643. }
  20644. }
  20645. return names;
  20646. }
  20647. var TTOpsStackDeltas = [
  20648. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  20649. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  20650. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  20651. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  20652. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  20653. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  20654. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  20655. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  20656. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  20657. // 0xC0-DF == -1 and 0xE0-FF == -2
  20658. function sanitizeTTProgram(table, ttContext) {
  20659. var data = table.data;
  20660. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  20661. var stack = [];
  20662. var callstack = [];
  20663. var functionsCalled = [];
  20664. var tooComplexToFollowFunctions =
  20665. ttContext.tooComplexToFollowFunctions;
  20666. var inFDEF = false, ifLevel = 0, inELSE = 0;
  20667. for (var ii = data.length; i < ii;) {
  20668. var op = data[i++];
  20669. // The TrueType instruction set docs can be found at
  20670. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  20671. if (op === 0x40) { // NPUSHB - pushes n bytes
  20672. n = data[i++];
  20673. if (inFDEF || inELSE) {
  20674. i += n;
  20675. } else {
  20676. for (j = 0; j < n; j++) {
  20677. stack.push(data[i++]);
  20678. }
  20679. }
  20680. } else if (op === 0x41) { // NPUSHW - pushes n words
  20681. n = data[i++];
  20682. if (inFDEF || inELSE) {
  20683. i += n * 2;
  20684. } else {
  20685. for (j = 0; j < n; j++) {
  20686. b = data[i++];
  20687. stack.push((b << 8) | data[i++]);
  20688. }
  20689. }
  20690. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  20691. n = op - 0xB0 + 1;
  20692. if (inFDEF || inELSE) {
  20693. i += n;
  20694. } else {
  20695. for (j = 0; j < n; j++) {
  20696. stack.push(data[i++]);
  20697. }
  20698. }
  20699. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  20700. n = op - 0xB8 + 1;
  20701. if (inFDEF || inELSE) {
  20702. i += n * 2;
  20703. } else {
  20704. for (j = 0; j < n; j++) {
  20705. b = data[i++];
  20706. stack.push((b << 8) | data[i++]);
  20707. }
  20708. }
  20709. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  20710. if (!inFDEF && !inELSE) {
  20711. // collecting inforamtion about which functions are used
  20712. funcId = stack[stack.length - 1];
  20713. ttContext.functionsUsed[funcId] = true;
  20714. if (funcId in ttContext.functionsStackDeltas) {
  20715. stack.length += ttContext.functionsStackDeltas[funcId];
  20716. } else if (funcId in ttContext.functionsDefined &&
  20717. functionsCalled.indexOf(funcId) < 0) {
  20718. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  20719. functionsCalled.push(funcId);
  20720. pc = ttContext.functionsDefined[funcId];
  20721. if (!pc) {
  20722. warn('TT: CALL non-existent function');
  20723. ttContext.hintsValid = false;
  20724. return;
  20725. }
  20726. data = pc.data;
  20727. i = pc.i;
  20728. }
  20729. }
  20730. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  20731. if (inFDEF || inELSE) {
  20732. warn('TT: nested FDEFs not allowed');
  20733. tooComplexToFollowFunctions = true;
  20734. }
  20735. inFDEF = true;
  20736. // collecting inforamtion about which functions are defined
  20737. lastDeff = i;
  20738. funcId = stack.pop();
  20739. ttContext.functionsDefined[funcId] = {data: data, i: i};
  20740. } else if (op === 0x2D) { // ENDF - end of function
  20741. if (inFDEF) {
  20742. inFDEF = false;
  20743. lastEndf = i;
  20744. } else {
  20745. pc = callstack.pop();
  20746. if (!pc) {
  20747. warn('TT: ENDF bad stack');
  20748. ttContext.hintsValid = false;
  20749. return;
  20750. }
  20751. funcId = functionsCalled.pop();
  20752. data = pc.data;
  20753. i = pc.i;
  20754. ttContext.functionsStackDeltas[funcId] =
  20755. stack.length - pc.stackTop;
  20756. }
  20757. } else if (op === 0x89) { // IDEF - instruction definition
  20758. if (inFDEF || inELSE) {
  20759. warn('TT: nested IDEFs not allowed');
  20760. tooComplexToFollowFunctions = true;
  20761. }
  20762. inFDEF = true;
  20763. // recording it as a function to track ENDF
  20764. lastDeff = i;
  20765. } else if (op === 0x58) { // IF
  20766. ++ifLevel;
  20767. } else if (op === 0x1B) { // ELSE
  20768. inELSE = ifLevel;
  20769. } else if (op === 0x59) { // EIF
  20770. if (inELSE === ifLevel) {
  20771. inELSE = 0;
  20772. }
  20773. --ifLevel;
  20774. } else if (op === 0x1C) { // JMPR
  20775. if (!inFDEF && !inELSE) {
  20776. var offset = stack[stack.length - 1];
  20777. // only jumping forward to prevent infinite loop
  20778. if (offset > 0) {
  20779. i += offset - 1;
  20780. }
  20781. }
  20782. }
  20783. // Adjusting stack not extactly, but just enough to get function id
  20784. if (!inFDEF && !inELSE) {
  20785. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  20786. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  20787. if (op >= 0x71 && op <= 0x75) {
  20788. n = stack.pop();
  20789. if (n === n) {
  20790. stackDelta = -n * 2;
  20791. }
  20792. }
  20793. while (stackDelta < 0 && stack.length > 0) {
  20794. stack.pop();
  20795. stackDelta++;
  20796. }
  20797. while (stackDelta > 0) {
  20798. stack.push(NaN); // pushing any number into stack
  20799. stackDelta--;
  20800. }
  20801. }
  20802. }
  20803. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  20804. var content = [data];
  20805. if (i > data.length) {
  20806. content.push(new Uint8Array(i - data.length));
  20807. }
  20808. if (lastDeff > lastEndf) {
  20809. warn('TT: complementing a missing function tail');
  20810. // new function definition started, but not finished
  20811. // complete function by [CLEAR, ENDF]
  20812. content.push(new Uint8Array([0x22, 0x2D]));
  20813. }
  20814. foldTTTable(table, content);
  20815. }
  20816. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  20817. if (ttContext.tooComplexToFollowFunctions) {
  20818. return;
  20819. }
  20820. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  20821. warn('TT: more functions defined than expected');
  20822. ttContext.hintsValid = false;
  20823. return;
  20824. }
  20825. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  20826. if (j > maxFunctionDefs) {
  20827. warn('TT: invalid function id: ' + j);
  20828. ttContext.hintsValid = false;
  20829. return;
  20830. }
  20831. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  20832. warn('TT: undefined function: ' + j);
  20833. ttContext.hintsValid = false;
  20834. return;
  20835. }
  20836. }
  20837. }
  20838. function foldTTTable(table, content) {
  20839. if (content.length > 1) {
  20840. // concatenating the content items
  20841. var newLength = 0;
  20842. var j, jj;
  20843. for (j = 0, jj = content.length; j < jj; j++) {
  20844. newLength += content[j].length;
  20845. }
  20846. newLength = (newLength + 3) & ~3;
  20847. var result = new Uint8Array(newLength);
  20848. var pos = 0;
  20849. for (j = 0, jj = content.length; j < jj; j++) {
  20850. result.set(content[j], pos);
  20851. pos += content[j].length;
  20852. }
  20853. table.data = result;
  20854. table.length = newLength;
  20855. }
  20856. }
  20857. function sanitizeTTPrograms(fpgm, prep, cvt) {
  20858. var ttContext = {
  20859. functionsDefined: [],
  20860. functionsUsed: [],
  20861. functionsStackDeltas: [],
  20862. tooComplexToFollowFunctions: false,
  20863. hintsValid: true
  20864. };
  20865. if (fpgm) {
  20866. sanitizeTTProgram(fpgm, ttContext);
  20867. }
  20868. if (prep) {
  20869. sanitizeTTProgram(prep, ttContext);
  20870. }
  20871. if (fpgm) {
  20872. checkInvalidFunctions(ttContext, maxFunctionDefs);
  20873. }
  20874. if (cvt && (cvt.length & 1)) {
  20875. var cvtData = new Uint8Array(cvt.length + 1);
  20876. cvtData.set(cvt.data);
  20877. cvt.data = cvtData;
  20878. }
  20879. return ttContext.hintsValid;
  20880. }
  20881. // The following steps modify the original font data, making copy
  20882. font = new Stream(new Uint8Array(font.getBytes()));
  20883. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  20884. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  20885. var header = readOpenTypeHeader(font);
  20886. var numTables = header.numTables;
  20887. var cff, cffFile;
  20888. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  20889. hmtx: null, maxp: null, name: null, post: null };
  20890. var table, tableData;
  20891. for (var i = 0; i < numTables; i++) {
  20892. table = readTableEntry(font);
  20893. if (VALID_TABLES.indexOf(table.tag) < 0) {
  20894. continue; // skipping table if it's not a required or optional table
  20895. }
  20896. if (table.length === 0) {
  20897. continue; // skipping empty tables
  20898. }
  20899. tables[table.tag] = table;
  20900. }
  20901. var isTrueType = !tables['CFF '];
  20902. if (!isTrueType) {
  20903. // OpenType font
  20904. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  20905. // no major tables: throwing everything at CFFFont
  20906. cffFile = new Stream(tables['CFF '].data);
  20907. cff = new CFFFont(cffFile, properties);
  20908. return this.convert(name, cff, properties);
  20909. }
  20910. delete tables.glyf;
  20911. delete tables.loca;
  20912. delete tables.fpgm;
  20913. delete tables.prep;
  20914. delete tables['cvt '];
  20915. } else {
  20916. if (!tables.glyf || !tables.loca) {
  20917. error('Required "glyf" or "loca" tables are not found');
  20918. }
  20919. }
  20920. if (!tables.maxp) {
  20921. error('Required "maxp" table is not found');
  20922. }
  20923. font.pos = (font.start || 0) + tables.maxp.offset;
  20924. var version = font.getInt32();
  20925. var numGlyphs = font.getUint16();
  20926. var maxFunctionDefs = 0;
  20927. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  20928. // maxZones can be invalid
  20929. font.pos += 8;
  20930. var maxZones = font.getUint16();
  20931. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  20932. tables.maxp.data[14] = 0;
  20933. tables.maxp.data[15] = 2;
  20934. }
  20935. font.pos += 4;
  20936. maxFunctionDefs = font.getUint16();
  20937. }
  20938. var dupFirstEntry = false;
  20939. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  20940. properties.toUnicode[0] > '\u0000') {
  20941. // oracle's defect (see 3427), duplicating first entry
  20942. dupFirstEntry = true;
  20943. numGlyphs++;
  20944. tables.maxp.data[4] = numGlyphs >> 8;
  20945. tables.maxp.data[5] = numGlyphs & 255;
  20946. }
  20947. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  20948. tables['cvt '], maxFunctionDefs);
  20949. if (!hintsValid) {
  20950. delete tables.fpgm;
  20951. delete tables.prep;
  20952. delete tables['cvt '];
  20953. }
  20954. // Tables needs to be written by ascendant alphabetic order
  20955. var tablesNames = Object.keys(tables);
  20956. tablesNames.sort();
  20957. numTables = tablesNames.length;
  20958. // header and new offsets. Table entry information is appended to the
  20959. // end of file. The virtualOffset represents where to put the actual
  20960. // data of a particular table;
  20961. var ttf = {
  20962. file: '',
  20963. virtualOffset: numTables * (4 * 4)
  20964. };
  20965. // The new numbers of tables will be the last one plus the num
  20966. // of missing tables
  20967. createOpenTypeHeader(header.version, ttf, numTables);
  20968. // Ensure the hmtx table contains the advance width and
  20969. // sidebearings information for numGlyphs in the maxp table
  20970. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  20971. if (!tables.head) {
  20972. error('Required "head" table is not found');
  20973. }
  20974. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  20975. if (isTrueType) {
  20976. var isGlyphLocationsLong = int16(tables.head.data[50],
  20977. tables.head.data[51]);
  20978. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  20979. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  20980. }
  20981. if (!tables.hhea) {
  20982. error('Required "hhea" table is not found');
  20983. }
  20984. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  20985. // Sometimes it's 0. That needs to be fixed
  20986. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  20987. tables.hhea.data[10] = 0xFF;
  20988. tables.hhea.data[11] = 0xFF;
  20989. }
  20990. // The 'post' table has glyphs names.
  20991. if (tables.post) {
  20992. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  20993. if (!valid) {
  20994. tables.post = null;
  20995. }
  20996. }
  20997. var charCodeToGlyphId = [], charCode;
  20998. if (properties.type == 'CIDFontType2') {
  20999. var cidToGidMap = properties.cidToGidMap || [];
  21000. var cMap = properties.cMap.map;
  21001. for (charCode in cMap) {
  21002. charCode |= 0;
  21003. var cid = cMap[charCode];
  21004. assert(cid.length === 1, 'Max size of CID is 65,535');
  21005. cid = cid.charCodeAt(0);
  21006. var glyphId = -1;
  21007. if (cidToGidMap.length === 0) {
  21008. glyphId = charCode;
  21009. } else if (cid in cidToGidMap) {
  21010. glyphId = cidToGidMap[cid];
  21011. }
  21012. if (glyphId >= 0 && glyphId < numGlyphs) {
  21013. charCodeToGlyphId[charCode] = glyphId;
  21014. }
  21015. }
  21016. if (dupFirstEntry) {
  21017. charCodeToGlyphId[0] = numGlyphs - 1;
  21018. }
  21019. } else {
  21020. // Most of the following logic in this code branch is based on the
  21021. // 9.6.6.4 of the PDF spec.
  21022. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  21023. var cmapPlatformId = cmapTable.platformId;
  21024. var cmapEncodingId = cmapTable.encodingId;
  21025. var cmapMappings = cmapTable.mappings;
  21026. var cmapMappingsLength = cmapMappings.length;
  21027. var hasEncoding = properties.differences.length ||
  21028. !!properties.baseEncodingName;
  21029. // The spec seems to imply that if the font is symbolic the encoding
  21030. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  21031. // where the the font is symbolic and it has an encoding.
  21032. if (hasEncoding &&
  21033. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  21034. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  21035. var baseEncoding = [];
  21036. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  21037. properties.baseEncodingName === 'WinAnsiEncoding') {
  21038. baseEncoding = Encodings[properties.baseEncodingName];
  21039. }
  21040. for (charCode = 0; charCode < 256; charCode++) {
  21041. var glyphName;
  21042. if (this.differences && charCode in this.differences) {
  21043. glyphName = this.differences[charCode];
  21044. } else if (charCode in baseEncoding &&
  21045. baseEncoding[charCode] !== '') {
  21046. glyphName = baseEncoding[charCode];
  21047. } else {
  21048. glyphName = Encodings.StandardEncoding[charCode];
  21049. }
  21050. if (!glyphName) {
  21051. continue;
  21052. }
  21053. var unicodeOrCharCode;
  21054. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  21055. unicodeOrCharCode = GlyphsUnicode[glyphName];
  21056. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  21057. // TODO: the encoding needs to be updated with mac os table.
  21058. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  21059. }
  21060. var found = false;
  21061. for (i = 0; i < cmapMappingsLength; ++i) {
  21062. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  21063. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21064. found = true;
  21065. break;
  21066. }
  21067. }
  21068. if (!found && properties.glyphNames) {
  21069. // Try to map using the post table. There are currently no known
  21070. // pdfs that this fixes.
  21071. glyphId = properties.glyphNames.indexOf(glyphName);
  21072. if (glyphId > 0) {
  21073. charCodeToGlyphId[charCode] = glyphId;
  21074. }
  21075. }
  21076. }
  21077. } else {
  21078. // For (3, 0) cmap tables:
  21079. // The charcode key being stored in charCodeToGlyphId is the lower
  21080. // byte of the two-byte charcodes of the cmap table since according to
  21081. // the spec: 'each byte from the string shall be prepended with the
  21082. // high byte of the range [of charcodes in the cmap table], to form
  21083. // a two-byte character, which shall be used to select the
  21084. // associated glyph description from the subtable'.
  21085. //
  21086. // For (1, 0) cmap tables:
  21087. // 'single bytes from the string shall be used to look up the
  21088. // associated glyph descriptions from the subtable'. This means
  21089. // charcodes in the cmap will be single bytes, so no-op since
  21090. // glyph.charCode & 0xFF === glyph.charCode
  21091. for (i = 0; i < cmapMappingsLength; ++i) {
  21092. charCode = cmapMappings[i].charCode & 0xFF;
  21093. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21094. }
  21095. }
  21096. }
  21097. if (charCodeToGlyphId.length === 0) {
  21098. // defines at least one glyph
  21099. charCodeToGlyphId[0] = 0;
  21100. }
  21101. // Converting glyphs and ids into font's cmap table
  21102. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  21103. this.toFontChar = newMapping.toFontChar;
  21104. tables.cmap = {
  21105. tag: 'cmap',
  21106. data: createCmapTable(newMapping.charCodeToGlyphId)
  21107. };
  21108. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  21109. // extract some more font properties from the OpenType head and
  21110. // hhea tables; yMin and descent value are always negative
  21111. var override = {
  21112. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  21113. yMax: int16(tables.head.data[42], tables.head.data[43]),
  21114. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  21115. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  21116. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  21117. };
  21118. tables['OS/2'] = {
  21119. tag: 'OS/2',
  21120. data: stringToArray(createOS2Table(properties,
  21121. newMapping.charCodeToGlyphId,
  21122. override))
  21123. };
  21124. }
  21125. // Rewrite the 'post' table if needed
  21126. if (!tables.post) {
  21127. tables.post = {
  21128. tag: 'post',
  21129. data: stringToArray(createPostTable(properties))
  21130. };
  21131. }
  21132. if (!isTrueType) {
  21133. try {
  21134. // Trying to repair CFF file
  21135. cffFile = new Stream(tables['CFF '].data);
  21136. var parser = new CFFParser(cffFile, properties);
  21137. cff = parser.parse();
  21138. var compiler = new CFFCompiler(cff);
  21139. tables['CFF '].data = compiler.compile();
  21140. } catch (e) {
  21141. warn('Failed to compile font ' + properties.loadedName);
  21142. }
  21143. }
  21144. // Re-creating 'name' table
  21145. if (!tables.name) {
  21146. tables.name = {
  21147. tag: 'name',
  21148. data: stringToArray(createNameTable(this.name))
  21149. };
  21150. } else {
  21151. // ... using existing 'name' table as prototype
  21152. var namePrototype = readNameTable(tables.name);
  21153. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  21154. }
  21155. // rewrite the tables but tweak offsets
  21156. for (i = 0; i < numTables; i++) {
  21157. table = tables[tablesNames[i]];
  21158. var data = [];
  21159. tableData = table.data;
  21160. for (var j = 0, jj = tableData.length; j < jj; j++) {
  21161. data.push(tableData[j]);
  21162. }
  21163. createTableEntry(ttf, table.tag, data);
  21164. }
  21165. // Add the table datas
  21166. for (i = 0; i < numTables; i++) {
  21167. table = tables[tablesNames[i]];
  21168. tableData = table.data;
  21169. ttf.file += bytesToString(new Uint8Array(tableData));
  21170. // 4-byte aligned data
  21171. while (ttf.file.length & 3) {
  21172. ttf.file += String.fromCharCode(0);
  21173. }
  21174. }
  21175. return stringToArray(ttf.file);
  21176. },
  21177. convert: function Font_convert(fontName, font, properties) {
  21178. // The offsets object holds at the same time a representation of where
  21179. // to write the table entry information about a table and another offset
  21180. // representing the offset where to draw the actual data of a particular
  21181. // table
  21182. var otf = {
  21183. file: '',
  21184. virtualOffset: 9 * (4 * 4)
  21185. };
  21186. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  21187. // TODO: Check the charstring widths to determine this.
  21188. properties.fixedPitch = false;
  21189. var mapping = font.getGlyphMapping(properties);
  21190. var newMapping = adjustMapping(mapping, properties);
  21191. this.toFontChar = newMapping.toFontChar;
  21192. var numGlyphs = font.numGlyphs;
  21193. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  21194. for (var charCode in charCodeToGlyphId) {
  21195. if (glyphId === charCodeToGlyphId[charCode]) {
  21196. return charCode | 0;
  21197. }
  21198. }
  21199. if (addMap) {
  21200. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  21201. glyphId;
  21202. return newMapping.nextAvailableFontCharCode++;
  21203. }
  21204. return null;
  21205. }
  21206. var seacs = font.seacs;
  21207. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  21208. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  21209. var charset = font.getCharset();
  21210. var seacMap = Object.create(null);
  21211. for (var glyphId in seacs) {
  21212. glyphId |= 0;
  21213. var seac = seacs[glyphId];
  21214. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  21215. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  21216. var baseGlyphId = charset.indexOf(baseGlyphName);
  21217. var accentGlyphId = charset.indexOf(accentGlyphName);
  21218. if (baseGlyphId < 0 || accentGlyphId < 0) {
  21219. continue;
  21220. }
  21221. var accentOffset = {
  21222. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  21223. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  21224. };
  21225. var charCode = getCharCode(mapping, glyphId);
  21226. if (charCode === null) {
  21227. // There's no point in mapping it if the char code was never mapped
  21228. // to begin with.
  21229. continue;
  21230. }
  21231. // Find a fontCharCode that maps to the base and accent glyphs. If one
  21232. // doesn't exists, create it.
  21233. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  21234. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  21235. true);
  21236. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  21237. true);
  21238. seacMap[charCode] = {
  21239. baseFontCharCode: baseFontCharCode,
  21240. accentFontCharCode: accentFontCharCode,
  21241. accentOffset: accentOffset
  21242. };
  21243. }
  21244. properties.seacMap = seacMap;
  21245. }
  21246. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  21247. var fields = {
  21248. // PostScript Font Program
  21249. 'CFF ': font.data,
  21250. // OS/2 and Windows Specific metrics
  21251. 'OS/2': stringToArray(createOS2Table(properties,
  21252. newMapping.charCodeToGlyphId)),
  21253. // Character to glyphs mapping
  21254. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  21255. // Font header
  21256. 'head': (function fontFieldsHead() {
  21257. return stringToArray(
  21258. '\x00\x01\x00\x00' + // Version number
  21259. '\x00\x00\x10\x00' + // fontRevision
  21260. '\x00\x00\x00\x00' + // checksumAdjustement
  21261. '\x5F\x0F\x3C\xF5' + // magicNumber
  21262. '\x00\x00' + // Flags
  21263. safeString16(unitsPerEm) + // unitsPerEM
  21264. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  21265. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  21266. '\x00\x00' + // xMin
  21267. safeString16(properties.descent) + // yMin
  21268. '\x0F\xFF' + // xMax
  21269. safeString16(properties.ascent) + // yMax
  21270. string16(properties.italicAngle ? 2 : 0) + // macStyle
  21271. '\x00\x11' + // lowestRecPPEM
  21272. '\x00\x00' + // fontDirectionHint
  21273. '\x00\x00' + // indexToLocFormat
  21274. '\x00\x00'); // glyphDataFormat
  21275. })(),
  21276. // Horizontal header
  21277. 'hhea': (function fontFieldsHhea() {
  21278. return stringToArray(
  21279. '\x00\x01\x00\x00' + // Version number
  21280. safeString16(properties.ascent) + // Typographic Ascent
  21281. safeString16(properties.descent) + // Typographic Descent
  21282. '\x00\x00' + // Line Gap
  21283. '\xFF\xFF' + // advanceWidthMax
  21284. '\x00\x00' + // minLeftSidebearing
  21285. '\x00\x00' + // minRightSidebearing
  21286. '\x00\x00' + // xMaxExtent
  21287. safeString16(properties.capHeight) + // caretSlopeRise
  21288. safeString16(Math.tan(properties.italicAngle) *
  21289. properties.xHeight) + // caretSlopeRun
  21290. '\x00\x00' + // caretOffset
  21291. '\x00\x00' + // -reserved-
  21292. '\x00\x00' + // -reserved-
  21293. '\x00\x00' + // -reserved-
  21294. '\x00\x00' + // -reserved-
  21295. '\x00\x00' + // metricDataFormat
  21296. string16(numGlyphs)); // Number of HMetrics
  21297. })(),
  21298. // Horizontal metrics
  21299. 'hmtx': (function fontFieldsHmtx() {
  21300. var charstrings = font.charstrings;
  21301. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  21302. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  21303. // TODO: For CFF fonts the width should technically match th x in
  21304. // the glyph, but it doesn't seem to matter.
  21305. var charstring = charstrings ? charstrings[i - 1] : {};
  21306. var width = 'width' in charstring ? charstring.width : 0;
  21307. hmtx += string16(width) + string16(0);
  21308. }
  21309. return stringToArray(hmtx);
  21310. })(),
  21311. // Maximum profile
  21312. 'maxp': (function fontFieldsMaxp() {
  21313. return stringToArray(
  21314. '\x00\x00\x50\x00' + // Version number
  21315. string16(numGlyphs)); // Num of glyphs
  21316. })(),
  21317. // Naming tables
  21318. 'name': stringToArray(createNameTable(fontName)),
  21319. // PostScript informations
  21320. 'post': stringToArray(createPostTable(properties))
  21321. };
  21322. var field;
  21323. for (field in fields) {
  21324. createTableEntry(otf, field, fields[field]);
  21325. }
  21326. for (field in fields) {
  21327. var table = fields[field];
  21328. otf.file += bytesToString(new Uint8Array(table));
  21329. }
  21330. return stringToArray(otf.file);
  21331. },
  21332. /**
  21333. * Builds a char code to unicode map based on section 9.10 of the spec.
  21334. * @param {Object} properties Font properties object.
  21335. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  21336. * unicode (string) values and 'isIdentity' which is true if an identity map
  21337. * is used.
  21338. */
  21339. buildToUnicode: function Font_buildToUnicode(properties) {
  21340. var map = {
  21341. isIdentity: false,
  21342. toUnicode: null
  21343. };
  21344. // Section 9.10.2 Mapping Character Codes to Unicode Values
  21345. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  21346. map.toUnicode = properties.toUnicode;
  21347. return map;
  21348. }
  21349. // According to the spec if the font is a simple font we should only map
  21350. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  21351. // the differences array only contains adobe standard or symbol set names,
  21352. // in pratice it seems better to always try to create a toUnicode
  21353. // map based of the default encoding.
  21354. var toUnicode, charcode;
  21355. if (!properties.composite /* is simple font */) {
  21356. toUnicode = [];
  21357. var encoding = properties.defaultEncoding.slice();
  21358. // Merge in the differences array.
  21359. var differences = properties.differences;
  21360. for (charcode in differences) {
  21361. encoding[charcode] = differences[charcode];
  21362. }
  21363. for (charcode in encoding) {
  21364. // a) Map the character code to a character name.
  21365. var glyphName = encoding[charcode];
  21366. // b) Look up the character name in the Adobe Glyph List (see the
  21367. // Bibliography) to obtain the corresponding Unicode value.
  21368. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  21369. // (undocumented) c) Few heuristics to recognize unknown glyphs
  21370. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  21371. var code;
  21372. // Gxx glyph
  21373. if (glyphName.length === 3 &&
  21374. glyphName[0] === 'G' &&
  21375. (code = parseInt(glyphName.substr(1), 16))) {
  21376. toUnicode[charcode] = String.fromCharCode(code);
  21377. }
  21378. // Cddd glyph
  21379. if (glyphName.length >= 3 &&
  21380. glyphName[0] === 'C' &&
  21381. (code = +glyphName.substr(1))) {
  21382. toUnicode[charcode] = String.fromCharCode(code);
  21383. }
  21384. continue;
  21385. }
  21386. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  21387. }
  21388. map.toUnicode = toUnicode;
  21389. return map;
  21390. }
  21391. // If the font is a composite font that uses one of the predefined CMaps
  21392. // listed in Table 118 (except Identity–H and Identity–V) or whose
  21393. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  21394. // Adobe-Korea1 character collection:
  21395. if (properties.composite && (
  21396. (properties.cMap.builtInCMap &&
  21397. !(properties.cMap instanceof IdentityCMap)) ||
  21398. (properties.cidSystemInfo.registry === 'Adobe' &&
  21399. (properties.cidSystemInfo.ordering === 'GB1' ||
  21400. properties.cidSystemInfo.ordering === 'CNS1' ||
  21401. properties.cidSystemInfo.ordering === 'Japan1' ||
  21402. properties.cidSystemInfo.ordering === 'Korea1')))) {
  21403. // Then:
  21404. // a) Map the character code to a character identifier (CID) according
  21405. // to the font’s CMap.
  21406. // b) Obtain the registry and ordering of the character collection used
  21407. // by the font’s CMap (for example, Adobe and Japan1) from its
  21408. // CIDSystemInfo dictionary.
  21409. var registry = properties.cidSystemInfo.registry;
  21410. var ordering = properties.cidSystemInfo.ordering;
  21411. // c) Construct a second CMap name by concatenating the registry and
  21412. // ordering obtained in step (b) in the format registry–ordering–UCS2
  21413. // (for example, Adobe–Japan1–UCS2).
  21414. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  21415. // d) Obtain the CMap with the name constructed in step (c) (available
  21416. // from the ASN Web site; see the Bibliography).
  21417. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  21418. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  21419. var cMap = properties.cMap;
  21420. toUnicode = [];
  21421. for (charcode in cMap.map) {
  21422. var cid = cMap.map[charcode];
  21423. assert(cid.length === 1, 'Max size of CID is 65,535');
  21424. // e) Map the CID obtained in step (a) according to the CMap obtained
  21425. // in step (d), producing a Unicode value.
  21426. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  21427. if (!ucs2) {
  21428. continue;
  21429. }
  21430. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  21431. ucs2.charCodeAt(1));
  21432. }
  21433. map.toUnicode = toUnicode;
  21434. return map;
  21435. }
  21436. // The viewer's choice, just use an identity map.
  21437. toUnicode = [];
  21438. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  21439. for (var i = firstChar; i <= lastChar; i++) {
  21440. toUnicode[i] = String.fromCharCode(i);
  21441. }
  21442. map.isIdentity = true;
  21443. map.toUnicode = toUnicode;
  21444. return map;
  21445. },
  21446. get spaceWidth() {
  21447. if ('_shadowWidth' in this) {
  21448. return this._shadowWidth;
  21449. }
  21450. // trying to estimate space character width
  21451. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  21452. var width;
  21453. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  21454. var glyphName = possibleSpaceReplacements[i];
  21455. // if possible, getting width by glyph name
  21456. if (glyphName in this.widths) {
  21457. width = this.widths[glyphName];
  21458. break;
  21459. }
  21460. var glyphUnicode = GlyphsUnicode[glyphName];
  21461. // finding the charcode via unicodeToCID map
  21462. var charcode = 0;
  21463. if (this.composite) {
  21464. if (glyphUnicode in this.cMap.map) {
  21465. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  21466. }
  21467. }
  21468. // ... via toUnicode map
  21469. if (!charcode && 'toUnicode' in this) {
  21470. charcode = this.toUnicode.indexOf(glyphUnicode);
  21471. }
  21472. // setting it to unicode if negative or undefined
  21473. if (charcode <= 0) {
  21474. charcode = glyphUnicode;
  21475. }
  21476. // trying to get width via charcode
  21477. width = this.widths[charcode];
  21478. if (width) {
  21479. break; // the non-zero width found
  21480. }
  21481. }
  21482. width = width || this.defaultWidth;
  21483. // Do not shadow the property here. See discussion:
  21484. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  21485. this._shadowWidth = width;
  21486. return width;
  21487. },
  21488. charToGlyph: function Font_charToGlyph(charcode) {
  21489. var fontCharCode, width, operatorList;
  21490. var widthCode = charcode;
  21491. if (this.cMap && charcode in this.cMap.map) {
  21492. widthCode = this.cMap.map[charcode].charCodeAt(0);
  21493. }
  21494. width = this.widths[widthCode];
  21495. width = isNum(width) ? width : this.defaultWidth;
  21496. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  21497. var unicode = this.toUnicode[charcode] || charcode;
  21498. if (typeof unicode === 'number') {
  21499. unicode = String.fromCharCode(unicode);
  21500. }
  21501. // First try the toFontChar map, if it's not there then try falling
  21502. // back to the char code.
  21503. fontCharCode = this.toFontChar[charcode] || charcode;
  21504. if (this.missingFile) {
  21505. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  21506. }
  21507. if (this.type === 'Type3') {
  21508. // Font char code in this case is actually a glyph name.
  21509. operatorList = this.charProcOperatorList[fontCharCode];
  21510. }
  21511. var accent = null;
  21512. if (this.seacMap && this.seacMap[charcode]) {
  21513. var seac = this.seacMap[charcode];
  21514. fontCharCode = seac.baseFontCharCode;
  21515. accent = {
  21516. fontChar: String.fromCharCode(seac.accentFontCharCode),
  21517. offset: seac.accentOffset
  21518. };
  21519. }
  21520. var fontChar = String.fromCharCode(fontCharCode);
  21521. var glyph = this.glyphCache[charcode];
  21522. if (!glyph ||
  21523. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  21524. operatorList)) {
  21525. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  21526. operatorList);
  21527. this.glyphCache[charcode] = glyph;
  21528. }
  21529. return glyph;
  21530. },
  21531. charsToGlyphs: function Font_charsToGlyphs(chars) {
  21532. var charsCache = this.charsCache;
  21533. var glyphs, glyph, charcode;
  21534. // if we translated this string before, just grab it from the cache
  21535. if (charsCache) {
  21536. glyphs = charsCache[chars];
  21537. if (glyphs) {
  21538. return glyphs;
  21539. }
  21540. }
  21541. // lazily create the translation cache
  21542. if (!charsCache) {
  21543. charsCache = this.charsCache = Object.create(null);
  21544. }
  21545. glyphs = [];
  21546. var charsCacheKey = chars;
  21547. var i = 0, ii;
  21548. if (this.cMap) {
  21549. // composite fonts have multi-byte strings convert the string from
  21550. // single-byte to multi-byte
  21551. while (i < chars.length) {
  21552. var c = this.cMap.readCharCode(chars, i);
  21553. charcode = c[0];
  21554. var length = c[1];
  21555. i += length;
  21556. glyph = this.charToGlyph(charcode);
  21557. glyphs.push(glyph);
  21558. // placing null after each word break charcode (ASCII SPACE)
  21559. // Ignore occurences of 0x20 in multiple-byte codes.
  21560. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  21561. glyphs.push(null);
  21562. }
  21563. }
  21564. } else {
  21565. for (i = 0, ii = chars.length; i < ii; ++i) {
  21566. charcode = chars.charCodeAt(i);
  21567. glyph = this.charToGlyph(charcode);
  21568. glyphs.push(glyph);
  21569. if (charcode == 0x20) {
  21570. glyphs.push(null);
  21571. }
  21572. }
  21573. }
  21574. // Enter the translated string into the cache
  21575. return (charsCache[charsCacheKey] = glyphs);
  21576. }
  21577. };
  21578. return Font;
  21579. })();
  21580. var ErrorFont = (function ErrorFontClosure() {
  21581. function ErrorFont(error) {
  21582. this.error = error;
  21583. }
  21584. ErrorFont.prototype = {
  21585. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  21586. return [];
  21587. },
  21588. exportData: function ErrorFont_exportData() {
  21589. return {error: this.error};
  21590. }
  21591. };
  21592. return ErrorFont;
  21593. })();
  21594. /**
  21595. * Shared logic for building a char code to glyph id mapping for Type1 and
  21596. * simple CFF fonts. See section 9.6.6.2 of the spec.
  21597. * @param {Object} properties Font properties object.
  21598. * @param {Object} builtInEncoding The encoding contained within the actual font
  21599. * data.
  21600. * @param {Array} Array of glyph names where the index is the glyph ID.
  21601. * @returns {Object} A char code to glyph ID map.
  21602. */
  21603. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  21604. var charCodeToGlyphId = Object.create(null);
  21605. var glyphId, charCode, baseEncoding;
  21606. if (properties.baseEncodingName) {
  21607. // If a valid base encoding name was used, the mapping is initialized with
  21608. // that.
  21609. baseEncoding = Encodings[properties.baseEncodingName];
  21610. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21611. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21612. if (glyphId >= 0) {
  21613. charCodeToGlyphId[charCode] = glyphId;
  21614. }
  21615. }
  21616. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  21617. // For a symbolic font the encoding should be the fonts built-in
  21618. // encoding.
  21619. for (charCode in builtInEncoding) {
  21620. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  21621. }
  21622. } else {
  21623. // For non-symbolic fonts that don't have a base encoding the standard
  21624. // encoding should be used.
  21625. baseEncoding = Encodings.StandardEncoding;
  21626. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21627. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21628. if (glyphId >= 0) {
  21629. charCodeToGlyphId[charCode] = glyphId;
  21630. }
  21631. }
  21632. }
  21633. // Lastly, merge in the differences.
  21634. var differences = properties.differences;
  21635. if (differences) {
  21636. for (charCode in differences) {
  21637. var glyphName = differences[charCode];
  21638. glyphId = glyphNames.indexOf(glyphName);
  21639. if (glyphId >= 0) {
  21640. charCodeToGlyphId[charCode] = glyphId;
  21641. }
  21642. }
  21643. }
  21644. return charCodeToGlyphId;
  21645. }
  21646. /*
  21647. * CharStrings are encoded following the the CharString Encoding sequence
  21648. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  21649. * The value in a byte indicates a command, a number, or subsequent bytes
  21650. * that are to be interpreted in a special way.
  21651. *
  21652. * CharString Number Encoding:
  21653. * A CharString byte containing the values from 32 through 255 inclusive
  21654. * indicate an integer. These values are decoded in four ranges.
  21655. *
  21656. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  21657. * indicate the integer v - 139. Thus, the integer values from -107 through
  21658. * 107 inclusive may be encoded in single byte.
  21659. *
  21660. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  21661. * indicates an integer involving the next byte, w, according to the formula:
  21662. * [(v - 247) x 256] + w + 108
  21663. *
  21664. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  21665. * indicates an integer involving the next byte, w, according to the formula:
  21666. * -[(v - 251) * 256] - w - 108
  21667. *
  21668. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  21669. * are a two complement signed integer. The first of these bytes contains the
  21670. * highest order bits, the second byte contains the next higher order bits
  21671. * and the fourth byte contain the lowest order bits.
  21672. *
  21673. *
  21674. * CharString Command Encoding:
  21675. * CharStrings commands are encoded in 1 or 2 bytes.
  21676. *
  21677. * Single byte commands are encoded in 1 byte that contains a value between
  21678. * 0 and 31 inclusive.
  21679. * If a command byte contains the value 12, then the value in the next byte
  21680. * indicates a command. This "escape" mechanism allows many extra commands
  21681. * to be encoded and this encoding technique helps to minimize the length of
  21682. * the charStrings.
  21683. */
  21684. var Type1CharString = (function Type1CharStringClosure() {
  21685. var COMMAND_MAP = {
  21686. 'hstem': [1],
  21687. 'vstem': [3],
  21688. 'vmoveto': [4],
  21689. 'rlineto': [5],
  21690. 'hlineto': [6],
  21691. 'vlineto': [7],
  21692. 'rrcurveto': [8],
  21693. 'callsubr': [10],
  21694. 'flex': [12, 35],
  21695. 'drop' : [12, 18],
  21696. 'endchar': [14],
  21697. 'rmoveto': [21],
  21698. 'hmoveto': [22],
  21699. 'vhcurveto': [30],
  21700. 'hvcurveto': [31]
  21701. };
  21702. function Type1CharString() {
  21703. this.width = 0;
  21704. this.lsb = 0;
  21705. this.flexing = false;
  21706. this.output = [];
  21707. this.stack = [];
  21708. }
  21709. Type1CharString.prototype = {
  21710. convert: function Type1CharString_convert(encoded, subrs) {
  21711. var count = encoded.length;
  21712. var error = false;
  21713. var wx, sbx, subrNumber;
  21714. for (var i = 0; i < count; i++) {
  21715. var value = encoded[i];
  21716. if (value < 32) {
  21717. if (value === 12) {
  21718. value = (value << 8) + encoded[++i];
  21719. }
  21720. switch (value) {
  21721. case 1: // hstem
  21722. if (!HINTING_ENABLED) {
  21723. this.stack = [];
  21724. break;
  21725. }
  21726. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21727. break;
  21728. case 3: // vstem
  21729. if (!HINTING_ENABLED) {
  21730. this.stack = [];
  21731. break;
  21732. }
  21733. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21734. break;
  21735. case 4: // vmoveto
  21736. if (this.flexing) {
  21737. if (this.stack.length < 1) {
  21738. error = true;
  21739. break;
  21740. }
  21741. // Add the dx for flex and but also swap the values so they are
  21742. // the right order.
  21743. var dy = this.stack.pop();
  21744. this.stack.push(0, dy);
  21745. break;
  21746. }
  21747. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  21748. break;
  21749. case 5: // rlineto
  21750. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  21751. break;
  21752. case 6: // hlineto
  21753. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  21754. break;
  21755. case 7: // vlineto
  21756. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  21757. break;
  21758. case 8: // rrcurveto
  21759. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  21760. break;
  21761. case 9: // closepath
  21762. // closepath is a Type1 command that does not take argument and is
  21763. // useless in Type2 and it can simply be ignored.
  21764. this.stack = [];
  21765. break;
  21766. case 10: // callsubr
  21767. if (this.stack.length < 1) {
  21768. error = true;
  21769. break;
  21770. }
  21771. subrNumber = this.stack.pop();
  21772. error = this.convert(subrs[subrNumber], subrs);
  21773. break;
  21774. case 11: // return
  21775. return error;
  21776. case 13: // hsbw
  21777. if (this.stack.length < 2) {
  21778. error = true;
  21779. break;
  21780. }
  21781. // To convert to type2 we have to move the width value to the
  21782. // first part of the charstring and then use hmoveto with lsb.
  21783. wx = this.stack.pop();
  21784. sbx = this.stack.pop();
  21785. this.lsb = sbx;
  21786. this.width = wx;
  21787. this.stack.push(sbx);
  21788. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21789. break;
  21790. case 14: // endchar
  21791. this.output.push(COMMAND_MAP.endchar[0]);
  21792. break;
  21793. case 21: // rmoveto
  21794. if (this.flexing) {
  21795. break;
  21796. }
  21797. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21798. break;
  21799. case 22: // hmoveto
  21800. if (this.flexing) {
  21801. // Add the dy for flex.
  21802. this.stack.push(0);
  21803. break;
  21804. }
  21805. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21806. break;
  21807. case 30: // vhcurveto
  21808. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  21809. break;
  21810. case 31: // hvcurveto
  21811. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  21812. break;
  21813. case (12 << 8) + 0: // dotsection
  21814. // dotsection is a Type1 command to specify some hinting feature
  21815. // for dots that do not take a parameter and it can safely be
  21816. // ignored for Type2.
  21817. this.stack = [];
  21818. break;
  21819. case (12 << 8) + 1: // vstem3
  21820. if (!HINTING_ENABLED) {
  21821. this.stack = [];
  21822. break;
  21823. }
  21824. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  21825. // multiple parameters, so instead of returning [vh]stem3 take a
  21826. // shortcut and return [vhstem] instead.
  21827. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21828. break;
  21829. case (12 << 8) + 2: // hstem3
  21830. if (!HINTING_ENABLED) {
  21831. this.stack = [];
  21832. break;
  21833. }
  21834. // See vstem3.
  21835. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21836. break;
  21837. case (12 << 8) + 6: // seac
  21838. // seac is like type 2's special endchar but it doesn't use the
  21839. // first argument asb, so remove it.
  21840. if (SEAC_ANALYSIS_ENABLED) {
  21841. this.seac = this.stack.splice(-4, 4);
  21842. error = this.executeCommand(0, COMMAND_MAP.endchar);
  21843. } else {
  21844. error = this.executeCommand(4, COMMAND_MAP.endchar);
  21845. }
  21846. break;
  21847. case (12 << 8) + 7: // sbw
  21848. if (this.stack.length < 4) {
  21849. error = true;
  21850. break;
  21851. }
  21852. // To convert to type2 we have to move the width value to the
  21853. // first part of the charstring and then use rmoveto with
  21854. // (dx, dy). The height argument will not be used for vmtx and
  21855. // vhea tables reconstruction -- ignoring it.
  21856. var wy = this.stack.pop();
  21857. wx = this.stack.pop();
  21858. var sby = this.stack.pop();
  21859. sbx = this.stack.pop();
  21860. this.lsb = sbx;
  21861. this.width = wx;
  21862. this.stack.push(sbx, sby);
  21863. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21864. break;
  21865. case (12 << 8) + 12: // div
  21866. if (this.stack.length < 2) {
  21867. error = true;
  21868. break;
  21869. }
  21870. var num2 = this.stack.pop();
  21871. var num1 = this.stack.pop();
  21872. this.stack.push(num1 / num2);
  21873. break;
  21874. case (12 << 8) + 16: // callothersubr
  21875. if (this.stack.length < 2) {
  21876. error = true;
  21877. break;
  21878. }
  21879. subrNumber = this.stack.pop();
  21880. var numArgs = this.stack.pop();
  21881. if (subrNumber === 0 && numArgs === 3) {
  21882. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  21883. this.stack.push(
  21884. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  21885. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  21886. flexArgs[4], // bcp2x
  21887. flexArgs[5], // bcp2y
  21888. flexArgs[6], // p2x
  21889. flexArgs[7], // p2y
  21890. flexArgs[8], // bcp3x
  21891. flexArgs[9], // bcp3y
  21892. flexArgs[10], // bcp4x
  21893. flexArgs[11], // bcp4y
  21894. flexArgs[12], // p3x
  21895. flexArgs[13], // p3y
  21896. flexArgs[14] // flexDepth
  21897. // 15 = finalx unused by flex
  21898. // 16 = finaly unused by flex
  21899. );
  21900. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  21901. this.flexing = false;
  21902. this.stack.push(flexArgs[15], flexArgs[16]);
  21903. } else if (subrNumber === 1 && numArgs === 0) {
  21904. this.flexing = true;
  21905. }
  21906. break;
  21907. case (12 << 8) + 17: // pop
  21908. // Ignore this since it is only used with othersubr.
  21909. break;
  21910. case (12 << 8) + 33: // setcurrentpoint
  21911. // Ignore for now.
  21912. this.stack = [];
  21913. break;
  21914. default:
  21915. warn('Unknown type 1 charstring command of "' + value + '"');
  21916. break;
  21917. }
  21918. if (error) {
  21919. break;
  21920. }
  21921. continue;
  21922. } else if (value <= 246) {
  21923. value = value - 139;
  21924. } else if (value <= 250) {
  21925. value = ((value - 247) * 256) + encoded[++i] + 108;
  21926. } else if (value <= 254) {
  21927. value = -((value - 251) * 256) - encoded[++i] - 108;
  21928. } else {
  21929. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  21930. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  21931. }
  21932. this.stack.push(value);
  21933. }
  21934. return error;
  21935. },
  21936. executeCommand: function(howManyArgs, command, keepStack) {
  21937. var stackLength = this.stack.length;
  21938. if (howManyArgs > stackLength) {
  21939. return true;
  21940. }
  21941. var start = stackLength - howManyArgs;
  21942. for (var i = start; i < stackLength; i++) {
  21943. var value = this.stack[i];
  21944. if (value === (value | 0)) { // int
  21945. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  21946. } else { // fixed point
  21947. value = (65536 * value) | 0;
  21948. this.output.push(255,
  21949. (value >> 24) & 0xFF,
  21950. (value >> 16) & 0xFF,
  21951. (value >> 8) & 0xFF,
  21952. value & 0xFF);
  21953. }
  21954. }
  21955. this.output.push.apply(this.output, command);
  21956. if (keepStack) {
  21957. this.stack.splice(start, howManyArgs);
  21958. } else {
  21959. this.stack.length = 0;
  21960. }
  21961. return false;
  21962. }
  21963. };
  21964. return Type1CharString;
  21965. })();
  21966. /*
  21967. * Type1Parser encapsulate the needed code for parsing a Type1 font
  21968. * program. Some of its logic depends on the Type2 charstrings
  21969. * structure.
  21970. * Note: this doesn't really parse the font since that would require evaluation
  21971. * of PostScript, but it is possible in most cases to extract what we need
  21972. * without a full parse.
  21973. */
  21974. var Type1Parser = (function Type1ParserClosure() {
  21975. /*
  21976. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  21977. * of Plaintext Bytes. The function took a key as a parameter which can be
  21978. * for decrypting the eexec block of for decoding charStrings.
  21979. */
  21980. var EEXEC_ENCRYPT_KEY = 55665;
  21981. var CHAR_STRS_ENCRYPT_KEY = 4330;
  21982. function isHexDigit(code) {
  21983. return code >= 48 && code <= 57 || // '0'-'9'
  21984. code >= 65 && code <= 70 || // 'A'-'F'
  21985. code >= 97 && code <= 102; // 'a'-'f'
  21986. }
  21987. function decrypt(data, key, discardNumber) {
  21988. var r = key | 0, c1 = 52845, c2 = 22719;
  21989. var count = data.length;
  21990. var decrypted = new Uint8Array(count);
  21991. for (var i = 0; i < count; i++) {
  21992. var value = data[i];
  21993. decrypted[i] = value ^ (r >> 8);
  21994. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  21995. }
  21996. return Array.prototype.slice.call(decrypted, discardNumber);
  21997. }
  21998. function decryptAscii(data, key, discardNumber) {
  21999. var r = key | 0, c1 = 52845, c2 = 22719;
  22000. var count = data.length, maybeLength = count >>> 1;
  22001. var decrypted = new Uint8Array(maybeLength);
  22002. var i, j;
  22003. for (i = 0, j = 0; i < count; i++) {
  22004. var digit1 = data[i];
  22005. if (!isHexDigit(digit1)) {
  22006. continue;
  22007. }
  22008. i++;
  22009. var digit2;
  22010. while (i < count && !isHexDigit(digit2 = data[i])) {
  22011. i++;
  22012. }
  22013. if (i < count) {
  22014. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  22015. decrypted[j++] = value ^ (r >> 8);
  22016. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22017. }
  22018. }
  22019. return Array.prototype.slice.call(decrypted, discardNumber, j);
  22020. }
  22021. function isSpecial(c) {
  22022. return c === 0x2F || // '/'
  22023. c === 0x5B || c === 0x5D || // '[', ']'
  22024. c === 0x7B || c === 0x7D || // '{', '}'
  22025. c === 0x28 || c === 0x29; // '(', ')'
  22026. }
  22027. function Type1Parser(stream, encrypted) {
  22028. if (encrypted) {
  22029. var data = stream.getBytes();
  22030. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  22031. isHexDigit(data[2]) && isHexDigit(data[3]));
  22032. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  22033. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  22034. }
  22035. this.stream = stream;
  22036. this.nextChar();
  22037. }
  22038. Type1Parser.prototype = {
  22039. readNumberArray: function Type1Parser_readNumberArray() {
  22040. this.getToken(); // read '[' or '{' (arrays can start with either)
  22041. var array = [];
  22042. while (true) {
  22043. var token = this.getToken();
  22044. if (token === null || token === ']' || token === '}') {
  22045. break;
  22046. }
  22047. array.push(parseFloat(token || 0));
  22048. }
  22049. return array;
  22050. },
  22051. readNumber: function Type1Parser_readNumber() {
  22052. var token = this.getToken();
  22053. return parseFloat(token || 0);
  22054. },
  22055. readInt: function Type1Parser_readInt() {
  22056. // Use '| 0' to prevent setting a double into length such as the double
  22057. // does not flow into the loop variable.
  22058. var token = this.getToken();
  22059. return parseInt(token || 0, 10) | 0;
  22060. },
  22061. readBoolean: function Type1Parser_readBoolean() {
  22062. var token = this.getToken();
  22063. // Use 1 and 0 since that's what type2 charstrings use.
  22064. return token === 'true' ? 1 : 0;
  22065. },
  22066. nextChar : function Type1_nextChar() {
  22067. return (this.currentChar = this.stream.getByte());
  22068. },
  22069. getToken: function Type1Parser_getToken() {
  22070. // Eat whitespace and comments.
  22071. var comment = false;
  22072. var ch = this.currentChar;
  22073. while (true) {
  22074. if (ch === -1) {
  22075. return null;
  22076. }
  22077. if (comment) {
  22078. if (ch === 0x0A || ch === 0x0D) {
  22079. comment = false;
  22080. }
  22081. } else if (ch === 0x25) { // '%'
  22082. comment = true;
  22083. } else if (!Lexer.isSpace(ch)) {
  22084. break;
  22085. }
  22086. ch = this.nextChar();
  22087. }
  22088. if (isSpecial(ch)) {
  22089. this.nextChar();
  22090. return String.fromCharCode(ch);
  22091. }
  22092. var token = '';
  22093. do {
  22094. token += String.fromCharCode(ch);
  22095. ch = this.nextChar();
  22096. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  22097. return token;
  22098. },
  22099. /*
  22100. * Returns an object containing a Subrs array and a CharStrings
  22101. * array extracted from and eexec encrypted block of data
  22102. */
  22103. extractFontProgram: function Type1Parser_extractFontProgram() {
  22104. var stream = this.stream;
  22105. var subrs = [], charstrings = [];
  22106. var program = {
  22107. subrs: [],
  22108. charstrings: [],
  22109. properties: {
  22110. 'privateData': {
  22111. 'lenIV': 4
  22112. }
  22113. }
  22114. };
  22115. var token, length, data, lenIV, encoded;
  22116. while ((token = this.getToken()) !== null) {
  22117. if (token !== '/') {
  22118. continue;
  22119. }
  22120. token = this.getToken();
  22121. switch (token) {
  22122. case 'CharStrings':
  22123. // The number immediately following CharStrings must be greater or
  22124. // equal to the number of CharStrings.
  22125. this.getToken();
  22126. this.getToken(); // read in 'dict'
  22127. this.getToken(); // read in 'dup'
  22128. this.getToken(); // read in 'begin'
  22129. while(true) {
  22130. token = this.getToken();
  22131. if (token === null || token === 'end') {
  22132. break;
  22133. }
  22134. if (token !== '/') {
  22135. continue;
  22136. }
  22137. var glyph = this.getToken();
  22138. length = this.readInt();
  22139. this.getToken(); // read in 'RD' or '-|'
  22140. data = stream.makeSubStream(stream.pos, length);
  22141. lenIV = program.properties.privateData['lenIV'];
  22142. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22143. // Skip past the required space and binary data.
  22144. stream.skip(length);
  22145. this.nextChar();
  22146. token = this.getToken(); // read in 'ND' or '|-'
  22147. if (token === 'noaccess') {
  22148. this.getToken(); // read in 'def'
  22149. }
  22150. charstrings.push({
  22151. glyph: glyph,
  22152. encoded: encoded
  22153. });
  22154. }
  22155. break;
  22156. case 'Subrs':
  22157. var num = this.readInt();
  22158. this.getToken(); // read in 'array'
  22159. while ((token = this.getToken()) === 'dup') {
  22160. var index = this.readInt();
  22161. length = this.readInt();
  22162. this.getToken(); // read in 'RD' or '-|'
  22163. data = stream.makeSubStream(stream.pos, length);
  22164. lenIV = program.properties.privateData['lenIV'];
  22165. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22166. // Skip past the required space and binary data.
  22167. stream.skip(length);
  22168. this.nextChar();
  22169. token = this.getToken(); // read in 'NP' or '|'
  22170. if (token === 'noaccess') {
  22171. this.getToken(); // read in 'put'
  22172. }
  22173. subrs[index] = encoded;
  22174. }
  22175. break;
  22176. case 'BlueValues':
  22177. case 'OtherBlues':
  22178. case 'FamilyBlues':
  22179. case 'FamilyOtherBlues':
  22180. var blueArray = this.readNumberArray();
  22181. // *Blue* values may contain invalid data: disables reading of
  22182. // those values when hinting is disabled.
  22183. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  22184. HINTING_ENABLED) {
  22185. program.properties.privateData[token] = blueArray;
  22186. }
  22187. break;
  22188. case 'StemSnapH':
  22189. case 'StemSnapV':
  22190. program.properties.privateData[token] = this.readNumberArray();
  22191. break;
  22192. case 'StdHW':
  22193. case 'StdVW':
  22194. program.properties.privateData[token] =
  22195. this.readNumberArray()[0];
  22196. break;
  22197. case 'BlueShift':
  22198. case 'lenIV':
  22199. case 'BlueFuzz':
  22200. case 'BlueScale':
  22201. case 'LanguageGroup':
  22202. case 'ExpansionFactor':
  22203. program.properties.privateData[token] = this.readNumber();
  22204. break;
  22205. case 'ForceBold':
  22206. program.properties.privateData[token] = this.readBoolean();
  22207. break;
  22208. }
  22209. }
  22210. for (var i = 0; i < charstrings.length; i++) {
  22211. glyph = charstrings[i].glyph;
  22212. encoded = charstrings[i].encoded;
  22213. var charString = new Type1CharString();
  22214. var error = charString.convert(encoded, subrs);
  22215. var output = charString.output;
  22216. if (error) {
  22217. // It seems when FreeType encounters an error while evaluating a glyph
  22218. // that it completely ignores the glyph so we'll mimic that behaviour
  22219. // here and put an endchar to make the validator happy.
  22220. output = [14];
  22221. }
  22222. program.charstrings.push({
  22223. glyphName: glyph,
  22224. charstring: output,
  22225. width: charString.width,
  22226. lsb: charString.lsb,
  22227. seac: charString.seac
  22228. });
  22229. }
  22230. return program;
  22231. },
  22232. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  22233. var token;
  22234. while ((token = this.getToken()) !== null) {
  22235. if (token !== '/') {
  22236. continue;
  22237. }
  22238. token = this.getToken();
  22239. switch (token) {
  22240. case 'FontMatrix':
  22241. var matrix = this.readNumberArray();
  22242. properties.fontMatrix = matrix;
  22243. break;
  22244. case 'Encoding':
  22245. var encodingArg = this.getToken();
  22246. var encoding;
  22247. if (!/^\d+$/.test(encodingArg)) {
  22248. // encoding name is specified
  22249. encoding = Encodings[encodingArg];
  22250. } else {
  22251. encoding = [];
  22252. var size = parseInt(encodingArg, 10) | 0;
  22253. this.getToken(); // read in 'array'
  22254. for (var j = 0; j < size; j++) {
  22255. token = this.getToken();
  22256. // skipping till first dup or def (e.g. ignoring for statement)
  22257. while (token !== 'dup' && token !== 'def') {
  22258. token = this.getToken();
  22259. if (token === null) {
  22260. return; // invalid header
  22261. }
  22262. }
  22263. if (token === 'def') {
  22264. break; // read all array data
  22265. }
  22266. var index = this.readInt();
  22267. this.getToken(); // read in '/'
  22268. var glyph = this.getToken();
  22269. encoding[index] = glyph;
  22270. this.getToken(); // read the in 'put'
  22271. }
  22272. }
  22273. properties.builtInEncoding = encoding;
  22274. break;
  22275. case 'FontBBox':
  22276. var fontBBox = this.readNumberArray();
  22277. // adjusting ascent/descent
  22278. properties.ascent = fontBBox[3];
  22279. properties.descent = fontBBox[1];
  22280. properties.ascentScaled = true;
  22281. break;
  22282. }
  22283. }
  22284. }
  22285. };
  22286. return Type1Parser;
  22287. })();
  22288. /**
  22289. * The CFF class takes a Type1 file and wrap it into a
  22290. * 'Compact Font Format' which itself embed Type2 charstrings.
  22291. */
  22292. var CFFStandardStrings = [
  22293. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  22294. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  22295. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  22296. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  22297. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  22298. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  22299. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  22300. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  22301. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  22302. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  22303. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  22304. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  22305. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  22306. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  22307. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  22308. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  22309. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  22310. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  22311. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  22312. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  22313. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  22314. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  22315. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  22316. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  22317. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  22318. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  22319. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  22320. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  22321. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  22322. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  22323. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  22324. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  22325. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  22326. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  22327. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  22328. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  22329. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  22330. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  22331. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  22332. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  22333. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  22334. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  22335. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  22336. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  22337. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  22338. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  22339. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  22340. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  22341. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  22342. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  22343. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  22344. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  22345. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  22346. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  22347. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  22348. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  22349. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  22350. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  22351. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  22352. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  22353. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  22354. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  22355. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  22356. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  22357. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  22358. ];
  22359. // Type1Font is also a CIDFontType0.
  22360. var Type1Font = function Type1Font(name, file, properties) {
  22361. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  22362. // Also, length1 and length2 might be off by 6 bytes as well.
  22363. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  22364. var PFB_HEADER_SIZE = 6;
  22365. var headerBlockLength = properties.length1;
  22366. var eexecBlockLength = properties.length2;
  22367. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  22368. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  22369. if (pfbHeaderPresent) {
  22370. file.skip(PFB_HEADER_SIZE);
  22371. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22372. (pfbHeader[3] << 8) | pfbHeader[2];
  22373. }
  22374. // Get the data block containing glyphs and subrs informations
  22375. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  22376. var headerBlockParser = new Type1Parser(headerBlock);
  22377. headerBlockParser.extractFontHeader(properties);
  22378. if (pfbHeaderPresent) {
  22379. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  22380. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22381. (pfbHeader[3] << 8) | pfbHeader[2];
  22382. }
  22383. // Decrypt the data blocks and retrieve it's content
  22384. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  22385. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  22386. var data = eexecBlockParser.extractFontProgram();
  22387. for (var info in data.properties) {
  22388. properties[info] = data.properties[info];
  22389. }
  22390. var charstrings = data.charstrings;
  22391. var type2Charstrings = this.getType2Charstrings(charstrings);
  22392. var subrs = this.getType2Subrs(data.subrs);
  22393. this.charstrings = charstrings;
  22394. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  22395. subrs, properties);
  22396. this.seacs = this.getSeacs(data.charstrings);
  22397. };
  22398. Type1Font.prototype = {
  22399. get numGlyphs() {
  22400. return this.charstrings.length + 1;
  22401. },
  22402. getCharset: function Type1Font_getCharset() {
  22403. var charset = ['.notdef'];
  22404. var charstrings = this.charstrings;
  22405. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22406. charset.push(charstrings[glyphId].glyphName);
  22407. }
  22408. return charset;
  22409. },
  22410. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  22411. var charstrings = this.charstrings;
  22412. var glyphNames = ['.notdef'], glyphId;
  22413. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22414. glyphNames.push(charstrings[glyphId].glyphName);
  22415. }
  22416. var encoding = properties.builtInEncoding;
  22417. if (encoding) {
  22418. var builtInEncoding = {};
  22419. for (var charCode in encoding) {
  22420. glyphId = glyphNames.indexOf(encoding[charCode]);
  22421. if (glyphId >= 0) {
  22422. builtInEncoding[charCode] = glyphId;
  22423. }
  22424. }
  22425. }
  22426. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  22427. },
  22428. getSeacs: function Type1Font_getSeacs(charstrings) {
  22429. var i, ii;
  22430. var seacMap = [];
  22431. for (i = 0, ii = charstrings.length; i < ii; i++) {
  22432. var charstring = charstrings[i];
  22433. if (charstring.seac) {
  22434. // Offset by 1 for .notdef
  22435. seacMap[i + 1] = charstring.seac;
  22436. }
  22437. }
  22438. return seacMap;
  22439. },
  22440. getType2Charstrings: function Type1Font_getType2Charstrings(
  22441. type1Charstrings) {
  22442. var type2Charstrings = [];
  22443. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  22444. type2Charstrings.push(type1Charstrings[i].charstring);
  22445. }
  22446. return type2Charstrings;
  22447. },
  22448. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  22449. var bias = 0;
  22450. var count = type1Subrs.length;
  22451. if (count < 1133) {
  22452. bias = 107;
  22453. } else if (count < 33769) {
  22454. bias = 1131;
  22455. } else {
  22456. bias = 32768;
  22457. }
  22458. // Add a bunch of empty subrs to deal with the Type2 bias
  22459. var type2Subrs = [];
  22460. var i;
  22461. for (i = 0; i < bias; i++) {
  22462. type2Subrs.push([0x0B]);
  22463. }
  22464. for (i = 0; i < count; i++) {
  22465. type2Subrs.push(type1Subrs[i]);
  22466. }
  22467. return type2Subrs;
  22468. },
  22469. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  22470. var cff = new CFF();
  22471. cff.header = new CFFHeader(1, 0, 4, 4);
  22472. cff.names = [name];
  22473. var topDict = new CFFTopDict();
  22474. // CFF strings IDs 0...390 are predefined names, so refering
  22475. // to entries in our own String INDEX starts at SID 391.
  22476. topDict.setByName('version', 391);
  22477. topDict.setByName('Notice', 392);
  22478. topDict.setByName('FullName', 393);
  22479. topDict.setByName('FamilyName', 394);
  22480. topDict.setByName('Weight', 395);
  22481. topDict.setByName('Encoding', null); // placeholder
  22482. topDict.setByName('FontMatrix', properties.fontMatrix);
  22483. topDict.setByName('FontBBox', properties.bbox);
  22484. topDict.setByName('charset', null); // placeholder
  22485. topDict.setByName('CharStrings', null); // placeholder
  22486. topDict.setByName('Private', null); // placeholder
  22487. cff.topDict = topDict;
  22488. var strings = new CFFStrings();
  22489. strings.add('Version 0.11'); // Version
  22490. strings.add('See original notice'); // Notice
  22491. strings.add(name); // FullName
  22492. strings.add(name); // FamilyName
  22493. strings.add('Medium'); // Weight
  22494. cff.strings = strings;
  22495. cff.globalSubrIndex = new CFFIndex();
  22496. var count = glyphs.length;
  22497. var charsetArray = [0];
  22498. var i, ii;
  22499. for (i = 0; i < count; i++) {
  22500. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  22501. // TODO: Insert the string and correctly map it. Previously it was
  22502. // thought mapping names that aren't in the standard strings to .notdef
  22503. // was fine, however in issue818 when mapping them all to .notdef the
  22504. // adieresis glyph no longer worked.
  22505. if (index == -1) {
  22506. index = 0;
  22507. }
  22508. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  22509. }
  22510. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  22511. var charStringsIndex = new CFFIndex();
  22512. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  22513. for (i = 0; i < count; i++) {
  22514. charStringsIndex.add(glyphs[i]);
  22515. }
  22516. cff.charStrings = charStringsIndex;
  22517. var privateDict = new CFFPrivateDict();
  22518. privateDict.setByName('Subrs', null); // placeholder
  22519. var fields = [
  22520. 'BlueValues',
  22521. 'OtherBlues',
  22522. 'FamilyBlues',
  22523. 'FamilyOtherBlues',
  22524. 'StemSnapH',
  22525. 'StemSnapV',
  22526. 'BlueShift',
  22527. 'BlueFuzz',
  22528. 'BlueScale',
  22529. 'LanguageGroup',
  22530. 'ExpansionFactor',
  22531. 'ForceBold',
  22532. 'StdHW',
  22533. 'StdVW'
  22534. ];
  22535. for (i = 0, ii = fields.length; i < ii; i++) {
  22536. var field = fields[i];
  22537. if (!properties.privateData.hasOwnProperty(field)) {
  22538. continue;
  22539. }
  22540. var value = properties.privateData[field];
  22541. if (isArray(value)) {
  22542. // All of the private dictionary array data in CFF must be stored as
  22543. // "delta-encoded" numbers.
  22544. for (var j = value.length - 1; j > 0; j--) {
  22545. value[j] -= value[j - 1]; // ... difference from previous value
  22546. }
  22547. }
  22548. privateDict.setByName(field, value);
  22549. }
  22550. cff.topDict.privateDict = privateDict;
  22551. var subrIndex = new CFFIndex();
  22552. for (i = 0, ii = subrs.length; i < ii; i++) {
  22553. subrIndex.add(subrs[i]);
  22554. }
  22555. privateDict.subrsIndex = subrIndex;
  22556. var compiler = new CFFCompiler(cff);
  22557. return compiler.compile();
  22558. }
  22559. };
  22560. var CFFFont = (function CFFFontClosure() {
  22561. function CFFFont(file, properties) {
  22562. this.properties = properties;
  22563. var parser = new CFFParser(file, properties);
  22564. this.cff = parser.parse();
  22565. var compiler = new CFFCompiler(this.cff);
  22566. this.seacs = this.cff.seacs;
  22567. try {
  22568. this.data = compiler.compile();
  22569. } catch (e) {
  22570. warn('Failed to compile font ' + properties.loadedName);
  22571. // There may have just been an issue with the compiler, set the data
  22572. // anyway and hope the font loaded.
  22573. this.data = file;
  22574. }
  22575. }
  22576. CFFFont.prototype = {
  22577. get numGlyphs() {
  22578. return this.cff.charStrings.count;
  22579. },
  22580. getCharset: function CFFFont_getCharset() {
  22581. return this.cff.charset.charset;
  22582. },
  22583. getGlyphMapping: function CFFFont_getGlyphMapping() {
  22584. var cff = this.cff;
  22585. var properties = this.properties;
  22586. var charsets = cff.charset.charset;
  22587. var charCodeToGlyphId;
  22588. var glyphId;
  22589. if (properties.composite) {
  22590. charCodeToGlyphId = Object.create(null);
  22591. if (cff.isCIDFont) {
  22592. // If the font is actually a CID font then we should use the charset
  22593. // to map CIDs to GIDs.
  22594. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  22595. var cidString = String.fromCharCode(charsets[glyphId]);
  22596. var charCode = properties.cMap.map.indexOf(cidString);
  22597. charCodeToGlyphId[charCode] = glyphId;
  22598. }
  22599. } else {
  22600. // If it is NOT actually a CID font then CIDs should be mapped
  22601. // directly to GIDs.
  22602. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  22603. charCodeToGlyphId[glyphId] = glyphId;
  22604. }
  22605. }
  22606. return charCodeToGlyphId;
  22607. }
  22608. var encoding = cff.encoding ? cff.encoding.encoding : null;
  22609. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  22610. return charCodeToGlyphId;
  22611. }
  22612. };
  22613. return CFFFont;
  22614. })();
  22615. var CFFParser = (function CFFParserClosure() {
  22616. var CharstringValidationData = [
  22617. null,
  22618. { id: 'hstem', min: 2, resetStack: true, stem: true },
  22619. null,
  22620. { id: 'vstem', min: 2, resetStack: true, stem: true },
  22621. { id: 'vmoveto', min: 1, resetStack: true },
  22622. { id: 'rlineto', min: 2, resetStack: true },
  22623. { id: 'hlineto', min: 1, resetStack: true },
  22624. { id: 'vlineto', min: 1, resetStack: true },
  22625. { id: 'rrcurveto', min: 6, resetStack: true },
  22626. null,
  22627. { id: 'callsubr', min: 1, undefStack: true },
  22628. { id: 'return', min: 0, undefStack: true },
  22629. null, // 12
  22630. null,
  22631. null, // endchar
  22632. null,
  22633. null,
  22634. null,
  22635. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  22636. null, // hintmask
  22637. null, // cntrmask
  22638. { id: 'rmoveto', min: 2, resetStack: true },
  22639. { id: 'hmoveto', min: 1, resetStack: true },
  22640. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  22641. { id: 'rcurveline', min: 8, resetStack: true },
  22642. { id: 'rlinecurve', min: 8, resetStack: true },
  22643. { id: 'vvcurveto', min: 4, resetStack: true },
  22644. { id: 'hhcurveto', min: 4, resetStack: true },
  22645. null, // shortint
  22646. { id: 'callgsubr', min: 1, undefStack: true },
  22647. { id: 'vhcurveto', min: 4, resetStack: true },
  22648. { id: 'hvcurveto', min: 4, resetStack: true }
  22649. ];
  22650. var CharstringValidationData12 = [
  22651. null,
  22652. null,
  22653. null,
  22654. { id: 'and', min: 2, stackDelta: -1 },
  22655. { id: 'or', min: 2, stackDelta: -1 },
  22656. { id: 'not', min: 1, stackDelta: 0 },
  22657. null,
  22658. null,
  22659. null,
  22660. { id: 'abs', min: 1, stackDelta: 0 },
  22661. { id: 'add', min: 2, stackDelta: -1,
  22662. stackFn: function stack_div(stack, index) {
  22663. stack[index - 2] = stack[index - 2] + stack[index - 1];
  22664. }
  22665. },
  22666. { id: 'sub', min: 2, stackDelta: -1,
  22667. stackFn: function stack_div(stack, index) {
  22668. stack[index - 2] = stack[index - 2] - stack[index - 1];
  22669. }
  22670. },
  22671. { id: 'div', min: 2, stackDelta: -1,
  22672. stackFn: function stack_div(stack, index) {
  22673. stack[index - 2] = stack[index - 2] / stack[index - 1];
  22674. }
  22675. },
  22676. null,
  22677. { id: 'neg', min: 1, stackDelta: 0,
  22678. stackFn: function stack_div(stack, index) {
  22679. stack[index - 1] = -stack[index - 1];
  22680. }
  22681. },
  22682. { id: 'eq', min: 2, stackDelta: -1 },
  22683. null,
  22684. null,
  22685. { id: 'drop', min: 1, stackDelta: -1 },
  22686. null,
  22687. { id: 'put', min: 2, stackDelta: -2 },
  22688. { id: 'get', min: 1, stackDelta: 0 },
  22689. { id: 'ifelse', min: 4, stackDelta: -3 },
  22690. { id: 'random', min: 0, stackDelta: 1 },
  22691. { id: 'mul', min: 2, stackDelta: -1,
  22692. stackFn: function stack_div(stack, index) {
  22693. stack[index - 2] = stack[index - 2] * stack[index - 1];
  22694. }
  22695. },
  22696. null,
  22697. { id: 'sqrt', min: 1, stackDelta: 0 },
  22698. { id: 'dup', min: 1, stackDelta: 1 },
  22699. { id: 'exch', min: 2, stackDelta: 0 },
  22700. { id: 'index', min: 2, stackDelta: 0 },
  22701. { id: 'roll', min: 3, stackDelta: -2 },
  22702. null,
  22703. null,
  22704. null,
  22705. { id: 'hflex', min: 7, resetStack: true },
  22706. { id: 'flex', min: 13, resetStack: true },
  22707. { id: 'hflex1', min: 9, resetStack: true },
  22708. { id: 'flex1', min: 11, resetStack: true }
  22709. ];
  22710. function CFFParser(file, properties) {
  22711. this.bytes = file.getBytes();
  22712. this.properties = properties;
  22713. }
  22714. CFFParser.prototype = {
  22715. parse: function CFFParser_parse() {
  22716. var properties = this.properties;
  22717. var cff = new CFF();
  22718. this.cff = cff;
  22719. // The first five sections must be in order, all the others are reached
  22720. // via offsets contained in one of the below.
  22721. var header = this.parseHeader();
  22722. var nameIndex = this.parseIndex(header.endPos);
  22723. var topDictIndex = this.parseIndex(nameIndex.endPos);
  22724. var stringIndex = this.parseIndex(topDictIndex.endPos);
  22725. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  22726. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  22727. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  22728. cff.header = header.obj;
  22729. cff.names = this.parseNameIndex(nameIndex.obj);
  22730. cff.strings = this.parseStringIndex(stringIndex.obj);
  22731. cff.topDict = topDict;
  22732. cff.globalSubrIndex = globalSubrIndex.obj;
  22733. this.parsePrivateDict(cff.topDict);
  22734. cff.isCIDFont = topDict.hasName('ROS');
  22735. var charStringOffset = topDict.getByName('CharStrings');
  22736. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  22737. cff.charStrings = charStringsAndSeacs.charStrings;
  22738. cff.seacs = charStringsAndSeacs.seacs;
  22739. var fontMatrix = topDict.getByName('FontMatrix');
  22740. if (fontMatrix) {
  22741. properties.fontMatrix = fontMatrix;
  22742. }
  22743. var fontBBox = topDict.getByName('FontBBox');
  22744. if (fontBBox) {
  22745. // adjusting ascent/descent
  22746. properties.ascent = fontBBox[3];
  22747. properties.descent = fontBBox[1];
  22748. properties.ascentScaled = true;
  22749. }
  22750. var charset, encoding;
  22751. if (cff.isCIDFont) {
  22752. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  22753. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  22754. var dictRaw = fdArrayIndex.get(i);
  22755. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  22756. cff.strings);
  22757. this.parsePrivateDict(fontDict);
  22758. cff.fdArray.push(fontDict);
  22759. }
  22760. // cid fonts don't have an encoding
  22761. encoding = null;
  22762. charset = this.parseCharsets(topDict.getByName('charset'),
  22763. cff.charStrings.count, cff.strings, true);
  22764. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  22765. cff.charStrings.count);
  22766. } else {
  22767. charset = this.parseCharsets(topDict.getByName('charset'),
  22768. cff.charStrings.count, cff.strings, false);
  22769. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  22770. properties,
  22771. cff.strings, charset.charset);
  22772. }
  22773. cff.charset = charset;
  22774. cff.encoding = encoding;
  22775. return cff;
  22776. },
  22777. parseHeader: function CFFParser_parseHeader() {
  22778. var bytes = this.bytes;
  22779. var bytesLength = bytes.length;
  22780. var offset = 0;
  22781. // Prevent an infinite loop, by checking that the offset is within the
  22782. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  22783. while (offset < bytesLength && bytes[offset] !== 1) {
  22784. ++offset;
  22785. }
  22786. if (offset >= bytesLength) {
  22787. error('Invalid CFF header');
  22788. } else if (offset !== 0) {
  22789. info('cff data is shifted');
  22790. bytes = bytes.subarray(offset);
  22791. this.bytes = bytes;
  22792. }
  22793. var major = bytes[0];
  22794. var minor = bytes[1];
  22795. var hdrSize = bytes[2];
  22796. var offSize = bytes[3];
  22797. var header = new CFFHeader(major, minor, hdrSize, offSize);
  22798. return { obj: header, endPos: hdrSize };
  22799. },
  22800. parseDict: function CFFParser_parseDict(dict) {
  22801. var pos = 0;
  22802. function parseOperand() {
  22803. var value = dict[pos++];
  22804. if (value === 30) {
  22805. return parseFloatOperand(pos);
  22806. } else if (value === 28) {
  22807. value = dict[pos++];
  22808. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  22809. return value;
  22810. } else if (value === 29) {
  22811. value = dict[pos++];
  22812. value = (value << 8) | dict[pos++];
  22813. value = (value << 8) | dict[pos++];
  22814. value = (value << 8) | dict[pos++];
  22815. return value;
  22816. } else if (value >= 32 && value <= 246) {
  22817. return value - 139;
  22818. } else if (value >= 247 && value <= 250) {
  22819. return ((value - 247) * 256) + dict[pos++] + 108;
  22820. } else if (value >= 251 && value <= 254) {
  22821. return -((value - 251) * 256) - dict[pos++] - 108;
  22822. } else {
  22823. error('255 is not a valid DICT command');
  22824. }
  22825. return -1;
  22826. }
  22827. function parseFloatOperand() {
  22828. var str = '';
  22829. var eof = 15;
  22830. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  22831. '9', '.', 'E', 'E-', null, '-'];
  22832. var length = dict.length;
  22833. while (pos < length) {
  22834. var b = dict[pos++];
  22835. var b1 = b >> 4;
  22836. var b2 = b & 15;
  22837. if (b1 == eof) {
  22838. break;
  22839. }
  22840. str += lookup[b1];
  22841. if (b2 == eof) {
  22842. break;
  22843. }
  22844. str += lookup[b2];
  22845. }
  22846. return parseFloat(str);
  22847. }
  22848. var operands = [];
  22849. var entries = [];
  22850. pos = 0;
  22851. var end = dict.length;
  22852. while (pos < end) {
  22853. var b = dict[pos];
  22854. if (b <= 21) {
  22855. if (b === 12) {
  22856. b = (b << 8) | dict[++pos];
  22857. }
  22858. entries.push([b, operands]);
  22859. operands = [];
  22860. ++pos;
  22861. } else {
  22862. operands.push(parseOperand());
  22863. }
  22864. }
  22865. return entries;
  22866. },
  22867. parseIndex: function CFFParser_parseIndex(pos) {
  22868. var cffIndex = new CFFIndex();
  22869. var bytes = this.bytes;
  22870. var count = (bytes[pos++] << 8) | bytes[pos++];
  22871. var offsets = [];
  22872. var end = pos;
  22873. var i, ii;
  22874. if (count !== 0) {
  22875. var offsetSize = bytes[pos++];
  22876. // add 1 for offset to determine size of last object
  22877. var startPos = pos + ((count + 1) * offsetSize) - 1;
  22878. for (i = 0, ii = count + 1; i < ii; ++i) {
  22879. var offset = 0;
  22880. for (var j = 0; j < offsetSize; ++j) {
  22881. offset <<= 8;
  22882. offset += bytes[pos++];
  22883. }
  22884. offsets.push(startPos + offset);
  22885. }
  22886. end = offsets[count];
  22887. }
  22888. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  22889. var offsetStart = offsets[i];
  22890. var offsetEnd = offsets[i + 1];
  22891. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  22892. }
  22893. return {obj: cffIndex, endPos: end};
  22894. },
  22895. parseNameIndex: function CFFParser_parseNameIndex(index) {
  22896. var names = [];
  22897. for (var i = 0, ii = index.count; i < ii; ++i) {
  22898. var name = index.get(i);
  22899. // OTS doesn't allow names to be over 127 characters.
  22900. var length = Math.min(name.length, 127);
  22901. var data = [];
  22902. // OTS also only permits certain characters in the name.
  22903. for (var j = 0; j < length; ++j) {
  22904. var c = name[j];
  22905. if (j === 0 && c === 0) {
  22906. data[j] = c;
  22907. continue;
  22908. }
  22909. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  22910. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  22911. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  22912. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  22913. data[j] = 95;
  22914. continue;
  22915. }
  22916. data[j] = c;
  22917. }
  22918. names.push(bytesToString(data));
  22919. }
  22920. return names;
  22921. },
  22922. parseStringIndex: function CFFParser_parseStringIndex(index) {
  22923. var strings = new CFFStrings();
  22924. for (var i = 0, ii = index.count; i < ii; ++i) {
  22925. var data = index.get(i);
  22926. strings.add(bytesToString(data));
  22927. }
  22928. return strings;
  22929. },
  22930. createDict: function CFFParser_createDict(Type, dict, strings) {
  22931. var cffDict = new Type(strings);
  22932. for (var i = 0, ii = dict.length; i < ii; ++i) {
  22933. var pair = dict[i];
  22934. var key = pair[0];
  22935. var value = pair[1];
  22936. cffDict.setByKey(key, value);
  22937. }
  22938. return cffDict;
  22939. },
  22940. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  22941. var charStrings = this.parseIndex(charStringOffset).obj;
  22942. var seacs = [];
  22943. var count = charStrings.count;
  22944. for (var i = 0; i < count; i++) {
  22945. var charstring = charStrings.get(i);
  22946. var stackSize = 0;
  22947. var stack = [];
  22948. var undefStack = true;
  22949. var hints = 0;
  22950. var valid = true;
  22951. var data = charstring;
  22952. var length = data.length;
  22953. for (var j = 0; j < length;) {
  22954. var value = data[j++];
  22955. var validationCommand = null;
  22956. if (value == 12) {
  22957. var q = data[j++];
  22958. if (q === 0) {
  22959. // The CFF specification state that the 'dotsection' command
  22960. // (12, 0) is deprecated and treated as a no-op, but all Type2
  22961. // charstrings processors should support them. Unfortunately
  22962. // the font sanitizer don't. As a workaround the sequence (12, 0)
  22963. // is replaced by a useless (0, hmoveto).
  22964. data[j - 2] = 139;
  22965. data[j - 1] = 22;
  22966. stackSize = 0;
  22967. } else {
  22968. validationCommand = CharstringValidationData12[q];
  22969. }
  22970. } else if (value === 28) { // number (16 bit)
  22971. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  22972. j += 2;
  22973. stackSize++;
  22974. } else if (value == 14) {
  22975. if (stackSize >= 4) {
  22976. stackSize -= 4;
  22977. if (SEAC_ANALYSIS_ENABLED) {
  22978. seacs[i] = stack.slice(stackSize, stackSize + 4);
  22979. valid = false;
  22980. }
  22981. }
  22982. } else if (value >= 32 && value <= 246) { // number
  22983. stack[stackSize] = value - 139;
  22984. stackSize++;
  22985. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  22986. stack[stackSize] = (value < 251 ?
  22987. ((value - 247) << 8) + data[j] + 108 :
  22988. -((value - 251) << 8) - data[j] - 108);
  22989. j++;
  22990. stackSize++;
  22991. } else if (value == 255) { // number (32 bit)
  22992. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  22993. (data[j + 2] << 8) | data[j + 3]) / 65536;
  22994. j += 4;
  22995. stackSize++;
  22996. } else if (value == 19 || value == 20) {
  22997. hints += stackSize >> 1;
  22998. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  22999. stackSize = 0;
  23000. } else {
  23001. validationCommand = CharstringValidationData[value];
  23002. }
  23003. if (validationCommand) {
  23004. if (validationCommand.stem) {
  23005. hints += stackSize >> 1;
  23006. }
  23007. if ('min' in validationCommand) {
  23008. if (!undefStack && stackSize < validationCommand.min) {
  23009. warn('Not enough parameters for ' + validationCommand.id +
  23010. '; actual: ' + stackSize +
  23011. ', expected: ' + validationCommand.min);
  23012. valid = false;
  23013. break;
  23014. }
  23015. }
  23016. if ('stackDelta' in validationCommand) {
  23017. if ('stackFn' in validationCommand) {
  23018. validationCommand.stackFn(stack, stackSize);
  23019. }
  23020. stackSize += validationCommand.stackDelta;
  23021. } else if (validationCommand.resetStack) {
  23022. stackSize = 0;
  23023. undefStack = false;
  23024. } else if (validationCommand.undefStack) {
  23025. stackSize = 0;
  23026. undefStack = true;
  23027. }
  23028. }
  23029. }
  23030. if (!valid) {
  23031. // resetting invalid charstring to single 'endchar'
  23032. charStrings.set(i, new Uint8Array([14]));
  23033. }
  23034. }
  23035. return { charStrings: charStrings, seacs: seacs };
  23036. },
  23037. emptyPrivateDictionary:
  23038. function CFFParser_emptyPrivateDictionary(parentDict) {
  23039. var privateDict = this.createDict(CFFPrivateDict, [],
  23040. parentDict.strings);
  23041. parentDict.setByKey(18, [0, 0]);
  23042. parentDict.privateDict = privateDict;
  23043. },
  23044. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  23045. // no private dict, do nothing
  23046. if (!parentDict.hasName('Private')) {
  23047. this.emptyPrivateDictionary(parentDict);
  23048. return;
  23049. }
  23050. var privateOffset = parentDict.getByName('Private');
  23051. // make sure the params are formatted correctly
  23052. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  23053. parentDict.removeByName('Private');
  23054. return;
  23055. }
  23056. var size = privateOffset[0];
  23057. var offset = privateOffset[1];
  23058. // remove empty dicts or ones that refer to invalid location
  23059. if (size === 0 || offset >= this.bytes.length) {
  23060. this.emptyPrivateDictionary(parentDict);
  23061. return;
  23062. }
  23063. var privateDictEnd = offset + size;
  23064. var dictData = this.bytes.subarray(offset, privateDictEnd);
  23065. var dict = this.parseDict(dictData);
  23066. var privateDict = this.createDict(CFFPrivateDict, dict,
  23067. parentDict.strings);
  23068. parentDict.privateDict = privateDict;
  23069. // Parse the Subrs index also since it's relative to the private dict.
  23070. if (!privateDict.getByName('Subrs')) {
  23071. return;
  23072. }
  23073. var subrsOffset = privateDict.getByName('Subrs');
  23074. var relativeOffset = offset + subrsOffset;
  23075. // Validate the offset.
  23076. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  23077. this.emptyPrivateDictionary(parentDict);
  23078. return;
  23079. }
  23080. var subrsIndex = this.parseIndex(relativeOffset);
  23081. privateDict.subrsIndex = subrsIndex.obj;
  23082. },
  23083. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  23084. if (pos === 0) {
  23085. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  23086. ISOAdobeCharset);
  23087. } else if (pos == 1) {
  23088. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  23089. ExpertCharset);
  23090. } else if (pos == 2) {
  23091. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  23092. ExpertSubsetCharset);
  23093. }
  23094. var bytes = this.bytes;
  23095. var start = pos;
  23096. var format = bytes[pos++];
  23097. var charset = ['.notdef'];
  23098. var id, count, i;
  23099. // subtract 1 for the .notdef glyph
  23100. length -= 1;
  23101. switch (format) {
  23102. case 0:
  23103. for (i = 0; i < length; i++) {
  23104. id = (bytes[pos++] << 8) | bytes[pos++];
  23105. charset.push(cid ? id : strings.get(id));
  23106. }
  23107. break;
  23108. case 1:
  23109. while (charset.length <= length) {
  23110. id = (bytes[pos++] << 8) | bytes[pos++];
  23111. count = bytes[pos++];
  23112. for (i = 0; i <= count; i++) {
  23113. charset.push(cid ? id++ : strings.get(id++));
  23114. }
  23115. }
  23116. break;
  23117. case 2:
  23118. while (charset.length <= length) {
  23119. id = (bytes[pos++] << 8) | bytes[pos++];
  23120. count = (bytes[pos++] << 8) | bytes[pos++];
  23121. for (i = 0; i <= count; i++) {
  23122. charset.push(cid ? id++ : strings.get(id++));
  23123. }
  23124. }
  23125. break;
  23126. default:
  23127. error('Unknown charset format');
  23128. }
  23129. // Raw won't be needed if we actually compile the charset.
  23130. var end = pos;
  23131. var raw = bytes.subarray(start, end);
  23132. return new CFFCharset(false, format, charset, raw);
  23133. },
  23134. parseEncoding: function CFFParser_parseEncoding(pos,
  23135. properties,
  23136. strings,
  23137. charset) {
  23138. var encoding = {};
  23139. var bytes = this.bytes;
  23140. var predefined = false;
  23141. var hasSupplement = false;
  23142. var format, i, ii;
  23143. var raw = null;
  23144. function readSupplement() {
  23145. var supplementsCount = bytes[pos++];
  23146. for (i = 0; i < supplementsCount; i++) {
  23147. var code = bytes[pos++];
  23148. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  23149. encoding[code] = charset.indexOf(strings.get(sid));
  23150. }
  23151. }
  23152. if (pos === 0 || pos == 1) {
  23153. predefined = true;
  23154. format = pos;
  23155. var baseEncoding = pos ? Encodings.ExpertEncoding :
  23156. Encodings.StandardEncoding;
  23157. for (i = 0, ii = charset.length; i < ii; i++) {
  23158. var index = baseEncoding.indexOf(charset[i]);
  23159. if (index != -1) {
  23160. encoding[index] = i;
  23161. }
  23162. }
  23163. } else {
  23164. var dataStart = pos;
  23165. format = bytes[pos++];
  23166. switch (format & 0x7f) {
  23167. case 0:
  23168. var glyphsCount = bytes[pos++];
  23169. for (i = 1; i <= glyphsCount; i++) {
  23170. encoding[bytes[pos++]] = i;
  23171. }
  23172. break;
  23173. case 1:
  23174. var rangesCount = bytes[pos++];
  23175. var gid = 1;
  23176. for (i = 0; i < rangesCount; i++) {
  23177. var start = bytes[pos++];
  23178. var left = bytes[pos++];
  23179. for (var j = start; j <= start + left; j++) {
  23180. encoding[j] = gid++;
  23181. }
  23182. }
  23183. break;
  23184. default:
  23185. error('Unknow encoding format: ' + format + ' in CFF');
  23186. break;
  23187. }
  23188. var dataEnd = pos;
  23189. if (format & 0x80) {
  23190. // The font sanitizer does not support CFF encoding with a
  23191. // supplement, since the encoding is not really used to map
  23192. // between gid to glyph, let's overwrite what is declared in
  23193. // the top dictionary to let the sanitizer think the font use
  23194. // StandardEncoding, that's a lie but that's ok.
  23195. bytes[dataStart] &= 0x7f;
  23196. readSupplement();
  23197. hasSupplement = true;
  23198. }
  23199. raw = bytes.subarray(dataStart, dataEnd);
  23200. }
  23201. format = format & 0x7f;
  23202. return new CFFEncoding(predefined, format, encoding, raw);
  23203. },
  23204. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  23205. var start = pos;
  23206. var bytes = this.bytes;
  23207. var format = bytes[pos++];
  23208. var fdSelect = [];
  23209. var i;
  23210. switch (format) {
  23211. case 0:
  23212. for (i = 0; i < length; ++i) {
  23213. var id = bytes[pos++];
  23214. fdSelect.push(id);
  23215. }
  23216. break;
  23217. case 3:
  23218. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  23219. for (i = 0; i < rangesCount; ++i) {
  23220. var first = (bytes[pos++] << 8) | bytes[pos++];
  23221. var fdIndex = bytes[pos++];
  23222. var next = (bytes[pos] << 8) | bytes[pos + 1];
  23223. for (var j = first; j < next; ++j) {
  23224. fdSelect.push(fdIndex);
  23225. }
  23226. }
  23227. // Advance past the sentinel(next).
  23228. pos += 2;
  23229. break;
  23230. default:
  23231. error('Unknown fdselect format ' + format);
  23232. break;
  23233. }
  23234. var end = pos;
  23235. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  23236. }
  23237. };
  23238. return CFFParser;
  23239. })();
  23240. // Compact Font Format
  23241. var CFF = (function CFFClosure() {
  23242. function CFF() {
  23243. this.header = null;
  23244. this.names = [];
  23245. this.topDict = null;
  23246. this.strings = new CFFStrings();
  23247. this.globalSubrIndex = null;
  23248. // The following could really be per font, but since we only have one font
  23249. // store them here.
  23250. this.encoding = null;
  23251. this.charset = null;
  23252. this.charStrings = null;
  23253. this.fdArray = [];
  23254. this.fdSelect = null;
  23255. this.isCIDFont = false;
  23256. }
  23257. return CFF;
  23258. })();
  23259. var CFFHeader = (function CFFHeaderClosure() {
  23260. function CFFHeader(major, minor, hdrSize, offSize) {
  23261. this.major = major;
  23262. this.minor = minor;
  23263. this.hdrSize = hdrSize;
  23264. this.offSize = offSize;
  23265. }
  23266. return CFFHeader;
  23267. })();
  23268. var CFFStrings = (function CFFStringsClosure() {
  23269. function CFFStrings() {
  23270. this.strings = [];
  23271. }
  23272. CFFStrings.prototype = {
  23273. get: function CFFStrings_get(index) {
  23274. if (index >= 0 && index <= 390) {
  23275. return CFFStandardStrings[index];
  23276. }
  23277. if (index - 391 <= this.strings.length) {
  23278. return this.strings[index - 391];
  23279. }
  23280. return CFFStandardStrings[0];
  23281. },
  23282. add: function CFFStrings_add(value) {
  23283. this.strings.push(value);
  23284. },
  23285. get count() {
  23286. return this.strings.length;
  23287. }
  23288. };
  23289. return CFFStrings;
  23290. })();
  23291. var CFFIndex = (function CFFIndexClosure() {
  23292. function CFFIndex() {
  23293. this.objects = [];
  23294. this.length = 0;
  23295. }
  23296. CFFIndex.prototype = {
  23297. add: function CFFIndex_add(data) {
  23298. this.length += data.length;
  23299. this.objects.push(data);
  23300. },
  23301. set: function CFFIndex_set(index, data) {
  23302. this.length += data.length - this.objects[index].length;
  23303. this.objects[index] = data;
  23304. },
  23305. get: function CFFIndex_get(index) {
  23306. return this.objects[index];
  23307. },
  23308. get count() {
  23309. return this.objects.length;
  23310. }
  23311. };
  23312. return CFFIndex;
  23313. })();
  23314. var CFFDict = (function CFFDictClosure() {
  23315. function CFFDict(tables, strings) {
  23316. this.keyToNameMap = tables.keyToNameMap;
  23317. this.nameToKeyMap = tables.nameToKeyMap;
  23318. this.defaults = tables.defaults;
  23319. this.types = tables.types;
  23320. this.opcodes = tables.opcodes;
  23321. this.order = tables.order;
  23322. this.strings = strings;
  23323. this.values = {};
  23324. }
  23325. CFFDict.prototype = {
  23326. // value should always be an array
  23327. setByKey: function CFFDict_setByKey(key, value) {
  23328. if (!(key in this.keyToNameMap)) {
  23329. return false;
  23330. }
  23331. // ignore empty values
  23332. if (value.length === 0) {
  23333. return true;
  23334. }
  23335. var type = this.types[key];
  23336. // remove the array wrapping these types of values
  23337. if (type === 'num' || type === 'sid' || type === 'offset') {
  23338. value = value[0];
  23339. }
  23340. this.values[key] = value;
  23341. return true;
  23342. },
  23343. setByName: function CFFDict_setByName(name, value) {
  23344. if (!(name in this.nameToKeyMap)) {
  23345. error('Invalid dictionary name "' + name + '"');
  23346. }
  23347. this.values[this.nameToKeyMap[name]] = value;
  23348. },
  23349. hasName: function CFFDict_hasName(name) {
  23350. return this.nameToKeyMap[name] in this.values;
  23351. },
  23352. getByName: function CFFDict_getByName(name) {
  23353. if (!(name in this.nameToKeyMap)) {
  23354. error('Invalid dictionary name "' + name + '"');
  23355. }
  23356. var key = this.nameToKeyMap[name];
  23357. if (!(key in this.values)) {
  23358. return this.defaults[key];
  23359. }
  23360. return this.values[key];
  23361. },
  23362. removeByName: function CFFDict_removeByName(name) {
  23363. delete this.values[this.nameToKeyMap[name]];
  23364. }
  23365. };
  23366. CFFDict.createTables = function CFFDict_createTables(layout) {
  23367. var tables = {
  23368. keyToNameMap: {},
  23369. nameToKeyMap: {},
  23370. defaults: {},
  23371. types: {},
  23372. opcodes: {},
  23373. order: []
  23374. };
  23375. for (var i = 0, ii = layout.length; i < ii; ++i) {
  23376. var entry = layout[i];
  23377. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  23378. tables.keyToNameMap[key] = entry[1];
  23379. tables.nameToKeyMap[entry[1]] = key;
  23380. tables.types[key] = entry[2];
  23381. tables.defaults[key] = entry[3];
  23382. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  23383. tables.order.push(key);
  23384. }
  23385. return tables;
  23386. };
  23387. return CFFDict;
  23388. })();
  23389. var CFFTopDict = (function CFFTopDictClosure() {
  23390. var layout = [
  23391. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  23392. [[12, 20], 'SyntheticBase', 'num', null],
  23393. [0, 'version', 'sid', null],
  23394. [1, 'Notice', 'sid', null],
  23395. [[12, 0], 'Copyright', 'sid', null],
  23396. [2, 'FullName', 'sid', null],
  23397. [3, 'FamilyName', 'sid', null],
  23398. [4, 'Weight', 'sid', null],
  23399. [[12, 1], 'isFixedPitch', 'num', 0],
  23400. [[12, 2], 'ItalicAngle', 'num', 0],
  23401. [[12, 3], 'UnderlinePosition', 'num', -100],
  23402. [[12, 4], 'UnderlineThickness', 'num', 50],
  23403. [[12, 5], 'PaintType', 'num', 0],
  23404. [[12, 6], 'CharstringType', 'num', 2],
  23405. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  23406. [0.001, 0, 0, 0.001, 0, 0]],
  23407. [13, 'UniqueID', 'num', null],
  23408. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  23409. [[12, 8], 'StrokeWidth', 'num', 0],
  23410. [14, 'XUID', 'array', null],
  23411. [15, 'charset', 'offset', 0],
  23412. [16, 'Encoding', 'offset', 0],
  23413. [17, 'CharStrings', 'offset', 0],
  23414. [18, 'Private', ['offset', 'offset'], null],
  23415. [[12, 21], 'PostScript', 'sid', null],
  23416. [[12, 22], 'BaseFontName', 'sid', null],
  23417. [[12, 23], 'BaseFontBlend', 'delta', null],
  23418. [[12, 31], 'CIDFontVersion', 'num', 0],
  23419. [[12, 32], 'CIDFontRevision', 'num', 0],
  23420. [[12, 33], 'CIDFontType', 'num', 0],
  23421. [[12, 34], 'CIDCount', 'num', 8720],
  23422. [[12, 35], 'UIDBase', 'num', null],
  23423. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  23424. // before FDArray.
  23425. [[12, 37], 'FDSelect', 'offset', null],
  23426. [[12, 36], 'FDArray', 'offset', null],
  23427. [[12, 38], 'FontName', 'sid', null]
  23428. ];
  23429. var tables = null;
  23430. function CFFTopDict(strings) {
  23431. if (tables === null) {
  23432. tables = CFFDict.createTables(layout);
  23433. }
  23434. CFFDict.call(this, tables, strings);
  23435. this.privateDict = null;
  23436. }
  23437. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  23438. return CFFTopDict;
  23439. })();
  23440. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  23441. var layout = [
  23442. [6, 'BlueValues', 'delta', null],
  23443. [7, 'OtherBlues', 'delta', null],
  23444. [8, 'FamilyBlues', 'delta', null],
  23445. [9, 'FamilyOtherBlues', 'delta', null],
  23446. [[12, 9], 'BlueScale', 'num', 0.039625],
  23447. [[12, 10], 'BlueShift', 'num', 7],
  23448. [[12, 11], 'BlueFuzz', 'num', 1],
  23449. [10, 'StdHW', 'num', null],
  23450. [11, 'StdVW', 'num', null],
  23451. [[12, 12], 'StemSnapH', 'delta', null],
  23452. [[12, 13], 'StemSnapV', 'delta', null],
  23453. [[12, 14], 'ForceBold', 'num', 0],
  23454. [[12, 17], 'LanguageGroup', 'num', 0],
  23455. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  23456. [[12, 19], 'initialRandomSeed', 'num', 0],
  23457. [20, 'defaultWidthX', 'num', 0],
  23458. [21, 'nominalWidthX', 'num', 0],
  23459. [19, 'Subrs', 'offset', null]
  23460. ];
  23461. var tables = null;
  23462. function CFFPrivateDict(strings) {
  23463. if (tables === null) {
  23464. tables = CFFDict.createTables(layout);
  23465. }
  23466. CFFDict.call(this, tables, strings);
  23467. this.subrsIndex = null;
  23468. }
  23469. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  23470. return CFFPrivateDict;
  23471. })();
  23472. var CFFCharsetPredefinedTypes = {
  23473. ISO_ADOBE: 0,
  23474. EXPERT: 1,
  23475. EXPERT_SUBSET: 2
  23476. };
  23477. var CFFCharset = (function CFFCharsetClosure() {
  23478. function CFFCharset(predefined, format, charset, raw) {
  23479. this.predefined = predefined;
  23480. this.format = format;
  23481. this.charset = charset;
  23482. this.raw = raw;
  23483. }
  23484. return CFFCharset;
  23485. })();
  23486. var CFFEncoding = (function CFFEncodingClosure() {
  23487. function CFFEncoding(predefined, format, encoding, raw) {
  23488. this.predefined = predefined;
  23489. this.format = format;
  23490. this.encoding = encoding;
  23491. this.raw = raw;
  23492. }
  23493. return CFFEncoding;
  23494. })();
  23495. var CFFFDSelect = (function CFFFDSelectClosure() {
  23496. function CFFFDSelect(fdSelect, raw) {
  23497. this.fdSelect = fdSelect;
  23498. this.raw = raw;
  23499. }
  23500. return CFFFDSelect;
  23501. })();
  23502. // Helper class to keep track of where an offset is within the data and helps
  23503. // filling in that offset once it's known.
  23504. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  23505. function CFFOffsetTracker() {
  23506. this.offsets = {};
  23507. }
  23508. CFFOffsetTracker.prototype = {
  23509. isTracking: function CFFOffsetTracker_isTracking(key) {
  23510. return key in this.offsets;
  23511. },
  23512. track: function CFFOffsetTracker_track(key, location) {
  23513. if (key in this.offsets) {
  23514. error('Already tracking location of ' + key);
  23515. }
  23516. this.offsets[key] = location;
  23517. },
  23518. offset: function CFFOffsetTracker_offset(value) {
  23519. for (var key in this.offsets) {
  23520. this.offsets[key] += value;
  23521. }
  23522. },
  23523. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  23524. values,
  23525. output) {
  23526. if (!(key in this.offsets)) {
  23527. error('Not tracking location of ' + key);
  23528. }
  23529. var data = output.data;
  23530. var dataOffset = this.offsets[key];
  23531. var size = 5;
  23532. for (var i = 0, ii = values.length; i < ii; ++i) {
  23533. var offset0 = i * size + dataOffset;
  23534. var offset1 = offset0 + 1;
  23535. var offset2 = offset0 + 2;
  23536. var offset3 = offset0 + 3;
  23537. var offset4 = offset0 + 4;
  23538. // It's easy to screw up offsets so perform this sanity check.
  23539. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  23540. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  23541. error('writing to an offset that is not empty');
  23542. }
  23543. var value = values[i];
  23544. data[offset0] = 0x1d;
  23545. data[offset1] = (value >> 24) & 0xFF;
  23546. data[offset2] = (value >> 16) & 0xFF;
  23547. data[offset3] = (value >> 8) & 0xFF;
  23548. data[offset4] = value & 0xFF;
  23549. }
  23550. }
  23551. };
  23552. return CFFOffsetTracker;
  23553. })();
  23554. // Takes a CFF and converts it to the binary representation.
  23555. var CFFCompiler = (function CFFCompilerClosure() {
  23556. function CFFCompiler(cff) {
  23557. this.cff = cff;
  23558. }
  23559. CFFCompiler.prototype = {
  23560. compile: function CFFCompiler_compile() {
  23561. var cff = this.cff;
  23562. var output = {
  23563. data: [],
  23564. length: 0,
  23565. add: function CFFCompiler_add(data) {
  23566. this.data = this.data.concat(data);
  23567. this.length = this.data.length;
  23568. }
  23569. };
  23570. // Compile the five entries that must be in order.
  23571. var header = this.compileHeader(cff.header);
  23572. output.add(header);
  23573. var nameIndex = this.compileNameIndex(cff.names);
  23574. output.add(nameIndex);
  23575. if (cff.isCIDFont) {
  23576. // The spec is unclear on how font matrices should relate to each other
  23577. // when there is one in the main top dict and the sub top dicts.
  23578. // Windows handles this differently than linux and osx so we have to
  23579. // normalize to work on all.
  23580. // Rules based off of some mailing list discussions:
  23581. // - If main font has a matrix and subfont doesn't, use the main matrix.
  23582. // - If no main font matrix and there is a subfont matrix, use the
  23583. // subfont matrix.
  23584. // - If both have matrices, concat together.
  23585. // - If neither have matrices, use default.
  23586. // To make this work on all platforms we move the top matrix into each
  23587. // sub top dict and concat if necessary.
  23588. if (cff.topDict.hasName('FontMatrix')) {
  23589. var base = cff.topDict.getByName('FontMatrix');
  23590. cff.topDict.removeByName('FontMatrix');
  23591. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  23592. var subDict = cff.fdArray[i];
  23593. var matrix = base.slice(0);
  23594. if (subDict.hasName('FontMatrix')) {
  23595. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  23596. }
  23597. subDict.setByName('FontMatrix', matrix);
  23598. }
  23599. }
  23600. }
  23601. var compiled = this.compileTopDicts([cff.topDict],
  23602. output.length,
  23603. cff.isCIDFont);
  23604. output.add(compiled.output);
  23605. var topDictTracker = compiled.trackers[0];
  23606. var stringIndex = this.compileStringIndex(cff.strings.strings);
  23607. output.add(stringIndex);
  23608. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  23609. output.add(globalSubrIndex);
  23610. // Now start on the other entries that have no specfic order.
  23611. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  23612. if (cff.encoding.predefined) {
  23613. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  23614. output);
  23615. } else {
  23616. var encoding = this.compileEncoding(cff.encoding);
  23617. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  23618. output.add(encoding);
  23619. }
  23620. }
  23621. if (cff.charset && cff.topDict.hasName('charset')) {
  23622. if (cff.charset.predefined) {
  23623. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  23624. output);
  23625. } else {
  23626. var charset = this.compileCharset(cff.charset);
  23627. topDictTracker.setEntryLocation('charset', [output.length], output);
  23628. output.add(charset);
  23629. }
  23630. }
  23631. var charStrings = this.compileCharStrings(cff.charStrings);
  23632. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  23633. output.add(charStrings);
  23634. if (cff.isCIDFont) {
  23635. // For some reason FDSelect must be in front of FDArray on windows. OSX
  23636. // and linux don't seem to care.
  23637. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  23638. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  23639. output.add(fdSelect);
  23640. // It is unclear if the sub font dictionary can have CID related
  23641. // dictionary keys, but the sanitizer doesn't like them so remove them.
  23642. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  23643. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  23644. output.add(compiled.output);
  23645. var fontDictTrackers = compiled.trackers;
  23646. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  23647. }
  23648. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  23649. // If the font data ends with INDEX whose object data is zero-length,
  23650. // the sanitizer will bail out. Add a dummy byte to avoid that.
  23651. output.add([0]);
  23652. return output.data;
  23653. },
  23654. encodeNumber: function CFFCompiler_encodeNumber(value) {
  23655. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  23656. return this.encodeInteger(value);
  23657. } else {
  23658. return this.encodeFloat(value);
  23659. }
  23660. },
  23661. encodeFloat: function CFFCompiler_encodeFloat(num) {
  23662. var value = num.toString();
  23663. // rounding inaccurate doubles
  23664. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  23665. if (m) {
  23666. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  23667. value = (Math.round(num * epsilon) / epsilon).toString();
  23668. }
  23669. var nibbles = '';
  23670. var i, ii;
  23671. for (i = 0, ii = value.length; i < ii; ++i) {
  23672. var a = value[i];
  23673. if (a === 'e') {
  23674. nibbles += value[++i] === '-' ? 'c' : 'b';
  23675. } else if (a === '.') {
  23676. nibbles += 'a';
  23677. } else if (a === '-') {
  23678. nibbles += 'e';
  23679. } else {
  23680. nibbles += a;
  23681. }
  23682. }
  23683. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  23684. var out = [30];
  23685. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  23686. out.push(parseInt(nibbles.substr(i, 2), 16));
  23687. }
  23688. return out;
  23689. },
  23690. encodeInteger: function CFFCompiler_encodeInteger(value) {
  23691. var code;
  23692. if (value >= -107 && value <= 107) {
  23693. code = [value + 139];
  23694. } else if (value >= 108 && value <= 1131) {
  23695. value = [value - 108];
  23696. code = [(value >> 8) + 247, value & 0xFF];
  23697. } else if (value >= -1131 && value <= -108) {
  23698. value = -value - 108;
  23699. code = [(value >> 8) + 251, value & 0xFF];
  23700. } else if (value >= -32768 && value <= 32767) {
  23701. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  23702. } else {
  23703. code = [0x1d,
  23704. (value >> 24) & 0xFF,
  23705. (value >> 16) & 0xFF,
  23706. (value >> 8) & 0xFF,
  23707. value & 0xFF];
  23708. }
  23709. return code;
  23710. },
  23711. compileHeader: function CFFCompiler_compileHeader(header) {
  23712. return [
  23713. header.major,
  23714. header.minor,
  23715. header.hdrSize,
  23716. header.offSize
  23717. ];
  23718. },
  23719. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  23720. var nameIndex = new CFFIndex();
  23721. for (var i = 0, ii = names.length; i < ii; ++i) {
  23722. nameIndex.add(stringToArray(names[i]));
  23723. }
  23724. return this.compileIndex(nameIndex);
  23725. },
  23726. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  23727. length,
  23728. removeCidKeys) {
  23729. var fontDictTrackers = [];
  23730. var fdArrayIndex = new CFFIndex();
  23731. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23732. var fontDict = dicts[i];
  23733. if (removeCidKeys) {
  23734. fontDict.removeByName('CIDFontVersion');
  23735. fontDict.removeByName('CIDFontRevision');
  23736. fontDict.removeByName('CIDFontType');
  23737. fontDict.removeByName('CIDCount');
  23738. fontDict.removeByName('UIDBase');
  23739. }
  23740. var fontDictTracker = new CFFOffsetTracker();
  23741. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  23742. fontDictTrackers.push(fontDictTracker);
  23743. fdArrayIndex.add(fontDictData);
  23744. fontDictTracker.offset(length);
  23745. }
  23746. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  23747. return {
  23748. trackers: fontDictTrackers,
  23749. output: fdArrayIndex
  23750. };
  23751. },
  23752. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  23753. trackers,
  23754. output) {
  23755. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23756. var fontDict = dicts[i];
  23757. assert(fontDict.privateDict && fontDict.hasName('Private'),
  23758. 'There must be an private dictionary.');
  23759. var privateDict = fontDict.privateDict;
  23760. var privateDictTracker = new CFFOffsetTracker();
  23761. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  23762. var outputLength = output.length;
  23763. privateDictTracker.offset(outputLength);
  23764. if (!privateDictData.length) {
  23765. // The private dictionary was empty, set the output length to zero to
  23766. // ensure the offset length isn't out of bounds in the eyes of the
  23767. // sanitizer.
  23768. outputLength = 0;
  23769. }
  23770. trackers[i].setEntryLocation('Private',
  23771. [privateDictData.length, outputLength],
  23772. output);
  23773. output.add(privateDictData);
  23774. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  23775. var subrs = this.compileIndex(privateDict.subrsIndex);
  23776. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  23777. output);
  23778. output.add(subrs);
  23779. }
  23780. }
  23781. },
  23782. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  23783. var out = [];
  23784. // The dictionary keys must be in a certain order.
  23785. var order = dict.order;
  23786. for (var i = 0; i < order.length; ++i) {
  23787. var key = order[i];
  23788. if (!(key in dict.values)) {
  23789. continue;
  23790. }
  23791. var values = dict.values[key];
  23792. var types = dict.types[key];
  23793. if (!isArray(types)) {
  23794. types = [types];
  23795. }
  23796. if (!isArray(values)) {
  23797. values = [values];
  23798. }
  23799. // Remove any empty dict values.
  23800. if (values.length === 0) {
  23801. continue;
  23802. }
  23803. for (var j = 0, jj = types.length; j < jj; ++j) {
  23804. var type = types[j];
  23805. var value = values[j];
  23806. switch (type) {
  23807. case 'num':
  23808. case 'sid':
  23809. out = out.concat(this.encodeNumber(value));
  23810. break;
  23811. case 'offset':
  23812. // For offsets we just insert a 32bit integer so we don't have to
  23813. // deal with figuring out the length of the offset when it gets
  23814. // replaced later on by the compiler.
  23815. var name = dict.keyToNameMap[key];
  23816. // Some offsets have the offset and the length, so just record the
  23817. // position of the first one.
  23818. if (!offsetTracker.isTracking(name)) {
  23819. offsetTracker.track(name, out.length);
  23820. }
  23821. out = out.concat([0x1d, 0, 0, 0, 0]);
  23822. break;
  23823. case 'array':
  23824. case 'delta':
  23825. out = out.concat(this.encodeNumber(value));
  23826. for (var k = 1, kk = values.length; k < kk; ++k) {
  23827. out = out.concat(this.encodeNumber(values[k]));
  23828. }
  23829. break;
  23830. default:
  23831. error('Unknown data type of ' + type);
  23832. break;
  23833. }
  23834. }
  23835. out = out.concat(dict.opcodes[key]);
  23836. }
  23837. return out;
  23838. },
  23839. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  23840. var stringIndex = new CFFIndex();
  23841. for (var i = 0, ii = strings.length; i < ii; ++i) {
  23842. stringIndex.add(stringToArray(strings[i]));
  23843. }
  23844. return this.compileIndex(stringIndex);
  23845. },
  23846. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  23847. var globalSubrIndex = this.cff.globalSubrIndex;
  23848. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  23849. },
  23850. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  23851. return this.compileIndex(charStrings);
  23852. },
  23853. compileCharset: function CFFCompiler_compileCharset(charset) {
  23854. return this.compileTypedArray(charset.raw);
  23855. },
  23856. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  23857. return this.compileTypedArray(encoding.raw);
  23858. },
  23859. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  23860. return this.compileTypedArray(fdSelect);
  23861. },
  23862. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  23863. var out = [];
  23864. for (var i = 0, ii = data.length; i < ii; ++i) {
  23865. out[i] = data[i];
  23866. }
  23867. return out;
  23868. },
  23869. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  23870. trackers = trackers || [];
  23871. var objects = index.objects;
  23872. // First 2 bytes contains the number of objects contained into this index
  23873. var count = objects.length;
  23874. // If there is no object, just create an index. This technically
  23875. // should just be [0, 0] but OTS has an issue with that.
  23876. if (count === 0) {
  23877. return [0, 0, 0];
  23878. }
  23879. var data = [(count >> 8) & 0xFF, count & 0xff];
  23880. var lastOffset = 1, i;
  23881. for (i = 0; i < count; ++i) {
  23882. lastOffset += objects[i].length;
  23883. }
  23884. var offsetSize;
  23885. if (lastOffset < 0x100) {
  23886. offsetSize = 1;
  23887. } else if (lastOffset < 0x10000) {
  23888. offsetSize = 2;
  23889. } else if (lastOffset < 0x1000000) {
  23890. offsetSize = 3;
  23891. } else {
  23892. offsetSize = 4;
  23893. }
  23894. // Next byte contains the offset size use to reference object in the file
  23895. data.push(offsetSize);
  23896. // Add another offset after this one because we need a new offset
  23897. var relativeOffset = 1;
  23898. for (i = 0; i < count + 1; i++) {
  23899. if (offsetSize === 1) {
  23900. data.push(relativeOffset & 0xFF);
  23901. } else if (offsetSize === 2) {
  23902. data.push((relativeOffset >> 8) & 0xFF,
  23903. relativeOffset & 0xFF);
  23904. } else if (offsetSize === 3) {
  23905. data.push((relativeOffset >> 16) & 0xFF,
  23906. (relativeOffset >> 8) & 0xFF,
  23907. relativeOffset & 0xFF);
  23908. } else {
  23909. data.push((relativeOffset >>> 24) & 0xFF,
  23910. (relativeOffset >> 16) & 0xFF,
  23911. (relativeOffset >> 8) & 0xFF,
  23912. relativeOffset & 0xFF);
  23913. }
  23914. if (objects[i]) {
  23915. relativeOffset += objects[i].length;
  23916. }
  23917. }
  23918. for (i = 0; i < count; i++) {
  23919. // Notify the tracker where the object will be offset in the data.
  23920. if (trackers[i]) {
  23921. trackers[i].offset(data.length);
  23922. }
  23923. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  23924. data.push(objects[i][j]);
  23925. }
  23926. }
  23927. return data;
  23928. }
  23929. };
  23930. return CFFCompiler;
  23931. })();
  23932. // Workaround for seac on Windows.
  23933. (function checkSeacSupport() {
  23934. if (/Windows/.test(navigator.userAgent)) {
  23935. SEAC_ANALYSIS_ENABLED = true;
  23936. }
  23937. })();
  23938. // Workaround for Private Use Area characters in Chrome on Windows
  23939. // http://code.google.com/p/chromium/issues/detail?id=122465
  23940. // https://github.com/mozilla/pdf.js/issues/1689
  23941. (function checkChromeWindows() {
  23942. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  23943. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  23944. }
  23945. })();
  23946. var FontRendererFactory = (function FontRendererFactoryClosure() {
  23947. function getLong(data, offset) {
  23948. return (data[offset] << 24) | (data[offset + 1] << 16) |
  23949. (data[offset + 2] << 8) | data[offset + 3];
  23950. }
  23951. function getUshort(data, offset) {
  23952. return (data[offset] << 8) | data[offset + 1];
  23953. }
  23954. function parseCmap(data, start, end) {
  23955. var offset = (getUshort(data, start + 2) === 1 ?
  23956. getLong(data, start + 8) : getLong(data, start + 16));
  23957. var format = getUshort(data, start + offset);
  23958. var length, ranges, p, i;
  23959. if (format === 4) {
  23960. length = getUshort(data, start + offset + 2);
  23961. var segCount = getUshort(data, start + offset + 6) >> 1;
  23962. p = start + offset + 14;
  23963. ranges = [];
  23964. for (i = 0; i < segCount; i++, p += 2) {
  23965. ranges[i] = {end: getUshort(data, p)};
  23966. }
  23967. p += 2;
  23968. for (i = 0; i < segCount; i++, p += 2) {
  23969. ranges[i].start = getUshort(data, p);
  23970. }
  23971. for (i = 0; i < segCount; i++, p += 2) {
  23972. ranges[i].idDelta = getUshort(data, p);
  23973. }
  23974. for (i = 0; i < segCount; i++, p += 2) {
  23975. var idOffset = getUshort(data, p);
  23976. if (idOffset === 0) {
  23977. continue;
  23978. }
  23979. ranges[i].ids = [];
  23980. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  23981. ranges[i].ids[j] = getUshort(data, p + idOffset);
  23982. idOffset += 2;
  23983. }
  23984. }
  23985. return ranges;
  23986. } else if (format === 12) {
  23987. length = getLong(data, start + offset + 4);
  23988. var groups = getLong(data, start + offset + 12);
  23989. p = start + offset + 16;
  23990. ranges = [];
  23991. for (i = 0; i < groups; i++) {
  23992. ranges.push({
  23993. start: getLong(data, p),
  23994. end: getLong(data, p + 4),
  23995. idDelta: getLong(data, p + 8) - getLong(data, p)
  23996. });
  23997. p += 12;
  23998. }
  23999. return ranges;
  24000. }
  24001. error('not supported cmap: ' + format);
  24002. }
  24003. function parseCff(data, start, end) {
  24004. var properties = {};
  24005. var parser = new CFFParser(new Stream(data, start, end - start),
  24006. properties);
  24007. var cff = parser.parse();
  24008. return {
  24009. glyphs: cff.charStrings.objects,
  24010. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  24011. cff.topDict.privateDict.subrsIndex.objects),
  24012. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  24013. };
  24014. }
  24015. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  24016. var itemSize, itemDecode;
  24017. if (isGlyphLocationsLong) {
  24018. itemSize = 4;
  24019. itemDecode = function fontItemDecodeLong(data, offset) {
  24020. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24021. (data[offset + 2] << 8) | data[offset + 3];
  24022. };
  24023. } else {
  24024. itemSize = 2;
  24025. itemDecode = function fontItemDecode(data, offset) {
  24026. return (data[offset] << 9) | (data[offset + 1] << 1);
  24027. };
  24028. }
  24029. var glyphs = [];
  24030. var startOffset = itemDecode(loca, 0);
  24031. for (var j = itemSize; j < loca.length; j += itemSize) {
  24032. var endOffset = itemDecode(loca, j);
  24033. glyphs.push(glyf.subarray(startOffset, endOffset));
  24034. startOffset = endOffset;
  24035. }
  24036. return glyphs;
  24037. }
  24038. function lookupCmap(ranges, unicode) {
  24039. var code = unicode.charCodeAt(0);
  24040. var l = 0, r = ranges.length - 1;
  24041. while (l < r) {
  24042. var c = (l + r + 1) >> 1;
  24043. if (code < ranges[c].start) {
  24044. r = c - 1;
  24045. } else {
  24046. l = c;
  24047. }
  24048. }
  24049. if (ranges[l].start <= code && code <= ranges[l].end) {
  24050. return (ranges[l].idDelta + (ranges[l].ids ?
  24051. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  24052. }
  24053. return 0;
  24054. }
  24055. function compileGlyf(code, js, font) {
  24056. function moveTo(x, y) {
  24057. js.push('c.moveTo(' + x + ',' + y + ');');
  24058. }
  24059. function lineTo(x, y) {
  24060. js.push('c.lineTo(' + x + ',' + y + ');');
  24061. }
  24062. function quadraticCurveTo(xa, ya, x, y) {
  24063. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  24064. x + ',' + y + ');');
  24065. }
  24066. var i = 0;
  24067. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24068. var flags;
  24069. var x = 0, y = 0;
  24070. i += 10;
  24071. if (numberOfContours < 0) {
  24072. // composite glyph
  24073. do {
  24074. flags = (code[i] << 8) | code[i + 1];
  24075. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  24076. i += 4;
  24077. var arg1, arg2;
  24078. if ((flags & 0x01)) {
  24079. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24080. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  24081. i += 4;
  24082. } else {
  24083. arg1 = code[i++]; arg2 = code[i++];
  24084. }
  24085. if ((flags & 0x02)) {
  24086. x = arg1;
  24087. y = arg2;
  24088. } else {
  24089. x = 0; y = 0; // TODO "they are points" ?
  24090. }
  24091. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  24092. if ((flags & 0x08)) {
  24093. scaleX =
  24094. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24095. i += 2;
  24096. } else if ((flags & 0x40)) {
  24097. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24098. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24099. i += 4;
  24100. } else if ((flags & 0x80)) {
  24101. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24102. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24103. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  24104. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  24105. i += 8;
  24106. }
  24107. var subglyph = font.glyphs[glyphIndex];
  24108. if (subglyph) {
  24109. js.push('c.save();');
  24110. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  24111. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  24112. compileGlyf(subglyph, js, font);
  24113. js.push('c.restore();');
  24114. }
  24115. } while ((flags & 0x20));
  24116. } else {
  24117. // simple glyph
  24118. var endPtsOfContours = [];
  24119. var j, jj;
  24120. for (j = 0; j < numberOfContours; j++) {
  24121. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  24122. i += 2;
  24123. }
  24124. var instructionLength = (code[i] << 8) | code[i + 1];
  24125. i += 2 + instructionLength; // skipping the instructions
  24126. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  24127. var points = [];
  24128. while (points.length < numberOfPoints) {
  24129. flags = code[i++];
  24130. var repeat = 1;
  24131. if ((flags & 0x08)) {
  24132. repeat += code[i++];
  24133. }
  24134. while (repeat-- > 0) {
  24135. points.push({flags: flags});
  24136. }
  24137. }
  24138. for (j = 0; j < numberOfPoints; j++) {
  24139. switch (points[j].flags & 0x12) {
  24140. case 0x00:
  24141. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24142. i += 2;
  24143. break;
  24144. case 0x02:
  24145. x -= code[i++];
  24146. break;
  24147. case 0x12:
  24148. x += code[i++];
  24149. break;
  24150. }
  24151. points[j].x = x;
  24152. }
  24153. for (j = 0; j < numberOfPoints; j++) {
  24154. switch (points[j].flags & 0x24) {
  24155. case 0x00:
  24156. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24157. i += 2;
  24158. break;
  24159. case 0x04:
  24160. y -= code[i++];
  24161. break;
  24162. case 0x24:
  24163. y += code[i++];
  24164. break;
  24165. }
  24166. points[j].y = y;
  24167. }
  24168. var startPoint = 0;
  24169. for (i = 0; i < numberOfContours; i++) {
  24170. var endPoint = endPtsOfContours[i];
  24171. // contours might have implicit points, which is located in the middle
  24172. // between two neighboring off-curve points
  24173. var contour = points.slice(startPoint, endPoint + 1);
  24174. if ((contour[0].flags & 1)) {
  24175. contour.push(contour[0]); // using start point at the contour end
  24176. } else if ((contour[contour.length - 1].flags & 1)) {
  24177. // first is off-curve point, trying to use one from the end
  24178. contour.unshift(contour[contour.length - 1]);
  24179. } else {
  24180. // start and end are off-curve points, creating implicit one
  24181. var p = {
  24182. flags: 1,
  24183. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  24184. y: (contour[0].y + contour[contour.length - 1].y) / 2
  24185. };
  24186. contour.unshift(p);
  24187. contour.push(p);
  24188. }
  24189. moveTo(contour[0].x, contour[0].y);
  24190. for (j = 1, jj = contour.length; j < jj; j++) {
  24191. if ((contour[j].flags & 1)) {
  24192. lineTo(contour[j].x, contour[j].y);
  24193. } else if ((contour[j + 1].flags & 1)){
  24194. quadraticCurveTo(contour[j].x, contour[j].y,
  24195. contour[j + 1].x, contour[j + 1].y);
  24196. j++;
  24197. } else {
  24198. quadraticCurveTo(contour[j].x, contour[j].y,
  24199. (contour[j].x + contour[j + 1].x) / 2,
  24200. (contour[j].y + contour[j + 1].y) / 2);
  24201. }
  24202. }
  24203. startPoint = endPoint + 1;
  24204. }
  24205. }
  24206. }
  24207. function compileCharString(code, js, font) {
  24208. var stack = [];
  24209. var x = 0, y = 0;
  24210. var stems = 0;
  24211. function moveTo(x, y) {
  24212. js.push('c.moveTo(' + x + ',' + y + ');');
  24213. }
  24214. function lineTo(x, y) {
  24215. js.push('c.lineTo(' + x + ',' + y + ');');
  24216. }
  24217. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  24218. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  24219. x + ',' + y + ');');
  24220. }
  24221. function parse(code) {
  24222. var i = 0;
  24223. while (i < code.length) {
  24224. var stackClean = false;
  24225. var v = code[i++];
  24226. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  24227. switch (v) {
  24228. case 1: // hstem
  24229. stems += stack.length >> 1;
  24230. stackClean = true;
  24231. break;
  24232. case 3: // vstem
  24233. stems += stack.length >> 1;
  24234. stackClean = true;
  24235. break;
  24236. case 4: // vmoveto
  24237. y += stack.pop();
  24238. moveTo(x, y);
  24239. stackClean = true;
  24240. break;
  24241. case 5: // rlineto
  24242. while (stack.length > 0) {
  24243. x += stack.shift();
  24244. y += stack.shift();
  24245. lineTo(x, y);
  24246. }
  24247. break;
  24248. case 6: // hlineto
  24249. while (stack.length > 0) {
  24250. x += stack.shift();
  24251. lineTo(x, y);
  24252. if (stack.length === 0) {
  24253. break;
  24254. }
  24255. y += stack.shift();
  24256. lineTo(x, y);
  24257. }
  24258. break;
  24259. case 7: // vlineto
  24260. while (stack.length > 0) {
  24261. y += stack.shift();
  24262. lineTo(x, y);
  24263. if (stack.length === 0) {
  24264. break;
  24265. }
  24266. x += stack.shift();
  24267. lineTo(x, y);
  24268. }
  24269. break;
  24270. case 8: // rrcurveto
  24271. while (stack.length > 0) {
  24272. xa = x + stack.shift(); ya = y + stack.shift();
  24273. xb = xa + stack.shift(); yb = ya + stack.shift();
  24274. x = xb + stack.shift(); y = yb + stack.shift();
  24275. bezierCurveTo(xa, ya, xb, yb, x, y);
  24276. }
  24277. break;
  24278. case 10: // callsubr
  24279. n = stack.pop() + font.subrsBias;
  24280. subrCode = font.subrs[n];
  24281. if (subrCode) {
  24282. parse(subrCode);
  24283. }
  24284. break;
  24285. case 11: // return
  24286. return;
  24287. case 12:
  24288. v = code[i++];
  24289. switch (v) {
  24290. case 34: // flex
  24291. xa = x + stack.shift();
  24292. xb = xa + stack.shift(); y1 = y + stack.shift();
  24293. x = xb + stack.shift();
  24294. bezierCurveTo(xa, y, xb, y1, x, y1);
  24295. xa = x + stack.shift();
  24296. xb = xa + stack.shift();
  24297. x = xb + stack.shift();
  24298. bezierCurveTo(xa, y1, xb, y, x, y);
  24299. break;
  24300. case 35: // flex
  24301. xa = x + stack.shift(); ya = y + stack.shift();
  24302. xb = xa + stack.shift(); yb = ya + stack.shift();
  24303. x = xb + stack.shift(); y = yb + stack.shift();
  24304. bezierCurveTo(xa, ya, xb, yb, x, y);
  24305. xa = x + stack.shift(); ya = y + stack.shift();
  24306. xb = xa + stack.shift(); yb = ya + stack.shift();
  24307. x = xb + stack.shift(); y = yb + stack.shift();
  24308. bezierCurveTo(xa, ya, xb, yb, x, y);
  24309. stack.pop(); // fd
  24310. break;
  24311. case 36: // hflex1
  24312. xa = x + stack.shift(); y1 = y + stack.shift();
  24313. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  24314. x = xb + stack.shift();
  24315. bezierCurveTo(xa, y1, xb, y2, x, y2);
  24316. xa = x + stack.shift();
  24317. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  24318. x = xb + stack.shift();
  24319. bezierCurveTo(xa, y2, xb, y3, x, y);
  24320. break;
  24321. case 37: // flex1
  24322. var x0 = x, y0 = y;
  24323. xa = x + stack.shift(); ya = y + stack.shift();
  24324. xb = xa + stack.shift(); yb = ya + stack.shift();
  24325. x = xb + stack.shift(); y = yb + stack.shift();
  24326. bezierCurveTo(xa, ya, xb, yb, x, y);
  24327. xa = x + stack.shift(); ya = y + stack.shift();
  24328. xb = xa + stack.shift(); yb = ya + stack.shift();
  24329. x = xb; y = yb;
  24330. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  24331. x += stack.shift();
  24332. } else {
  24333. y += stack.shift();
  24334. }
  24335. bezierCurveTo(xa, ya, xb, yb, x, y);
  24336. break;
  24337. default:
  24338. error('unknown operator: 12 ' + v);
  24339. }
  24340. break;
  24341. case 14: // endchar
  24342. if (stack.length >= 4) {
  24343. var achar = stack.pop();
  24344. var bchar = stack.pop();
  24345. y = stack.pop();
  24346. x = stack.pop();
  24347. js.push('c.save();');
  24348. js.push('c.translate('+ x + ',' + y + ');');
  24349. var gid = lookupCmap(font.cmap, String.fromCharCode(
  24350. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  24351. compileCharString(font.glyphs[gid], js, font);
  24352. js.push('c.restore();');
  24353. gid = lookupCmap(font.cmap, String.fromCharCode(
  24354. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  24355. compileCharString(font.glyphs[gid], js, font);
  24356. }
  24357. return;
  24358. case 18: // hstemhm
  24359. stems += stack.length >> 1;
  24360. stackClean = true;
  24361. break;
  24362. case 19: // hintmask
  24363. stems += stack.length >> 1;
  24364. i += (stems + 7) >> 3;
  24365. stackClean = true;
  24366. break;
  24367. case 20: // cntrmask
  24368. stems += stack.length >> 1;
  24369. i += (stems + 7) >> 3;
  24370. stackClean = true;
  24371. break;
  24372. case 21: // rmoveto
  24373. y += stack.pop();
  24374. x += stack.pop();
  24375. moveTo(x, y);
  24376. stackClean = true;
  24377. break;
  24378. case 22: // hmoveto
  24379. x += stack.pop();
  24380. moveTo(x, y);
  24381. stackClean = true;
  24382. break;
  24383. case 23: // vstemhm
  24384. stems += stack.length >> 1;
  24385. stackClean = true;
  24386. break;
  24387. case 24: // rcurveline
  24388. while (stack.length > 2) {
  24389. xa = x + stack.shift(); ya = y + stack.shift();
  24390. xb = xa + stack.shift(); yb = ya + stack.shift();
  24391. x = xb + stack.shift(); y = yb + stack.shift();
  24392. bezierCurveTo(xa, ya, xb, yb, x, y);
  24393. }
  24394. x += stack.shift();
  24395. y += stack.shift();
  24396. lineTo(x, y);
  24397. break;
  24398. case 25: // rlinecurve
  24399. while (stack.length > 6) {
  24400. x += stack.shift();
  24401. y += stack.shift();
  24402. lineTo(x, y);
  24403. }
  24404. xa = x + stack.shift(); ya = y + stack.shift();
  24405. xb = xa + stack.shift(); yb = ya + stack.shift();
  24406. x = xb + stack.shift(); y = yb + stack.shift();
  24407. bezierCurveTo(xa, ya, xb, yb, x, y);
  24408. break;
  24409. case 26: // vvcurveto
  24410. if (stack.length % 2) {
  24411. x += stack.shift();
  24412. }
  24413. while (stack.length > 0) {
  24414. xa = x; ya = y + stack.shift();
  24415. xb = xa + stack.shift(); yb = ya + stack.shift();
  24416. x = xb; y = yb + stack.shift();
  24417. bezierCurveTo(xa, ya, xb, yb, x, y);
  24418. }
  24419. break;
  24420. case 27: // hhcurveto
  24421. if (stack.length % 2) {
  24422. y += stack.shift();
  24423. }
  24424. while (stack.length > 0) {
  24425. xa = x + stack.shift(); ya = y;
  24426. xb = xa + stack.shift(); yb = ya + stack.shift();
  24427. x = xb + stack.shift(); y = yb;
  24428. bezierCurveTo(xa, ya, xb, yb, x, y);
  24429. }
  24430. break;
  24431. case 28:
  24432. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  24433. i += 2;
  24434. break;
  24435. case 29: // callgsubr
  24436. n = stack.pop() + font.gsubrsBias;
  24437. subrCode = font.gsubrs[n];
  24438. if (subrCode) {
  24439. parse(subrCode);
  24440. }
  24441. break;
  24442. case 30: // vhcurveto
  24443. while (stack.length > 0) {
  24444. xa = x; ya = y + stack.shift();
  24445. xb = xa + stack.shift(); yb = ya + stack.shift();
  24446. x = xb + stack.shift();
  24447. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24448. bezierCurveTo(xa, ya, xb, yb, x, y);
  24449. if (stack.length === 0) {
  24450. break;
  24451. }
  24452. xa = x + stack.shift(); ya = y;
  24453. xb = xa + stack.shift(); yb = ya + stack.shift();
  24454. y = yb + stack.shift();
  24455. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24456. bezierCurveTo(xa, ya, xb, yb, x, y);
  24457. }
  24458. break;
  24459. case 31: // hvcurveto
  24460. while (stack.length > 0) {
  24461. xa = x + stack.shift(); ya = y;
  24462. xb = xa + stack.shift(); yb = ya + stack.shift();
  24463. y = yb + stack.shift();
  24464. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24465. bezierCurveTo(xa, ya, xb, yb, x, y);
  24466. if (stack.length === 0) {
  24467. break;
  24468. }
  24469. xa = x; ya = y + stack.shift();
  24470. xb = xa + stack.shift(); yb = ya + stack.shift();
  24471. x = xb + stack.shift();
  24472. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24473. bezierCurveTo(xa, ya, xb, yb, x, y);
  24474. }
  24475. break;
  24476. default:
  24477. if (v < 32) {
  24478. error('unknown operator: ' + v);
  24479. }
  24480. if (v < 247) {
  24481. stack.push(v - 139);
  24482. } else if (v < 251) {
  24483. stack.push((v - 247) * 256 + code[i++] + 108);
  24484. } else if (v < 255) {
  24485. stack.push(-(v - 251) * 256 - code[i++] - 108);
  24486. } else {
  24487. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  24488. (code[i + 2] << 8) | code[i + 3]) / 65536);
  24489. i += 4;
  24490. }
  24491. break;
  24492. }
  24493. if (stackClean) {
  24494. stack.length = 0;
  24495. }
  24496. }
  24497. }
  24498. parse(code);
  24499. }
  24500. var noop = '';
  24501. function CompiledFont(fontMatrix) {
  24502. this.compiledGlyphs = {};
  24503. this.fontMatrix = fontMatrix;
  24504. }
  24505. CompiledFont.prototype = {
  24506. getPathJs: function (unicode) {
  24507. var gid = lookupCmap(this.cmap, unicode);
  24508. var fn = this.compiledGlyphs[gid];
  24509. if (!fn) {
  24510. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  24511. }
  24512. return fn;
  24513. },
  24514. compileGlyph: function (code) {
  24515. if (!code || code.length === 0 || code[0] === 14) {
  24516. return noop;
  24517. }
  24518. var js = [];
  24519. js.push('c.save();');
  24520. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  24521. js.push('c.scale(size, -size);');
  24522. this.compileGlyphImpl(code, js);
  24523. js.push('c.restore();');
  24524. return js.join('\n');
  24525. },
  24526. compileGlyphImpl: function () {
  24527. error('Children classes should implement this.');
  24528. },
  24529. hasBuiltPath: function (unicode) {
  24530. var gid = lookupCmap(this.cmap, unicode);
  24531. return gid in this.compiledGlyphs;
  24532. }
  24533. };
  24534. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  24535. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  24536. CompiledFont.call(this, fontMatrix);
  24537. this.glyphs = glyphs;
  24538. this.cmap = cmap;
  24539. this.compiledGlyphs = [];
  24540. }
  24541. Util.inherit(TrueTypeCompiled, CompiledFont, {
  24542. compileGlyphImpl: function (code, js) {
  24543. compileGlyf(code, js, this);
  24544. }
  24545. });
  24546. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  24547. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  24548. CompiledFont.call(this, fontMatrix);
  24549. this.glyphs = cffInfo.glyphs;
  24550. this.gsubrs = cffInfo.gsubrs || [];
  24551. this.subrs = cffInfo.subrs || [];
  24552. this.cmap = cmap;
  24553. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  24554. this.compiledGlyphs = [];
  24555. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  24556. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  24557. this.subrsBias = (this.subrs.length < 1240 ?
  24558. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  24559. }
  24560. Util.inherit(Type2Compiled, CompiledFont, {
  24561. compileGlyphImpl: function (code, js) {
  24562. compileCharString(code, js, this);
  24563. }
  24564. });
  24565. return {
  24566. create: function FontRendererFactory_create(font) {
  24567. var data = new Uint8Array(font.data);
  24568. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  24569. var numTables = getUshort(data, 4);
  24570. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  24571. var tag = bytesToString(data.subarray(p, p + 4));
  24572. var offset = getLong(data, p + 8);
  24573. var length = getLong(data, p + 12);
  24574. switch (tag) {
  24575. case 'cmap':
  24576. cmap = parseCmap(data, offset, offset + length);
  24577. break;
  24578. case 'glyf':
  24579. glyf = data.subarray(offset, offset + length);
  24580. break;
  24581. case 'loca':
  24582. loca = data.subarray(offset, offset + length);
  24583. break;
  24584. case 'head':
  24585. unitsPerEm = getUshort(data, offset + 18);
  24586. indexToLocFormat = getUshort(data, offset + 50);
  24587. break;
  24588. case 'CFF ':
  24589. cff = parseCff(data, offset, offset + length);
  24590. break;
  24591. }
  24592. }
  24593. if (glyf) {
  24594. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  24595. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  24596. return new TrueTypeCompiled(
  24597. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  24598. } else {
  24599. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  24600. }
  24601. }
  24602. };
  24603. })();
  24604. var GlyphsUnicode = {
  24605. A: 0x0041,
  24606. AE: 0x00C6,
  24607. AEacute: 0x01FC,
  24608. AEmacron: 0x01E2,
  24609. AEsmall: 0xF7E6,
  24610. Aacute: 0x00C1,
  24611. Aacutesmall: 0xF7E1,
  24612. Abreve: 0x0102,
  24613. Abreveacute: 0x1EAE,
  24614. Abrevecyrillic: 0x04D0,
  24615. Abrevedotbelow: 0x1EB6,
  24616. Abrevegrave: 0x1EB0,
  24617. Abrevehookabove: 0x1EB2,
  24618. Abrevetilde: 0x1EB4,
  24619. Acaron: 0x01CD,
  24620. Acircle: 0x24B6,
  24621. Acircumflex: 0x00C2,
  24622. Acircumflexacute: 0x1EA4,
  24623. Acircumflexdotbelow: 0x1EAC,
  24624. Acircumflexgrave: 0x1EA6,
  24625. Acircumflexhookabove: 0x1EA8,
  24626. Acircumflexsmall: 0xF7E2,
  24627. Acircumflextilde: 0x1EAA,
  24628. Acute: 0xF6C9,
  24629. Acutesmall: 0xF7B4,
  24630. Acyrillic: 0x0410,
  24631. Adblgrave: 0x0200,
  24632. Adieresis: 0x00C4,
  24633. Adieresiscyrillic: 0x04D2,
  24634. Adieresismacron: 0x01DE,
  24635. Adieresissmall: 0xF7E4,
  24636. Adotbelow: 0x1EA0,
  24637. Adotmacron: 0x01E0,
  24638. Agrave: 0x00C0,
  24639. Agravesmall: 0xF7E0,
  24640. Ahookabove: 0x1EA2,
  24641. Aiecyrillic: 0x04D4,
  24642. Ainvertedbreve: 0x0202,
  24643. Alpha: 0x0391,
  24644. Alphatonos: 0x0386,
  24645. Amacron: 0x0100,
  24646. Amonospace: 0xFF21,
  24647. Aogonek: 0x0104,
  24648. Aring: 0x00C5,
  24649. Aringacute: 0x01FA,
  24650. Aringbelow: 0x1E00,
  24651. Aringsmall: 0xF7E5,
  24652. Asmall: 0xF761,
  24653. Atilde: 0x00C3,
  24654. Atildesmall: 0xF7E3,
  24655. Aybarmenian: 0x0531,
  24656. B: 0x0042,
  24657. Bcircle: 0x24B7,
  24658. Bdotaccent: 0x1E02,
  24659. Bdotbelow: 0x1E04,
  24660. Becyrillic: 0x0411,
  24661. Benarmenian: 0x0532,
  24662. Beta: 0x0392,
  24663. Bhook: 0x0181,
  24664. Blinebelow: 0x1E06,
  24665. Bmonospace: 0xFF22,
  24666. Brevesmall: 0xF6F4,
  24667. Bsmall: 0xF762,
  24668. Btopbar: 0x0182,
  24669. C: 0x0043,
  24670. Caarmenian: 0x053E,
  24671. Cacute: 0x0106,
  24672. Caron: 0xF6CA,
  24673. Caronsmall: 0xF6F5,
  24674. Ccaron: 0x010C,
  24675. Ccedilla: 0x00C7,
  24676. Ccedillaacute: 0x1E08,
  24677. Ccedillasmall: 0xF7E7,
  24678. Ccircle: 0x24B8,
  24679. Ccircumflex: 0x0108,
  24680. Cdot: 0x010A,
  24681. Cdotaccent: 0x010A,
  24682. Cedillasmall: 0xF7B8,
  24683. Chaarmenian: 0x0549,
  24684. Cheabkhasiancyrillic: 0x04BC,
  24685. Checyrillic: 0x0427,
  24686. Chedescenderabkhasiancyrillic: 0x04BE,
  24687. Chedescendercyrillic: 0x04B6,
  24688. Chedieresiscyrillic: 0x04F4,
  24689. Cheharmenian: 0x0543,
  24690. Chekhakassiancyrillic: 0x04CB,
  24691. Cheverticalstrokecyrillic: 0x04B8,
  24692. Chi: 0x03A7,
  24693. Chook: 0x0187,
  24694. Circumflexsmall: 0xF6F6,
  24695. Cmonospace: 0xFF23,
  24696. Coarmenian: 0x0551,
  24697. Csmall: 0xF763,
  24698. D: 0x0044,
  24699. DZ: 0x01F1,
  24700. DZcaron: 0x01C4,
  24701. Daarmenian: 0x0534,
  24702. Dafrican: 0x0189,
  24703. Dcaron: 0x010E,
  24704. Dcedilla: 0x1E10,
  24705. Dcircle: 0x24B9,
  24706. Dcircumflexbelow: 0x1E12,
  24707. Dcroat: 0x0110,
  24708. Ddotaccent: 0x1E0A,
  24709. Ddotbelow: 0x1E0C,
  24710. Decyrillic: 0x0414,
  24711. Deicoptic: 0x03EE,
  24712. Delta: 0x2206,
  24713. Deltagreek: 0x0394,
  24714. Dhook: 0x018A,
  24715. Dieresis: 0xF6CB,
  24716. DieresisAcute: 0xF6CC,
  24717. DieresisGrave: 0xF6CD,
  24718. Dieresissmall: 0xF7A8,
  24719. Digammagreek: 0x03DC,
  24720. Djecyrillic: 0x0402,
  24721. Dlinebelow: 0x1E0E,
  24722. Dmonospace: 0xFF24,
  24723. Dotaccentsmall: 0xF6F7,
  24724. Dslash: 0x0110,
  24725. Dsmall: 0xF764,
  24726. Dtopbar: 0x018B,
  24727. Dz: 0x01F2,
  24728. Dzcaron: 0x01C5,
  24729. Dzeabkhasiancyrillic: 0x04E0,
  24730. Dzecyrillic: 0x0405,
  24731. Dzhecyrillic: 0x040F,
  24732. E: 0x0045,
  24733. Eacute: 0x00C9,
  24734. Eacutesmall: 0xF7E9,
  24735. Ebreve: 0x0114,
  24736. Ecaron: 0x011A,
  24737. Ecedillabreve: 0x1E1C,
  24738. Echarmenian: 0x0535,
  24739. Ecircle: 0x24BA,
  24740. Ecircumflex: 0x00CA,
  24741. Ecircumflexacute: 0x1EBE,
  24742. Ecircumflexbelow: 0x1E18,
  24743. Ecircumflexdotbelow: 0x1EC6,
  24744. Ecircumflexgrave: 0x1EC0,
  24745. Ecircumflexhookabove: 0x1EC2,
  24746. Ecircumflexsmall: 0xF7EA,
  24747. Ecircumflextilde: 0x1EC4,
  24748. Ecyrillic: 0x0404,
  24749. Edblgrave: 0x0204,
  24750. Edieresis: 0x00CB,
  24751. Edieresissmall: 0xF7EB,
  24752. Edot: 0x0116,
  24753. Edotaccent: 0x0116,
  24754. Edotbelow: 0x1EB8,
  24755. Efcyrillic: 0x0424,
  24756. Egrave: 0x00C8,
  24757. Egravesmall: 0xF7E8,
  24758. Eharmenian: 0x0537,
  24759. Ehookabove: 0x1EBA,
  24760. Eightroman: 0x2167,
  24761. Einvertedbreve: 0x0206,
  24762. Eiotifiedcyrillic: 0x0464,
  24763. Elcyrillic: 0x041B,
  24764. Elevenroman: 0x216A,
  24765. Emacron: 0x0112,
  24766. Emacronacute: 0x1E16,
  24767. Emacrongrave: 0x1E14,
  24768. Emcyrillic: 0x041C,
  24769. Emonospace: 0xFF25,
  24770. Encyrillic: 0x041D,
  24771. Endescendercyrillic: 0x04A2,
  24772. Eng: 0x014A,
  24773. Enghecyrillic: 0x04A4,
  24774. Enhookcyrillic: 0x04C7,
  24775. Eogonek: 0x0118,
  24776. Eopen: 0x0190,
  24777. Epsilon: 0x0395,
  24778. Epsilontonos: 0x0388,
  24779. Ercyrillic: 0x0420,
  24780. Ereversed: 0x018E,
  24781. Ereversedcyrillic: 0x042D,
  24782. Escyrillic: 0x0421,
  24783. Esdescendercyrillic: 0x04AA,
  24784. Esh: 0x01A9,
  24785. Esmall: 0xF765,
  24786. Eta: 0x0397,
  24787. Etarmenian: 0x0538,
  24788. Etatonos: 0x0389,
  24789. Eth: 0x00D0,
  24790. Ethsmall: 0xF7F0,
  24791. Etilde: 0x1EBC,
  24792. Etildebelow: 0x1E1A,
  24793. Euro: 0x20AC,
  24794. Ezh: 0x01B7,
  24795. Ezhcaron: 0x01EE,
  24796. Ezhreversed: 0x01B8,
  24797. F: 0x0046,
  24798. Fcircle: 0x24BB,
  24799. Fdotaccent: 0x1E1E,
  24800. Feharmenian: 0x0556,
  24801. Feicoptic: 0x03E4,
  24802. Fhook: 0x0191,
  24803. Fitacyrillic: 0x0472,
  24804. Fiveroman: 0x2164,
  24805. Fmonospace: 0xFF26,
  24806. Fourroman: 0x2163,
  24807. Fsmall: 0xF766,
  24808. G: 0x0047,
  24809. GBsquare: 0x3387,
  24810. Gacute: 0x01F4,
  24811. Gamma: 0x0393,
  24812. Gammaafrican: 0x0194,
  24813. Gangiacoptic: 0x03EA,
  24814. Gbreve: 0x011E,
  24815. Gcaron: 0x01E6,
  24816. Gcedilla: 0x0122,
  24817. Gcircle: 0x24BC,
  24818. Gcircumflex: 0x011C,
  24819. Gcommaaccent: 0x0122,
  24820. Gdot: 0x0120,
  24821. Gdotaccent: 0x0120,
  24822. Gecyrillic: 0x0413,
  24823. Ghadarmenian: 0x0542,
  24824. Ghemiddlehookcyrillic: 0x0494,
  24825. Ghestrokecyrillic: 0x0492,
  24826. Gheupturncyrillic: 0x0490,
  24827. Ghook: 0x0193,
  24828. Gimarmenian: 0x0533,
  24829. Gjecyrillic: 0x0403,
  24830. Gmacron: 0x1E20,
  24831. Gmonospace: 0xFF27,
  24832. Grave: 0xF6CE,
  24833. Gravesmall: 0xF760,
  24834. Gsmall: 0xF767,
  24835. Gsmallhook: 0x029B,
  24836. Gstroke: 0x01E4,
  24837. H: 0x0048,
  24838. H18533: 0x25CF,
  24839. H18543: 0x25AA,
  24840. H18551: 0x25AB,
  24841. H22073: 0x25A1,
  24842. HPsquare: 0x33CB,
  24843. Haabkhasiancyrillic: 0x04A8,
  24844. Hadescendercyrillic: 0x04B2,
  24845. Hardsigncyrillic: 0x042A,
  24846. Hbar: 0x0126,
  24847. Hbrevebelow: 0x1E2A,
  24848. Hcedilla: 0x1E28,
  24849. Hcircle: 0x24BD,
  24850. Hcircumflex: 0x0124,
  24851. Hdieresis: 0x1E26,
  24852. Hdotaccent: 0x1E22,
  24853. Hdotbelow: 0x1E24,
  24854. Hmonospace: 0xFF28,
  24855. Hoarmenian: 0x0540,
  24856. Horicoptic: 0x03E8,
  24857. Hsmall: 0xF768,
  24858. Hungarumlaut: 0xF6CF,
  24859. Hungarumlautsmall: 0xF6F8,
  24860. Hzsquare: 0x3390,
  24861. I: 0x0049,
  24862. IAcyrillic: 0x042F,
  24863. IJ: 0x0132,
  24864. IUcyrillic: 0x042E,
  24865. Iacute: 0x00CD,
  24866. Iacutesmall: 0xF7ED,
  24867. Ibreve: 0x012C,
  24868. Icaron: 0x01CF,
  24869. Icircle: 0x24BE,
  24870. Icircumflex: 0x00CE,
  24871. Icircumflexsmall: 0xF7EE,
  24872. Icyrillic: 0x0406,
  24873. Idblgrave: 0x0208,
  24874. Idieresis: 0x00CF,
  24875. Idieresisacute: 0x1E2E,
  24876. Idieresiscyrillic: 0x04E4,
  24877. Idieresissmall: 0xF7EF,
  24878. Idot: 0x0130,
  24879. Idotaccent: 0x0130,
  24880. Idotbelow: 0x1ECA,
  24881. Iebrevecyrillic: 0x04D6,
  24882. Iecyrillic: 0x0415,
  24883. Ifraktur: 0x2111,
  24884. Igrave: 0x00CC,
  24885. Igravesmall: 0xF7EC,
  24886. Ihookabove: 0x1EC8,
  24887. Iicyrillic: 0x0418,
  24888. Iinvertedbreve: 0x020A,
  24889. Iishortcyrillic: 0x0419,
  24890. Imacron: 0x012A,
  24891. Imacroncyrillic: 0x04E2,
  24892. Imonospace: 0xFF29,
  24893. Iniarmenian: 0x053B,
  24894. Iocyrillic: 0x0401,
  24895. Iogonek: 0x012E,
  24896. Iota: 0x0399,
  24897. Iotaafrican: 0x0196,
  24898. Iotadieresis: 0x03AA,
  24899. Iotatonos: 0x038A,
  24900. Ismall: 0xF769,
  24901. Istroke: 0x0197,
  24902. Itilde: 0x0128,
  24903. Itildebelow: 0x1E2C,
  24904. Izhitsacyrillic: 0x0474,
  24905. Izhitsadblgravecyrillic: 0x0476,
  24906. J: 0x004A,
  24907. Jaarmenian: 0x0541,
  24908. Jcircle: 0x24BF,
  24909. Jcircumflex: 0x0134,
  24910. Jecyrillic: 0x0408,
  24911. Jheharmenian: 0x054B,
  24912. Jmonospace: 0xFF2A,
  24913. Jsmall: 0xF76A,
  24914. K: 0x004B,
  24915. KBsquare: 0x3385,
  24916. KKsquare: 0x33CD,
  24917. Kabashkircyrillic: 0x04A0,
  24918. Kacute: 0x1E30,
  24919. Kacyrillic: 0x041A,
  24920. Kadescendercyrillic: 0x049A,
  24921. Kahookcyrillic: 0x04C3,
  24922. Kappa: 0x039A,
  24923. Kastrokecyrillic: 0x049E,
  24924. Kaverticalstrokecyrillic: 0x049C,
  24925. Kcaron: 0x01E8,
  24926. Kcedilla: 0x0136,
  24927. Kcircle: 0x24C0,
  24928. Kcommaaccent: 0x0136,
  24929. Kdotbelow: 0x1E32,
  24930. Keharmenian: 0x0554,
  24931. Kenarmenian: 0x053F,
  24932. Khacyrillic: 0x0425,
  24933. Kheicoptic: 0x03E6,
  24934. Khook: 0x0198,
  24935. Kjecyrillic: 0x040C,
  24936. Klinebelow: 0x1E34,
  24937. Kmonospace: 0xFF2B,
  24938. Koppacyrillic: 0x0480,
  24939. Koppagreek: 0x03DE,
  24940. Ksicyrillic: 0x046E,
  24941. Ksmall: 0xF76B,
  24942. L: 0x004C,
  24943. LJ: 0x01C7,
  24944. LL: 0xF6BF,
  24945. Lacute: 0x0139,
  24946. Lambda: 0x039B,
  24947. Lcaron: 0x013D,
  24948. Lcedilla: 0x013B,
  24949. Lcircle: 0x24C1,
  24950. Lcircumflexbelow: 0x1E3C,
  24951. Lcommaaccent: 0x013B,
  24952. Ldot: 0x013F,
  24953. Ldotaccent: 0x013F,
  24954. Ldotbelow: 0x1E36,
  24955. Ldotbelowmacron: 0x1E38,
  24956. Liwnarmenian: 0x053C,
  24957. Lj: 0x01C8,
  24958. Ljecyrillic: 0x0409,
  24959. Llinebelow: 0x1E3A,
  24960. Lmonospace: 0xFF2C,
  24961. Lslash: 0x0141,
  24962. Lslashsmall: 0xF6F9,
  24963. Lsmall: 0xF76C,
  24964. M: 0x004D,
  24965. MBsquare: 0x3386,
  24966. Macron: 0xF6D0,
  24967. Macronsmall: 0xF7AF,
  24968. Macute: 0x1E3E,
  24969. Mcircle: 0x24C2,
  24970. Mdotaccent: 0x1E40,
  24971. Mdotbelow: 0x1E42,
  24972. Menarmenian: 0x0544,
  24973. Mmonospace: 0xFF2D,
  24974. Msmall: 0xF76D,
  24975. Mturned: 0x019C,
  24976. Mu: 0x039C,
  24977. N: 0x004E,
  24978. NJ: 0x01CA,
  24979. Nacute: 0x0143,
  24980. Ncaron: 0x0147,
  24981. Ncedilla: 0x0145,
  24982. Ncircle: 0x24C3,
  24983. Ncircumflexbelow: 0x1E4A,
  24984. Ncommaaccent: 0x0145,
  24985. Ndotaccent: 0x1E44,
  24986. Ndotbelow: 0x1E46,
  24987. Nhookleft: 0x019D,
  24988. Nineroman: 0x2168,
  24989. Nj: 0x01CB,
  24990. Njecyrillic: 0x040A,
  24991. Nlinebelow: 0x1E48,
  24992. Nmonospace: 0xFF2E,
  24993. Nowarmenian: 0x0546,
  24994. Nsmall: 0xF76E,
  24995. Ntilde: 0x00D1,
  24996. Ntildesmall: 0xF7F1,
  24997. Nu: 0x039D,
  24998. O: 0x004F,
  24999. OE: 0x0152,
  25000. OEsmall: 0xF6FA,
  25001. Oacute: 0x00D3,
  25002. Oacutesmall: 0xF7F3,
  25003. Obarredcyrillic: 0x04E8,
  25004. Obarreddieresiscyrillic: 0x04EA,
  25005. Obreve: 0x014E,
  25006. Ocaron: 0x01D1,
  25007. Ocenteredtilde: 0x019F,
  25008. Ocircle: 0x24C4,
  25009. Ocircumflex: 0x00D4,
  25010. Ocircumflexacute: 0x1ED0,
  25011. Ocircumflexdotbelow: 0x1ED8,
  25012. Ocircumflexgrave: 0x1ED2,
  25013. Ocircumflexhookabove: 0x1ED4,
  25014. Ocircumflexsmall: 0xF7F4,
  25015. Ocircumflextilde: 0x1ED6,
  25016. Ocyrillic: 0x041E,
  25017. Odblacute: 0x0150,
  25018. Odblgrave: 0x020C,
  25019. Odieresis: 0x00D6,
  25020. Odieresiscyrillic: 0x04E6,
  25021. Odieresissmall: 0xF7F6,
  25022. Odotbelow: 0x1ECC,
  25023. Ogoneksmall: 0xF6FB,
  25024. Ograve: 0x00D2,
  25025. Ogravesmall: 0xF7F2,
  25026. Oharmenian: 0x0555,
  25027. Ohm: 0x2126,
  25028. Ohookabove: 0x1ECE,
  25029. Ohorn: 0x01A0,
  25030. Ohornacute: 0x1EDA,
  25031. Ohorndotbelow: 0x1EE2,
  25032. Ohorngrave: 0x1EDC,
  25033. Ohornhookabove: 0x1EDE,
  25034. Ohorntilde: 0x1EE0,
  25035. Ohungarumlaut: 0x0150,
  25036. Oi: 0x01A2,
  25037. Oinvertedbreve: 0x020E,
  25038. Omacron: 0x014C,
  25039. Omacronacute: 0x1E52,
  25040. Omacrongrave: 0x1E50,
  25041. Omega: 0x2126,
  25042. Omegacyrillic: 0x0460,
  25043. Omegagreek: 0x03A9,
  25044. Omegaroundcyrillic: 0x047A,
  25045. Omegatitlocyrillic: 0x047C,
  25046. Omegatonos: 0x038F,
  25047. Omicron: 0x039F,
  25048. Omicrontonos: 0x038C,
  25049. Omonospace: 0xFF2F,
  25050. Oneroman: 0x2160,
  25051. Oogonek: 0x01EA,
  25052. Oogonekmacron: 0x01EC,
  25053. Oopen: 0x0186,
  25054. Oslash: 0x00D8,
  25055. Oslashacute: 0x01FE,
  25056. Oslashsmall: 0xF7F8,
  25057. Osmall: 0xF76F,
  25058. Ostrokeacute: 0x01FE,
  25059. Otcyrillic: 0x047E,
  25060. Otilde: 0x00D5,
  25061. Otildeacute: 0x1E4C,
  25062. Otildedieresis: 0x1E4E,
  25063. Otildesmall: 0xF7F5,
  25064. P: 0x0050,
  25065. Pacute: 0x1E54,
  25066. Pcircle: 0x24C5,
  25067. Pdotaccent: 0x1E56,
  25068. Pecyrillic: 0x041F,
  25069. Peharmenian: 0x054A,
  25070. Pemiddlehookcyrillic: 0x04A6,
  25071. Phi: 0x03A6,
  25072. Phook: 0x01A4,
  25073. Pi: 0x03A0,
  25074. Piwrarmenian: 0x0553,
  25075. Pmonospace: 0xFF30,
  25076. Psi: 0x03A8,
  25077. Psicyrillic: 0x0470,
  25078. Psmall: 0xF770,
  25079. Q: 0x0051,
  25080. Qcircle: 0x24C6,
  25081. Qmonospace: 0xFF31,
  25082. Qsmall: 0xF771,
  25083. R: 0x0052,
  25084. Raarmenian: 0x054C,
  25085. Racute: 0x0154,
  25086. Rcaron: 0x0158,
  25087. Rcedilla: 0x0156,
  25088. Rcircle: 0x24C7,
  25089. Rcommaaccent: 0x0156,
  25090. Rdblgrave: 0x0210,
  25091. Rdotaccent: 0x1E58,
  25092. Rdotbelow: 0x1E5A,
  25093. Rdotbelowmacron: 0x1E5C,
  25094. Reharmenian: 0x0550,
  25095. Rfraktur: 0x211C,
  25096. Rho: 0x03A1,
  25097. Ringsmall: 0xF6FC,
  25098. Rinvertedbreve: 0x0212,
  25099. Rlinebelow: 0x1E5E,
  25100. Rmonospace: 0xFF32,
  25101. Rsmall: 0xF772,
  25102. Rsmallinverted: 0x0281,
  25103. Rsmallinvertedsuperior: 0x02B6,
  25104. S: 0x0053,
  25105. SF010000: 0x250C,
  25106. SF020000: 0x2514,
  25107. SF030000: 0x2510,
  25108. SF040000: 0x2518,
  25109. SF050000: 0x253C,
  25110. SF060000: 0x252C,
  25111. SF070000: 0x2534,
  25112. SF080000: 0x251C,
  25113. SF090000: 0x2524,
  25114. SF100000: 0x2500,
  25115. SF110000: 0x2502,
  25116. SF190000: 0x2561,
  25117. SF200000: 0x2562,
  25118. SF210000: 0x2556,
  25119. SF220000: 0x2555,
  25120. SF230000: 0x2563,
  25121. SF240000: 0x2551,
  25122. SF250000: 0x2557,
  25123. SF260000: 0x255D,
  25124. SF270000: 0x255C,
  25125. SF280000: 0x255B,
  25126. SF360000: 0x255E,
  25127. SF370000: 0x255F,
  25128. SF380000: 0x255A,
  25129. SF390000: 0x2554,
  25130. SF400000: 0x2569,
  25131. SF410000: 0x2566,
  25132. SF420000: 0x2560,
  25133. SF430000: 0x2550,
  25134. SF440000: 0x256C,
  25135. SF450000: 0x2567,
  25136. SF460000: 0x2568,
  25137. SF470000: 0x2564,
  25138. SF480000: 0x2565,
  25139. SF490000: 0x2559,
  25140. SF500000: 0x2558,
  25141. SF510000: 0x2552,
  25142. SF520000: 0x2553,
  25143. SF530000: 0x256B,
  25144. SF540000: 0x256A,
  25145. Sacute: 0x015A,
  25146. Sacutedotaccent: 0x1E64,
  25147. Sampigreek: 0x03E0,
  25148. Scaron: 0x0160,
  25149. Scarondotaccent: 0x1E66,
  25150. Scaronsmall: 0xF6FD,
  25151. Scedilla: 0x015E,
  25152. Schwa: 0x018F,
  25153. Schwacyrillic: 0x04D8,
  25154. Schwadieresiscyrillic: 0x04DA,
  25155. Scircle: 0x24C8,
  25156. Scircumflex: 0x015C,
  25157. Scommaaccent: 0x0218,
  25158. Sdotaccent: 0x1E60,
  25159. Sdotbelow: 0x1E62,
  25160. Sdotbelowdotaccent: 0x1E68,
  25161. Seharmenian: 0x054D,
  25162. Sevenroman: 0x2166,
  25163. Shaarmenian: 0x0547,
  25164. Shacyrillic: 0x0428,
  25165. Shchacyrillic: 0x0429,
  25166. Sheicoptic: 0x03E2,
  25167. Shhacyrillic: 0x04BA,
  25168. Shimacoptic: 0x03EC,
  25169. Sigma: 0x03A3,
  25170. Sixroman: 0x2165,
  25171. Smonospace: 0xFF33,
  25172. Softsigncyrillic: 0x042C,
  25173. Ssmall: 0xF773,
  25174. Stigmagreek: 0x03DA,
  25175. T: 0x0054,
  25176. Tau: 0x03A4,
  25177. Tbar: 0x0166,
  25178. Tcaron: 0x0164,
  25179. Tcedilla: 0x0162,
  25180. Tcircle: 0x24C9,
  25181. Tcircumflexbelow: 0x1E70,
  25182. Tcommaaccent: 0x0162,
  25183. Tdotaccent: 0x1E6A,
  25184. Tdotbelow: 0x1E6C,
  25185. Tecyrillic: 0x0422,
  25186. Tedescendercyrillic: 0x04AC,
  25187. Tenroman: 0x2169,
  25188. Tetsecyrillic: 0x04B4,
  25189. Theta: 0x0398,
  25190. Thook: 0x01AC,
  25191. Thorn: 0x00DE,
  25192. Thornsmall: 0xF7FE,
  25193. Threeroman: 0x2162,
  25194. Tildesmall: 0xF6FE,
  25195. Tiwnarmenian: 0x054F,
  25196. Tlinebelow: 0x1E6E,
  25197. Tmonospace: 0xFF34,
  25198. Toarmenian: 0x0539,
  25199. Tonefive: 0x01BC,
  25200. Tonesix: 0x0184,
  25201. Tonetwo: 0x01A7,
  25202. Tretroflexhook: 0x01AE,
  25203. Tsecyrillic: 0x0426,
  25204. Tshecyrillic: 0x040B,
  25205. Tsmall: 0xF774,
  25206. Twelveroman: 0x216B,
  25207. Tworoman: 0x2161,
  25208. U: 0x0055,
  25209. Uacute: 0x00DA,
  25210. Uacutesmall: 0xF7FA,
  25211. Ubreve: 0x016C,
  25212. Ucaron: 0x01D3,
  25213. Ucircle: 0x24CA,
  25214. Ucircumflex: 0x00DB,
  25215. Ucircumflexbelow: 0x1E76,
  25216. Ucircumflexsmall: 0xF7FB,
  25217. Ucyrillic: 0x0423,
  25218. Udblacute: 0x0170,
  25219. Udblgrave: 0x0214,
  25220. Udieresis: 0x00DC,
  25221. Udieresisacute: 0x01D7,
  25222. Udieresisbelow: 0x1E72,
  25223. Udieresiscaron: 0x01D9,
  25224. Udieresiscyrillic: 0x04F0,
  25225. Udieresisgrave: 0x01DB,
  25226. Udieresismacron: 0x01D5,
  25227. Udieresissmall: 0xF7FC,
  25228. Udotbelow: 0x1EE4,
  25229. Ugrave: 0x00D9,
  25230. Ugravesmall: 0xF7F9,
  25231. Uhookabove: 0x1EE6,
  25232. Uhorn: 0x01AF,
  25233. Uhornacute: 0x1EE8,
  25234. Uhorndotbelow: 0x1EF0,
  25235. Uhorngrave: 0x1EEA,
  25236. Uhornhookabove: 0x1EEC,
  25237. Uhorntilde: 0x1EEE,
  25238. Uhungarumlaut: 0x0170,
  25239. Uhungarumlautcyrillic: 0x04F2,
  25240. Uinvertedbreve: 0x0216,
  25241. Ukcyrillic: 0x0478,
  25242. Umacron: 0x016A,
  25243. Umacroncyrillic: 0x04EE,
  25244. Umacrondieresis: 0x1E7A,
  25245. Umonospace: 0xFF35,
  25246. Uogonek: 0x0172,
  25247. Upsilon: 0x03A5,
  25248. Upsilon1: 0x03D2,
  25249. Upsilonacutehooksymbolgreek: 0x03D3,
  25250. Upsilonafrican: 0x01B1,
  25251. Upsilondieresis: 0x03AB,
  25252. Upsilondieresishooksymbolgreek: 0x03D4,
  25253. Upsilonhooksymbol: 0x03D2,
  25254. Upsilontonos: 0x038E,
  25255. Uring: 0x016E,
  25256. Ushortcyrillic: 0x040E,
  25257. Usmall: 0xF775,
  25258. Ustraightcyrillic: 0x04AE,
  25259. Ustraightstrokecyrillic: 0x04B0,
  25260. Utilde: 0x0168,
  25261. Utildeacute: 0x1E78,
  25262. Utildebelow: 0x1E74,
  25263. V: 0x0056,
  25264. Vcircle: 0x24CB,
  25265. Vdotbelow: 0x1E7E,
  25266. Vecyrillic: 0x0412,
  25267. Vewarmenian: 0x054E,
  25268. Vhook: 0x01B2,
  25269. Vmonospace: 0xFF36,
  25270. Voarmenian: 0x0548,
  25271. Vsmall: 0xF776,
  25272. Vtilde: 0x1E7C,
  25273. W: 0x0057,
  25274. Wacute: 0x1E82,
  25275. Wcircle: 0x24CC,
  25276. Wcircumflex: 0x0174,
  25277. Wdieresis: 0x1E84,
  25278. Wdotaccent: 0x1E86,
  25279. Wdotbelow: 0x1E88,
  25280. Wgrave: 0x1E80,
  25281. Wmonospace: 0xFF37,
  25282. Wsmall: 0xF777,
  25283. X: 0x0058,
  25284. Xcircle: 0x24CD,
  25285. Xdieresis: 0x1E8C,
  25286. Xdotaccent: 0x1E8A,
  25287. Xeharmenian: 0x053D,
  25288. Xi: 0x039E,
  25289. Xmonospace: 0xFF38,
  25290. Xsmall: 0xF778,
  25291. Y: 0x0059,
  25292. Yacute: 0x00DD,
  25293. Yacutesmall: 0xF7FD,
  25294. Yatcyrillic: 0x0462,
  25295. Ycircle: 0x24CE,
  25296. Ycircumflex: 0x0176,
  25297. Ydieresis: 0x0178,
  25298. Ydieresissmall: 0xF7FF,
  25299. Ydotaccent: 0x1E8E,
  25300. Ydotbelow: 0x1EF4,
  25301. Yericyrillic: 0x042B,
  25302. Yerudieresiscyrillic: 0x04F8,
  25303. Ygrave: 0x1EF2,
  25304. Yhook: 0x01B3,
  25305. Yhookabove: 0x1EF6,
  25306. Yiarmenian: 0x0545,
  25307. Yicyrillic: 0x0407,
  25308. Yiwnarmenian: 0x0552,
  25309. Ymonospace: 0xFF39,
  25310. Ysmall: 0xF779,
  25311. Ytilde: 0x1EF8,
  25312. Yusbigcyrillic: 0x046A,
  25313. Yusbigiotifiedcyrillic: 0x046C,
  25314. Yuslittlecyrillic: 0x0466,
  25315. Yuslittleiotifiedcyrillic: 0x0468,
  25316. Z: 0x005A,
  25317. Zaarmenian: 0x0536,
  25318. Zacute: 0x0179,
  25319. Zcaron: 0x017D,
  25320. Zcaronsmall: 0xF6FF,
  25321. Zcircle: 0x24CF,
  25322. Zcircumflex: 0x1E90,
  25323. Zdot: 0x017B,
  25324. Zdotaccent: 0x017B,
  25325. Zdotbelow: 0x1E92,
  25326. Zecyrillic: 0x0417,
  25327. Zedescendercyrillic: 0x0498,
  25328. Zedieresiscyrillic: 0x04DE,
  25329. Zeta: 0x0396,
  25330. Zhearmenian: 0x053A,
  25331. Zhebrevecyrillic: 0x04C1,
  25332. Zhecyrillic: 0x0416,
  25333. Zhedescendercyrillic: 0x0496,
  25334. Zhedieresiscyrillic: 0x04DC,
  25335. Zlinebelow: 0x1E94,
  25336. Zmonospace: 0xFF3A,
  25337. Zsmall: 0xF77A,
  25338. Zstroke: 0x01B5,
  25339. a: 0x0061,
  25340. aabengali: 0x0986,
  25341. aacute: 0x00E1,
  25342. aadeva: 0x0906,
  25343. aagujarati: 0x0A86,
  25344. aagurmukhi: 0x0A06,
  25345. aamatragurmukhi: 0x0A3E,
  25346. aarusquare: 0x3303,
  25347. aavowelsignbengali: 0x09BE,
  25348. aavowelsigndeva: 0x093E,
  25349. aavowelsigngujarati: 0x0ABE,
  25350. abbreviationmarkarmenian: 0x055F,
  25351. abbreviationsigndeva: 0x0970,
  25352. abengali: 0x0985,
  25353. abopomofo: 0x311A,
  25354. abreve: 0x0103,
  25355. abreveacute: 0x1EAF,
  25356. abrevecyrillic: 0x04D1,
  25357. abrevedotbelow: 0x1EB7,
  25358. abrevegrave: 0x1EB1,
  25359. abrevehookabove: 0x1EB3,
  25360. abrevetilde: 0x1EB5,
  25361. acaron: 0x01CE,
  25362. acircle: 0x24D0,
  25363. acircumflex: 0x00E2,
  25364. acircumflexacute: 0x1EA5,
  25365. acircumflexdotbelow: 0x1EAD,
  25366. acircumflexgrave: 0x1EA7,
  25367. acircumflexhookabove: 0x1EA9,
  25368. acircumflextilde: 0x1EAB,
  25369. acute: 0x00B4,
  25370. acutebelowcmb: 0x0317,
  25371. acutecmb: 0x0301,
  25372. acutecomb: 0x0301,
  25373. acutedeva: 0x0954,
  25374. acutelowmod: 0x02CF,
  25375. acutetonecmb: 0x0341,
  25376. acyrillic: 0x0430,
  25377. adblgrave: 0x0201,
  25378. addakgurmukhi: 0x0A71,
  25379. adeva: 0x0905,
  25380. adieresis: 0x00E4,
  25381. adieresiscyrillic: 0x04D3,
  25382. adieresismacron: 0x01DF,
  25383. adotbelow: 0x1EA1,
  25384. adotmacron: 0x01E1,
  25385. ae: 0x00E6,
  25386. aeacute: 0x01FD,
  25387. aekorean: 0x3150,
  25388. aemacron: 0x01E3,
  25389. afii00208: 0x2015,
  25390. afii08941: 0x20A4,
  25391. afii10017: 0x0410,
  25392. afii10018: 0x0411,
  25393. afii10019: 0x0412,
  25394. afii10020: 0x0413,
  25395. afii10021: 0x0414,
  25396. afii10022: 0x0415,
  25397. afii10023: 0x0401,
  25398. afii10024: 0x0416,
  25399. afii10025: 0x0417,
  25400. afii10026: 0x0418,
  25401. afii10027: 0x0419,
  25402. afii10028: 0x041A,
  25403. afii10029: 0x041B,
  25404. afii10030: 0x041C,
  25405. afii10031: 0x041D,
  25406. afii10032: 0x041E,
  25407. afii10033: 0x041F,
  25408. afii10034: 0x0420,
  25409. afii10035: 0x0421,
  25410. afii10036: 0x0422,
  25411. afii10037: 0x0423,
  25412. afii10038: 0x0424,
  25413. afii10039: 0x0425,
  25414. afii10040: 0x0426,
  25415. afii10041: 0x0427,
  25416. afii10042: 0x0428,
  25417. afii10043: 0x0429,
  25418. afii10044: 0x042A,
  25419. afii10045: 0x042B,
  25420. afii10046: 0x042C,
  25421. afii10047: 0x042D,
  25422. afii10048: 0x042E,
  25423. afii10049: 0x042F,
  25424. afii10050: 0x0490,
  25425. afii10051: 0x0402,
  25426. afii10052: 0x0403,
  25427. afii10053: 0x0404,
  25428. afii10054: 0x0405,
  25429. afii10055: 0x0406,
  25430. afii10056: 0x0407,
  25431. afii10057: 0x0408,
  25432. afii10058: 0x0409,
  25433. afii10059: 0x040A,
  25434. afii10060: 0x040B,
  25435. afii10061: 0x040C,
  25436. afii10062: 0x040E,
  25437. afii10063: 0xF6C4,
  25438. afii10064: 0xF6C5,
  25439. afii10065: 0x0430,
  25440. afii10066: 0x0431,
  25441. afii10067: 0x0432,
  25442. afii10068: 0x0433,
  25443. afii10069: 0x0434,
  25444. afii10070: 0x0435,
  25445. afii10071: 0x0451,
  25446. afii10072: 0x0436,
  25447. afii10073: 0x0437,
  25448. afii10074: 0x0438,
  25449. afii10075: 0x0439,
  25450. afii10076: 0x043A,
  25451. afii10077: 0x043B,
  25452. afii10078: 0x043C,
  25453. afii10079: 0x043D,
  25454. afii10080: 0x043E,
  25455. afii10081: 0x043F,
  25456. afii10082: 0x0440,
  25457. afii10083: 0x0441,
  25458. afii10084: 0x0442,
  25459. afii10085: 0x0443,
  25460. afii10086: 0x0444,
  25461. afii10087: 0x0445,
  25462. afii10088: 0x0446,
  25463. afii10089: 0x0447,
  25464. afii10090: 0x0448,
  25465. afii10091: 0x0449,
  25466. afii10092: 0x044A,
  25467. afii10093: 0x044B,
  25468. afii10094: 0x044C,
  25469. afii10095: 0x044D,
  25470. afii10096: 0x044E,
  25471. afii10097: 0x044F,
  25472. afii10098: 0x0491,
  25473. afii10099: 0x0452,
  25474. afii10100: 0x0453,
  25475. afii10101: 0x0454,
  25476. afii10102: 0x0455,
  25477. afii10103: 0x0456,
  25478. afii10104: 0x0457,
  25479. afii10105: 0x0458,
  25480. afii10106: 0x0459,
  25481. afii10107: 0x045A,
  25482. afii10108: 0x045B,
  25483. afii10109: 0x045C,
  25484. afii10110: 0x045E,
  25485. afii10145: 0x040F,
  25486. afii10146: 0x0462,
  25487. afii10147: 0x0472,
  25488. afii10148: 0x0474,
  25489. afii10192: 0xF6C6,
  25490. afii10193: 0x045F,
  25491. afii10194: 0x0463,
  25492. afii10195: 0x0473,
  25493. afii10196: 0x0475,
  25494. afii10831: 0xF6C7,
  25495. afii10832: 0xF6C8,
  25496. afii10846: 0x04D9,
  25497. afii299: 0x200E,
  25498. afii300: 0x200F,
  25499. afii301: 0x200D,
  25500. afii57381: 0x066A,
  25501. afii57388: 0x060C,
  25502. afii57392: 0x0660,
  25503. afii57393: 0x0661,
  25504. afii57394: 0x0662,
  25505. afii57395: 0x0663,
  25506. afii57396: 0x0664,
  25507. afii57397: 0x0665,
  25508. afii57398: 0x0666,
  25509. afii57399: 0x0667,
  25510. afii57400: 0x0668,
  25511. afii57401: 0x0669,
  25512. afii57403: 0x061B,
  25513. afii57407: 0x061F,
  25514. afii57409: 0x0621,
  25515. afii57410: 0x0622,
  25516. afii57411: 0x0623,
  25517. afii57412: 0x0624,
  25518. afii57413: 0x0625,
  25519. afii57414: 0x0626,
  25520. afii57415: 0x0627,
  25521. afii57416: 0x0628,
  25522. afii57417: 0x0629,
  25523. afii57418: 0x062A,
  25524. afii57419: 0x062B,
  25525. afii57420: 0x062C,
  25526. afii57421: 0x062D,
  25527. afii57422: 0x062E,
  25528. afii57423: 0x062F,
  25529. afii57424: 0x0630,
  25530. afii57425: 0x0631,
  25531. afii57426: 0x0632,
  25532. afii57427: 0x0633,
  25533. afii57428: 0x0634,
  25534. afii57429: 0x0635,
  25535. afii57430: 0x0636,
  25536. afii57431: 0x0637,
  25537. afii57432: 0x0638,
  25538. afii57433: 0x0639,
  25539. afii57434: 0x063A,
  25540. afii57440: 0x0640,
  25541. afii57441: 0x0641,
  25542. afii57442: 0x0642,
  25543. afii57443: 0x0643,
  25544. afii57444: 0x0644,
  25545. afii57445: 0x0645,
  25546. afii57446: 0x0646,
  25547. afii57448: 0x0648,
  25548. afii57449: 0x0649,
  25549. afii57450: 0x064A,
  25550. afii57451: 0x064B,
  25551. afii57452: 0x064C,
  25552. afii57453: 0x064D,
  25553. afii57454: 0x064E,
  25554. afii57455: 0x064F,
  25555. afii57456: 0x0650,
  25556. afii57457: 0x0651,
  25557. afii57458: 0x0652,
  25558. afii57470: 0x0647,
  25559. afii57505: 0x06A4,
  25560. afii57506: 0x067E,
  25561. afii57507: 0x0686,
  25562. afii57508: 0x0698,
  25563. afii57509: 0x06AF,
  25564. afii57511: 0x0679,
  25565. afii57512: 0x0688,
  25566. afii57513: 0x0691,
  25567. afii57514: 0x06BA,
  25568. afii57519: 0x06D2,
  25569. afii57534: 0x06D5,
  25570. afii57636: 0x20AA,
  25571. afii57645: 0x05BE,
  25572. afii57658: 0x05C3,
  25573. afii57664: 0x05D0,
  25574. afii57665: 0x05D1,
  25575. afii57666: 0x05D2,
  25576. afii57667: 0x05D3,
  25577. afii57668: 0x05D4,
  25578. afii57669: 0x05D5,
  25579. afii57670: 0x05D6,
  25580. afii57671: 0x05D7,
  25581. afii57672: 0x05D8,
  25582. afii57673: 0x05D9,
  25583. afii57674: 0x05DA,
  25584. afii57675: 0x05DB,
  25585. afii57676: 0x05DC,
  25586. afii57677: 0x05DD,
  25587. afii57678: 0x05DE,
  25588. afii57679: 0x05DF,
  25589. afii57680: 0x05E0,
  25590. afii57681: 0x05E1,
  25591. afii57682: 0x05E2,
  25592. afii57683: 0x05E3,
  25593. afii57684: 0x05E4,
  25594. afii57685: 0x05E5,
  25595. afii57686: 0x05E6,
  25596. afii57687: 0x05E7,
  25597. afii57688: 0x05E8,
  25598. afii57689: 0x05E9,
  25599. afii57690: 0x05EA,
  25600. afii57694: 0xFB2A,
  25601. afii57695: 0xFB2B,
  25602. afii57700: 0xFB4B,
  25603. afii57705: 0xFB1F,
  25604. afii57716: 0x05F0,
  25605. afii57717: 0x05F1,
  25606. afii57718: 0x05F2,
  25607. afii57723: 0xFB35,
  25608. afii57793: 0x05B4,
  25609. afii57794: 0x05B5,
  25610. afii57795: 0x05B6,
  25611. afii57796: 0x05BB,
  25612. afii57797: 0x05B8,
  25613. afii57798: 0x05B7,
  25614. afii57799: 0x05B0,
  25615. afii57800: 0x05B2,
  25616. afii57801: 0x05B1,
  25617. afii57802: 0x05B3,
  25618. afii57803: 0x05C2,
  25619. afii57804: 0x05C1,
  25620. afii57806: 0x05B9,
  25621. afii57807: 0x05BC,
  25622. afii57839: 0x05BD,
  25623. afii57841: 0x05BF,
  25624. afii57842: 0x05C0,
  25625. afii57929: 0x02BC,
  25626. afii61248: 0x2105,
  25627. afii61289: 0x2113,
  25628. afii61352: 0x2116,
  25629. afii61573: 0x202C,
  25630. afii61574: 0x202D,
  25631. afii61575: 0x202E,
  25632. afii61664: 0x200C,
  25633. afii63167: 0x066D,
  25634. afii64937: 0x02BD,
  25635. agrave: 0x00E0,
  25636. agujarati: 0x0A85,
  25637. agurmukhi: 0x0A05,
  25638. ahiragana: 0x3042,
  25639. ahookabove: 0x1EA3,
  25640. aibengali: 0x0990,
  25641. aibopomofo: 0x311E,
  25642. aideva: 0x0910,
  25643. aiecyrillic: 0x04D5,
  25644. aigujarati: 0x0A90,
  25645. aigurmukhi: 0x0A10,
  25646. aimatragurmukhi: 0x0A48,
  25647. ainarabic: 0x0639,
  25648. ainfinalarabic: 0xFECA,
  25649. aininitialarabic: 0xFECB,
  25650. ainmedialarabic: 0xFECC,
  25651. ainvertedbreve: 0x0203,
  25652. aivowelsignbengali: 0x09C8,
  25653. aivowelsigndeva: 0x0948,
  25654. aivowelsigngujarati: 0x0AC8,
  25655. akatakana: 0x30A2,
  25656. akatakanahalfwidth: 0xFF71,
  25657. akorean: 0x314F,
  25658. alef: 0x05D0,
  25659. alefarabic: 0x0627,
  25660. alefdageshhebrew: 0xFB30,
  25661. aleffinalarabic: 0xFE8E,
  25662. alefhamzaabovearabic: 0x0623,
  25663. alefhamzaabovefinalarabic: 0xFE84,
  25664. alefhamzabelowarabic: 0x0625,
  25665. alefhamzabelowfinalarabic: 0xFE88,
  25666. alefhebrew: 0x05D0,
  25667. aleflamedhebrew: 0xFB4F,
  25668. alefmaddaabovearabic: 0x0622,
  25669. alefmaddaabovefinalarabic: 0xFE82,
  25670. alefmaksuraarabic: 0x0649,
  25671. alefmaksurafinalarabic: 0xFEF0,
  25672. alefmaksurainitialarabic: 0xFEF3,
  25673. alefmaksuramedialarabic: 0xFEF4,
  25674. alefpatahhebrew: 0xFB2E,
  25675. alefqamatshebrew: 0xFB2F,
  25676. aleph: 0x2135,
  25677. allequal: 0x224C,
  25678. alpha: 0x03B1,
  25679. alphatonos: 0x03AC,
  25680. amacron: 0x0101,
  25681. amonospace: 0xFF41,
  25682. ampersand: 0x0026,
  25683. ampersandmonospace: 0xFF06,
  25684. ampersandsmall: 0xF726,
  25685. amsquare: 0x33C2,
  25686. anbopomofo: 0x3122,
  25687. angbopomofo: 0x3124,
  25688. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  25689. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  25690. angkhankhuthai: 0x0E5A,
  25691. angle: 0x2220,
  25692. anglebracketleft: 0x3008,
  25693. anglebracketleftvertical: 0xFE3F,
  25694. anglebracketright: 0x3009,
  25695. anglebracketrightvertical: 0xFE40,
  25696. angleleft: 0x2329,
  25697. angleright: 0x232A,
  25698. angstrom: 0x212B,
  25699. anoteleia: 0x0387,
  25700. anudattadeva: 0x0952,
  25701. anusvarabengali: 0x0982,
  25702. anusvaradeva: 0x0902,
  25703. anusvaragujarati: 0x0A82,
  25704. aogonek: 0x0105,
  25705. apaatosquare: 0x3300,
  25706. aparen: 0x249C,
  25707. apostrophearmenian: 0x055A,
  25708. apostrophemod: 0x02BC,
  25709. apple: 0xF8FF,
  25710. approaches: 0x2250,
  25711. approxequal: 0x2248,
  25712. approxequalorimage: 0x2252,
  25713. approximatelyequal: 0x2245,
  25714. araeaekorean: 0x318E,
  25715. araeakorean: 0x318D,
  25716. arc: 0x2312,
  25717. arighthalfring: 0x1E9A,
  25718. aring: 0x00E5,
  25719. aringacute: 0x01FB,
  25720. aringbelow: 0x1E01,
  25721. arrowboth: 0x2194,
  25722. arrowdashdown: 0x21E3,
  25723. arrowdashleft: 0x21E0,
  25724. arrowdashright: 0x21E2,
  25725. arrowdashup: 0x21E1,
  25726. arrowdblboth: 0x21D4,
  25727. arrowdbldown: 0x21D3,
  25728. arrowdblleft: 0x21D0,
  25729. arrowdblright: 0x21D2,
  25730. arrowdblup: 0x21D1,
  25731. arrowdown: 0x2193,
  25732. arrowdownleft: 0x2199,
  25733. arrowdownright: 0x2198,
  25734. arrowdownwhite: 0x21E9,
  25735. arrowheaddownmod: 0x02C5,
  25736. arrowheadleftmod: 0x02C2,
  25737. arrowheadrightmod: 0x02C3,
  25738. arrowheadupmod: 0x02C4,
  25739. arrowhorizex: 0xF8E7,
  25740. arrowleft: 0x2190,
  25741. arrowleftdbl: 0x21D0,
  25742. arrowleftdblstroke: 0x21CD,
  25743. arrowleftoverright: 0x21C6,
  25744. arrowleftwhite: 0x21E6,
  25745. arrowright: 0x2192,
  25746. arrowrightdblstroke: 0x21CF,
  25747. arrowrightheavy: 0x279E,
  25748. arrowrightoverleft: 0x21C4,
  25749. arrowrightwhite: 0x21E8,
  25750. arrowtableft: 0x21E4,
  25751. arrowtabright: 0x21E5,
  25752. arrowup: 0x2191,
  25753. arrowupdn: 0x2195,
  25754. arrowupdnbse: 0x21A8,
  25755. arrowupdownbase: 0x21A8,
  25756. arrowupleft: 0x2196,
  25757. arrowupleftofdown: 0x21C5,
  25758. arrowupright: 0x2197,
  25759. arrowupwhite: 0x21E7,
  25760. arrowvertex: 0xF8E6,
  25761. asciicircum: 0x005E,
  25762. asciicircummonospace: 0xFF3E,
  25763. asciitilde: 0x007E,
  25764. asciitildemonospace: 0xFF5E,
  25765. ascript: 0x0251,
  25766. ascriptturned: 0x0252,
  25767. asmallhiragana: 0x3041,
  25768. asmallkatakana: 0x30A1,
  25769. asmallkatakanahalfwidth: 0xFF67,
  25770. asterisk: 0x002A,
  25771. asteriskaltonearabic: 0x066D,
  25772. asteriskarabic: 0x066D,
  25773. asteriskmath: 0x2217,
  25774. asteriskmonospace: 0xFF0A,
  25775. asterisksmall: 0xFE61,
  25776. asterism: 0x2042,
  25777. asuperior: 0xF6E9,
  25778. asymptoticallyequal: 0x2243,
  25779. at: 0x0040,
  25780. atilde: 0x00E3,
  25781. atmonospace: 0xFF20,
  25782. atsmall: 0xFE6B,
  25783. aturned: 0x0250,
  25784. aubengali: 0x0994,
  25785. aubopomofo: 0x3120,
  25786. audeva: 0x0914,
  25787. augujarati: 0x0A94,
  25788. augurmukhi: 0x0A14,
  25789. aulengthmarkbengali: 0x09D7,
  25790. aumatragurmukhi: 0x0A4C,
  25791. auvowelsignbengali: 0x09CC,
  25792. auvowelsigndeva: 0x094C,
  25793. auvowelsigngujarati: 0x0ACC,
  25794. avagrahadeva: 0x093D,
  25795. aybarmenian: 0x0561,
  25796. ayin: 0x05E2,
  25797. ayinaltonehebrew: 0xFB20,
  25798. ayinhebrew: 0x05E2,
  25799. b: 0x0062,
  25800. babengali: 0x09AC,
  25801. backslash: 0x005C,
  25802. backslashmonospace: 0xFF3C,
  25803. badeva: 0x092C,
  25804. bagujarati: 0x0AAC,
  25805. bagurmukhi: 0x0A2C,
  25806. bahiragana: 0x3070,
  25807. bahtthai: 0x0E3F,
  25808. bakatakana: 0x30D0,
  25809. bar: 0x007C,
  25810. barmonospace: 0xFF5C,
  25811. bbopomofo: 0x3105,
  25812. bcircle: 0x24D1,
  25813. bdotaccent: 0x1E03,
  25814. bdotbelow: 0x1E05,
  25815. beamedsixteenthnotes: 0x266C,
  25816. because: 0x2235,
  25817. becyrillic: 0x0431,
  25818. beharabic: 0x0628,
  25819. behfinalarabic: 0xFE90,
  25820. behinitialarabic: 0xFE91,
  25821. behiragana: 0x3079,
  25822. behmedialarabic: 0xFE92,
  25823. behmeeminitialarabic: 0xFC9F,
  25824. behmeemisolatedarabic: 0xFC08,
  25825. behnoonfinalarabic: 0xFC6D,
  25826. bekatakana: 0x30D9,
  25827. benarmenian: 0x0562,
  25828. bet: 0x05D1,
  25829. beta: 0x03B2,
  25830. betasymbolgreek: 0x03D0,
  25831. betdagesh: 0xFB31,
  25832. betdageshhebrew: 0xFB31,
  25833. bethebrew: 0x05D1,
  25834. betrafehebrew: 0xFB4C,
  25835. bhabengali: 0x09AD,
  25836. bhadeva: 0x092D,
  25837. bhagujarati: 0x0AAD,
  25838. bhagurmukhi: 0x0A2D,
  25839. bhook: 0x0253,
  25840. bihiragana: 0x3073,
  25841. bikatakana: 0x30D3,
  25842. bilabialclick: 0x0298,
  25843. bindigurmukhi: 0x0A02,
  25844. birusquare: 0x3331,
  25845. blackcircle: 0x25CF,
  25846. blackdiamond: 0x25C6,
  25847. blackdownpointingtriangle: 0x25BC,
  25848. blackleftpointingpointer: 0x25C4,
  25849. blackleftpointingtriangle: 0x25C0,
  25850. blacklenticularbracketleft: 0x3010,
  25851. blacklenticularbracketleftvertical: 0xFE3B,
  25852. blacklenticularbracketright: 0x3011,
  25853. blacklenticularbracketrightvertical: 0xFE3C,
  25854. blacklowerlefttriangle: 0x25E3,
  25855. blacklowerrighttriangle: 0x25E2,
  25856. blackrectangle: 0x25AC,
  25857. blackrightpointingpointer: 0x25BA,
  25858. blackrightpointingtriangle: 0x25B6,
  25859. blacksmallsquare: 0x25AA,
  25860. blacksmilingface: 0x263B,
  25861. blacksquare: 0x25A0,
  25862. blackstar: 0x2605,
  25863. blackupperlefttriangle: 0x25E4,
  25864. blackupperrighttriangle: 0x25E5,
  25865. blackuppointingsmalltriangle: 0x25B4,
  25866. blackuppointingtriangle: 0x25B2,
  25867. blank: 0x2423,
  25868. blinebelow: 0x1E07,
  25869. block: 0x2588,
  25870. bmonospace: 0xFF42,
  25871. bobaimaithai: 0x0E1A,
  25872. bohiragana: 0x307C,
  25873. bokatakana: 0x30DC,
  25874. bparen: 0x249D,
  25875. bqsquare: 0x33C3,
  25876. braceex: 0xF8F4,
  25877. braceleft: 0x007B,
  25878. braceleftbt: 0xF8F3,
  25879. braceleftmid: 0xF8F2,
  25880. braceleftmonospace: 0xFF5B,
  25881. braceleftsmall: 0xFE5B,
  25882. bracelefttp: 0xF8F1,
  25883. braceleftvertical: 0xFE37,
  25884. braceright: 0x007D,
  25885. bracerightbt: 0xF8FE,
  25886. bracerightmid: 0xF8FD,
  25887. bracerightmonospace: 0xFF5D,
  25888. bracerightsmall: 0xFE5C,
  25889. bracerighttp: 0xF8FC,
  25890. bracerightvertical: 0xFE38,
  25891. bracketleft: 0x005B,
  25892. bracketleftbt: 0xF8F0,
  25893. bracketleftex: 0xF8EF,
  25894. bracketleftmonospace: 0xFF3B,
  25895. bracketlefttp: 0xF8EE,
  25896. bracketright: 0x005D,
  25897. bracketrightbt: 0xF8FB,
  25898. bracketrightex: 0xF8FA,
  25899. bracketrightmonospace: 0xFF3D,
  25900. bracketrighttp: 0xF8F9,
  25901. breve: 0x02D8,
  25902. brevebelowcmb: 0x032E,
  25903. brevecmb: 0x0306,
  25904. breveinvertedbelowcmb: 0x032F,
  25905. breveinvertedcmb: 0x0311,
  25906. breveinverteddoublecmb: 0x0361,
  25907. bridgebelowcmb: 0x032A,
  25908. bridgeinvertedbelowcmb: 0x033A,
  25909. brokenbar: 0x00A6,
  25910. bstroke: 0x0180,
  25911. bsuperior: 0xF6EA,
  25912. btopbar: 0x0183,
  25913. buhiragana: 0x3076,
  25914. bukatakana: 0x30D6,
  25915. bullet: 0x2022,
  25916. bulletinverse: 0x25D8,
  25917. bulletoperator: 0x2219,
  25918. bullseye: 0x25CE,
  25919. c: 0x0063,
  25920. caarmenian: 0x056E,
  25921. cabengali: 0x099A,
  25922. cacute: 0x0107,
  25923. cadeva: 0x091A,
  25924. cagujarati: 0x0A9A,
  25925. cagurmukhi: 0x0A1A,
  25926. calsquare: 0x3388,
  25927. candrabindubengali: 0x0981,
  25928. candrabinducmb: 0x0310,
  25929. candrabindudeva: 0x0901,
  25930. candrabindugujarati: 0x0A81,
  25931. capslock: 0x21EA,
  25932. careof: 0x2105,
  25933. caron: 0x02C7,
  25934. caronbelowcmb: 0x032C,
  25935. caroncmb: 0x030C,
  25936. carriagereturn: 0x21B5,
  25937. cbopomofo: 0x3118,
  25938. ccaron: 0x010D,
  25939. ccedilla: 0x00E7,
  25940. ccedillaacute: 0x1E09,
  25941. ccircle: 0x24D2,
  25942. ccircumflex: 0x0109,
  25943. ccurl: 0x0255,
  25944. cdot: 0x010B,
  25945. cdotaccent: 0x010B,
  25946. cdsquare: 0x33C5,
  25947. cedilla: 0x00B8,
  25948. cedillacmb: 0x0327,
  25949. cent: 0x00A2,
  25950. centigrade: 0x2103,
  25951. centinferior: 0xF6DF,
  25952. centmonospace: 0xFFE0,
  25953. centoldstyle: 0xF7A2,
  25954. centsuperior: 0xF6E0,
  25955. chaarmenian: 0x0579,
  25956. chabengali: 0x099B,
  25957. chadeva: 0x091B,
  25958. chagujarati: 0x0A9B,
  25959. chagurmukhi: 0x0A1B,
  25960. chbopomofo: 0x3114,
  25961. cheabkhasiancyrillic: 0x04BD,
  25962. checkmark: 0x2713,
  25963. checyrillic: 0x0447,
  25964. chedescenderabkhasiancyrillic: 0x04BF,
  25965. chedescendercyrillic: 0x04B7,
  25966. chedieresiscyrillic: 0x04F5,
  25967. cheharmenian: 0x0573,
  25968. chekhakassiancyrillic: 0x04CC,
  25969. cheverticalstrokecyrillic: 0x04B9,
  25970. chi: 0x03C7,
  25971. chieuchacirclekorean: 0x3277,
  25972. chieuchaparenkorean: 0x3217,
  25973. chieuchcirclekorean: 0x3269,
  25974. chieuchkorean: 0x314A,
  25975. chieuchparenkorean: 0x3209,
  25976. chochangthai: 0x0E0A,
  25977. chochanthai: 0x0E08,
  25978. chochingthai: 0x0E09,
  25979. chochoethai: 0x0E0C,
  25980. chook: 0x0188,
  25981. cieucacirclekorean: 0x3276,
  25982. cieucaparenkorean: 0x3216,
  25983. cieuccirclekorean: 0x3268,
  25984. cieuckorean: 0x3148,
  25985. cieucparenkorean: 0x3208,
  25986. cieucuparenkorean: 0x321C,
  25987. circle: 0x25CB,
  25988. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  25989. circlemultiply: 0x2297,
  25990. circleot: 0x2299,
  25991. circleplus: 0x2295,
  25992. circlepostalmark: 0x3036,
  25993. circlewithlefthalfblack: 0x25D0,
  25994. circlewithrighthalfblack: 0x25D1,
  25995. circumflex: 0x02C6,
  25996. circumflexbelowcmb: 0x032D,
  25997. circumflexcmb: 0x0302,
  25998. clear: 0x2327,
  25999. clickalveolar: 0x01C2,
  26000. clickdental: 0x01C0,
  26001. clicklateral: 0x01C1,
  26002. clickretroflex: 0x01C3,
  26003. club: 0x2663,
  26004. clubsuitblack: 0x2663,
  26005. clubsuitwhite: 0x2667,
  26006. cmcubedsquare: 0x33A4,
  26007. cmonospace: 0xFF43,
  26008. cmsquaredsquare: 0x33A0,
  26009. coarmenian: 0x0581,
  26010. colon: 0x003A,
  26011. colonmonetary: 0x20A1,
  26012. colonmonospace: 0xFF1A,
  26013. colonsign: 0x20A1,
  26014. colonsmall: 0xFE55,
  26015. colontriangularhalfmod: 0x02D1,
  26016. colontriangularmod: 0x02D0,
  26017. comma: 0x002C,
  26018. commaabovecmb: 0x0313,
  26019. commaaboverightcmb: 0x0315,
  26020. commaaccent: 0xF6C3,
  26021. commaarabic: 0x060C,
  26022. commaarmenian: 0x055D,
  26023. commainferior: 0xF6E1,
  26024. commamonospace: 0xFF0C,
  26025. commareversedabovecmb: 0x0314,
  26026. commareversedmod: 0x02BD,
  26027. commasmall: 0xFE50,
  26028. commasuperior: 0xF6E2,
  26029. commaturnedabovecmb: 0x0312,
  26030. commaturnedmod: 0x02BB,
  26031. compass: 0x263C,
  26032. congruent: 0x2245,
  26033. contourintegral: 0x222E,
  26034. control: 0x2303,
  26035. controlACK: 0x0006,
  26036. controlBEL: 0x0007,
  26037. controlBS: 0x0008,
  26038. controlCAN: 0x0018,
  26039. controlCR: 0x000D,
  26040. controlDC1: 0x0011,
  26041. controlDC2: 0x0012,
  26042. controlDC3: 0x0013,
  26043. controlDC4: 0x0014,
  26044. controlDEL: 0x007F,
  26045. controlDLE: 0x0010,
  26046. controlEM: 0x0019,
  26047. controlENQ: 0x0005,
  26048. controlEOT: 0x0004,
  26049. controlESC: 0x001B,
  26050. controlETB: 0x0017,
  26051. controlETX: 0x0003,
  26052. controlFF: 0x000C,
  26053. controlFS: 0x001C,
  26054. controlGS: 0x001D,
  26055. controlHT: 0x0009,
  26056. controlLF: 0x000A,
  26057. controlNAK: 0x0015,
  26058. controlRS: 0x001E,
  26059. controlSI: 0x000F,
  26060. controlSO: 0x000E,
  26061. controlSOT: 0x0002,
  26062. controlSTX: 0x0001,
  26063. controlSUB: 0x001A,
  26064. controlSYN: 0x0016,
  26065. controlUS: 0x001F,
  26066. controlVT: 0x000B,
  26067. copyright: 0x00A9,
  26068. copyrightsans: 0xF8E9,
  26069. copyrightserif: 0xF6D9,
  26070. cornerbracketleft: 0x300C,
  26071. cornerbracketlefthalfwidth: 0xFF62,
  26072. cornerbracketleftvertical: 0xFE41,
  26073. cornerbracketright: 0x300D,
  26074. cornerbracketrighthalfwidth: 0xFF63,
  26075. cornerbracketrightvertical: 0xFE42,
  26076. corporationsquare: 0x337F,
  26077. cosquare: 0x33C7,
  26078. coverkgsquare: 0x33C6,
  26079. cparen: 0x249E,
  26080. cruzeiro: 0x20A2,
  26081. cstretched: 0x0297,
  26082. curlyand: 0x22CF,
  26083. curlyor: 0x22CE,
  26084. currency: 0x00A4,
  26085. cyrBreve: 0xF6D1,
  26086. cyrFlex: 0xF6D2,
  26087. cyrbreve: 0xF6D4,
  26088. cyrflex: 0xF6D5,
  26089. d: 0x0064,
  26090. daarmenian: 0x0564,
  26091. dabengali: 0x09A6,
  26092. dadarabic: 0x0636,
  26093. dadeva: 0x0926,
  26094. dadfinalarabic: 0xFEBE,
  26095. dadinitialarabic: 0xFEBF,
  26096. dadmedialarabic: 0xFEC0,
  26097. dagesh: 0x05BC,
  26098. dageshhebrew: 0x05BC,
  26099. dagger: 0x2020,
  26100. daggerdbl: 0x2021,
  26101. dagujarati: 0x0AA6,
  26102. dagurmukhi: 0x0A26,
  26103. dahiragana: 0x3060,
  26104. dakatakana: 0x30C0,
  26105. dalarabic: 0x062F,
  26106. dalet: 0x05D3,
  26107. daletdagesh: 0xFB33,
  26108. daletdageshhebrew: 0xFB33,
  26109. dalethebrew: 0x05D3,
  26110. dalfinalarabic: 0xFEAA,
  26111. dammaarabic: 0x064F,
  26112. dammalowarabic: 0x064F,
  26113. dammatanaltonearabic: 0x064C,
  26114. dammatanarabic: 0x064C,
  26115. danda: 0x0964,
  26116. dargahebrew: 0x05A7,
  26117. dargalefthebrew: 0x05A7,
  26118. dasiapneumatacyrilliccmb: 0x0485,
  26119. dblGrave: 0xF6D3,
  26120. dblanglebracketleft: 0x300A,
  26121. dblanglebracketleftvertical: 0xFE3D,
  26122. dblanglebracketright: 0x300B,
  26123. dblanglebracketrightvertical: 0xFE3E,
  26124. dblarchinvertedbelowcmb: 0x032B,
  26125. dblarrowleft: 0x21D4,
  26126. dblarrowright: 0x21D2,
  26127. dbldanda: 0x0965,
  26128. dblgrave: 0xF6D6,
  26129. dblgravecmb: 0x030F,
  26130. dblintegral: 0x222C,
  26131. dbllowline: 0x2017,
  26132. dbllowlinecmb: 0x0333,
  26133. dbloverlinecmb: 0x033F,
  26134. dblprimemod: 0x02BA,
  26135. dblverticalbar: 0x2016,
  26136. dblverticallineabovecmb: 0x030E,
  26137. dbopomofo: 0x3109,
  26138. dbsquare: 0x33C8,
  26139. dcaron: 0x010F,
  26140. dcedilla: 0x1E11,
  26141. dcircle: 0x24D3,
  26142. dcircumflexbelow: 0x1E13,
  26143. dcroat: 0x0111,
  26144. ddabengali: 0x09A1,
  26145. ddadeva: 0x0921,
  26146. ddagujarati: 0x0AA1,
  26147. ddagurmukhi: 0x0A21,
  26148. ddalarabic: 0x0688,
  26149. ddalfinalarabic: 0xFB89,
  26150. dddhadeva: 0x095C,
  26151. ddhabengali: 0x09A2,
  26152. ddhadeva: 0x0922,
  26153. ddhagujarati: 0x0AA2,
  26154. ddhagurmukhi: 0x0A22,
  26155. ddotaccent: 0x1E0B,
  26156. ddotbelow: 0x1E0D,
  26157. decimalseparatorarabic: 0x066B,
  26158. decimalseparatorpersian: 0x066B,
  26159. decyrillic: 0x0434,
  26160. degree: 0x00B0,
  26161. dehihebrew: 0x05AD,
  26162. dehiragana: 0x3067,
  26163. deicoptic: 0x03EF,
  26164. dekatakana: 0x30C7,
  26165. deleteleft: 0x232B,
  26166. deleteright: 0x2326,
  26167. delta: 0x03B4,
  26168. deltaturned: 0x018D,
  26169. denominatorminusonenumeratorbengali: 0x09F8,
  26170. dezh: 0x02A4,
  26171. dhabengali: 0x09A7,
  26172. dhadeva: 0x0927,
  26173. dhagujarati: 0x0AA7,
  26174. dhagurmukhi: 0x0A27,
  26175. dhook: 0x0257,
  26176. dialytikatonos: 0x0385,
  26177. dialytikatonoscmb: 0x0344,
  26178. diamond: 0x2666,
  26179. diamondsuitwhite: 0x2662,
  26180. dieresis: 0x00A8,
  26181. dieresisacute: 0xF6D7,
  26182. dieresisbelowcmb: 0x0324,
  26183. dieresiscmb: 0x0308,
  26184. dieresisgrave: 0xF6D8,
  26185. dieresistonos: 0x0385,
  26186. dihiragana: 0x3062,
  26187. dikatakana: 0x30C2,
  26188. dittomark: 0x3003,
  26189. divide: 0x00F7,
  26190. divides: 0x2223,
  26191. divisionslash: 0x2215,
  26192. djecyrillic: 0x0452,
  26193. dkshade: 0x2593,
  26194. dlinebelow: 0x1E0F,
  26195. dlsquare: 0x3397,
  26196. dmacron: 0x0111,
  26197. dmonospace: 0xFF44,
  26198. dnblock: 0x2584,
  26199. dochadathai: 0x0E0E,
  26200. dodekthai: 0x0E14,
  26201. dohiragana: 0x3069,
  26202. dokatakana: 0x30C9,
  26203. dollar: 0x0024,
  26204. dollarinferior: 0xF6E3,
  26205. dollarmonospace: 0xFF04,
  26206. dollaroldstyle: 0xF724,
  26207. dollarsmall: 0xFE69,
  26208. dollarsuperior: 0xF6E4,
  26209. dong: 0x20AB,
  26210. dorusquare: 0x3326,
  26211. dotaccent: 0x02D9,
  26212. dotaccentcmb: 0x0307,
  26213. dotbelowcmb: 0x0323,
  26214. dotbelowcomb: 0x0323,
  26215. dotkatakana: 0x30FB,
  26216. dotlessi: 0x0131,
  26217. dotlessj: 0xF6BE,
  26218. dotlessjstrokehook: 0x0284,
  26219. dotmath: 0x22C5,
  26220. dottedcircle: 0x25CC,
  26221. doubleyodpatah: 0xFB1F,
  26222. doubleyodpatahhebrew: 0xFB1F,
  26223. downtackbelowcmb: 0x031E,
  26224. downtackmod: 0x02D5,
  26225. dparen: 0x249F,
  26226. dsuperior: 0xF6EB,
  26227. dtail: 0x0256,
  26228. dtopbar: 0x018C,
  26229. duhiragana: 0x3065,
  26230. dukatakana: 0x30C5,
  26231. dz: 0x01F3,
  26232. dzaltone: 0x02A3,
  26233. dzcaron: 0x01C6,
  26234. dzcurl: 0x02A5,
  26235. dzeabkhasiancyrillic: 0x04E1,
  26236. dzecyrillic: 0x0455,
  26237. dzhecyrillic: 0x045F,
  26238. e: 0x0065,
  26239. eacute: 0x00E9,
  26240. earth: 0x2641,
  26241. ebengali: 0x098F,
  26242. ebopomofo: 0x311C,
  26243. ebreve: 0x0115,
  26244. ecandradeva: 0x090D,
  26245. ecandragujarati: 0x0A8D,
  26246. ecandravowelsigndeva: 0x0945,
  26247. ecandravowelsigngujarati: 0x0AC5,
  26248. ecaron: 0x011B,
  26249. ecedillabreve: 0x1E1D,
  26250. echarmenian: 0x0565,
  26251. echyiwnarmenian: 0x0587,
  26252. ecircle: 0x24D4,
  26253. ecircumflex: 0x00EA,
  26254. ecircumflexacute: 0x1EBF,
  26255. ecircumflexbelow: 0x1E19,
  26256. ecircumflexdotbelow: 0x1EC7,
  26257. ecircumflexgrave: 0x1EC1,
  26258. ecircumflexhookabove: 0x1EC3,
  26259. ecircumflextilde: 0x1EC5,
  26260. ecyrillic: 0x0454,
  26261. edblgrave: 0x0205,
  26262. edeva: 0x090F,
  26263. edieresis: 0x00EB,
  26264. edot: 0x0117,
  26265. edotaccent: 0x0117,
  26266. edotbelow: 0x1EB9,
  26267. eegurmukhi: 0x0A0F,
  26268. eematragurmukhi: 0x0A47,
  26269. efcyrillic: 0x0444,
  26270. egrave: 0x00E8,
  26271. egujarati: 0x0A8F,
  26272. eharmenian: 0x0567,
  26273. ehbopomofo: 0x311D,
  26274. ehiragana: 0x3048,
  26275. ehookabove: 0x1EBB,
  26276. eibopomofo: 0x311F,
  26277. eight: 0x0038,
  26278. eightarabic: 0x0668,
  26279. eightbengali: 0x09EE,
  26280. eightcircle: 0x2467,
  26281. eightcircleinversesansserif: 0x2791,
  26282. eightdeva: 0x096E,
  26283. eighteencircle: 0x2471,
  26284. eighteenparen: 0x2485,
  26285. eighteenperiod: 0x2499,
  26286. eightgujarati: 0x0AEE,
  26287. eightgurmukhi: 0x0A6E,
  26288. eighthackarabic: 0x0668,
  26289. eighthangzhou: 0x3028,
  26290. eighthnotebeamed: 0x266B,
  26291. eightideographicparen: 0x3227,
  26292. eightinferior: 0x2088,
  26293. eightmonospace: 0xFF18,
  26294. eightoldstyle: 0xF738,
  26295. eightparen: 0x247B,
  26296. eightperiod: 0x248F,
  26297. eightpersian: 0x06F8,
  26298. eightroman: 0x2177,
  26299. eightsuperior: 0x2078,
  26300. eightthai: 0x0E58,
  26301. einvertedbreve: 0x0207,
  26302. eiotifiedcyrillic: 0x0465,
  26303. ekatakana: 0x30A8,
  26304. ekatakanahalfwidth: 0xFF74,
  26305. ekonkargurmukhi: 0x0A74,
  26306. ekorean: 0x3154,
  26307. elcyrillic: 0x043B,
  26308. element: 0x2208,
  26309. elevencircle: 0x246A,
  26310. elevenparen: 0x247E,
  26311. elevenperiod: 0x2492,
  26312. elevenroman: 0x217A,
  26313. ellipsis: 0x2026,
  26314. ellipsisvertical: 0x22EE,
  26315. emacron: 0x0113,
  26316. emacronacute: 0x1E17,
  26317. emacrongrave: 0x1E15,
  26318. emcyrillic: 0x043C,
  26319. emdash: 0x2014,
  26320. emdashvertical: 0xFE31,
  26321. emonospace: 0xFF45,
  26322. emphasismarkarmenian: 0x055B,
  26323. emptyset: 0x2205,
  26324. enbopomofo: 0x3123,
  26325. encyrillic: 0x043D,
  26326. endash: 0x2013,
  26327. endashvertical: 0xFE32,
  26328. endescendercyrillic: 0x04A3,
  26329. eng: 0x014B,
  26330. engbopomofo: 0x3125,
  26331. enghecyrillic: 0x04A5,
  26332. enhookcyrillic: 0x04C8,
  26333. enspace: 0x2002,
  26334. eogonek: 0x0119,
  26335. eokorean: 0x3153,
  26336. eopen: 0x025B,
  26337. eopenclosed: 0x029A,
  26338. eopenreversed: 0x025C,
  26339. eopenreversedclosed: 0x025E,
  26340. eopenreversedhook: 0x025D,
  26341. eparen: 0x24A0,
  26342. epsilon: 0x03B5,
  26343. epsilontonos: 0x03AD,
  26344. equal: 0x003D,
  26345. equalmonospace: 0xFF1D,
  26346. equalsmall: 0xFE66,
  26347. equalsuperior: 0x207C,
  26348. equivalence: 0x2261,
  26349. erbopomofo: 0x3126,
  26350. ercyrillic: 0x0440,
  26351. ereversed: 0x0258,
  26352. ereversedcyrillic: 0x044D,
  26353. escyrillic: 0x0441,
  26354. esdescendercyrillic: 0x04AB,
  26355. esh: 0x0283,
  26356. eshcurl: 0x0286,
  26357. eshortdeva: 0x090E,
  26358. eshortvowelsigndeva: 0x0946,
  26359. eshreversedloop: 0x01AA,
  26360. eshsquatreversed: 0x0285,
  26361. esmallhiragana: 0x3047,
  26362. esmallkatakana: 0x30A7,
  26363. esmallkatakanahalfwidth: 0xFF6A,
  26364. estimated: 0x212E,
  26365. esuperior: 0xF6EC,
  26366. eta: 0x03B7,
  26367. etarmenian: 0x0568,
  26368. etatonos: 0x03AE,
  26369. eth: 0x00F0,
  26370. etilde: 0x1EBD,
  26371. etildebelow: 0x1E1B,
  26372. etnahtafoukhhebrew: 0x0591,
  26373. etnahtafoukhlefthebrew: 0x0591,
  26374. etnahtahebrew: 0x0591,
  26375. etnahtalefthebrew: 0x0591,
  26376. eturned: 0x01DD,
  26377. eukorean: 0x3161,
  26378. euro: 0x20AC,
  26379. evowelsignbengali: 0x09C7,
  26380. evowelsigndeva: 0x0947,
  26381. evowelsigngujarati: 0x0AC7,
  26382. exclam: 0x0021,
  26383. exclamarmenian: 0x055C,
  26384. exclamdbl: 0x203C,
  26385. exclamdown: 0x00A1,
  26386. exclamdownsmall: 0xF7A1,
  26387. exclammonospace: 0xFF01,
  26388. exclamsmall: 0xF721,
  26389. existential: 0x2203,
  26390. ezh: 0x0292,
  26391. ezhcaron: 0x01EF,
  26392. ezhcurl: 0x0293,
  26393. ezhreversed: 0x01B9,
  26394. ezhtail: 0x01BA,
  26395. f: 0x0066,
  26396. fadeva: 0x095E,
  26397. fagurmukhi: 0x0A5E,
  26398. fahrenheit: 0x2109,
  26399. fathaarabic: 0x064E,
  26400. fathalowarabic: 0x064E,
  26401. fathatanarabic: 0x064B,
  26402. fbopomofo: 0x3108,
  26403. fcircle: 0x24D5,
  26404. fdotaccent: 0x1E1F,
  26405. feharabic: 0x0641,
  26406. feharmenian: 0x0586,
  26407. fehfinalarabic: 0xFED2,
  26408. fehinitialarabic: 0xFED3,
  26409. fehmedialarabic: 0xFED4,
  26410. feicoptic: 0x03E5,
  26411. female: 0x2640,
  26412. ff: 0xFB00,
  26413. ffi: 0xFB03,
  26414. ffl: 0xFB04,
  26415. fi: 0xFB01,
  26416. fifteencircle: 0x246E,
  26417. fifteenparen: 0x2482,
  26418. fifteenperiod: 0x2496,
  26419. figuredash: 0x2012,
  26420. filledbox: 0x25A0,
  26421. filledrect: 0x25AC,
  26422. finalkaf: 0x05DA,
  26423. finalkafdagesh: 0xFB3A,
  26424. finalkafdageshhebrew: 0xFB3A,
  26425. finalkafhebrew: 0x05DA,
  26426. finalmem: 0x05DD,
  26427. finalmemhebrew: 0x05DD,
  26428. finalnun: 0x05DF,
  26429. finalnunhebrew: 0x05DF,
  26430. finalpe: 0x05E3,
  26431. finalpehebrew: 0x05E3,
  26432. finaltsadi: 0x05E5,
  26433. finaltsadihebrew: 0x05E5,
  26434. firsttonechinese: 0x02C9,
  26435. fisheye: 0x25C9,
  26436. fitacyrillic: 0x0473,
  26437. five: 0x0035,
  26438. fivearabic: 0x0665,
  26439. fivebengali: 0x09EB,
  26440. fivecircle: 0x2464,
  26441. fivecircleinversesansserif: 0x278E,
  26442. fivedeva: 0x096B,
  26443. fiveeighths: 0x215D,
  26444. fivegujarati: 0x0AEB,
  26445. fivegurmukhi: 0x0A6B,
  26446. fivehackarabic: 0x0665,
  26447. fivehangzhou: 0x3025,
  26448. fiveideographicparen: 0x3224,
  26449. fiveinferior: 0x2085,
  26450. fivemonospace: 0xFF15,
  26451. fiveoldstyle: 0xF735,
  26452. fiveparen: 0x2478,
  26453. fiveperiod: 0x248C,
  26454. fivepersian: 0x06F5,
  26455. fiveroman: 0x2174,
  26456. fivesuperior: 0x2075,
  26457. fivethai: 0x0E55,
  26458. fl: 0xFB02,
  26459. florin: 0x0192,
  26460. fmonospace: 0xFF46,
  26461. fmsquare: 0x3399,
  26462. fofanthai: 0x0E1F,
  26463. fofathai: 0x0E1D,
  26464. fongmanthai: 0x0E4F,
  26465. forall: 0x2200,
  26466. four: 0x0034,
  26467. fourarabic: 0x0664,
  26468. fourbengali: 0x09EA,
  26469. fourcircle: 0x2463,
  26470. fourcircleinversesansserif: 0x278D,
  26471. fourdeva: 0x096A,
  26472. fourgujarati: 0x0AEA,
  26473. fourgurmukhi: 0x0A6A,
  26474. fourhackarabic: 0x0664,
  26475. fourhangzhou: 0x3024,
  26476. fourideographicparen: 0x3223,
  26477. fourinferior: 0x2084,
  26478. fourmonospace: 0xFF14,
  26479. fournumeratorbengali: 0x09F7,
  26480. fouroldstyle: 0xF734,
  26481. fourparen: 0x2477,
  26482. fourperiod: 0x248B,
  26483. fourpersian: 0x06F4,
  26484. fourroman: 0x2173,
  26485. foursuperior: 0x2074,
  26486. fourteencircle: 0x246D,
  26487. fourteenparen: 0x2481,
  26488. fourteenperiod: 0x2495,
  26489. fourthai: 0x0E54,
  26490. fourthtonechinese: 0x02CB,
  26491. fparen: 0x24A1,
  26492. fraction: 0x2044,
  26493. franc: 0x20A3,
  26494. g: 0x0067,
  26495. gabengali: 0x0997,
  26496. gacute: 0x01F5,
  26497. gadeva: 0x0917,
  26498. gafarabic: 0x06AF,
  26499. gaffinalarabic: 0xFB93,
  26500. gafinitialarabic: 0xFB94,
  26501. gafmedialarabic: 0xFB95,
  26502. gagujarati: 0x0A97,
  26503. gagurmukhi: 0x0A17,
  26504. gahiragana: 0x304C,
  26505. gakatakana: 0x30AC,
  26506. gamma: 0x03B3,
  26507. gammalatinsmall: 0x0263,
  26508. gammasuperior: 0x02E0,
  26509. gangiacoptic: 0x03EB,
  26510. gbopomofo: 0x310D,
  26511. gbreve: 0x011F,
  26512. gcaron: 0x01E7,
  26513. gcedilla: 0x0123,
  26514. gcircle: 0x24D6,
  26515. gcircumflex: 0x011D,
  26516. gcommaaccent: 0x0123,
  26517. gdot: 0x0121,
  26518. gdotaccent: 0x0121,
  26519. gecyrillic: 0x0433,
  26520. gehiragana: 0x3052,
  26521. gekatakana: 0x30B2,
  26522. geometricallyequal: 0x2251,
  26523. gereshaccenthebrew: 0x059C,
  26524. gereshhebrew: 0x05F3,
  26525. gereshmuqdamhebrew: 0x059D,
  26526. germandbls: 0x00DF,
  26527. gershayimaccenthebrew: 0x059E,
  26528. gershayimhebrew: 0x05F4,
  26529. getamark: 0x3013,
  26530. ghabengali: 0x0998,
  26531. ghadarmenian: 0x0572,
  26532. ghadeva: 0x0918,
  26533. ghagujarati: 0x0A98,
  26534. ghagurmukhi: 0x0A18,
  26535. ghainarabic: 0x063A,
  26536. ghainfinalarabic: 0xFECE,
  26537. ghaininitialarabic: 0xFECF,
  26538. ghainmedialarabic: 0xFED0,
  26539. ghemiddlehookcyrillic: 0x0495,
  26540. ghestrokecyrillic: 0x0493,
  26541. gheupturncyrillic: 0x0491,
  26542. ghhadeva: 0x095A,
  26543. ghhagurmukhi: 0x0A5A,
  26544. ghook: 0x0260,
  26545. ghzsquare: 0x3393,
  26546. gihiragana: 0x304E,
  26547. gikatakana: 0x30AE,
  26548. gimarmenian: 0x0563,
  26549. gimel: 0x05D2,
  26550. gimeldagesh: 0xFB32,
  26551. gimeldageshhebrew: 0xFB32,
  26552. gimelhebrew: 0x05D2,
  26553. gjecyrillic: 0x0453,
  26554. glottalinvertedstroke: 0x01BE,
  26555. glottalstop: 0x0294,
  26556. glottalstopinverted: 0x0296,
  26557. glottalstopmod: 0x02C0,
  26558. glottalstopreversed: 0x0295,
  26559. glottalstopreversedmod: 0x02C1,
  26560. glottalstopreversedsuperior: 0x02E4,
  26561. glottalstopstroke: 0x02A1,
  26562. glottalstopstrokereversed: 0x02A2,
  26563. gmacron: 0x1E21,
  26564. gmonospace: 0xFF47,
  26565. gohiragana: 0x3054,
  26566. gokatakana: 0x30B4,
  26567. gparen: 0x24A2,
  26568. gpasquare: 0x33AC,
  26569. gradient: 0x2207,
  26570. grave: 0x0060,
  26571. gravebelowcmb: 0x0316,
  26572. gravecmb: 0x0300,
  26573. gravecomb: 0x0300,
  26574. gravedeva: 0x0953,
  26575. gravelowmod: 0x02CE,
  26576. gravemonospace: 0xFF40,
  26577. gravetonecmb: 0x0340,
  26578. greater: 0x003E,
  26579. greaterequal: 0x2265,
  26580. greaterequalorless: 0x22DB,
  26581. greatermonospace: 0xFF1E,
  26582. greaterorequivalent: 0x2273,
  26583. greaterorless: 0x2277,
  26584. greateroverequal: 0x2267,
  26585. greatersmall: 0xFE65,
  26586. gscript: 0x0261,
  26587. gstroke: 0x01E5,
  26588. guhiragana: 0x3050,
  26589. guillemotleft: 0x00AB,
  26590. guillemotright: 0x00BB,
  26591. guilsinglleft: 0x2039,
  26592. guilsinglright: 0x203A,
  26593. gukatakana: 0x30B0,
  26594. guramusquare: 0x3318,
  26595. gysquare: 0x33C9,
  26596. h: 0x0068,
  26597. haabkhasiancyrillic: 0x04A9,
  26598. haaltonearabic: 0x06C1,
  26599. habengali: 0x09B9,
  26600. hadescendercyrillic: 0x04B3,
  26601. hadeva: 0x0939,
  26602. hagujarati: 0x0AB9,
  26603. hagurmukhi: 0x0A39,
  26604. haharabic: 0x062D,
  26605. hahfinalarabic: 0xFEA2,
  26606. hahinitialarabic: 0xFEA3,
  26607. hahiragana: 0x306F,
  26608. hahmedialarabic: 0xFEA4,
  26609. haitusquare: 0x332A,
  26610. hakatakana: 0x30CF,
  26611. hakatakanahalfwidth: 0xFF8A,
  26612. halantgurmukhi: 0x0A4D,
  26613. hamzaarabic: 0x0621,
  26614. hamzalowarabic: 0x0621,
  26615. hangulfiller: 0x3164,
  26616. hardsigncyrillic: 0x044A,
  26617. harpoonleftbarbup: 0x21BC,
  26618. harpoonrightbarbup: 0x21C0,
  26619. hasquare: 0x33CA,
  26620. hatafpatah: 0x05B2,
  26621. hatafpatah16: 0x05B2,
  26622. hatafpatah23: 0x05B2,
  26623. hatafpatah2f: 0x05B2,
  26624. hatafpatahhebrew: 0x05B2,
  26625. hatafpatahnarrowhebrew: 0x05B2,
  26626. hatafpatahquarterhebrew: 0x05B2,
  26627. hatafpatahwidehebrew: 0x05B2,
  26628. hatafqamats: 0x05B3,
  26629. hatafqamats1b: 0x05B3,
  26630. hatafqamats28: 0x05B3,
  26631. hatafqamats34: 0x05B3,
  26632. hatafqamatshebrew: 0x05B3,
  26633. hatafqamatsnarrowhebrew: 0x05B3,
  26634. hatafqamatsquarterhebrew: 0x05B3,
  26635. hatafqamatswidehebrew: 0x05B3,
  26636. hatafsegol: 0x05B1,
  26637. hatafsegol17: 0x05B1,
  26638. hatafsegol24: 0x05B1,
  26639. hatafsegol30: 0x05B1,
  26640. hatafsegolhebrew: 0x05B1,
  26641. hatafsegolnarrowhebrew: 0x05B1,
  26642. hatafsegolquarterhebrew: 0x05B1,
  26643. hatafsegolwidehebrew: 0x05B1,
  26644. hbar: 0x0127,
  26645. hbopomofo: 0x310F,
  26646. hbrevebelow: 0x1E2B,
  26647. hcedilla: 0x1E29,
  26648. hcircle: 0x24D7,
  26649. hcircumflex: 0x0125,
  26650. hdieresis: 0x1E27,
  26651. hdotaccent: 0x1E23,
  26652. hdotbelow: 0x1E25,
  26653. he: 0x05D4,
  26654. heart: 0x2665,
  26655. heartsuitblack: 0x2665,
  26656. heartsuitwhite: 0x2661,
  26657. hedagesh: 0xFB34,
  26658. hedageshhebrew: 0xFB34,
  26659. hehaltonearabic: 0x06C1,
  26660. heharabic: 0x0647,
  26661. hehebrew: 0x05D4,
  26662. hehfinalaltonearabic: 0xFBA7,
  26663. hehfinalalttwoarabic: 0xFEEA,
  26664. hehfinalarabic: 0xFEEA,
  26665. hehhamzaabovefinalarabic: 0xFBA5,
  26666. hehhamzaaboveisolatedarabic: 0xFBA4,
  26667. hehinitialaltonearabic: 0xFBA8,
  26668. hehinitialarabic: 0xFEEB,
  26669. hehiragana: 0x3078,
  26670. hehmedialaltonearabic: 0xFBA9,
  26671. hehmedialarabic: 0xFEEC,
  26672. heiseierasquare: 0x337B,
  26673. hekatakana: 0x30D8,
  26674. hekatakanahalfwidth: 0xFF8D,
  26675. hekutaarusquare: 0x3336,
  26676. henghook: 0x0267,
  26677. herutusquare: 0x3339,
  26678. het: 0x05D7,
  26679. hethebrew: 0x05D7,
  26680. hhook: 0x0266,
  26681. hhooksuperior: 0x02B1,
  26682. hieuhacirclekorean: 0x327B,
  26683. hieuhaparenkorean: 0x321B,
  26684. hieuhcirclekorean: 0x326D,
  26685. hieuhkorean: 0x314E,
  26686. hieuhparenkorean: 0x320D,
  26687. hihiragana: 0x3072,
  26688. hikatakana: 0x30D2,
  26689. hikatakanahalfwidth: 0xFF8B,
  26690. hiriq: 0x05B4,
  26691. hiriq14: 0x05B4,
  26692. hiriq21: 0x05B4,
  26693. hiriq2d: 0x05B4,
  26694. hiriqhebrew: 0x05B4,
  26695. hiriqnarrowhebrew: 0x05B4,
  26696. hiriqquarterhebrew: 0x05B4,
  26697. hiriqwidehebrew: 0x05B4,
  26698. hlinebelow: 0x1E96,
  26699. hmonospace: 0xFF48,
  26700. hoarmenian: 0x0570,
  26701. hohipthai: 0x0E2B,
  26702. hohiragana: 0x307B,
  26703. hokatakana: 0x30DB,
  26704. hokatakanahalfwidth: 0xFF8E,
  26705. holam: 0x05B9,
  26706. holam19: 0x05B9,
  26707. holam26: 0x05B9,
  26708. holam32: 0x05B9,
  26709. holamhebrew: 0x05B9,
  26710. holamnarrowhebrew: 0x05B9,
  26711. holamquarterhebrew: 0x05B9,
  26712. holamwidehebrew: 0x05B9,
  26713. honokhukthai: 0x0E2E,
  26714. hookabovecomb: 0x0309,
  26715. hookcmb: 0x0309,
  26716. hookpalatalizedbelowcmb: 0x0321,
  26717. hookretroflexbelowcmb: 0x0322,
  26718. hoonsquare: 0x3342,
  26719. horicoptic: 0x03E9,
  26720. horizontalbar: 0x2015,
  26721. horncmb: 0x031B,
  26722. hotsprings: 0x2668,
  26723. house: 0x2302,
  26724. hparen: 0x24A3,
  26725. hsuperior: 0x02B0,
  26726. hturned: 0x0265,
  26727. huhiragana: 0x3075,
  26728. huiitosquare: 0x3333,
  26729. hukatakana: 0x30D5,
  26730. hukatakanahalfwidth: 0xFF8C,
  26731. hungarumlaut: 0x02DD,
  26732. hungarumlautcmb: 0x030B,
  26733. hv: 0x0195,
  26734. hyphen: 0x002D,
  26735. hypheninferior: 0xF6E5,
  26736. hyphenmonospace: 0xFF0D,
  26737. hyphensmall: 0xFE63,
  26738. hyphensuperior: 0xF6E6,
  26739. hyphentwo: 0x2010,
  26740. i: 0x0069,
  26741. iacute: 0x00ED,
  26742. iacyrillic: 0x044F,
  26743. ibengali: 0x0987,
  26744. ibopomofo: 0x3127,
  26745. ibreve: 0x012D,
  26746. icaron: 0x01D0,
  26747. icircle: 0x24D8,
  26748. icircumflex: 0x00EE,
  26749. icyrillic: 0x0456,
  26750. idblgrave: 0x0209,
  26751. ideographearthcircle: 0x328F,
  26752. ideographfirecircle: 0x328B,
  26753. ideographicallianceparen: 0x323F,
  26754. ideographiccallparen: 0x323A,
  26755. ideographiccentrecircle: 0x32A5,
  26756. ideographicclose: 0x3006,
  26757. ideographiccomma: 0x3001,
  26758. ideographiccommaleft: 0xFF64,
  26759. ideographiccongratulationparen: 0x3237,
  26760. ideographiccorrectcircle: 0x32A3,
  26761. ideographicearthparen: 0x322F,
  26762. ideographicenterpriseparen: 0x323D,
  26763. ideographicexcellentcircle: 0x329D,
  26764. ideographicfestivalparen: 0x3240,
  26765. ideographicfinancialcircle: 0x3296,
  26766. ideographicfinancialparen: 0x3236,
  26767. ideographicfireparen: 0x322B,
  26768. ideographichaveparen: 0x3232,
  26769. ideographichighcircle: 0x32A4,
  26770. ideographiciterationmark: 0x3005,
  26771. ideographiclaborcircle: 0x3298,
  26772. ideographiclaborparen: 0x3238,
  26773. ideographicleftcircle: 0x32A7,
  26774. ideographiclowcircle: 0x32A6,
  26775. ideographicmedicinecircle: 0x32A9,
  26776. ideographicmetalparen: 0x322E,
  26777. ideographicmoonparen: 0x322A,
  26778. ideographicnameparen: 0x3234,
  26779. ideographicperiod: 0x3002,
  26780. ideographicprintcircle: 0x329E,
  26781. ideographicreachparen: 0x3243,
  26782. ideographicrepresentparen: 0x3239,
  26783. ideographicresourceparen: 0x323E,
  26784. ideographicrightcircle: 0x32A8,
  26785. ideographicsecretcircle: 0x3299,
  26786. ideographicselfparen: 0x3242,
  26787. ideographicsocietyparen: 0x3233,
  26788. ideographicspace: 0x3000,
  26789. ideographicspecialparen: 0x3235,
  26790. ideographicstockparen: 0x3231,
  26791. ideographicstudyparen: 0x323B,
  26792. ideographicsunparen: 0x3230,
  26793. ideographicsuperviseparen: 0x323C,
  26794. ideographicwaterparen: 0x322C,
  26795. ideographicwoodparen: 0x322D,
  26796. ideographiczero: 0x3007,
  26797. ideographmetalcircle: 0x328E,
  26798. ideographmooncircle: 0x328A,
  26799. ideographnamecircle: 0x3294,
  26800. ideographsuncircle: 0x3290,
  26801. ideographwatercircle: 0x328C,
  26802. ideographwoodcircle: 0x328D,
  26803. ideva: 0x0907,
  26804. idieresis: 0x00EF,
  26805. idieresisacute: 0x1E2F,
  26806. idieresiscyrillic: 0x04E5,
  26807. idotbelow: 0x1ECB,
  26808. iebrevecyrillic: 0x04D7,
  26809. iecyrillic: 0x0435,
  26810. ieungacirclekorean: 0x3275,
  26811. ieungaparenkorean: 0x3215,
  26812. ieungcirclekorean: 0x3267,
  26813. ieungkorean: 0x3147,
  26814. ieungparenkorean: 0x3207,
  26815. igrave: 0x00EC,
  26816. igujarati: 0x0A87,
  26817. igurmukhi: 0x0A07,
  26818. ihiragana: 0x3044,
  26819. ihookabove: 0x1EC9,
  26820. iibengali: 0x0988,
  26821. iicyrillic: 0x0438,
  26822. iideva: 0x0908,
  26823. iigujarati: 0x0A88,
  26824. iigurmukhi: 0x0A08,
  26825. iimatragurmukhi: 0x0A40,
  26826. iinvertedbreve: 0x020B,
  26827. iishortcyrillic: 0x0439,
  26828. iivowelsignbengali: 0x09C0,
  26829. iivowelsigndeva: 0x0940,
  26830. iivowelsigngujarati: 0x0AC0,
  26831. ij: 0x0133,
  26832. ikatakana: 0x30A4,
  26833. ikatakanahalfwidth: 0xFF72,
  26834. ikorean: 0x3163,
  26835. ilde: 0x02DC,
  26836. iluyhebrew: 0x05AC,
  26837. imacron: 0x012B,
  26838. imacroncyrillic: 0x04E3,
  26839. imageorapproximatelyequal: 0x2253,
  26840. imatragurmukhi: 0x0A3F,
  26841. imonospace: 0xFF49,
  26842. increment: 0x2206,
  26843. infinity: 0x221E,
  26844. iniarmenian: 0x056B,
  26845. integral: 0x222B,
  26846. integralbottom: 0x2321,
  26847. integralbt: 0x2321,
  26848. integralex: 0xF8F5,
  26849. integraltop: 0x2320,
  26850. integraltp: 0x2320,
  26851. intersection: 0x2229,
  26852. intisquare: 0x3305,
  26853. invbullet: 0x25D8,
  26854. invcircle: 0x25D9,
  26855. invsmileface: 0x263B,
  26856. iocyrillic: 0x0451,
  26857. iogonek: 0x012F,
  26858. iota: 0x03B9,
  26859. iotadieresis: 0x03CA,
  26860. iotadieresistonos: 0x0390,
  26861. iotalatin: 0x0269,
  26862. iotatonos: 0x03AF,
  26863. iparen: 0x24A4,
  26864. irigurmukhi: 0x0A72,
  26865. ismallhiragana: 0x3043,
  26866. ismallkatakana: 0x30A3,
  26867. ismallkatakanahalfwidth: 0xFF68,
  26868. issharbengali: 0x09FA,
  26869. istroke: 0x0268,
  26870. isuperior: 0xF6ED,
  26871. iterationhiragana: 0x309D,
  26872. iterationkatakana: 0x30FD,
  26873. itilde: 0x0129,
  26874. itildebelow: 0x1E2D,
  26875. iubopomofo: 0x3129,
  26876. iucyrillic: 0x044E,
  26877. ivowelsignbengali: 0x09BF,
  26878. ivowelsigndeva: 0x093F,
  26879. ivowelsigngujarati: 0x0ABF,
  26880. izhitsacyrillic: 0x0475,
  26881. izhitsadblgravecyrillic: 0x0477,
  26882. j: 0x006A,
  26883. jaarmenian: 0x0571,
  26884. jabengali: 0x099C,
  26885. jadeva: 0x091C,
  26886. jagujarati: 0x0A9C,
  26887. jagurmukhi: 0x0A1C,
  26888. jbopomofo: 0x3110,
  26889. jcaron: 0x01F0,
  26890. jcircle: 0x24D9,
  26891. jcircumflex: 0x0135,
  26892. jcrossedtail: 0x029D,
  26893. jdotlessstroke: 0x025F,
  26894. jecyrillic: 0x0458,
  26895. jeemarabic: 0x062C,
  26896. jeemfinalarabic: 0xFE9E,
  26897. jeeminitialarabic: 0xFE9F,
  26898. jeemmedialarabic: 0xFEA0,
  26899. jeharabic: 0x0698,
  26900. jehfinalarabic: 0xFB8B,
  26901. jhabengali: 0x099D,
  26902. jhadeva: 0x091D,
  26903. jhagujarati: 0x0A9D,
  26904. jhagurmukhi: 0x0A1D,
  26905. jheharmenian: 0x057B,
  26906. jis: 0x3004,
  26907. jmonospace: 0xFF4A,
  26908. jparen: 0x24A5,
  26909. jsuperior: 0x02B2,
  26910. k: 0x006B,
  26911. kabashkircyrillic: 0x04A1,
  26912. kabengali: 0x0995,
  26913. kacute: 0x1E31,
  26914. kacyrillic: 0x043A,
  26915. kadescendercyrillic: 0x049B,
  26916. kadeva: 0x0915,
  26917. kaf: 0x05DB,
  26918. kafarabic: 0x0643,
  26919. kafdagesh: 0xFB3B,
  26920. kafdageshhebrew: 0xFB3B,
  26921. kaffinalarabic: 0xFEDA,
  26922. kafhebrew: 0x05DB,
  26923. kafinitialarabic: 0xFEDB,
  26924. kafmedialarabic: 0xFEDC,
  26925. kafrafehebrew: 0xFB4D,
  26926. kagujarati: 0x0A95,
  26927. kagurmukhi: 0x0A15,
  26928. kahiragana: 0x304B,
  26929. kahookcyrillic: 0x04C4,
  26930. kakatakana: 0x30AB,
  26931. kakatakanahalfwidth: 0xFF76,
  26932. kappa: 0x03BA,
  26933. kappasymbolgreek: 0x03F0,
  26934. kapyeounmieumkorean: 0x3171,
  26935. kapyeounphieuphkorean: 0x3184,
  26936. kapyeounpieupkorean: 0x3178,
  26937. kapyeounssangpieupkorean: 0x3179,
  26938. karoriisquare: 0x330D,
  26939. kashidaautoarabic: 0x0640,
  26940. kashidaautonosidebearingarabic: 0x0640,
  26941. kasmallkatakana: 0x30F5,
  26942. kasquare: 0x3384,
  26943. kasraarabic: 0x0650,
  26944. kasratanarabic: 0x064D,
  26945. kastrokecyrillic: 0x049F,
  26946. katahiraprolongmarkhalfwidth: 0xFF70,
  26947. kaverticalstrokecyrillic: 0x049D,
  26948. kbopomofo: 0x310E,
  26949. kcalsquare: 0x3389,
  26950. kcaron: 0x01E9,
  26951. kcedilla: 0x0137,
  26952. kcircle: 0x24DA,
  26953. kcommaaccent: 0x0137,
  26954. kdotbelow: 0x1E33,
  26955. keharmenian: 0x0584,
  26956. kehiragana: 0x3051,
  26957. kekatakana: 0x30B1,
  26958. kekatakanahalfwidth: 0xFF79,
  26959. kenarmenian: 0x056F,
  26960. kesmallkatakana: 0x30F6,
  26961. kgreenlandic: 0x0138,
  26962. khabengali: 0x0996,
  26963. khacyrillic: 0x0445,
  26964. khadeva: 0x0916,
  26965. khagujarati: 0x0A96,
  26966. khagurmukhi: 0x0A16,
  26967. khaharabic: 0x062E,
  26968. khahfinalarabic: 0xFEA6,
  26969. khahinitialarabic: 0xFEA7,
  26970. khahmedialarabic: 0xFEA8,
  26971. kheicoptic: 0x03E7,
  26972. khhadeva: 0x0959,
  26973. khhagurmukhi: 0x0A59,
  26974. khieukhacirclekorean: 0x3278,
  26975. khieukhaparenkorean: 0x3218,
  26976. khieukhcirclekorean: 0x326A,
  26977. khieukhkorean: 0x314B,
  26978. khieukhparenkorean: 0x320A,
  26979. khokhaithai: 0x0E02,
  26980. khokhonthai: 0x0E05,
  26981. khokhuatthai: 0x0E03,
  26982. khokhwaithai: 0x0E04,
  26983. khomutthai: 0x0E5B,
  26984. khook: 0x0199,
  26985. khorakhangthai: 0x0E06,
  26986. khzsquare: 0x3391,
  26987. kihiragana: 0x304D,
  26988. kikatakana: 0x30AD,
  26989. kikatakanahalfwidth: 0xFF77,
  26990. kiroguramusquare: 0x3315,
  26991. kiromeetorusquare: 0x3316,
  26992. kirosquare: 0x3314,
  26993. kiyeokacirclekorean: 0x326E,
  26994. kiyeokaparenkorean: 0x320E,
  26995. kiyeokcirclekorean: 0x3260,
  26996. kiyeokkorean: 0x3131,
  26997. kiyeokparenkorean: 0x3200,
  26998. kiyeoksioskorean: 0x3133,
  26999. kjecyrillic: 0x045C,
  27000. klinebelow: 0x1E35,
  27001. klsquare: 0x3398,
  27002. kmcubedsquare: 0x33A6,
  27003. kmonospace: 0xFF4B,
  27004. kmsquaredsquare: 0x33A2,
  27005. kohiragana: 0x3053,
  27006. kohmsquare: 0x33C0,
  27007. kokaithai: 0x0E01,
  27008. kokatakana: 0x30B3,
  27009. kokatakanahalfwidth: 0xFF7A,
  27010. kooposquare: 0x331E,
  27011. koppacyrillic: 0x0481,
  27012. koreanstandardsymbol: 0x327F,
  27013. koroniscmb: 0x0343,
  27014. kparen: 0x24A6,
  27015. kpasquare: 0x33AA,
  27016. ksicyrillic: 0x046F,
  27017. ktsquare: 0x33CF,
  27018. kturned: 0x029E,
  27019. kuhiragana: 0x304F,
  27020. kukatakana: 0x30AF,
  27021. kukatakanahalfwidth: 0xFF78,
  27022. kvsquare: 0x33B8,
  27023. kwsquare: 0x33BE,
  27024. l: 0x006C,
  27025. labengali: 0x09B2,
  27026. lacute: 0x013A,
  27027. ladeva: 0x0932,
  27028. lagujarati: 0x0AB2,
  27029. lagurmukhi: 0x0A32,
  27030. lakkhangyaothai: 0x0E45,
  27031. lamaleffinalarabic: 0xFEFC,
  27032. lamalefhamzaabovefinalarabic: 0xFEF8,
  27033. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  27034. lamalefhamzabelowfinalarabic: 0xFEFA,
  27035. lamalefhamzabelowisolatedarabic: 0xFEF9,
  27036. lamalefisolatedarabic: 0xFEFB,
  27037. lamalefmaddaabovefinalarabic: 0xFEF6,
  27038. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  27039. lamarabic: 0x0644,
  27040. lambda: 0x03BB,
  27041. lambdastroke: 0x019B,
  27042. lamed: 0x05DC,
  27043. lameddagesh: 0xFB3C,
  27044. lameddageshhebrew: 0xFB3C,
  27045. lamedhebrew: 0x05DC,
  27046. lamfinalarabic: 0xFEDE,
  27047. lamhahinitialarabic: 0xFCCA,
  27048. laminitialarabic: 0xFEDF,
  27049. lamjeeminitialarabic: 0xFCC9,
  27050. lamkhahinitialarabic: 0xFCCB,
  27051. lamlamhehisolatedarabic: 0xFDF2,
  27052. lammedialarabic: 0xFEE0,
  27053. lammeemhahinitialarabic: 0xFD88,
  27054. lammeeminitialarabic: 0xFCCC,
  27055. largecircle: 0x25EF,
  27056. lbar: 0x019A,
  27057. lbelt: 0x026C,
  27058. lbopomofo: 0x310C,
  27059. lcaron: 0x013E,
  27060. lcedilla: 0x013C,
  27061. lcircle: 0x24DB,
  27062. lcircumflexbelow: 0x1E3D,
  27063. lcommaaccent: 0x013C,
  27064. ldot: 0x0140,
  27065. ldotaccent: 0x0140,
  27066. ldotbelow: 0x1E37,
  27067. ldotbelowmacron: 0x1E39,
  27068. leftangleabovecmb: 0x031A,
  27069. lefttackbelowcmb: 0x0318,
  27070. less: 0x003C,
  27071. lessequal: 0x2264,
  27072. lessequalorgreater: 0x22DA,
  27073. lessmonospace: 0xFF1C,
  27074. lessorequivalent: 0x2272,
  27075. lessorgreater: 0x2276,
  27076. lessoverequal: 0x2266,
  27077. lesssmall: 0xFE64,
  27078. lezh: 0x026E,
  27079. lfblock: 0x258C,
  27080. lhookretroflex: 0x026D,
  27081. lira: 0x20A4,
  27082. liwnarmenian: 0x056C,
  27083. lj: 0x01C9,
  27084. ljecyrillic: 0x0459,
  27085. ll: 0xF6C0,
  27086. lladeva: 0x0933,
  27087. llagujarati: 0x0AB3,
  27088. llinebelow: 0x1E3B,
  27089. llladeva: 0x0934,
  27090. llvocalicbengali: 0x09E1,
  27091. llvocalicdeva: 0x0961,
  27092. llvocalicvowelsignbengali: 0x09E3,
  27093. llvocalicvowelsigndeva: 0x0963,
  27094. lmiddletilde: 0x026B,
  27095. lmonospace: 0xFF4C,
  27096. lmsquare: 0x33D0,
  27097. lochulathai: 0x0E2C,
  27098. logicaland: 0x2227,
  27099. logicalnot: 0x00AC,
  27100. logicalnotreversed: 0x2310,
  27101. logicalor: 0x2228,
  27102. lolingthai: 0x0E25,
  27103. longs: 0x017F,
  27104. lowlinecenterline: 0xFE4E,
  27105. lowlinecmb: 0x0332,
  27106. lowlinedashed: 0xFE4D,
  27107. lozenge: 0x25CA,
  27108. lparen: 0x24A7,
  27109. lslash: 0x0142,
  27110. lsquare: 0x2113,
  27111. lsuperior: 0xF6EE,
  27112. ltshade: 0x2591,
  27113. luthai: 0x0E26,
  27114. lvocalicbengali: 0x098C,
  27115. lvocalicdeva: 0x090C,
  27116. lvocalicvowelsignbengali: 0x09E2,
  27117. lvocalicvowelsigndeva: 0x0962,
  27118. lxsquare: 0x33D3,
  27119. m: 0x006D,
  27120. mabengali: 0x09AE,
  27121. macron: 0x00AF,
  27122. macronbelowcmb: 0x0331,
  27123. macroncmb: 0x0304,
  27124. macronlowmod: 0x02CD,
  27125. macronmonospace: 0xFFE3,
  27126. macute: 0x1E3F,
  27127. madeva: 0x092E,
  27128. magujarati: 0x0AAE,
  27129. magurmukhi: 0x0A2E,
  27130. mahapakhhebrew: 0x05A4,
  27131. mahapakhlefthebrew: 0x05A4,
  27132. mahiragana: 0x307E,
  27133. maichattawalowleftthai: 0xF895,
  27134. maichattawalowrightthai: 0xF894,
  27135. maichattawathai: 0x0E4B,
  27136. maichattawaupperleftthai: 0xF893,
  27137. maieklowleftthai: 0xF88C,
  27138. maieklowrightthai: 0xF88B,
  27139. maiekthai: 0x0E48,
  27140. maiekupperleftthai: 0xF88A,
  27141. maihanakatleftthai: 0xF884,
  27142. maihanakatthai: 0x0E31,
  27143. maitaikhuleftthai: 0xF889,
  27144. maitaikhuthai: 0x0E47,
  27145. maitholowleftthai: 0xF88F,
  27146. maitholowrightthai: 0xF88E,
  27147. maithothai: 0x0E49,
  27148. maithoupperleftthai: 0xF88D,
  27149. maitrilowleftthai: 0xF892,
  27150. maitrilowrightthai: 0xF891,
  27151. maitrithai: 0x0E4A,
  27152. maitriupperleftthai: 0xF890,
  27153. maiyamokthai: 0x0E46,
  27154. makatakana: 0x30DE,
  27155. makatakanahalfwidth: 0xFF8F,
  27156. male: 0x2642,
  27157. mansyonsquare: 0x3347,
  27158. maqafhebrew: 0x05BE,
  27159. mars: 0x2642,
  27160. masoracirclehebrew: 0x05AF,
  27161. masquare: 0x3383,
  27162. mbopomofo: 0x3107,
  27163. mbsquare: 0x33D4,
  27164. mcircle: 0x24DC,
  27165. mcubedsquare: 0x33A5,
  27166. mdotaccent: 0x1E41,
  27167. mdotbelow: 0x1E43,
  27168. meemarabic: 0x0645,
  27169. meemfinalarabic: 0xFEE2,
  27170. meeminitialarabic: 0xFEE3,
  27171. meemmedialarabic: 0xFEE4,
  27172. meemmeeminitialarabic: 0xFCD1,
  27173. meemmeemisolatedarabic: 0xFC48,
  27174. meetorusquare: 0x334D,
  27175. mehiragana: 0x3081,
  27176. meizierasquare: 0x337E,
  27177. mekatakana: 0x30E1,
  27178. mekatakanahalfwidth: 0xFF92,
  27179. mem: 0x05DE,
  27180. memdagesh: 0xFB3E,
  27181. memdageshhebrew: 0xFB3E,
  27182. memhebrew: 0x05DE,
  27183. menarmenian: 0x0574,
  27184. merkhahebrew: 0x05A5,
  27185. merkhakefulahebrew: 0x05A6,
  27186. merkhakefulalefthebrew: 0x05A6,
  27187. merkhalefthebrew: 0x05A5,
  27188. mhook: 0x0271,
  27189. mhzsquare: 0x3392,
  27190. middledotkatakanahalfwidth: 0xFF65,
  27191. middot: 0x00B7,
  27192. mieumacirclekorean: 0x3272,
  27193. mieumaparenkorean: 0x3212,
  27194. mieumcirclekorean: 0x3264,
  27195. mieumkorean: 0x3141,
  27196. mieumpansioskorean: 0x3170,
  27197. mieumparenkorean: 0x3204,
  27198. mieumpieupkorean: 0x316E,
  27199. mieumsioskorean: 0x316F,
  27200. mihiragana: 0x307F,
  27201. mikatakana: 0x30DF,
  27202. mikatakanahalfwidth: 0xFF90,
  27203. minus: 0x2212,
  27204. minusbelowcmb: 0x0320,
  27205. minuscircle: 0x2296,
  27206. minusmod: 0x02D7,
  27207. minusplus: 0x2213,
  27208. minute: 0x2032,
  27209. miribaarusquare: 0x334A,
  27210. mirisquare: 0x3349,
  27211. mlonglegturned: 0x0270,
  27212. mlsquare: 0x3396,
  27213. mmcubedsquare: 0x33A3,
  27214. mmonospace: 0xFF4D,
  27215. mmsquaredsquare: 0x339F,
  27216. mohiragana: 0x3082,
  27217. mohmsquare: 0x33C1,
  27218. mokatakana: 0x30E2,
  27219. mokatakanahalfwidth: 0xFF93,
  27220. molsquare: 0x33D6,
  27221. momathai: 0x0E21,
  27222. moverssquare: 0x33A7,
  27223. moverssquaredsquare: 0x33A8,
  27224. mparen: 0x24A8,
  27225. mpasquare: 0x33AB,
  27226. mssquare: 0x33B3,
  27227. msuperior: 0xF6EF,
  27228. mturned: 0x026F,
  27229. mu: 0x00B5,
  27230. mu1: 0x00B5,
  27231. muasquare: 0x3382,
  27232. muchgreater: 0x226B,
  27233. muchless: 0x226A,
  27234. mufsquare: 0x338C,
  27235. mugreek: 0x03BC,
  27236. mugsquare: 0x338D,
  27237. muhiragana: 0x3080,
  27238. mukatakana: 0x30E0,
  27239. mukatakanahalfwidth: 0xFF91,
  27240. mulsquare: 0x3395,
  27241. multiply: 0x00D7,
  27242. mumsquare: 0x339B,
  27243. munahhebrew: 0x05A3,
  27244. munahlefthebrew: 0x05A3,
  27245. musicalnote: 0x266A,
  27246. musicalnotedbl: 0x266B,
  27247. musicflatsign: 0x266D,
  27248. musicsharpsign: 0x266F,
  27249. mussquare: 0x33B2,
  27250. muvsquare: 0x33B6,
  27251. muwsquare: 0x33BC,
  27252. mvmegasquare: 0x33B9,
  27253. mvsquare: 0x33B7,
  27254. mwmegasquare: 0x33BF,
  27255. mwsquare: 0x33BD,
  27256. n: 0x006E,
  27257. nabengali: 0x09A8,
  27258. nabla: 0x2207,
  27259. nacute: 0x0144,
  27260. nadeva: 0x0928,
  27261. nagujarati: 0x0AA8,
  27262. nagurmukhi: 0x0A28,
  27263. nahiragana: 0x306A,
  27264. nakatakana: 0x30CA,
  27265. nakatakanahalfwidth: 0xFF85,
  27266. napostrophe: 0x0149,
  27267. nasquare: 0x3381,
  27268. nbopomofo: 0x310B,
  27269. nbspace: 0x00A0,
  27270. ncaron: 0x0148,
  27271. ncedilla: 0x0146,
  27272. ncircle: 0x24DD,
  27273. ncircumflexbelow: 0x1E4B,
  27274. ncommaaccent: 0x0146,
  27275. ndotaccent: 0x1E45,
  27276. ndotbelow: 0x1E47,
  27277. nehiragana: 0x306D,
  27278. nekatakana: 0x30CD,
  27279. nekatakanahalfwidth: 0xFF88,
  27280. newsheqelsign: 0x20AA,
  27281. nfsquare: 0x338B,
  27282. ngabengali: 0x0999,
  27283. ngadeva: 0x0919,
  27284. ngagujarati: 0x0A99,
  27285. ngagurmukhi: 0x0A19,
  27286. ngonguthai: 0x0E07,
  27287. nhiragana: 0x3093,
  27288. nhookleft: 0x0272,
  27289. nhookretroflex: 0x0273,
  27290. nieunacirclekorean: 0x326F,
  27291. nieunaparenkorean: 0x320F,
  27292. nieuncieuckorean: 0x3135,
  27293. nieuncirclekorean: 0x3261,
  27294. nieunhieuhkorean: 0x3136,
  27295. nieunkorean: 0x3134,
  27296. nieunpansioskorean: 0x3168,
  27297. nieunparenkorean: 0x3201,
  27298. nieunsioskorean: 0x3167,
  27299. nieuntikeutkorean: 0x3166,
  27300. nihiragana: 0x306B,
  27301. nikatakana: 0x30CB,
  27302. nikatakanahalfwidth: 0xFF86,
  27303. nikhahitleftthai: 0xF899,
  27304. nikhahitthai: 0x0E4D,
  27305. nine: 0x0039,
  27306. ninearabic: 0x0669,
  27307. ninebengali: 0x09EF,
  27308. ninecircle: 0x2468,
  27309. ninecircleinversesansserif: 0x2792,
  27310. ninedeva: 0x096F,
  27311. ninegujarati: 0x0AEF,
  27312. ninegurmukhi: 0x0A6F,
  27313. ninehackarabic: 0x0669,
  27314. ninehangzhou: 0x3029,
  27315. nineideographicparen: 0x3228,
  27316. nineinferior: 0x2089,
  27317. ninemonospace: 0xFF19,
  27318. nineoldstyle: 0xF739,
  27319. nineparen: 0x247C,
  27320. nineperiod: 0x2490,
  27321. ninepersian: 0x06F9,
  27322. nineroman: 0x2178,
  27323. ninesuperior: 0x2079,
  27324. nineteencircle: 0x2472,
  27325. nineteenparen: 0x2486,
  27326. nineteenperiod: 0x249A,
  27327. ninethai: 0x0E59,
  27328. nj: 0x01CC,
  27329. njecyrillic: 0x045A,
  27330. nkatakana: 0x30F3,
  27331. nkatakanahalfwidth: 0xFF9D,
  27332. nlegrightlong: 0x019E,
  27333. nlinebelow: 0x1E49,
  27334. nmonospace: 0xFF4E,
  27335. nmsquare: 0x339A,
  27336. nnabengali: 0x09A3,
  27337. nnadeva: 0x0923,
  27338. nnagujarati: 0x0AA3,
  27339. nnagurmukhi: 0x0A23,
  27340. nnnadeva: 0x0929,
  27341. nohiragana: 0x306E,
  27342. nokatakana: 0x30CE,
  27343. nokatakanahalfwidth: 0xFF89,
  27344. nonbreakingspace: 0x00A0,
  27345. nonenthai: 0x0E13,
  27346. nonuthai: 0x0E19,
  27347. noonarabic: 0x0646,
  27348. noonfinalarabic: 0xFEE6,
  27349. noonghunnaarabic: 0x06BA,
  27350. noonghunnafinalarabic: 0xFB9F,
  27351. nooninitialarabic: 0xFEE7,
  27352. noonjeeminitialarabic: 0xFCD2,
  27353. noonjeemisolatedarabic: 0xFC4B,
  27354. noonmedialarabic: 0xFEE8,
  27355. noonmeeminitialarabic: 0xFCD5,
  27356. noonmeemisolatedarabic: 0xFC4E,
  27357. noonnoonfinalarabic: 0xFC8D,
  27358. notcontains: 0x220C,
  27359. notelement: 0x2209,
  27360. notelementof: 0x2209,
  27361. notequal: 0x2260,
  27362. notgreater: 0x226F,
  27363. notgreaternorequal: 0x2271,
  27364. notgreaternorless: 0x2279,
  27365. notidentical: 0x2262,
  27366. notless: 0x226E,
  27367. notlessnorequal: 0x2270,
  27368. notparallel: 0x2226,
  27369. notprecedes: 0x2280,
  27370. notsubset: 0x2284,
  27371. notsucceeds: 0x2281,
  27372. notsuperset: 0x2285,
  27373. nowarmenian: 0x0576,
  27374. nparen: 0x24A9,
  27375. nssquare: 0x33B1,
  27376. nsuperior: 0x207F,
  27377. ntilde: 0x00F1,
  27378. nu: 0x03BD,
  27379. nuhiragana: 0x306C,
  27380. nukatakana: 0x30CC,
  27381. nukatakanahalfwidth: 0xFF87,
  27382. nuktabengali: 0x09BC,
  27383. nuktadeva: 0x093C,
  27384. nuktagujarati: 0x0ABC,
  27385. nuktagurmukhi: 0x0A3C,
  27386. numbersign: 0x0023,
  27387. numbersignmonospace: 0xFF03,
  27388. numbersignsmall: 0xFE5F,
  27389. numeralsigngreek: 0x0374,
  27390. numeralsignlowergreek: 0x0375,
  27391. numero: 0x2116,
  27392. nun: 0x05E0,
  27393. nundagesh: 0xFB40,
  27394. nundageshhebrew: 0xFB40,
  27395. nunhebrew: 0x05E0,
  27396. nvsquare: 0x33B5,
  27397. nwsquare: 0x33BB,
  27398. nyabengali: 0x099E,
  27399. nyadeva: 0x091E,
  27400. nyagujarati: 0x0A9E,
  27401. nyagurmukhi: 0x0A1E,
  27402. o: 0x006F,
  27403. oacute: 0x00F3,
  27404. oangthai: 0x0E2D,
  27405. obarred: 0x0275,
  27406. obarredcyrillic: 0x04E9,
  27407. obarreddieresiscyrillic: 0x04EB,
  27408. obengali: 0x0993,
  27409. obopomofo: 0x311B,
  27410. obreve: 0x014F,
  27411. ocandradeva: 0x0911,
  27412. ocandragujarati: 0x0A91,
  27413. ocandravowelsigndeva: 0x0949,
  27414. ocandravowelsigngujarati: 0x0AC9,
  27415. ocaron: 0x01D2,
  27416. ocircle: 0x24DE,
  27417. ocircumflex: 0x00F4,
  27418. ocircumflexacute: 0x1ED1,
  27419. ocircumflexdotbelow: 0x1ED9,
  27420. ocircumflexgrave: 0x1ED3,
  27421. ocircumflexhookabove: 0x1ED5,
  27422. ocircumflextilde: 0x1ED7,
  27423. ocyrillic: 0x043E,
  27424. odblacute: 0x0151,
  27425. odblgrave: 0x020D,
  27426. odeva: 0x0913,
  27427. odieresis: 0x00F6,
  27428. odieresiscyrillic: 0x04E7,
  27429. odotbelow: 0x1ECD,
  27430. oe: 0x0153,
  27431. oekorean: 0x315A,
  27432. ogonek: 0x02DB,
  27433. ogonekcmb: 0x0328,
  27434. ograve: 0x00F2,
  27435. ogujarati: 0x0A93,
  27436. oharmenian: 0x0585,
  27437. ohiragana: 0x304A,
  27438. ohookabove: 0x1ECF,
  27439. ohorn: 0x01A1,
  27440. ohornacute: 0x1EDB,
  27441. ohorndotbelow: 0x1EE3,
  27442. ohorngrave: 0x1EDD,
  27443. ohornhookabove: 0x1EDF,
  27444. ohorntilde: 0x1EE1,
  27445. ohungarumlaut: 0x0151,
  27446. oi: 0x01A3,
  27447. oinvertedbreve: 0x020F,
  27448. okatakana: 0x30AA,
  27449. okatakanahalfwidth: 0xFF75,
  27450. okorean: 0x3157,
  27451. olehebrew: 0x05AB,
  27452. omacron: 0x014D,
  27453. omacronacute: 0x1E53,
  27454. omacrongrave: 0x1E51,
  27455. omdeva: 0x0950,
  27456. omega: 0x03C9,
  27457. omega1: 0x03D6,
  27458. omegacyrillic: 0x0461,
  27459. omegalatinclosed: 0x0277,
  27460. omegaroundcyrillic: 0x047B,
  27461. omegatitlocyrillic: 0x047D,
  27462. omegatonos: 0x03CE,
  27463. omgujarati: 0x0AD0,
  27464. omicron: 0x03BF,
  27465. omicrontonos: 0x03CC,
  27466. omonospace: 0xFF4F,
  27467. one: 0x0031,
  27468. onearabic: 0x0661,
  27469. onebengali: 0x09E7,
  27470. onecircle: 0x2460,
  27471. onecircleinversesansserif: 0x278A,
  27472. onedeva: 0x0967,
  27473. onedotenleader: 0x2024,
  27474. oneeighth: 0x215B,
  27475. onefitted: 0xF6DC,
  27476. onegujarati: 0x0AE7,
  27477. onegurmukhi: 0x0A67,
  27478. onehackarabic: 0x0661,
  27479. onehalf: 0x00BD,
  27480. onehangzhou: 0x3021,
  27481. oneideographicparen: 0x3220,
  27482. oneinferior: 0x2081,
  27483. onemonospace: 0xFF11,
  27484. onenumeratorbengali: 0x09F4,
  27485. oneoldstyle: 0xF731,
  27486. oneparen: 0x2474,
  27487. oneperiod: 0x2488,
  27488. onepersian: 0x06F1,
  27489. onequarter: 0x00BC,
  27490. oneroman: 0x2170,
  27491. onesuperior: 0x00B9,
  27492. onethai: 0x0E51,
  27493. onethird: 0x2153,
  27494. oogonek: 0x01EB,
  27495. oogonekmacron: 0x01ED,
  27496. oogurmukhi: 0x0A13,
  27497. oomatragurmukhi: 0x0A4B,
  27498. oopen: 0x0254,
  27499. oparen: 0x24AA,
  27500. openbullet: 0x25E6,
  27501. option: 0x2325,
  27502. ordfeminine: 0x00AA,
  27503. ordmasculine: 0x00BA,
  27504. orthogonal: 0x221F,
  27505. oshortdeva: 0x0912,
  27506. oshortvowelsigndeva: 0x094A,
  27507. oslash: 0x00F8,
  27508. oslashacute: 0x01FF,
  27509. osmallhiragana: 0x3049,
  27510. osmallkatakana: 0x30A9,
  27511. osmallkatakanahalfwidth: 0xFF6B,
  27512. ostrokeacute: 0x01FF,
  27513. osuperior: 0xF6F0,
  27514. otcyrillic: 0x047F,
  27515. otilde: 0x00F5,
  27516. otildeacute: 0x1E4D,
  27517. otildedieresis: 0x1E4F,
  27518. oubopomofo: 0x3121,
  27519. overline: 0x203E,
  27520. overlinecenterline: 0xFE4A,
  27521. overlinecmb: 0x0305,
  27522. overlinedashed: 0xFE49,
  27523. overlinedblwavy: 0xFE4C,
  27524. overlinewavy: 0xFE4B,
  27525. overscore: 0x00AF,
  27526. ovowelsignbengali: 0x09CB,
  27527. ovowelsigndeva: 0x094B,
  27528. ovowelsigngujarati: 0x0ACB,
  27529. p: 0x0070,
  27530. paampssquare: 0x3380,
  27531. paasentosquare: 0x332B,
  27532. pabengali: 0x09AA,
  27533. pacute: 0x1E55,
  27534. padeva: 0x092A,
  27535. pagedown: 0x21DF,
  27536. pageup: 0x21DE,
  27537. pagujarati: 0x0AAA,
  27538. pagurmukhi: 0x0A2A,
  27539. pahiragana: 0x3071,
  27540. paiyannoithai: 0x0E2F,
  27541. pakatakana: 0x30D1,
  27542. palatalizationcyrilliccmb: 0x0484,
  27543. palochkacyrillic: 0x04C0,
  27544. pansioskorean: 0x317F,
  27545. paragraph: 0x00B6,
  27546. parallel: 0x2225,
  27547. parenleft: 0x0028,
  27548. parenleftaltonearabic: 0xFD3E,
  27549. parenleftbt: 0xF8ED,
  27550. parenleftex: 0xF8EC,
  27551. parenleftinferior: 0x208D,
  27552. parenleftmonospace: 0xFF08,
  27553. parenleftsmall: 0xFE59,
  27554. parenleftsuperior: 0x207D,
  27555. parenlefttp: 0xF8EB,
  27556. parenleftvertical: 0xFE35,
  27557. parenright: 0x0029,
  27558. parenrightaltonearabic: 0xFD3F,
  27559. parenrightbt: 0xF8F8,
  27560. parenrightex: 0xF8F7,
  27561. parenrightinferior: 0x208E,
  27562. parenrightmonospace: 0xFF09,
  27563. parenrightsmall: 0xFE5A,
  27564. parenrightsuperior: 0x207E,
  27565. parenrighttp: 0xF8F6,
  27566. parenrightvertical: 0xFE36,
  27567. partialdiff: 0x2202,
  27568. paseqhebrew: 0x05C0,
  27569. pashtahebrew: 0x0599,
  27570. pasquare: 0x33A9,
  27571. patah: 0x05B7,
  27572. patah11: 0x05B7,
  27573. patah1d: 0x05B7,
  27574. patah2a: 0x05B7,
  27575. patahhebrew: 0x05B7,
  27576. patahnarrowhebrew: 0x05B7,
  27577. patahquarterhebrew: 0x05B7,
  27578. patahwidehebrew: 0x05B7,
  27579. pazerhebrew: 0x05A1,
  27580. pbopomofo: 0x3106,
  27581. pcircle: 0x24DF,
  27582. pdotaccent: 0x1E57,
  27583. pe: 0x05E4,
  27584. pecyrillic: 0x043F,
  27585. pedagesh: 0xFB44,
  27586. pedageshhebrew: 0xFB44,
  27587. peezisquare: 0x333B,
  27588. pefinaldageshhebrew: 0xFB43,
  27589. peharabic: 0x067E,
  27590. peharmenian: 0x057A,
  27591. pehebrew: 0x05E4,
  27592. pehfinalarabic: 0xFB57,
  27593. pehinitialarabic: 0xFB58,
  27594. pehiragana: 0x307A,
  27595. pehmedialarabic: 0xFB59,
  27596. pekatakana: 0x30DA,
  27597. pemiddlehookcyrillic: 0x04A7,
  27598. perafehebrew: 0xFB4E,
  27599. percent: 0x0025,
  27600. percentarabic: 0x066A,
  27601. percentmonospace: 0xFF05,
  27602. percentsmall: 0xFE6A,
  27603. period: 0x002E,
  27604. periodarmenian: 0x0589,
  27605. periodcentered: 0x00B7,
  27606. periodhalfwidth: 0xFF61,
  27607. periodinferior: 0xF6E7,
  27608. periodmonospace: 0xFF0E,
  27609. periodsmall: 0xFE52,
  27610. periodsuperior: 0xF6E8,
  27611. perispomenigreekcmb: 0x0342,
  27612. perpendicular: 0x22A5,
  27613. perthousand: 0x2030,
  27614. peseta: 0x20A7,
  27615. pfsquare: 0x338A,
  27616. phabengali: 0x09AB,
  27617. phadeva: 0x092B,
  27618. phagujarati: 0x0AAB,
  27619. phagurmukhi: 0x0A2B,
  27620. phi: 0x03C6,
  27621. phi1: 0x03D5,
  27622. phieuphacirclekorean: 0x327A,
  27623. phieuphaparenkorean: 0x321A,
  27624. phieuphcirclekorean: 0x326C,
  27625. phieuphkorean: 0x314D,
  27626. phieuphparenkorean: 0x320C,
  27627. philatin: 0x0278,
  27628. phinthuthai: 0x0E3A,
  27629. phisymbolgreek: 0x03D5,
  27630. phook: 0x01A5,
  27631. phophanthai: 0x0E1E,
  27632. phophungthai: 0x0E1C,
  27633. phosamphaothai: 0x0E20,
  27634. pi: 0x03C0,
  27635. pieupacirclekorean: 0x3273,
  27636. pieupaparenkorean: 0x3213,
  27637. pieupcieuckorean: 0x3176,
  27638. pieupcirclekorean: 0x3265,
  27639. pieupkiyeokkorean: 0x3172,
  27640. pieupkorean: 0x3142,
  27641. pieupparenkorean: 0x3205,
  27642. pieupsioskiyeokkorean: 0x3174,
  27643. pieupsioskorean: 0x3144,
  27644. pieupsiostikeutkorean: 0x3175,
  27645. pieupthieuthkorean: 0x3177,
  27646. pieuptikeutkorean: 0x3173,
  27647. pihiragana: 0x3074,
  27648. pikatakana: 0x30D4,
  27649. pisymbolgreek: 0x03D6,
  27650. piwrarmenian: 0x0583,
  27651. plus: 0x002B,
  27652. plusbelowcmb: 0x031F,
  27653. pluscircle: 0x2295,
  27654. plusminus: 0x00B1,
  27655. plusmod: 0x02D6,
  27656. plusmonospace: 0xFF0B,
  27657. plussmall: 0xFE62,
  27658. plussuperior: 0x207A,
  27659. pmonospace: 0xFF50,
  27660. pmsquare: 0x33D8,
  27661. pohiragana: 0x307D,
  27662. pointingindexdownwhite: 0x261F,
  27663. pointingindexleftwhite: 0x261C,
  27664. pointingindexrightwhite: 0x261E,
  27665. pointingindexupwhite: 0x261D,
  27666. pokatakana: 0x30DD,
  27667. poplathai: 0x0E1B,
  27668. postalmark: 0x3012,
  27669. postalmarkface: 0x3020,
  27670. pparen: 0x24AB,
  27671. precedes: 0x227A,
  27672. prescription: 0x211E,
  27673. primemod: 0x02B9,
  27674. primereversed: 0x2035,
  27675. product: 0x220F,
  27676. projective: 0x2305,
  27677. prolongedkana: 0x30FC,
  27678. propellor: 0x2318,
  27679. propersubset: 0x2282,
  27680. propersuperset: 0x2283,
  27681. proportion: 0x2237,
  27682. proportional: 0x221D,
  27683. psi: 0x03C8,
  27684. psicyrillic: 0x0471,
  27685. psilipneumatacyrilliccmb: 0x0486,
  27686. pssquare: 0x33B0,
  27687. puhiragana: 0x3077,
  27688. pukatakana: 0x30D7,
  27689. pvsquare: 0x33B4,
  27690. pwsquare: 0x33BA,
  27691. q: 0x0071,
  27692. qadeva: 0x0958,
  27693. qadmahebrew: 0x05A8,
  27694. qafarabic: 0x0642,
  27695. qaffinalarabic: 0xFED6,
  27696. qafinitialarabic: 0xFED7,
  27697. qafmedialarabic: 0xFED8,
  27698. qamats: 0x05B8,
  27699. qamats10: 0x05B8,
  27700. qamats1a: 0x05B8,
  27701. qamats1c: 0x05B8,
  27702. qamats27: 0x05B8,
  27703. qamats29: 0x05B8,
  27704. qamats33: 0x05B8,
  27705. qamatsde: 0x05B8,
  27706. qamatshebrew: 0x05B8,
  27707. qamatsnarrowhebrew: 0x05B8,
  27708. qamatsqatanhebrew: 0x05B8,
  27709. qamatsqatannarrowhebrew: 0x05B8,
  27710. qamatsqatanquarterhebrew: 0x05B8,
  27711. qamatsqatanwidehebrew: 0x05B8,
  27712. qamatsquarterhebrew: 0x05B8,
  27713. qamatswidehebrew: 0x05B8,
  27714. qarneyparahebrew: 0x059F,
  27715. qbopomofo: 0x3111,
  27716. qcircle: 0x24E0,
  27717. qhook: 0x02A0,
  27718. qmonospace: 0xFF51,
  27719. qof: 0x05E7,
  27720. qofdagesh: 0xFB47,
  27721. qofdageshhebrew: 0xFB47,
  27722. qofhebrew: 0x05E7,
  27723. qparen: 0x24AC,
  27724. quarternote: 0x2669,
  27725. qubuts: 0x05BB,
  27726. qubuts18: 0x05BB,
  27727. qubuts25: 0x05BB,
  27728. qubuts31: 0x05BB,
  27729. qubutshebrew: 0x05BB,
  27730. qubutsnarrowhebrew: 0x05BB,
  27731. qubutsquarterhebrew: 0x05BB,
  27732. qubutswidehebrew: 0x05BB,
  27733. question: 0x003F,
  27734. questionarabic: 0x061F,
  27735. questionarmenian: 0x055E,
  27736. questiondown: 0x00BF,
  27737. questiondownsmall: 0xF7BF,
  27738. questiongreek: 0x037E,
  27739. questionmonospace: 0xFF1F,
  27740. questionsmall: 0xF73F,
  27741. quotedbl: 0x0022,
  27742. quotedblbase: 0x201E,
  27743. quotedblleft: 0x201C,
  27744. quotedblmonospace: 0xFF02,
  27745. quotedblprime: 0x301E,
  27746. quotedblprimereversed: 0x301D,
  27747. quotedblright: 0x201D,
  27748. quoteleft: 0x2018,
  27749. quoteleftreversed: 0x201B,
  27750. quotereversed: 0x201B,
  27751. quoteright: 0x2019,
  27752. quoterightn: 0x0149,
  27753. quotesinglbase: 0x201A,
  27754. quotesingle: 0x0027,
  27755. quotesinglemonospace: 0xFF07,
  27756. r: 0x0072,
  27757. raarmenian: 0x057C,
  27758. rabengali: 0x09B0,
  27759. racute: 0x0155,
  27760. radeva: 0x0930,
  27761. radical: 0x221A,
  27762. radicalex: 0xF8E5,
  27763. radoverssquare: 0x33AE,
  27764. radoverssquaredsquare: 0x33AF,
  27765. radsquare: 0x33AD,
  27766. rafe: 0x05BF,
  27767. rafehebrew: 0x05BF,
  27768. ragujarati: 0x0AB0,
  27769. ragurmukhi: 0x0A30,
  27770. rahiragana: 0x3089,
  27771. rakatakana: 0x30E9,
  27772. rakatakanahalfwidth: 0xFF97,
  27773. ralowerdiagonalbengali: 0x09F1,
  27774. ramiddlediagonalbengali: 0x09F0,
  27775. ramshorn: 0x0264,
  27776. ratio: 0x2236,
  27777. rbopomofo: 0x3116,
  27778. rcaron: 0x0159,
  27779. rcedilla: 0x0157,
  27780. rcircle: 0x24E1,
  27781. rcommaaccent: 0x0157,
  27782. rdblgrave: 0x0211,
  27783. rdotaccent: 0x1E59,
  27784. rdotbelow: 0x1E5B,
  27785. rdotbelowmacron: 0x1E5D,
  27786. referencemark: 0x203B,
  27787. reflexsubset: 0x2286,
  27788. reflexsuperset: 0x2287,
  27789. registered: 0x00AE,
  27790. registersans: 0xF8E8,
  27791. registerserif: 0xF6DA,
  27792. reharabic: 0x0631,
  27793. reharmenian: 0x0580,
  27794. rehfinalarabic: 0xFEAE,
  27795. rehiragana: 0x308C,
  27796. rekatakana: 0x30EC,
  27797. rekatakanahalfwidth: 0xFF9A,
  27798. resh: 0x05E8,
  27799. reshdageshhebrew: 0xFB48,
  27800. reshhebrew: 0x05E8,
  27801. reversedtilde: 0x223D,
  27802. reviahebrew: 0x0597,
  27803. reviamugrashhebrew: 0x0597,
  27804. revlogicalnot: 0x2310,
  27805. rfishhook: 0x027E,
  27806. rfishhookreversed: 0x027F,
  27807. rhabengali: 0x09DD,
  27808. rhadeva: 0x095D,
  27809. rho: 0x03C1,
  27810. rhook: 0x027D,
  27811. rhookturned: 0x027B,
  27812. rhookturnedsuperior: 0x02B5,
  27813. rhosymbolgreek: 0x03F1,
  27814. rhotichookmod: 0x02DE,
  27815. rieulacirclekorean: 0x3271,
  27816. rieulaparenkorean: 0x3211,
  27817. rieulcirclekorean: 0x3263,
  27818. rieulhieuhkorean: 0x3140,
  27819. rieulkiyeokkorean: 0x313A,
  27820. rieulkiyeoksioskorean: 0x3169,
  27821. rieulkorean: 0x3139,
  27822. rieulmieumkorean: 0x313B,
  27823. rieulpansioskorean: 0x316C,
  27824. rieulparenkorean: 0x3203,
  27825. rieulphieuphkorean: 0x313F,
  27826. rieulpieupkorean: 0x313C,
  27827. rieulpieupsioskorean: 0x316B,
  27828. rieulsioskorean: 0x313D,
  27829. rieulthieuthkorean: 0x313E,
  27830. rieultikeutkorean: 0x316A,
  27831. rieulyeorinhieuhkorean: 0x316D,
  27832. rightangle: 0x221F,
  27833. righttackbelowcmb: 0x0319,
  27834. righttriangle: 0x22BF,
  27835. rihiragana: 0x308A,
  27836. rikatakana: 0x30EA,
  27837. rikatakanahalfwidth: 0xFF98,
  27838. ring: 0x02DA,
  27839. ringbelowcmb: 0x0325,
  27840. ringcmb: 0x030A,
  27841. ringhalfleft: 0x02BF,
  27842. ringhalfleftarmenian: 0x0559,
  27843. ringhalfleftbelowcmb: 0x031C,
  27844. ringhalfleftcentered: 0x02D3,
  27845. ringhalfright: 0x02BE,
  27846. ringhalfrightbelowcmb: 0x0339,
  27847. ringhalfrightcentered: 0x02D2,
  27848. rinvertedbreve: 0x0213,
  27849. rittorusquare: 0x3351,
  27850. rlinebelow: 0x1E5F,
  27851. rlongleg: 0x027C,
  27852. rlonglegturned: 0x027A,
  27853. rmonospace: 0xFF52,
  27854. rohiragana: 0x308D,
  27855. rokatakana: 0x30ED,
  27856. rokatakanahalfwidth: 0xFF9B,
  27857. roruathai: 0x0E23,
  27858. rparen: 0x24AD,
  27859. rrabengali: 0x09DC,
  27860. rradeva: 0x0931,
  27861. rragurmukhi: 0x0A5C,
  27862. rreharabic: 0x0691,
  27863. rrehfinalarabic: 0xFB8D,
  27864. rrvocalicbengali: 0x09E0,
  27865. rrvocalicdeva: 0x0960,
  27866. rrvocalicgujarati: 0x0AE0,
  27867. rrvocalicvowelsignbengali: 0x09C4,
  27868. rrvocalicvowelsigndeva: 0x0944,
  27869. rrvocalicvowelsigngujarati: 0x0AC4,
  27870. rsuperior: 0xF6F1,
  27871. rtblock: 0x2590,
  27872. rturned: 0x0279,
  27873. rturnedsuperior: 0x02B4,
  27874. ruhiragana: 0x308B,
  27875. rukatakana: 0x30EB,
  27876. rukatakanahalfwidth: 0xFF99,
  27877. rupeemarkbengali: 0x09F2,
  27878. rupeesignbengali: 0x09F3,
  27879. rupiah: 0xF6DD,
  27880. ruthai: 0x0E24,
  27881. rvocalicbengali: 0x098B,
  27882. rvocalicdeva: 0x090B,
  27883. rvocalicgujarati: 0x0A8B,
  27884. rvocalicvowelsignbengali: 0x09C3,
  27885. rvocalicvowelsigndeva: 0x0943,
  27886. rvocalicvowelsigngujarati: 0x0AC3,
  27887. s: 0x0073,
  27888. sabengali: 0x09B8,
  27889. sacute: 0x015B,
  27890. sacutedotaccent: 0x1E65,
  27891. sadarabic: 0x0635,
  27892. sadeva: 0x0938,
  27893. sadfinalarabic: 0xFEBA,
  27894. sadinitialarabic: 0xFEBB,
  27895. sadmedialarabic: 0xFEBC,
  27896. sagujarati: 0x0AB8,
  27897. sagurmukhi: 0x0A38,
  27898. sahiragana: 0x3055,
  27899. sakatakana: 0x30B5,
  27900. sakatakanahalfwidth: 0xFF7B,
  27901. sallallahoualayhewasallamarabic: 0xFDFA,
  27902. samekh: 0x05E1,
  27903. samekhdagesh: 0xFB41,
  27904. samekhdageshhebrew: 0xFB41,
  27905. samekhhebrew: 0x05E1,
  27906. saraaathai: 0x0E32,
  27907. saraaethai: 0x0E41,
  27908. saraaimaimalaithai: 0x0E44,
  27909. saraaimaimuanthai: 0x0E43,
  27910. saraamthai: 0x0E33,
  27911. saraathai: 0x0E30,
  27912. saraethai: 0x0E40,
  27913. saraiileftthai: 0xF886,
  27914. saraiithai: 0x0E35,
  27915. saraileftthai: 0xF885,
  27916. saraithai: 0x0E34,
  27917. saraothai: 0x0E42,
  27918. saraueeleftthai: 0xF888,
  27919. saraueethai: 0x0E37,
  27920. saraueleftthai: 0xF887,
  27921. sarauethai: 0x0E36,
  27922. sarauthai: 0x0E38,
  27923. sarauuthai: 0x0E39,
  27924. sbopomofo: 0x3119,
  27925. scaron: 0x0161,
  27926. scarondotaccent: 0x1E67,
  27927. scedilla: 0x015F,
  27928. schwa: 0x0259,
  27929. schwacyrillic: 0x04D9,
  27930. schwadieresiscyrillic: 0x04DB,
  27931. schwahook: 0x025A,
  27932. scircle: 0x24E2,
  27933. scircumflex: 0x015D,
  27934. scommaaccent: 0x0219,
  27935. sdotaccent: 0x1E61,
  27936. sdotbelow: 0x1E63,
  27937. sdotbelowdotaccent: 0x1E69,
  27938. seagullbelowcmb: 0x033C,
  27939. second: 0x2033,
  27940. secondtonechinese: 0x02CA,
  27941. section: 0x00A7,
  27942. seenarabic: 0x0633,
  27943. seenfinalarabic: 0xFEB2,
  27944. seeninitialarabic: 0xFEB3,
  27945. seenmedialarabic: 0xFEB4,
  27946. segol: 0x05B6,
  27947. segol13: 0x05B6,
  27948. segol1f: 0x05B6,
  27949. segol2c: 0x05B6,
  27950. segolhebrew: 0x05B6,
  27951. segolnarrowhebrew: 0x05B6,
  27952. segolquarterhebrew: 0x05B6,
  27953. segoltahebrew: 0x0592,
  27954. segolwidehebrew: 0x05B6,
  27955. seharmenian: 0x057D,
  27956. sehiragana: 0x305B,
  27957. sekatakana: 0x30BB,
  27958. sekatakanahalfwidth: 0xFF7E,
  27959. semicolon: 0x003B,
  27960. semicolonarabic: 0x061B,
  27961. semicolonmonospace: 0xFF1B,
  27962. semicolonsmall: 0xFE54,
  27963. semivoicedmarkkana: 0x309C,
  27964. semivoicedmarkkanahalfwidth: 0xFF9F,
  27965. sentisquare: 0x3322,
  27966. sentosquare: 0x3323,
  27967. seven: 0x0037,
  27968. sevenarabic: 0x0667,
  27969. sevenbengali: 0x09ED,
  27970. sevencircle: 0x2466,
  27971. sevencircleinversesansserif: 0x2790,
  27972. sevendeva: 0x096D,
  27973. seveneighths: 0x215E,
  27974. sevengujarati: 0x0AED,
  27975. sevengurmukhi: 0x0A6D,
  27976. sevenhackarabic: 0x0667,
  27977. sevenhangzhou: 0x3027,
  27978. sevenideographicparen: 0x3226,
  27979. seveninferior: 0x2087,
  27980. sevenmonospace: 0xFF17,
  27981. sevenoldstyle: 0xF737,
  27982. sevenparen: 0x247A,
  27983. sevenperiod: 0x248E,
  27984. sevenpersian: 0x06F7,
  27985. sevenroman: 0x2176,
  27986. sevensuperior: 0x2077,
  27987. seventeencircle: 0x2470,
  27988. seventeenparen: 0x2484,
  27989. seventeenperiod: 0x2498,
  27990. seventhai: 0x0E57,
  27991. sfthyphen: 0x00AD,
  27992. shaarmenian: 0x0577,
  27993. shabengali: 0x09B6,
  27994. shacyrillic: 0x0448,
  27995. shaddaarabic: 0x0651,
  27996. shaddadammaarabic: 0xFC61,
  27997. shaddadammatanarabic: 0xFC5E,
  27998. shaddafathaarabic: 0xFC60,
  27999. shaddakasraarabic: 0xFC62,
  28000. shaddakasratanarabic: 0xFC5F,
  28001. shade: 0x2592,
  28002. shadedark: 0x2593,
  28003. shadelight: 0x2591,
  28004. shademedium: 0x2592,
  28005. shadeva: 0x0936,
  28006. shagujarati: 0x0AB6,
  28007. shagurmukhi: 0x0A36,
  28008. shalshelethebrew: 0x0593,
  28009. shbopomofo: 0x3115,
  28010. shchacyrillic: 0x0449,
  28011. sheenarabic: 0x0634,
  28012. sheenfinalarabic: 0xFEB6,
  28013. sheeninitialarabic: 0xFEB7,
  28014. sheenmedialarabic: 0xFEB8,
  28015. sheicoptic: 0x03E3,
  28016. sheqel: 0x20AA,
  28017. sheqelhebrew: 0x20AA,
  28018. sheva: 0x05B0,
  28019. sheva115: 0x05B0,
  28020. sheva15: 0x05B0,
  28021. sheva22: 0x05B0,
  28022. sheva2e: 0x05B0,
  28023. shevahebrew: 0x05B0,
  28024. shevanarrowhebrew: 0x05B0,
  28025. shevaquarterhebrew: 0x05B0,
  28026. shevawidehebrew: 0x05B0,
  28027. shhacyrillic: 0x04BB,
  28028. shimacoptic: 0x03ED,
  28029. shin: 0x05E9,
  28030. shindagesh: 0xFB49,
  28031. shindageshhebrew: 0xFB49,
  28032. shindageshshindot: 0xFB2C,
  28033. shindageshshindothebrew: 0xFB2C,
  28034. shindageshsindot: 0xFB2D,
  28035. shindageshsindothebrew: 0xFB2D,
  28036. shindothebrew: 0x05C1,
  28037. shinhebrew: 0x05E9,
  28038. shinshindot: 0xFB2A,
  28039. shinshindothebrew: 0xFB2A,
  28040. shinsindot: 0xFB2B,
  28041. shinsindothebrew: 0xFB2B,
  28042. shook: 0x0282,
  28043. sigma: 0x03C3,
  28044. sigma1: 0x03C2,
  28045. sigmafinal: 0x03C2,
  28046. sigmalunatesymbolgreek: 0x03F2,
  28047. sihiragana: 0x3057,
  28048. sikatakana: 0x30B7,
  28049. sikatakanahalfwidth: 0xFF7C,
  28050. siluqhebrew: 0x05BD,
  28051. siluqlefthebrew: 0x05BD,
  28052. similar: 0x223C,
  28053. sindothebrew: 0x05C2,
  28054. siosacirclekorean: 0x3274,
  28055. siosaparenkorean: 0x3214,
  28056. sioscieuckorean: 0x317E,
  28057. sioscirclekorean: 0x3266,
  28058. sioskiyeokkorean: 0x317A,
  28059. sioskorean: 0x3145,
  28060. siosnieunkorean: 0x317B,
  28061. siosparenkorean: 0x3206,
  28062. siospieupkorean: 0x317D,
  28063. siostikeutkorean: 0x317C,
  28064. six: 0x0036,
  28065. sixarabic: 0x0666,
  28066. sixbengali: 0x09EC,
  28067. sixcircle: 0x2465,
  28068. sixcircleinversesansserif: 0x278F,
  28069. sixdeva: 0x096C,
  28070. sixgujarati: 0x0AEC,
  28071. sixgurmukhi: 0x0A6C,
  28072. sixhackarabic: 0x0666,
  28073. sixhangzhou: 0x3026,
  28074. sixideographicparen: 0x3225,
  28075. sixinferior: 0x2086,
  28076. sixmonospace: 0xFF16,
  28077. sixoldstyle: 0xF736,
  28078. sixparen: 0x2479,
  28079. sixperiod: 0x248D,
  28080. sixpersian: 0x06F6,
  28081. sixroman: 0x2175,
  28082. sixsuperior: 0x2076,
  28083. sixteencircle: 0x246F,
  28084. sixteencurrencydenominatorbengali: 0x09F9,
  28085. sixteenparen: 0x2483,
  28086. sixteenperiod: 0x2497,
  28087. sixthai: 0x0E56,
  28088. slash: 0x002F,
  28089. slashmonospace: 0xFF0F,
  28090. slong: 0x017F,
  28091. slongdotaccent: 0x1E9B,
  28092. smileface: 0x263A,
  28093. smonospace: 0xFF53,
  28094. sofpasuqhebrew: 0x05C3,
  28095. softhyphen: 0x00AD,
  28096. softsigncyrillic: 0x044C,
  28097. sohiragana: 0x305D,
  28098. sokatakana: 0x30BD,
  28099. sokatakanahalfwidth: 0xFF7F,
  28100. soliduslongoverlaycmb: 0x0338,
  28101. solidusshortoverlaycmb: 0x0337,
  28102. sorusithai: 0x0E29,
  28103. sosalathai: 0x0E28,
  28104. sosothai: 0x0E0B,
  28105. sosuathai: 0x0E2A,
  28106. space: 0x0020,
  28107. spacehackarabic: 0x0020,
  28108. spade: 0x2660,
  28109. spadesuitblack: 0x2660,
  28110. spadesuitwhite: 0x2664,
  28111. sparen: 0x24AE,
  28112. squarebelowcmb: 0x033B,
  28113. squarecc: 0x33C4,
  28114. squarecm: 0x339D,
  28115. squarediagonalcrosshatchfill: 0x25A9,
  28116. squarehorizontalfill: 0x25A4,
  28117. squarekg: 0x338F,
  28118. squarekm: 0x339E,
  28119. squarekmcapital: 0x33CE,
  28120. squareln: 0x33D1,
  28121. squarelog: 0x33D2,
  28122. squaremg: 0x338E,
  28123. squaremil: 0x33D5,
  28124. squaremm: 0x339C,
  28125. squaremsquared: 0x33A1,
  28126. squareorthogonalcrosshatchfill: 0x25A6,
  28127. squareupperlefttolowerrightfill: 0x25A7,
  28128. squareupperrighttolowerleftfill: 0x25A8,
  28129. squareverticalfill: 0x25A5,
  28130. squarewhitewithsmallblack: 0x25A3,
  28131. srsquare: 0x33DB,
  28132. ssabengali: 0x09B7,
  28133. ssadeva: 0x0937,
  28134. ssagujarati: 0x0AB7,
  28135. ssangcieuckorean: 0x3149,
  28136. ssanghieuhkorean: 0x3185,
  28137. ssangieungkorean: 0x3180,
  28138. ssangkiyeokkorean: 0x3132,
  28139. ssangnieunkorean: 0x3165,
  28140. ssangpieupkorean: 0x3143,
  28141. ssangsioskorean: 0x3146,
  28142. ssangtikeutkorean: 0x3138,
  28143. ssuperior: 0xF6F2,
  28144. sterling: 0x00A3,
  28145. sterlingmonospace: 0xFFE1,
  28146. strokelongoverlaycmb: 0x0336,
  28147. strokeshortoverlaycmb: 0x0335,
  28148. subset: 0x2282,
  28149. subsetnotequal: 0x228A,
  28150. subsetorequal: 0x2286,
  28151. succeeds: 0x227B,
  28152. suchthat: 0x220B,
  28153. suhiragana: 0x3059,
  28154. sukatakana: 0x30B9,
  28155. sukatakanahalfwidth: 0xFF7D,
  28156. sukunarabic: 0x0652,
  28157. summation: 0x2211,
  28158. sun: 0x263C,
  28159. superset: 0x2283,
  28160. supersetnotequal: 0x228B,
  28161. supersetorequal: 0x2287,
  28162. svsquare: 0x33DC,
  28163. syouwaerasquare: 0x337C,
  28164. t: 0x0074,
  28165. tabengali: 0x09A4,
  28166. tackdown: 0x22A4,
  28167. tackleft: 0x22A3,
  28168. tadeva: 0x0924,
  28169. tagujarati: 0x0AA4,
  28170. tagurmukhi: 0x0A24,
  28171. taharabic: 0x0637,
  28172. tahfinalarabic: 0xFEC2,
  28173. tahinitialarabic: 0xFEC3,
  28174. tahiragana: 0x305F,
  28175. tahmedialarabic: 0xFEC4,
  28176. taisyouerasquare: 0x337D,
  28177. takatakana: 0x30BF,
  28178. takatakanahalfwidth: 0xFF80,
  28179. tatweelarabic: 0x0640,
  28180. tau: 0x03C4,
  28181. tav: 0x05EA,
  28182. tavdages: 0xFB4A,
  28183. tavdagesh: 0xFB4A,
  28184. tavdageshhebrew: 0xFB4A,
  28185. tavhebrew: 0x05EA,
  28186. tbar: 0x0167,
  28187. tbopomofo: 0x310A,
  28188. tcaron: 0x0165,
  28189. tccurl: 0x02A8,
  28190. tcedilla: 0x0163,
  28191. tcheharabic: 0x0686,
  28192. tchehfinalarabic: 0xFB7B,
  28193. tchehinitialarabic: 0xFB7C,
  28194. tchehmedialarabic: 0xFB7D,
  28195. tcircle: 0x24E3,
  28196. tcircumflexbelow: 0x1E71,
  28197. tcommaaccent: 0x0163,
  28198. tdieresis: 0x1E97,
  28199. tdotaccent: 0x1E6B,
  28200. tdotbelow: 0x1E6D,
  28201. tecyrillic: 0x0442,
  28202. tedescendercyrillic: 0x04AD,
  28203. teharabic: 0x062A,
  28204. tehfinalarabic: 0xFE96,
  28205. tehhahinitialarabic: 0xFCA2,
  28206. tehhahisolatedarabic: 0xFC0C,
  28207. tehinitialarabic: 0xFE97,
  28208. tehiragana: 0x3066,
  28209. tehjeeminitialarabic: 0xFCA1,
  28210. tehjeemisolatedarabic: 0xFC0B,
  28211. tehmarbutaarabic: 0x0629,
  28212. tehmarbutafinalarabic: 0xFE94,
  28213. tehmedialarabic: 0xFE98,
  28214. tehmeeminitialarabic: 0xFCA4,
  28215. tehmeemisolatedarabic: 0xFC0E,
  28216. tehnoonfinalarabic: 0xFC73,
  28217. tekatakana: 0x30C6,
  28218. tekatakanahalfwidth: 0xFF83,
  28219. telephone: 0x2121,
  28220. telephoneblack: 0x260E,
  28221. telishagedolahebrew: 0x05A0,
  28222. telishaqetanahebrew: 0x05A9,
  28223. tencircle: 0x2469,
  28224. tenideographicparen: 0x3229,
  28225. tenparen: 0x247D,
  28226. tenperiod: 0x2491,
  28227. tenroman: 0x2179,
  28228. tesh: 0x02A7,
  28229. tet: 0x05D8,
  28230. tetdagesh: 0xFB38,
  28231. tetdageshhebrew: 0xFB38,
  28232. tethebrew: 0x05D8,
  28233. tetsecyrillic: 0x04B5,
  28234. tevirhebrew: 0x059B,
  28235. tevirlefthebrew: 0x059B,
  28236. thabengali: 0x09A5,
  28237. thadeva: 0x0925,
  28238. thagujarati: 0x0AA5,
  28239. thagurmukhi: 0x0A25,
  28240. thalarabic: 0x0630,
  28241. thalfinalarabic: 0xFEAC,
  28242. thanthakhatlowleftthai: 0xF898,
  28243. thanthakhatlowrightthai: 0xF897,
  28244. thanthakhatthai: 0x0E4C,
  28245. thanthakhatupperleftthai: 0xF896,
  28246. theharabic: 0x062B,
  28247. thehfinalarabic: 0xFE9A,
  28248. thehinitialarabic: 0xFE9B,
  28249. thehmedialarabic: 0xFE9C,
  28250. thereexists: 0x2203,
  28251. therefore: 0x2234,
  28252. theta: 0x03B8,
  28253. theta1: 0x03D1,
  28254. thetasymbolgreek: 0x03D1,
  28255. thieuthacirclekorean: 0x3279,
  28256. thieuthaparenkorean: 0x3219,
  28257. thieuthcirclekorean: 0x326B,
  28258. thieuthkorean: 0x314C,
  28259. thieuthparenkorean: 0x320B,
  28260. thirteencircle: 0x246C,
  28261. thirteenparen: 0x2480,
  28262. thirteenperiod: 0x2494,
  28263. thonangmonthothai: 0x0E11,
  28264. thook: 0x01AD,
  28265. thophuthaothai: 0x0E12,
  28266. thorn: 0x00FE,
  28267. thothahanthai: 0x0E17,
  28268. thothanthai: 0x0E10,
  28269. thothongthai: 0x0E18,
  28270. thothungthai: 0x0E16,
  28271. thousandcyrillic: 0x0482,
  28272. thousandsseparatorarabic: 0x066C,
  28273. thousandsseparatorpersian: 0x066C,
  28274. three: 0x0033,
  28275. threearabic: 0x0663,
  28276. threebengali: 0x09E9,
  28277. threecircle: 0x2462,
  28278. threecircleinversesansserif: 0x278C,
  28279. threedeva: 0x0969,
  28280. threeeighths: 0x215C,
  28281. threegujarati: 0x0AE9,
  28282. threegurmukhi: 0x0A69,
  28283. threehackarabic: 0x0663,
  28284. threehangzhou: 0x3023,
  28285. threeideographicparen: 0x3222,
  28286. threeinferior: 0x2083,
  28287. threemonospace: 0xFF13,
  28288. threenumeratorbengali: 0x09F6,
  28289. threeoldstyle: 0xF733,
  28290. threeparen: 0x2476,
  28291. threeperiod: 0x248A,
  28292. threepersian: 0x06F3,
  28293. threequarters: 0x00BE,
  28294. threequartersemdash: 0xF6DE,
  28295. threeroman: 0x2172,
  28296. threesuperior: 0x00B3,
  28297. threethai: 0x0E53,
  28298. thzsquare: 0x3394,
  28299. tihiragana: 0x3061,
  28300. tikatakana: 0x30C1,
  28301. tikatakanahalfwidth: 0xFF81,
  28302. tikeutacirclekorean: 0x3270,
  28303. tikeutaparenkorean: 0x3210,
  28304. tikeutcirclekorean: 0x3262,
  28305. tikeutkorean: 0x3137,
  28306. tikeutparenkorean: 0x3202,
  28307. tilde: 0x02DC,
  28308. tildebelowcmb: 0x0330,
  28309. tildecmb: 0x0303,
  28310. tildecomb: 0x0303,
  28311. tildedoublecmb: 0x0360,
  28312. tildeoperator: 0x223C,
  28313. tildeoverlaycmb: 0x0334,
  28314. tildeverticalcmb: 0x033E,
  28315. timescircle: 0x2297,
  28316. tipehahebrew: 0x0596,
  28317. tipehalefthebrew: 0x0596,
  28318. tippigurmukhi: 0x0A70,
  28319. titlocyrilliccmb: 0x0483,
  28320. tiwnarmenian: 0x057F,
  28321. tlinebelow: 0x1E6F,
  28322. tmonospace: 0xFF54,
  28323. toarmenian: 0x0569,
  28324. tohiragana: 0x3068,
  28325. tokatakana: 0x30C8,
  28326. tokatakanahalfwidth: 0xFF84,
  28327. tonebarextrahighmod: 0x02E5,
  28328. tonebarextralowmod: 0x02E9,
  28329. tonebarhighmod: 0x02E6,
  28330. tonebarlowmod: 0x02E8,
  28331. tonebarmidmod: 0x02E7,
  28332. tonefive: 0x01BD,
  28333. tonesix: 0x0185,
  28334. tonetwo: 0x01A8,
  28335. tonos: 0x0384,
  28336. tonsquare: 0x3327,
  28337. topatakthai: 0x0E0F,
  28338. tortoiseshellbracketleft: 0x3014,
  28339. tortoiseshellbracketleftsmall: 0xFE5D,
  28340. tortoiseshellbracketleftvertical: 0xFE39,
  28341. tortoiseshellbracketright: 0x3015,
  28342. tortoiseshellbracketrightsmall: 0xFE5E,
  28343. tortoiseshellbracketrightvertical: 0xFE3A,
  28344. totaothai: 0x0E15,
  28345. tpalatalhook: 0x01AB,
  28346. tparen: 0x24AF,
  28347. trademark: 0x2122,
  28348. trademarksans: 0xF8EA,
  28349. trademarkserif: 0xF6DB,
  28350. tretroflexhook: 0x0288,
  28351. triagdn: 0x25BC,
  28352. triaglf: 0x25C4,
  28353. triagrt: 0x25BA,
  28354. triagup: 0x25B2,
  28355. ts: 0x02A6,
  28356. tsadi: 0x05E6,
  28357. tsadidagesh: 0xFB46,
  28358. tsadidageshhebrew: 0xFB46,
  28359. tsadihebrew: 0x05E6,
  28360. tsecyrillic: 0x0446,
  28361. tsere: 0x05B5,
  28362. tsere12: 0x05B5,
  28363. tsere1e: 0x05B5,
  28364. tsere2b: 0x05B5,
  28365. tserehebrew: 0x05B5,
  28366. tserenarrowhebrew: 0x05B5,
  28367. tserequarterhebrew: 0x05B5,
  28368. tserewidehebrew: 0x05B5,
  28369. tshecyrillic: 0x045B,
  28370. tsuperior: 0xF6F3,
  28371. ttabengali: 0x099F,
  28372. ttadeva: 0x091F,
  28373. ttagujarati: 0x0A9F,
  28374. ttagurmukhi: 0x0A1F,
  28375. tteharabic: 0x0679,
  28376. ttehfinalarabic: 0xFB67,
  28377. ttehinitialarabic: 0xFB68,
  28378. ttehmedialarabic: 0xFB69,
  28379. tthabengali: 0x09A0,
  28380. tthadeva: 0x0920,
  28381. tthagujarati: 0x0AA0,
  28382. tthagurmukhi: 0x0A20,
  28383. tturned: 0x0287,
  28384. tuhiragana: 0x3064,
  28385. tukatakana: 0x30C4,
  28386. tukatakanahalfwidth: 0xFF82,
  28387. tusmallhiragana: 0x3063,
  28388. tusmallkatakana: 0x30C3,
  28389. tusmallkatakanahalfwidth: 0xFF6F,
  28390. twelvecircle: 0x246B,
  28391. twelveparen: 0x247F,
  28392. twelveperiod: 0x2493,
  28393. twelveroman: 0x217B,
  28394. twentycircle: 0x2473,
  28395. twentyhangzhou: 0x5344,
  28396. twentyparen: 0x2487,
  28397. twentyperiod: 0x249B,
  28398. two: 0x0032,
  28399. twoarabic: 0x0662,
  28400. twobengali: 0x09E8,
  28401. twocircle: 0x2461,
  28402. twocircleinversesansserif: 0x278B,
  28403. twodeva: 0x0968,
  28404. twodotenleader: 0x2025,
  28405. twodotleader: 0x2025,
  28406. twodotleadervertical: 0xFE30,
  28407. twogujarati: 0x0AE8,
  28408. twogurmukhi: 0x0A68,
  28409. twohackarabic: 0x0662,
  28410. twohangzhou: 0x3022,
  28411. twoideographicparen: 0x3221,
  28412. twoinferior: 0x2082,
  28413. twomonospace: 0xFF12,
  28414. twonumeratorbengali: 0x09F5,
  28415. twooldstyle: 0xF732,
  28416. twoparen: 0x2475,
  28417. twoperiod: 0x2489,
  28418. twopersian: 0x06F2,
  28419. tworoman: 0x2171,
  28420. twostroke: 0x01BB,
  28421. twosuperior: 0x00B2,
  28422. twothai: 0x0E52,
  28423. twothirds: 0x2154,
  28424. u: 0x0075,
  28425. uacute: 0x00FA,
  28426. ubar: 0x0289,
  28427. ubengali: 0x0989,
  28428. ubopomofo: 0x3128,
  28429. ubreve: 0x016D,
  28430. ucaron: 0x01D4,
  28431. ucircle: 0x24E4,
  28432. ucircumflex: 0x00FB,
  28433. ucircumflexbelow: 0x1E77,
  28434. ucyrillic: 0x0443,
  28435. udattadeva: 0x0951,
  28436. udblacute: 0x0171,
  28437. udblgrave: 0x0215,
  28438. udeva: 0x0909,
  28439. udieresis: 0x00FC,
  28440. udieresisacute: 0x01D8,
  28441. udieresisbelow: 0x1E73,
  28442. udieresiscaron: 0x01DA,
  28443. udieresiscyrillic: 0x04F1,
  28444. udieresisgrave: 0x01DC,
  28445. udieresismacron: 0x01D6,
  28446. udotbelow: 0x1EE5,
  28447. ugrave: 0x00F9,
  28448. ugujarati: 0x0A89,
  28449. ugurmukhi: 0x0A09,
  28450. uhiragana: 0x3046,
  28451. uhookabove: 0x1EE7,
  28452. uhorn: 0x01B0,
  28453. uhornacute: 0x1EE9,
  28454. uhorndotbelow: 0x1EF1,
  28455. uhorngrave: 0x1EEB,
  28456. uhornhookabove: 0x1EED,
  28457. uhorntilde: 0x1EEF,
  28458. uhungarumlaut: 0x0171,
  28459. uhungarumlautcyrillic: 0x04F3,
  28460. uinvertedbreve: 0x0217,
  28461. ukatakana: 0x30A6,
  28462. ukatakanahalfwidth: 0xFF73,
  28463. ukcyrillic: 0x0479,
  28464. ukorean: 0x315C,
  28465. umacron: 0x016B,
  28466. umacroncyrillic: 0x04EF,
  28467. umacrondieresis: 0x1E7B,
  28468. umatragurmukhi: 0x0A41,
  28469. umonospace: 0xFF55,
  28470. underscore: 0x005F,
  28471. underscoredbl: 0x2017,
  28472. underscoremonospace: 0xFF3F,
  28473. underscorevertical: 0xFE33,
  28474. underscorewavy: 0xFE4F,
  28475. union: 0x222A,
  28476. universal: 0x2200,
  28477. uogonek: 0x0173,
  28478. uparen: 0x24B0,
  28479. upblock: 0x2580,
  28480. upperdothebrew: 0x05C4,
  28481. upsilon: 0x03C5,
  28482. upsilondieresis: 0x03CB,
  28483. upsilondieresistonos: 0x03B0,
  28484. upsilonlatin: 0x028A,
  28485. upsilontonos: 0x03CD,
  28486. uptackbelowcmb: 0x031D,
  28487. uptackmod: 0x02D4,
  28488. uragurmukhi: 0x0A73,
  28489. uring: 0x016F,
  28490. ushortcyrillic: 0x045E,
  28491. usmallhiragana: 0x3045,
  28492. usmallkatakana: 0x30A5,
  28493. usmallkatakanahalfwidth: 0xFF69,
  28494. ustraightcyrillic: 0x04AF,
  28495. ustraightstrokecyrillic: 0x04B1,
  28496. utilde: 0x0169,
  28497. utildeacute: 0x1E79,
  28498. utildebelow: 0x1E75,
  28499. uubengali: 0x098A,
  28500. uudeva: 0x090A,
  28501. uugujarati: 0x0A8A,
  28502. uugurmukhi: 0x0A0A,
  28503. uumatragurmukhi: 0x0A42,
  28504. uuvowelsignbengali: 0x09C2,
  28505. uuvowelsigndeva: 0x0942,
  28506. uuvowelsigngujarati: 0x0AC2,
  28507. uvowelsignbengali: 0x09C1,
  28508. uvowelsigndeva: 0x0941,
  28509. uvowelsigngujarati: 0x0AC1,
  28510. v: 0x0076,
  28511. vadeva: 0x0935,
  28512. vagujarati: 0x0AB5,
  28513. vagurmukhi: 0x0A35,
  28514. vakatakana: 0x30F7,
  28515. vav: 0x05D5,
  28516. vavdagesh: 0xFB35,
  28517. vavdagesh65: 0xFB35,
  28518. vavdageshhebrew: 0xFB35,
  28519. vavhebrew: 0x05D5,
  28520. vavholam: 0xFB4B,
  28521. vavholamhebrew: 0xFB4B,
  28522. vavvavhebrew: 0x05F0,
  28523. vavyodhebrew: 0x05F1,
  28524. vcircle: 0x24E5,
  28525. vdotbelow: 0x1E7F,
  28526. vecyrillic: 0x0432,
  28527. veharabic: 0x06A4,
  28528. vehfinalarabic: 0xFB6B,
  28529. vehinitialarabic: 0xFB6C,
  28530. vehmedialarabic: 0xFB6D,
  28531. vekatakana: 0x30F9,
  28532. venus: 0x2640,
  28533. verticalbar: 0x007C,
  28534. verticallineabovecmb: 0x030D,
  28535. verticallinebelowcmb: 0x0329,
  28536. verticallinelowmod: 0x02CC,
  28537. verticallinemod: 0x02C8,
  28538. vewarmenian: 0x057E,
  28539. vhook: 0x028B,
  28540. vikatakana: 0x30F8,
  28541. viramabengali: 0x09CD,
  28542. viramadeva: 0x094D,
  28543. viramagujarati: 0x0ACD,
  28544. visargabengali: 0x0983,
  28545. visargadeva: 0x0903,
  28546. visargagujarati: 0x0A83,
  28547. vmonospace: 0xFF56,
  28548. voarmenian: 0x0578,
  28549. voicediterationhiragana: 0x309E,
  28550. voicediterationkatakana: 0x30FE,
  28551. voicedmarkkana: 0x309B,
  28552. voicedmarkkanahalfwidth: 0xFF9E,
  28553. vokatakana: 0x30FA,
  28554. vparen: 0x24B1,
  28555. vtilde: 0x1E7D,
  28556. vturned: 0x028C,
  28557. vuhiragana: 0x3094,
  28558. vukatakana: 0x30F4,
  28559. w: 0x0077,
  28560. wacute: 0x1E83,
  28561. waekorean: 0x3159,
  28562. wahiragana: 0x308F,
  28563. wakatakana: 0x30EF,
  28564. wakatakanahalfwidth: 0xFF9C,
  28565. wakorean: 0x3158,
  28566. wasmallhiragana: 0x308E,
  28567. wasmallkatakana: 0x30EE,
  28568. wattosquare: 0x3357,
  28569. wavedash: 0x301C,
  28570. wavyunderscorevertical: 0xFE34,
  28571. wawarabic: 0x0648,
  28572. wawfinalarabic: 0xFEEE,
  28573. wawhamzaabovearabic: 0x0624,
  28574. wawhamzaabovefinalarabic: 0xFE86,
  28575. wbsquare: 0x33DD,
  28576. wcircle: 0x24E6,
  28577. wcircumflex: 0x0175,
  28578. wdieresis: 0x1E85,
  28579. wdotaccent: 0x1E87,
  28580. wdotbelow: 0x1E89,
  28581. wehiragana: 0x3091,
  28582. weierstrass: 0x2118,
  28583. wekatakana: 0x30F1,
  28584. wekorean: 0x315E,
  28585. weokorean: 0x315D,
  28586. wgrave: 0x1E81,
  28587. whitebullet: 0x25E6,
  28588. whitecircle: 0x25CB,
  28589. whitecircleinverse: 0x25D9,
  28590. whitecornerbracketleft: 0x300E,
  28591. whitecornerbracketleftvertical: 0xFE43,
  28592. whitecornerbracketright: 0x300F,
  28593. whitecornerbracketrightvertical: 0xFE44,
  28594. whitediamond: 0x25C7,
  28595. whitediamondcontainingblacksmalldiamond: 0x25C8,
  28596. whitedownpointingsmalltriangle: 0x25BF,
  28597. whitedownpointingtriangle: 0x25BD,
  28598. whiteleftpointingsmalltriangle: 0x25C3,
  28599. whiteleftpointingtriangle: 0x25C1,
  28600. whitelenticularbracketleft: 0x3016,
  28601. whitelenticularbracketright: 0x3017,
  28602. whiterightpointingsmalltriangle: 0x25B9,
  28603. whiterightpointingtriangle: 0x25B7,
  28604. whitesmallsquare: 0x25AB,
  28605. whitesmilingface: 0x263A,
  28606. whitesquare: 0x25A1,
  28607. whitestar: 0x2606,
  28608. whitetelephone: 0x260F,
  28609. whitetortoiseshellbracketleft: 0x3018,
  28610. whitetortoiseshellbracketright: 0x3019,
  28611. whiteuppointingsmalltriangle: 0x25B5,
  28612. whiteuppointingtriangle: 0x25B3,
  28613. wihiragana: 0x3090,
  28614. wikatakana: 0x30F0,
  28615. wikorean: 0x315F,
  28616. wmonospace: 0xFF57,
  28617. wohiragana: 0x3092,
  28618. wokatakana: 0x30F2,
  28619. wokatakanahalfwidth: 0xFF66,
  28620. won: 0x20A9,
  28621. wonmonospace: 0xFFE6,
  28622. wowaenthai: 0x0E27,
  28623. wparen: 0x24B2,
  28624. wring: 0x1E98,
  28625. wsuperior: 0x02B7,
  28626. wturned: 0x028D,
  28627. wynn: 0x01BF,
  28628. x: 0x0078,
  28629. xabovecmb: 0x033D,
  28630. xbopomofo: 0x3112,
  28631. xcircle: 0x24E7,
  28632. xdieresis: 0x1E8D,
  28633. xdotaccent: 0x1E8B,
  28634. xeharmenian: 0x056D,
  28635. xi: 0x03BE,
  28636. xmonospace: 0xFF58,
  28637. xparen: 0x24B3,
  28638. xsuperior: 0x02E3,
  28639. y: 0x0079,
  28640. yaadosquare: 0x334E,
  28641. yabengali: 0x09AF,
  28642. yacute: 0x00FD,
  28643. yadeva: 0x092F,
  28644. yaekorean: 0x3152,
  28645. yagujarati: 0x0AAF,
  28646. yagurmukhi: 0x0A2F,
  28647. yahiragana: 0x3084,
  28648. yakatakana: 0x30E4,
  28649. yakatakanahalfwidth: 0xFF94,
  28650. yakorean: 0x3151,
  28651. yamakkanthai: 0x0E4E,
  28652. yasmallhiragana: 0x3083,
  28653. yasmallkatakana: 0x30E3,
  28654. yasmallkatakanahalfwidth: 0xFF6C,
  28655. yatcyrillic: 0x0463,
  28656. ycircle: 0x24E8,
  28657. ycircumflex: 0x0177,
  28658. ydieresis: 0x00FF,
  28659. ydotaccent: 0x1E8F,
  28660. ydotbelow: 0x1EF5,
  28661. yeharabic: 0x064A,
  28662. yehbarreearabic: 0x06D2,
  28663. yehbarreefinalarabic: 0xFBAF,
  28664. yehfinalarabic: 0xFEF2,
  28665. yehhamzaabovearabic: 0x0626,
  28666. yehhamzaabovefinalarabic: 0xFE8A,
  28667. yehhamzaaboveinitialarabic: 0xFE8B,
  28668. yehhamzaabovemedialarabic: 0xFE8C,
  28669. yehinitialarabic: 0xFEF3,
  28670. yehmedialarabic: 0xFEF4,
  28671. yehmeeminitialarabic: 0xFCDD,
  28672. yehmeemisolatedarabic: 0xFC58,
  28673. yehnoonfinalarabic: 0xFC94,
  28674. yehthreedotsbelowarabic: 0x06D1,
  28675. yekorean: 0x3156,
  28676. yen: 0x00A5,
  28677. yenmonospace: 0xFFE5,
  28678. yeokorean: 0x3155,
  28679. yeorinhieuhkorean: 0x3186,
  28680. yerahbenyomohebrew: 0x05AA,
  28681. yerahbenyomolefthebrew: 0x05AA,
  28682. yericyrillic: 0x044B,
  28683. yerudieresiscyrillic: 0x04F9,
  28684. yesieungkorean: 0x3181,
  28685. yesieungpansioskorean: 0x3183,
  28686. yesieungsioskorean: 0x3182,
  28687. yetivhebrew: 0x059A,
  28688. ygrave: 0x1EF3,
  28689. yhook: 0x01B4,
  28690. yhookabove: 0x1EF7,
  28691. yiarmenian: 0x0575,
  28692. yicyrillic: 0x0457,
  28693. yikorean: 0x3162,
  28694. yinyang: 0x262F,
  28695. yiwnarmenian: 0x0582,
  28696. ymonospace: 0xFF59,
  28697. yod: 0x05D9,
  28698. yoddagesh: 0xFB39,
  28699. yoddageshhebrew: 0xFB39,
  28700. yodhebrew: 0x05D9,
  28701. yodyodhebrew: 0x05F2,
  28702. yodyodpatahhebrew: 0xFB1F,
  28703. yohiragana: 0x3088,
  28704. yoikorean: 0x3189,
  28705. yokatakana: 0x30E8,
  28706. yokatakanahalfwidth: 0xFF96,
  28707. yokorean: 0x315B,
  28708. yosmallhiragana: 0x3087,
  28709. yosmallkatakana: 0x30E7,
  28710. yosmallkatakanahalfwidth: 0xFF6E,
  28711. yotgreek: 0x03F3,
  28712. yoyaekorean: 0x3188,
  28713. yoyakorean: 0x3187,
  28714. yoyakthai: 0x0E22,
  28715. yoyingthai: 0x0E0D,
  28716. yparen: 0x24B4,
  28717. ypogegrammeni: 0x037A,
  28718. ypogegrammenigreekcmb: 0x0345,
  28719. yr: 0x01A6,
  28720. yring: 0x1E99,
  28721. ysuperior: 0x02B8,
  28722. ytilde: 0x1EF9,
  28723. yturned: 0x028E,
  28724. yuhiragana: 0x3086,
  28725. yuikorean: 0x318C,
  28726. yukatakana: 0x30E6,
  28727. yukatakanahalfwidth: 0xFF95,
  28728. yukorean: 0x3160,
  28729. yusbigcyrillic: 0x046B,
  28730. yusbigiotifiedcyrillic: 0x046D,
  28731. yuslittlecyrillic: 0x0467,
  28732. yuslittleiotifiedcyrillic: 0x0469,
  28733. yusmallhiragana: 0x3085,
  28734. yusmallkatakana: 0x30E5,
  28735. yusmallkatakanahalfwidth: 0xFF6D,
  28736. yuyekorean: 0x318B,
  28737. yuyeokorean: 0x318A,
  28738. yyabengali: 0x09DF,
  28739. yyadeva: 0x095F,
  28740. z: 0x007A,
  28741. zaarmenian: 0x0566,
  28742. zacute: 0x017A,
  28743. zadeva: 0x095B,
  28744. zagurmukhi: 0x0A5B,
  28745. zaharabic: 0x0638,
  28746. zahfinalarabic: 0xFEC6,
  28747. zahinitialarabic: 0xFEC7,
  28748. zahiragana: 0x3056,
  28749. zahmedialarabic: 0xFEC8,
  28750. zainarabic: 0x0632,
  28751. zainfinalarabic: 0xFEB0,
  28752. zakatakana: 0x30B6,
  28753. zaqefgadolhebrew: 0x0595,
  28754. zaqefqatanhebrew: 0x0594,
  28755. zarqahebrew: 0x0598,
  28756. zayin: 0x05D6,
  28757. zayindagesh: 0xFB36,
  28758. zayindageshhebrew: 0xFB36,
  28759. zayinhebrew: 0x05D6,
  28760. zbopomofo: 0x3117,
  28761. zcaron: 0x017E,
  28762. zcircle: 0x24E9,
  28763. zcircumflex: 0x1E91,
  28764. zcurl: 0x0291,
  28765. zdot: 0x017C,
  28766. zdotaccent: 0x017C,
  28767. zdotbelow: 0x1E93,
  28768. zecyrillic: 0x0437,
  28769. zedescendercyrillic: 0x0499,
  28770. zedieresiscyrillic: 0x04DF,
  28771. zehiragana: 0x305C,
  28772. zekatakana: 0x30BC,
  28773. zero: 0x0030,
  28774. zeroarabic: 0x0660,
  28775. zerobengali: 0x09E6,
  28776. zerodeva: 0x0966,
  28777. zerogujarati: 0x0AE6,
  28778. zerogurmukhi: 0x0A66,
  28779. zerohackarabic: 0x0660,
  28780. zeroinferior: 0x2080,
  28781. zeromonospace: 0xFF10,
  28782. zerooldstyle: 0xF730,
  28783. zeropersian: 0x06F0,
  28784. zerosuperior: 0x2070,
  28785. zerothai: 0x0E50,
  28786. zerowidthjoiner: 0xFEFF,
  28787. zerowidthnonjoiner: 0x200C,
  28788. zerowidthspace: 0x200B,
  28789. zeta: 0x03B6,
  28790. zhbopomofo: 0x3113,
  28791. zhearmenian: 0x056A,
  28792. zhebrevecyrillic: 0x04C2,
  28793. zhecyrillic: 0x0436,
  28794. zhedescendercyrillic: 0x0497,
  28795. zhedieresiscyrillic: 0x04DD,
  28796. zihiragana: 0x3058,
  28797. zikatakana: 0x30B8,
  28798. zinorhebrew: 0x05AE,
  28799. zlinebelow: 0x1E95,
  28800. zmonospace: 0xFF5A,
  28801. zohiragana: 0x305E,
  28802. zokatakana: 0x30BE,
  28803. zparen: 0x24B5,
  28804. zretroflexhook: 0x0290,
  28805. zstroke: 0x01B6,
  28806. zuhiragana: 0x305A,
  28807. zukatakana: 0x30BA,
  28808. '.notdef': 0x0000
  28809. };
  28810. var PDFImage = (function PDFImageClosure() {
  28811. /**
  28812. * Decode the image in the main thread if it supported. Resovles the promise
  28813. * when the image data is ready.
  28814. */
  28815. function handleImageData(handler, xref, res, image) {
  28816. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  28817. // For natively supported jpegs send them to the main thread for decoding.
  28818. var dict = image.dict;
  28819. var colorSpace = dict.get('ColorSpace', 'CS');
  28820. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28821. var numComps = colorSpace.numComps;
  28822. var resolvePromise;
  28823. handler.send('JpegDecode', [image.getIR(), numComps], function(message) {
  28824. var data = message.data;
  28825. var stream = new Stream(data, 0, data.length, image.dict);
  28826. resolvePromise(stream);
  28827. });
  28828. return new Promise(function (resolve) {
  28829. resolvePromise = resolve;
  28830. });
  28831. } else {
  28832. return Promise.resolve(image);
  28833. }
  28834. }
  28835. /**
  28836. * Decode and clamp a value. The formula is different from the spec because we
  28837. * don't decode to float range [0,1], we decode it in the [0,max] range.
  28838. */
  28839. function decodeAndClamp(value, addend, coefficient, max) {
  28840. value = addend + value * coefficient;
  28841. // Clamp the value to the range
  28842. return (value < 0 ? 0 : (value > max ? max : value));
  28843. }
  28844. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  28845. this.image = image;
  28846. var dict = image.dict;
  28847. if (dict.has('Filter')) {
  28848. var filter = dict.get('Filter').name;
  28849. if (filter === 'JPXDecode') {
  28850. var jpxImage = new JpxImage();
  28851. jpxImage.parseImageProperties(image.stream);
  28852. image.stream.reset();
  28853. image.bitsPerComponent = jpxImage.bitsPerComponent;
  28854. image.numComps = jpxImage.componentsCount;
  28855. } else if (filter === 'JBIG2Decode') {
  28856. image.bitsPerComponent = 1;
  28857. image.numComps = 1;
  28858. }
  28859. }
  28860. // TODO cache rendered images?
  28861. this.width = dict.get('Width', 'W');
  28862. this.height = dict.get('Height', 'H');
  28863. if (this.width < 1 || this.height < 1) {
  28864. error('Invalid image width: ' + this.width + ' or height: ' +
  28865. this.height);
  28866. }
  28867. this.interpolate = dict.get('Interpolate', 'I') || false;
  28868. this.imageMask = dict.get('ImageMask', 'IM') || false;
  28869. this.matte = dict.get('Matte') || false;
  28870. var bitsPerComponent = image.bitsPerComponent;
  28871. if (!bitsPerComponent) {
  28872. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  28873. if (!bitsPerComponent) {
  28874. if (this.imageMask) {
  28875. bitsPerComponent = 1;
  28876. } else {
  28877. error('Bits per component missing in image: ' + this.imageMask);
  28878. }
  28879. }
  28880. }
  28881. this.bpc = bitsPerComponent;
  28882. if (!this.imageMask) {
  28883. var colorSpace = dict.get('ColorSpace', 'CS');
  28884. if (!colorSpace) {
  28885. info('JPX images (which do not require color spaces)');
  28886. switch (image.numComps) {
  28887. case 1:
  28888. colorSpace = Name.get('DeviceGray');
  28889. break;
  28890. case 3:
  28891. colorSpace = Name.get('DeviceRGB');
  28892. break;
  28893. case 4:
  28894. colorSpace = Name.get('DeviceCMYK');
  28895. break;
  28896. default:
  28897. error('JPX images with ' + this.numComps +
  28898. ' color components not supported.');
  28899. }
  28900. }
  28901. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28902. this.numComps = this.colorSpace.numComps;
  28903. }
  28904. this.decode = dict.get('Decode', 'D');
  28905. this.needsDecode = false;
  28906. if (this.decode &&
  28907. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  28908. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  28909. this.needsDecode = true;
  28910. // Do some preprocessing to avoid more math.
  28911. var max = (1 << bitsPerComponent) - 1;
  28912. this.decodeCoefficients = [];
  28913. this.decodeAddends = [];
  28914. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  28915. var dmin = this.decode[i];
  28916. var dmax = this.decode[i + 1];
  28917. this.decodeCoefficients[j] = dmax - dmin;
  28918. this.decodeAddends[j] = max * dmin;
  28919. }
  28920. }
  28921. if (smask) {
  28922. this.smask = new PDFImage(xref, res, smask, false);
  28923. } else if (mask) {
  28924. if (isStream(mask)) {
  28925. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  28926. } else {
  28927. // Color key mask (just an array).
  28928. this.mask = mask;
  28929. }
  28930. }
  28931. }
  28932. /**
  28933. * Handles processing of image data and returns the Promise that is resolved
  28934. * with a PDFImage when the image is ready to be used.
  28935. */
  28936. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  28937. res, image, inline) {
  28938. var imagePromise = handleImageData(handler, xref, res, image);
  28939. var smaskPromise;
  28940. var maskPromise;
  28941. var smask = image.dict.get('SMask');
  28942. var mask = image.dict.get('Mask');
  28943. if (smask) {
  28944. smaskPromise = handleImageData(handler, xref, res, smask);
  28945. maskPromise = Promise.resolve(null);
  28946. } else {
  28947. smaskPromise = Promise.resolve(null);
  28948. if (mask) {
  28949. if (isStream(mask)) {
  28950. maskPromise = handleImageData(handler, xref, res, mask);
  28951. } else if (isArray(mask)) {
  28952. maskPromise = Promise.resolve(mask);
  28953. } else {
  28954. warn('Unsupported mask format.');
  28955. maskPromise = Promise.resolve(null);
  28956. }
  28957. } else {
  28958. maskPromise = Promise.resolve(null);
  28959. }
  28960. }
  28961. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  28962. function(results) {
  28963. var imageData = results[0];
  28964. var smaskData = results[1];
  28965. var maskData = results[2];
  28966. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  28967. });
  28968. };
  28969. /**
  28970. * Resize an image using the nearest neighbor algorithm. Currently only
  28971. * supports one and three component images.
  28972. * @param {TypedArray} pixels The original image with one component.
  28973. * @param {Number} bpc Number of bits per component.
  28974. * @param {Number} components Number of color components, 1 or 3 is supported.
  28975. * @param {Number} w1 Original width.
  28976. * @param {Number} h1 Original height.
  28977. * @param {Number} w2 New width.
  28978. * @param {Number} h2 New height.
  28979. * @param {TypedArray} dest (Optional) The destination buffer.
  28980. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  28981. * @return {TypedArray} Resized image data.
  28982. */
  28983. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  28984. w1, h1, w2, h2, dest, alpha01) {
  28985. if (components !== 1 && components !== 3) {
  28986. error('Unsupported component count for resizing.');
  28987. }
  28988. var length = w2 * h2 * components;
  28989. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  28990. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  28991. var xRatio = w1 / w2;
  28992. var yRatio = h1 / h2;
  28993. var i, j, py, newIndex = 0, oldIndex;
  28994. var xScaled = new Uint16Array(w2);
  28995. var w1Scanline = w1 * components;
  28996. if (alpha01 !== 1) {
  28997. alpha01 = 0;
  28998. }
  28999. for (j = 0; j < w2; j++) {
  29000. xScaled[j] = Math.floor(j * xRatio) * components;
  29001. }
  29002. if (components === 1) {
  29003. for (i = 0; i < h2; i++) {
  29004. py = Math.floor(i * yRatio) * w1Scanline;
  29005. for (j = 0; j < w2; j++) {
  29006. oldIndex = py + xScaled[j];
  29007. temp[newIndex++] = pixels[oldIndex];
  29008. }
  29009. }
  29010. } else if (components === 3) {
  29011. for (i = 0; i < h2; i++) {
  29012. py = Math.floor(i * yRatio) * w1Scanline;
  29013. for (j = 0; j < w2; j++) {
  29014. oldIndex = py + xScaled[j];
  29015. temp[newIndex++] = pixels[oldIndex++];
  29016. temp[newIndex++] = pixels[oldIndex++];
  29017. temp[newIndex++] = pixels[oldIndex++];
  29018. newIndex += alpha01;
  29019. }
  29020. }
  29021. }
  29022. return temp;
  29023. };
  29024. PDFImage.createMask =
  29025. function PDFImage_createMask(imgArray, width, height, canTransfer,
  29026. inverseDecode) {
  29027. // If imgArray came from a DecodeStream, we're safe to transfer it.
  29028. // Otherwise, copy it.
  29029. var actualLength = imgArray.byteLength;
  29030. var data;
  29031. if (canTransfer) {
  29032. data = imgArray;
  29033. } else {
  29034. data = new Uint8Array(actualLength);
  29035. data.set(imgArray);
  29036. }
  29037. // Invert if necessary. It's safe to modify the array -- whether it's the
  29038. // original or a copy, we're about to transfer it anyway, so nothing else
  29039. // in this thread can be relying on its contents.
  29040. if (inverseDecode) {
  29041. for (var i = 0; i < actualLength; i++) {
  29042. data[i] = ~data[i];
  29043. }
  29044. }
  29045. return {data: data, width: width, height: height};
  29046. };
  29047. PDFImage.prototype = {
  29048. get drawWidth() {
  29049. return Math.max(this.width,
  29050. this.smask && this.smask.width || 0,
  29051. this.mask && this.mask.width || 0);
  29052. },
  29053. get drawHeight() {
  29054. return Math.max(this.height,
  29055. this.smask && this.smask.height || 0,
  29056. this.mask && this.mask.height || 0);
  29057. },
  29058. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  29059. var bpc = this.bpc;
  29060. var numComps = this.numComps;
  29061. var decodeAddends = this.decodeAddends;
  29062. var decodeCoefficients = this.decodeCoefficients;
  29063. var max = (1 << bpc) - 1;
  29064. var i, ii;
  29065. if (bpc === 1) {
  29066. // If the buffer needed decode that means it just needs to be inverted.
  29067. for (i = 0, ii = buffer.length; i < ii; i++) {
  29068. buffer[i] = +!(buffer[i]);
  29069. }
  29070. return;
  29071. }
  29072. var index = 0;
  29073. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  29074. for (var j = 0; j < numComps; j++) {
  29075. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  29076. decodeCoefficients[j], max);
  29077. index++;
  29078. }
  29079. }
  29080. },
  29081. getComponents: function PDFImage_getComponents(buffer) {
  29082. var bpc = this.bpc;
  29083. // This image doesn't require any extra work.
  29084. if (bpc === 8) {
  29085. return buffer;
  29086. }
  29087. var width = this.width;
  29088. var height = this.height;
  29089. var numComps = this.numComps;
  29090. var length = width * height * numComps;
  29091. var bufferPos = 0;
  29092. var output = (bpc <= 8 ? new Uint8Array(length) :
  29093. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29094. var rowComps = width * numComps;
  29095. var max = (1 << bpc) - 1;
  29096. var i = 0, ii, buf;
  29097. if (bpc === 1) {
  29098. // Optimization for reading 1 bpc images.
  29099. var mask, loop1End, loop2End;
  29100. for (var j = 0; j < height; j++) {
  29101. loop1End = i + (rowComps & ~7);
  29102. loop2End = i + rowComps;
  29103. // unroll loop for all full bytes
  29104. while (i < loop1End) {
  29105. buf = buffer[bufferPos++];
  29106. output[i] = (buf >> 7) & 1;
  29107. output[i + 1] = (buf >> 6) & 1;
  29108. output[i + 2] = (buf >> 5) & 1;
  29109. output[i + 3] = (buf >> 4) & 1;
  29110. output[i + 4] = (buf >> 3) & 1;
  29111. output[i + 5] = (buf >> 2) & 1;
  29112. output[i + 6] = (buf >> 1) & 1;
  29113. output[i + 7] = buf & 1;
  29114. i += 8;
  29115. }
  29116. // handle remaing bits
  29117. if (i < loop2End) {
  29118. buf = buffer[bufferPos++];
  29119. mask = 128;
  29120. while (i < loop2End) {
  29121. output[i++] = +!!(buf & mask);
  29122. mask >>= 1;
  29123. }
  29124. }
  29125. }
  29126. } else {
  29127. // The general case that handles all other bpc values.
  29128. var bits = 0;
  29129. buf = 0;
  29130. for (i = 0, ii = length; i < ii; ++i) {
  29131. if (i % rowComps === 0) {
  29132. buf = 0;
  29133. bits = 0;
  29134. }
  29135. while (bits < bpc) {
  29136. buf = (buf << 8) | buffer[bufferPos++];
  29137. bits += 8;
  29138. }
  29139. var remainingBits = bits - bpc;
  29140. var value = buf >> remainingBits;
  29141. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  29142. buf = buf & ((1 << remainingBits) - 1);
  29143. bits = remainingBits;
  29144. }
  29145. }
  29146. return output;
  29147. },
  29148. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  29149. actualHeight, image) {
  29150. var smask = this.smask;
  29151. var mask = this.mask;
  29152. var alphaBuf, sw, sh, i, ii, j;
  29153. if (smask) {
  29154. sw = smask.width;
  29155. sh = smask.height;
  29156. alphaBuf = new Uint8Array(sw * sh);
  29157. smask.fillGrayBuffer(alphaBuf);
  29158. if (sw != width || sh != height) {
  29159. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  29160. height);
  29161. }
  29162. } else if (mask) {
  29163. if (mask instanceof PDFImage) {
  29164. sw = mask.width;
  29165. sh = mask.height;
  29166. alphaBuf = new Uint8Array(sw * sh);
  29167. mask.numComps = 1;
  29168. mask.fillGrayBuffer(alphaBuf);
  29169. // Need to invert values in rgbaBuf
  29170. for (i = 0, ii = sw * sh; i < ii; ++i) {
  29171. alphaBuf[i] = 255 - alphaBuf[i];
  29172. }
  29173. if (sw != width || sh != height) {
  29174. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  29175. height);
  29176. }
  29177. } else if (isArray(mask)) {
  29178. // Color key mask: if any of the compontents are outside the range
  29179. // then they should be painted.
  29180. alphaBuf = new Uint8Array(width * height);
  29181. var numComps = this.numComps;
  29182. for (i = 0, ii = width * height; i < ii; ++i) {
  29183. var opacity = 0;
  29184. var imageOffset = i * numComps;
  29185. for (j = 0; j < numComps; ++j) {
  29186. var color = image[imageOffset + j];
  29187. var maskOffset = j * 2;
  29188. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  29189. opacity = 255;
  29190. break;
  29191. }
  29192. }
  29193. alphaBuf[i] = opacity;
  29194. }
  29195. } else {
  29196. error('Unknown mask format.');
  29197. }
  29198. }
  29199. if (alphaBuf) {
  29200. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29201. rgbaBuf[j] = alphaBuf[i];
  29202. }
  29203. } else {
  29204. // No mask.
  29205. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29206. rgbaBuf[j] = 255;
  29207. }
  29208. }
  29209. },
  29210. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  29211. var matte = this.smask && this.smask.matte;
  29212. if (!matte) {
  29213. return;
  29214. }
  29215. var matteRgb = this.colorSpace.getRgb(matte, 0);
  29216. var matteR = matteRgb[0];
  29217. var matteG = matteRgb[1];
  29218. var matteB = matteRgb[2];
  29219. var length = width * height * 4;
  29220. var r, g, b;
  29221. for (var i = 0; i < length; i += 4) {
  29222. var alpha = buffer[i + 3];
  29223. if (alpha === 0) {
  29224. // according formula we have to get Infinity in all components
  29225. // making it white (typical paper color) should be okay
  29226. buffer[i] = 255;
  29227. buffer[i + 1] = 255;
  29228. buffer[i + 2] = 255;
  29229. continue;
  29230. }
  29231. var k = 255 / alpha;
  29232. r = (buffer[i] - matteR) * k + matteR;
  29233. g = (buffer[i + 1] - matteG) * k + matteG;
  29234. b = (buffer[i + 2] - matteB) * k + matteB;
  29235. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  29236. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  29237. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  29238. }
  29239. },
  29240. createImageData: function PDFImage_createImageData(forceRGBA) {
  29241. var drawWidth = this.drawWidth;
  29242. var drawHeight = this.drawHeight;
  29243. var imgData = { // other fields are filled in below
  29244. width: drawWidth,
  29245. height: drawHeight
  29246. };
  29247. var numComps = this.numComps;
  29248. var originalWidth = this.width;
  29249. var originalHeight = this.height;
  29250. var bpc = this.bpc;
  29251. // Rows start at byte boundary.
  29252. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  29253. var imgArray;
  29254. if (!forceRGBA) {
  29255. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  29256. // without any complications, we pass a same-sized copy to the main
  29257. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  29258. // of memory for many scanned documents. It's also much faster.
  29259. //
  29260. // Similarly, if it is a 24-bit-per pixel RGB image without any
  29261. // complications, we avoid expanding by 1.333x to RGBA form.
  29262. var kind;
  29263. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  29264. kind = ImageKind.GRAYSCALE_1BPP;
  29265. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  29266. kind = ImageKind.RGB_24BPP;
  29267. }
  29268. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  29269. drawWidth === originalWidth && drawHeight === originalHeight) {
  29270. imgData.kind = kind;
  29271. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29272. // If imgArray came from a DecodeStream, we're safe to transfer it
  29273. // (and thus neuter it) because it will constitute the entire
  29274. // DecodeStream's data. But if it came from a Stream, we need to
  29275. // copy it because it'll only be a portion of the Stream's data, and
  29276. // the rest will be read later on.
  29277. if (this.image instanceof DecodeStream) {
  29278. imgData.data = imgArray;
  29279. } else {
  29280. var newArray = new Uint8Array(imgArray.length);
  29281. newArray.set(imgArray);
  29282. imgData.data = newArray;
  29283. }
  29284. return imgData;
  29285. }
  29286. }
  29287. if (this.image instanceof JpegStream) {
  29288. imgData.kind = ImageKind.RGB_24BPP;
  29289. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  29290. drawWidth, drawHeight);
  29291. return imgData;
  29292. }
  29293. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29294. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  29295. var actualHeight = 0 | (imgArray.length / rowBytes *
  29296. drawHeight / originalHeight);
  29297. var comps = this.getComponents(imgArray);
  29298. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  29299. // more compact RGB_24BPP form if allowable.
  29300. var alpha01, maybeUndoPreblend;
  29301. if (!forceRGBA && !this.smask && !this.mask) {
  29302. imgData.kind = ImageKind.RGB_24BPP;
  29303. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  29304. alpha01 = 0;
  29305. maybeUndoPreblend = false;
  29306. } else {
  29307. imgData.kind = ImageKind.RGBA_32BPP;
  29308. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  29309. alpha01 = 1;
  29310. maybeUndoPreblend = true;
  29311. // Color key masking (opacity) must be performed before decoding.
  29312. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  29313. comps);
  29314. }
  29315. if (this.needsDecode) {
  29316. this.decodeBuffer(comps);
  29317. }
  29318. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  29319. drawWidth, drawHeight, actualHeight, bpc, comps,
  29320. alpha01);
  29321. if (maybeUndoPreblend) {
  29322. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  29323. }
  29324. return imgData;
  29325. },
  29326. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  29327. var numComps = this.numComps;
  29328. if (numComps != 1) {
  29329. error('Reading gray scale from a color image: ' + numComps);
  29330. }
  29331. var width = this.width;
  29332. var height = this.height;
  29333. var bpc = this.bpc;
  29334. // rows start at byte boundary
  29335. var rowBytes = (width * numComps * bpc + 7) >> 3;
  29336. var imgArray = this.getImageBytes(height * rowBytes);
  29337. var comps = this.getComponents(imgArray);
  29338. var i, length;
  29339. if (bpc === 1) {
  29340. // inline decoding (= inversion) for 1 bpc images
  29341. length = width * height;
  29342. if (this.needsDecode) {
  29343. // invert and scale to {0, 255}
  29344. for (i = 0; i < length; ++i) {
  29345. buffer[i] = (comps[i] - 1) & 255;
  29346. }
  29347. } else {
  29348. // scale to {0, 255}
  29349. for (i = 0; i < length; ++i) {
  29350. buffer[i] = (-comps[i]) & 255;
  29351. }
  29352. }
  29353. return;
  29354. }
  29355. if (this.needsDecode) {
  29356. this.decodeBuffer(comps);
  29357. }
  29358. length = width * height;
  29359. // we aren't using a colorspace so we need to scale the value
  29360. var scale = 255 / ((1 << bpc) - 1);
  29361. for (i = 0; i < length; ++i) {
  29362. buffer[i] = (scale * comps[i]) | 0;
  29363. }
  29364. },
  29365. getImageBytes: function PDFImage_getImageBytes(length,
  29366. drawWidth, drawHeight) {
  29367. this.image.reset();
  29368. this.image.drawWidth = drawWidth;
  29369. this.image.drawHeight = drawHeight;
  29370. return this.image.getBytes(length);
  29371. }
  29372. };
  29373. return PDFImage;
  29374. })();
  29375. // The Metrics object contains glyph widths (in glyph space units).
  29376. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  29377. // space unit corresponds to 1/1000th of text space unit.
  29378. var Metrics = {
  29379. 'Courier': 600,
  29380. 'Courier-Bold': 600,
  29381. 'Courier-BoldOblique': 600,
  29382. 'Courier-Oblique': 600,
  29383. 'Helvetica' : {
  29384. 'space': 278,
  29385. 'exclam': 278,
  29386. 'quotedbl': 355,
  29387. 'numbersign': 556,
  29388. 'dollar': 556,
  29389. 'percent': 889,
  29390. 'ampersand': 667,
  29391. 'quoteright': 222,
  29392. 'parenleft': 333,
  29393. 'parenright': 333,
  29394. 'asterisk': 389,
  29395. 'plus': 584,
  29396. 'comma': 278,
  29397. 'hyphen': 333,
  29398. 'period': 278,
  29399. 'slash': 278,
  29400. 'zero': 556,
  29401. 'one': 556,
  29402. 'two': 556,
  29403. 'three': 556,
  29404. 'four': 556,
  29405. 'five': 556,
  29406. 'six': 556,
  29407. 'seven': 556,
  29408. 'eight': 556,
  29409. 'nine': 556,
  29410. 'colon': 278,
  29411. 'semicolon': 278,
  29412. 'less': 584,
  29413. 'equal': 584,
  29414. 'greater': 584,
  29415. 'question': 556,
  29416. 'at': 1015,
  29417. 'A': 667,
  29418. 'B': 667,
  29419. 'C': 722,
  29420. 'D': 722,
  29421. 'E': 667,
  29422. 'F': 611,
  29423. 'G': 778,
  29424. 'H': 722,
  29425. 'I': 278,
  29426. 'J': 500,
  29427. 'K': 667,
  29428. 'L': 556,
  29429. 'M': 833,
  29430. 'N': 722,
  29431. 'O': 778,
  29432. 'P': 667,
  29433. 'Q': 778,
  29434. 'R': 722,
  29435. 'S': 667,
  29436. 'T': 611,
  29437. 'U': 722,
  29438. 'V': 667,
  29439. 'W': 944,
  29440. 'X': 667,
  29441. 'Y': 667,
  29442. 'Z': 611,
  29443. 'bracketleft': 278,
  29444. 'backslash': 278,
  29445. 'bracketright': 278,
  29446. 'asciicircum': 469,
  29447. 'underscore': 556,
  29448. 'quoteleft': 222,
  29449. 'a': 556,
  29450. 'b': 556,
  29451. 'c': 500,
  29452. 'd': 556,
  29453. 'e': 556,
  29454. 'f': 278,
  29455. 'g': 556,
  29456. 'h': 556,
  29457. 'i': 222,
  29458. 'j': 222,
  29459. 'k': 500,
  29460. 'l': 222,
  29461. 'm': 833,
  29462. 'n': 556,
  29463. 'o': 556,
  29464. 'p': 556,
  29465. 'q': 556,
  29466. 'r': 333,
  29467. 's': 500,
  29468. 't': 278,
  29469. 'u': 556,
  29470. 'v': 500,
  29471. 'w': 722,
  29472. 'x': 500,
  29473. 'y': 500,
  29474. 'z': 500,
  29475. 'braceleft': 334,
  29476. 'bar': 260,
  29477. 'braceright': 334,
  29478. 'asciitilde': 584,
  29479. 'exclamdown': 333,
  29480. 'cent': 556,
  29481. 'sterling': 556,
  29482. 'fraction': 167,
  29483. 'yen': 556,
  29484. 'florin': 556,
  29485. 'section': 556,
  29486. 'currency': 556,
  29487. 'quotesingle': 191,
  29488. 'quotedblleft': 333,
  29489. 'guillemotleft': 556,
  29490. 'guilsinglleft': 333,
  29491. 'guilsinglright': 333,
  29492. 'fi': 500,
  29493. 'fl': 500,
  29494. 'endash': 556,
  29495. 'dagger': 556,
  29496. 'daggerdbl': 556,
  29497. 'periodcentered': 278,
  29498. 'paragraph': 537,
  29499. 'bullet': 350,
  29500. 'quotesinglbase': 222,
  29501. 'quotedblbase': 333,
  29502. 'quotedblright': 333,
  29503. 'guillemotright': 556,
  29504. 'ellipsis': 1000,
  29505. 'perthousand': 1000,
  29506. 'questiondown': 611,
  29507. 'grave': 333,
  29508. 'acute': 333,
  29509. 'circumflex': 333,
  29510. 'tilde': 333,
  29511. 'macron': 333,
  29512. 'breve': 333,
  29513. 'dotaccent': 333,
  29514. 'dieresis': 333,
  29515. 'ring': 333,
  29516. 'cedilla': 333,
  29517. 'hungarumlaut': 333,
  29518. 'ogonek': 333,
  29519. 'caron': 333,
  29520. 'emdash': 1000,
  29521. 'AE': 1000,
  29522. 'ordfeminine': 370,
  29523. 'Lslash': 556,
  29524. 'Oslash': 778,
  29525. 'OE': 1000,
  29526. 'ordmasculine': 365,
  29527. 'ae': 889,
  29528. 'dotlessi': 278,
  29529. 'lslash': 222,
  29530. 'oslash': 611,
  29531. 'oe': 944,
  29532. 'germandbls': 611,
  29533. 'Idieresis': 278,
  29534. 'eacute': 556,
  29535. 'abreve': 556,
  29536. 'uhungarumlaut': 556,
  29537. 'ecaron': 556,
  29538. 'Ydieresis': 667,
  29539. 'divide': 584,
  29540. 'Yacute': 667,
  29541. 'Acircumflex': 667,
  29542. 'aacute': 556,
  29543. 'Ucircumflex': 722,
  29544. 'yacute': 500,
  29545. 'scommaaccent': 500,
  29546. 'ecircumflex': 556,
  29547. 'Uring': 722,
  29548. 'Udieresis': 722,
  29549. 'aogonek': 556,
  29550. 'Uacute': 722,
  29551. 'uogonek': 556,
  29552. 'Edieresis': 667,
  29553. 'Dcroat': 722,
  29554. 'commaaccent': 250,
  29555. 'copyright': 737,
  29556. 'Emacron': 667,
  29557. 'ccaron': 500,
  29558. 'aring': 556,
  29559. 'Ncommaaccent': 722,
  29560. 'lacute': 222,
  29561. 'agrave': 556,
  29562. 'Tcommaaccent': 611,
  29563. 'Cacute': 722,
  29564. 'atilde': 556,
  29565. 'Edotaccent': 667,
  29566. 'scaron': 500,
  29567. 'scedilla': 500,
  29568. 'iacute': 278,
  29569. 'lozenge': 471,
  29570. 'Rcaron': 722,
  29571. 'Gcommaaccent': 778,
  29572. 'ucircumflex': 556,
  29573. 'acircumflex': 556,
  29574. 'Amacron': 667,
  29575. 'rcaron': 333,
  29576. 'ccedilla': 500,
  29577. 'Zdotaccent': 611,
  29578. 'Thorn': 667,
  29579. 'Omacron': 778,
  29580. 'Racute': 722,
  29581. 'Sacute': 667,
  29582. 'dcaron': 643,
  29583. 'Umacron': 722,
  29584. 'uring': 556,
  29585. 'threesuperior': 333,
  29586. 'Ograve': 778,
  29587. 'Agrave': 667,
  29588. 'Abreve': 667,
  29589. 'multiply': 584,
  29590. 'uacute': 556,
  29591. 'Tcaron': 611,
  29592. 'partialdiff': 476,
  29593. 'ydieresis': 500,
  29594. 'Nacute': 722,
  29595. 'icircumflex': 278,
  29596. 'Ecircumflex': 667,
  29597. 'adieresis': 556,
  29598. 'edieresis': 556,
  29599. 'cacute': 500,
  29600. 'nacute': 556,
  29601. 'umacron': 556,
  29602. 'Ncaron': 722,
  29603. 'Iacute': 278,
  29604. 'plusminus': 584,
  29605. 'brokenbar': 260,
  29606. 'registered': 737,
  29607. 'Gbreve': 778,
  29608. 'Idotaccent': 278,
  29609. 'summation': 600,
  29610. 'Egrave': 667,
  29611. 'racute': 333,
  29612. 'omacron': 556,
  29613. 'Zacute': 611,
  29614. 'Zcaron': 611,
  29615. 'greaterequal': 549,
  29616. 'Eth': 722,
  29617. 'Ccedilla': 722,
  29618. 'lcommaaccent': 222,
  29619. 'tcaron': 317,
  29620. 'eogonek': 556,
  29621. 'Uogonek': 722,
  29622. 'Aacute': 667,
  29623. 'Adieresis': 667,
  29624. 'egrave': 556,
  29625. 'zacute': 500,
  29626. 'iogonek': 222,
  29627. 'Oacute': 778,
  29628. 'oacute': 556,
  29629. 'amacron': 556,
  29630. 'sacute': 500,
  29631. 'idieresis': 278,
  29632. 'Ocircumflex': 778,
  29633. 'Ugrave': 722,
  29634. 'Delta': 612,
  29635. 'thorn': 556,
  29636. 'twosuperior': 333,
  29637. 'Odieresis': 778,
  29638. 'mu': 556,
  29639. 'igrave': 278,
  29640. 'ohungarumlaut': 556,
  29641. 'Eogonek': 667,
  29642. 'dcroat': 556,
  29643. 'threequarters': 834,
  29644. 'Scedilla': 667,
  29645. 'lcaron': 299,
  29646. 'Kcommaaccent': 667,
  29647. 'Lacute': 556,
  29648. 'trademark': 1000,
  29649. 'edotaccent': 556,
  29650. 'Igrave': 278,
  29651. 'Imacron': 278,
  29652. 'Lcaron': 556,
  29653. 'onehalf': 834,
  29654. 'lessequal': 549,
  29655. 'ocircumflex': 556,
  29656. 'ntilde': 556,
  29657. 'Uhungarumlaut': 722,
  29658. 'Eacute': 667,
  29659. 'emacron': 556,
  29660. 'gbreve': 556,
  29661. 'onequarter': 834,
  29662. 'Scaron': 667,
  29663. 'Scommaaccent': 667,
  29664. 'Ohungarumlaut': 778,
  29665. 'degree': 400,
  29666. 'ograve': 556,
  29667. 'Ccaron': 722,
  29668. 'ugrave': 556,
  29669. 'radical': 453,
  29670. 'Dcaron': 722,
  29671. 'rcommaaccent': 333,
  29672. 'Ntilde': 722,
  29673. 'otilde': 556,
  29674. 'Rcommaaccent': 722,
  29675. 'Lcommaaccent': 556,
  29676. 'Atilde': 667,
  29677. 'Aogonek': 667,
  29678. 'Aring': 667,
  29679. 'Otilde': 778,
  29680. 'zdotaccent': 500,
  29681. 'Ecaron': 667,
  29682. 'Iogonek': 278,
  29683. 'kcommaaccent': 500,
  29684. 'minus': 584,
  29685. 'Icircumflex': 278,
  29686. 'ncaron': 556,
  29687. 'tcommaaccent': 278,
  29688. 'logicalnot': 584,
  29689. 'odieresis': 556,
  29690. 'udieresis': 556,
  29691. 'notequal': 549,
  29692. 'gcommaaccent': 556,
  29693. 'eth': 556,
  29694. 'zcaron': 500,
  29695. 'ncommaaccent': 556,
  29696. 'onesuperior': 333,
  29697. 'imacron': 278,
  29698. 'Euro': 556
  29699. },
  29700. 'Helvetica-Bold': {
  29701. 'space': 278,
  29702. 'exclam': 333,
  29703. 'quotedbl': 474,
  29704. 'numbersign': 556,
  29705. 'dollar': 556,
  29706. 'percent': 889,
  29707. 'ampersand': 722,
  29708. 'quoteright': 278,
  29709. 'parenleft': 333,
  29710. 'parenright': 333,
  29711. 'asterisk': 389,
  29712. 'plus': 584,
  29713. 'comma': 278,
  29714. 'hyphen': 333,
  29715. 'period': 278,
  29716. 'slash': 278,
  29717. 'zero': 556,
  29718. 'one': 556,
  29719. 'two': 556,
  29720. 'three': 556,
  29721. 'four': 556,
  29722. 'five': 556,
  29723. 'six': 556,
  29724. 'seven': 556,
  29725. 'eight': 556,
  29726. 'nine': 556,
  29727. 'colon': 333,
  29728. 'semicolon': 333,
  29729. 'less': 584,
  29730. 'equal': 584,
  29731. 'greater': 584,
  29732. 'question': 611,
  29733. 'at': 975,
  29734. 'A': 722,
  29735. 'B': 722,
  29736. 'C': 722,
  29737. 'D': 722,
  29738. 'E': 667,
  29739. 'F': 611,
  29740. 'G': 778,
  29741. 'H': 722,
  29742. 'I': 278,
  29743. 'J': 556,
  29744. 'K': 722,
  29745. 'L': 611,
  29746. 'M': 833,
  29747. 'N': 722,
  29748. 'O': 778,
  29749. 'P': 667,
  29750. 'Q': 778,
  29751. 'R': 722,
  29752. 'S': 667,
  29753. 'T': 611,
  29754. 'U': 722,
  29755. 'V': 667,
  29756. 'W': 944,
  29757. 'X': 667,
  29758. 'Y': 667,
  29759. 'Z': 611,
  29760. 'bracketleft': 333,
  29761. 'backslash': 278,
  29762. 'bracketright': 333,
  29763. 'asciicircum': 584,
  29764. 'underscore': 556,
  29765. 'quoteleft': 278,
  29766. 'a': 556,
  29767. 'b': 611,
  29768. 'c': 556,
  29769. 'd': 611,
  29770. 'e': 556,
  29771. 'f': 333,
  29772. 'g': 611,
  29773. 'h': 611,
  29774. 'i': 278,
  29775. 'j': 278,
  29776. 'k': 556,
  29777. 'l': 278,
  29778. 'm': 889,
  29779. 'n': 611,
  29780. 'o': 611,
  29781. 'p': 611,
  29782. 'q': 611,
  29783. 'r': 389,
  29784. 's': 556,
  29785. 't': 333,
  29786. 'u': 611,
  29787. 'v': 556,
  29788. 'w': 778,
  29789. 'x': 556,
  29790. 'y': 556,
  29791. 'z': 500,
  29792. 'braceleft': 389,
  29793. 'bar': 280,
  29794. 'braceright': 389,
  29795. 'asciitilde': 584,
  29796. 'exclamdown': 333,
  29797. 'cent': 556,
  29798. 'sterling': 556,
  29799. 'fraction': 167,
  29800. 'yen': 556,
  29801. 'florin': 556,
  29802. 'section': 556,
  29803. 'currency': 556,
  29804. 'quotesingle': 238,
  29805. 'quotedblleft': 500,
  29806. 'guillemotleft': 556,
  29807. 'guilsinglleft': 333,
  29808. 'guilsinglright': 333,
  29809. 'fi': 611,
  29810. 'fl': 611,
  29811. 'endash': 556,
  29812. 'dagger': 556,
  29813. 'daggerdbl': 556,
  29814. 'periodcentered': 278,
  29815. 'paragraph': 556,
  29816. 'bullet': 350,
  29817. 'quotesinglbase': 278,
  29818. 'quotedblbase': 500,
  29819. 'quotedblright': 500,
  29820. 'guillemotright': 556,
  29821. 'ellipsis': 1000,
  29822. 'perthousand': 1000,
  29823. 'questiondown': 611,
  29824. 'grave': 333,
  29825. 'acute': 333,
  29826. 'circumflex': 333,
  29827. 'tilde': 333,
  29828. 'macron': 333,
  29829. 'breve': 333,
  29830. 'dotaccent': 333,
  29831. 'dieresis': 333,
  29832. 'ring': 333,
  29833. 'cedilla': 333,
  29834. 'hungarumlaut': 333,
  29835. 'ogonek': 333,
  29836. 'caron': 333,
  29837. 'emdash': 1000,
  29838. 'AE': 1000,
  29839. 'ordfeminine': 370,
  29840. 'Lslash': 611,
  29841. 'Oslash': 778,
  29842. 'OE': 1000,
  29843. 'ordmasculine': 365,
  29844. 'ae': 889,
  29845. 'dotlessi': 278,
  29846. 'lslash': 278,
  29847. 'oslash': 611,
  29848. 'oe': 944,
  29849. 'germandbls': 611,
  29850. 'Idieresis': 278,
  29851. 'eacute': 556,
  29852. 'abreve': 556,
  29853. 'uhungarumlaut': 611,
  29854. 'ecaron': 556,
  29855. 'Ydieresis': 667,
  29856. 'divide': 584,
  29857. 'Yacute': 667,
  29858. 'Acircumflex': 722,
  29859. 'aacute': 556,
  29860. 'Ucircumflex': 722,
  29861. 'yacute': 556,
  29862. 'scommaaccent': 556,
  29863. 'ecircumflex': 556,
  29864. 'Uring': 722,
  29865. 'Udieresis': 722,
  29866. 'aogonek': 556,
  29867. 'Uacute': 722,
  29868. 'uogonek': 611,
  29869. 'Edieresis': 667,
  29870. 'Dcroat': 722,
  29871. 'commaaccent': 250,
  29872. 'copyright': 737,
  29873. 'Emacron': 667,
  29874. 'ccaron': 556,
  29875. 'aring': 556,
  29876. 'Ncommaaccent': 722,
  29877. 'lacute': 278,
  29878. 'agrave': 556,
  29879. 'Tcommaaccent': 611,
  29880. 'Cacute': 722,
  29881. 'atilde': 556,
  29882. 'Edotaccent': 667,
  29883. 'scaron': 556,
  29884. 'scedilla': 556,
  29885. 'iacute': 278,
  29886. 'lozenge': 494,
  29887. 'Rcaron': 722,
  29888. 'Gcommaaccent': 778,
  29889. 'ucircumflex': 611,
  29890. 'acircumflex': 556,
  29891. 'Amacron': 722,
  29892. 'rcaron': 389,
  29893. 'ccedilla': 556,
  29894. 'Zdotaccent': 611,
  29895. 'Thorn': 667,
  29896. 'Omacron': 778,
  29897. 'Racute': 722,
  29898. 'Sacute': 667,
  29899. 'dcaron': 743,
  29900. 'Umacron': 722,
  29901. 'uring': 611,
  29902. 'threesuperior': 333,
  29903. 'Ograve': 778,
  29904. 'Agrave': 722,
  29905. 'Abreve': 722,
  29906. 'multiply': 584,
  29907. 'uacute': 611,
  29908. 'Tcaron': 611,
  29909. 'partialdiff': 494,
  29910. 'ydieresis': 556,
  29911. 'Nacute': 722,
  29912. 'icircumflex': 278,
  29913. 'Ecircumflex': 667,
  29914. 'adieresis': 556,
  29915. 'edieresis': 556,
  29916. 'cacute': 556,
  29917. 'nacute': 611,
  29918. 'umacron': 611,
  29919. 'Ncaron': 722,
  29920. 'Iacute': 278,
  29921. 'plusminus': 584,
  29922. 'brokenbar': 280,
  29923. 'registered': 737,
  29924. 'Gbreve': 778,
  29925. 'Idotaccent': 278,
  29926. 'summation': 600,
  29927. 'Egrave': 667,
  29928. 'racute': 389,
  29929. 'omacron': 611,
  29930. 'Zacute': 611,
  29931. 'Zcaron': 611,
  29932. 'greaterequal': 549,
  29933. 'Eth': 722,
  29934. 'Ccedilla': 722,
  29935. 'lcommaaccent': 278,
  29936. 'tcaron': 389,
  29937. 'eogonek': 556,
  29938. 'Uogonek': 722,
  29939. 'Aacute': 722,
  29940. 'Adieresis': 722,
  29941. 'egrave': 556,
  29942. 'zacute': 500,
  29943. 'iogonek': 278,
  29944. 'Oacute': 778,
  29945. 'oacute': 611,
  29946. 'amacron': 556,
  29947. 'sacute': 556,
  29948. 'idieresis': 278,
  29949. 'Ocircumflex': 778,
  29950. 'Ugrave': 722,
  29951. 'Delta': 612,
  29952. 'thorn': 611,
  29953. 'twosuperior': 333,
  29954. 'Odieresis': 778,
  29955. 'mu': 611,
  29956. 'igrave': 278,
  29957. 'ohungarumlaut': 611,
  29958. 'Eogonek': 667,
  29959. 'dcroat': 611,
  29960. 'threequarters': 834,
  29961. 'Scedilla': 667,
  29962. 'lcaron': 400,
  29963. 'Kcommaaccent': 722,
  29964. 'Lacute': 611,
  29965. 'trademark': 1000,
  29966. 'edotaccent': 556,
  29967. 'Igrave': 278,
  29968. 'Imacron': 278,
  29969. 'Lcaron': 611,
  29970. 'onehalf': 834,
  29971. 'lessequal': 549,
  29972. 'ocircumflex': 611,
  29973. 'ntilde': 611,
  29974. 'Uhungarumlaut': 722,
  29975. 'Eacute': 667,
  29976. 'emacron': 556,
  29977. 'gbreve': 611,
  29978. 'onequarter': 834,
  29979. 'Scaron': 667,
  29980. 'Scommaaccent': 667,
  29981. 'Ohungarumlaut': 778,
  29982. 'degree': 400,
  29983. 'ograve': 611,
  29984. 'Ccaron': 722,
  29985. 'ugrave': 611,
  29986. 'radical': 549,
  29987. 'Dcaron': 722,
  29988. 'rcommaaccent': 389,
  29989. 'Ntilde': 722,
  29990. 'otilde': 611,
  29991. 'Rcommaaccent': 722,
  29992. 'Lcommaaccent': 611,
  29993. 'Atilde': 722,
  29994. 'Aogonek': 722,
  29995. 'Aring': 722,
  29996. 'Otilde': 778,
  29997. 'zdotaccent': 500,
  29998. 'Ecaron': 667,
  29999. 'Iogonek': 278,
  30000. 'kcommaaccent': 556,
  30001. 'minus': 584,
  30002. 'Icircumflex': 278,
  30003. 'ncaron': 611,
  30004. 'tcommaaccent': 333,
  30005. 'logicalnot': 584,
  30006. 'odieresis': 611,
  30007. 'udieresis': 611,
  30008. 'notequal': 549,
  30009. 'gcommaaccent': 611,
  30010. 'eth': 611,
  30011. 'zcaron': 500,
  30012. 'ncommaaccent': 611,
  30013. 'onesuperior': 333,
  30014. 'imacron': 278,
  30015. 'Euro': 556
  30016. },
  30017. 'Helvetica-BoldOblique': {
  30018. 'space': 278,
  30019. 'exclam': 333,
  30020. 'quotedbl': 474,
  30021. 'numbersign': 556,
  30022. 'dollar': 556,
  30023. 'percent': 889,
  30024. 'ampersand': 722,
  30025. 'quoteright': 278,
  30026. 'parenleft': 333,
  30027. 'parenright': 333,
  30028. 'asterisk': 389,
  30029. 'plus': 584,
  30030. 'comma': 278,
  30031. 'hyphen': 333,
  30032. 'period': 278,
  30033. 'slash': 278,
  30034. 'zero': 556,
  30035. 'one': 556,
  30036. 'two': 556,
  30037. 'three': 556,
  30038. 'four': 556,
  30039. 'five': 556,
  30040. 'six': 556,
  30041. 'seven': 556,
  30042. 'eight': 556,
  30043. 'nine': 556,
  30044. 'colon': 333,
  30045. 'semicolon': 333,
  30046. 'less': 584,
  30047. 'equal': 584,
  30048. 'greater': 584,
  30049. 'question': 611,
  30050. 'at': 975,
  30051. 'A': 722,
  30052. 'B': 722,
  30053. 'C': 722,
  30054. 'D': 722,
  30055. 'E': 667,
  30056. 'F': 611,
  30057. 'G': 778,
  30058. 'H': 722,
  30059. 'I': 278,
  30060. 'J': 556,
  30061. 'K': 722,
  30062. 'L': 611,
  30063. 'M': 833,
  30064. 'N': 722,
  30065. 'O': 778,
  30066. 'P': 667,
  30067. 'Q': 778,
  30068. 'R': 722,
  30069. 'S': 667,
  30070. 'T': 611,
  30071. 'U': 722,
  30072. 'V': 667,
  30073. 'W': 944,
  30074. 'X': 667,
  30075. 'Y': 667,
  30076. 'Z': 611,
  30077. 'bracketleft': 333,
  30078. 'backslash': 278,
  30079. 'bracketright': 333,
  30080. 'asciicircum': 584,
  30081. 'underscore': 556,
  30082. 'quoteleft': 278,
  30083. 'a': 556,
  30084. 'b': 611,
  30085. 'c': 556,
  30086. 'd': 611,
  30087. 'e': 556,
  30088. 'f': 333,
  30089. 'g': 611,
  30090. 'h': 611,
  30091. 'i': 278,
  30092. 'j': 278,
  30093. 'k': 556,
  30094. 'l': 278,
  30095. 'm': 889,
  30096. 'n': 611,
  30097. 'o': 611,
  30098. 'p': 611,
  30099. 'q': 611,
  30100. 'r': 389,
  30101. 's': 556,
  30102. 't': 333,
  30103. 'u': 611,
  30104. 'v': 556,
  30105. 'w': 778,
  30106. 'x': 556,
  30107. 'y': 556,
  30108. 'z': 500,
  30109. 'braceleft': 389,
  30110. 'bar': 280,
  30111. 'braceright': 389,
  30112. 'asciitilde': 584,
  30113. 'exclamdown': 333,
  30114. 'cent': 556,
  30115. 'sterling': 556,
  30116. 'fraction': 167,
  30117. 'yen': 556,
  30118. 'florin': 556,
  30119. 'section': 556,
  30120. 'currency': 556,
  30121. 'quotesingle': 238,
  30122. 'quotedblleft': 500,
  30123. 'guillemotleft': 556,
  30124. 'guilsinglleft': 333,
  30125. 'guilsinglright': 333,
  30126. 'fi': 611,
  30127. 'fl': 611,
  30128. 'endash': 556,
  30129. 'dagger': 556,
  30130. 'daggerdbl': 556,
  30131. 'periodcentered': 278,
  30132. 'paragraph': 556,
  30133. 'bullet': 350,
  30134. 'quotesinglbase': 278,
  30135. 'quotedblbase': 500,
  30136. 'quotedblright': 500,
  30137. 'guillemotright': 556,
  30138. 'ellipsis': 1000,
  30139. 'perthousand': 1000,
  30140. 'questiondown': 611,
  30141. 'grave': 333,
  30142. 'acute': 333,
  30143. 'circumflex': 333,
  30144. 'tilde': 333,
  30145. 'macron': 333,
  30146. 'breve': 333,
  30147. 'dotaccent': 333,
  30148. 'dieresis': 333,
  30149. 'ring': 333,
  30150. 'cedilla': 333,
  30151. 'hungarumlaut': 333,
  30152. 'ogonek': 333,
  30153. 'caron': 333,
  30154. 'emdash': 1000,
  30155. 'AE': 1000,
  30156. 'ordfeminine': 370,
  30157. 'Lslash': 611,
  30158. 'Oslash': 778,
  30159. 'OE': 1000,
  30160. 'ordmasculine': 365,
  30161. 'ae': 889,
  30162. 'dotlessi': 278,
  30163. 'lslash': 278,
  30164. 'oslash': 611,
  30165. 'oe': 944,
  30166. 'germandbls': 611,
  30167. 'Idieresis': 278,
  30168. 'eacute': 556,
  30169. 'abreve': 556,
  30170. 'uhungarumlaut': 611,
  30171. 'ecaron': 556,
  30172. 'Ydieresis': 667,
  30173. 'divide': 584,
  30174. 'Yacute': 667,
  30175. 'Acircumflex': 722,
  30176. 'aacute': 556,
  30177. 'Ucircumflex': 722,
  30178. 'yacute': 556,
  30179. 'scommaaccent': 556,
  30180. 'ecircumflex': 556,
  30181. 'Uring': 722,
  30182. 'Udieresis': 722,
  30183. 'aogonek': 556,
  30184. 'Uacute': 722,
  30185. 'uogonek': 611,
  30186. 'Edieresis': 667,
  30187. 'Dcroat': 722,
  30188. 'commaaccent': 250,
  30189. 'copyright': 737,
  30190. 'Emacron': 667,
  30191. 'ccaron': 556,
  30192. 'aring': 556,
  30193. 'Ncommaaccent': 722,
  30194. 'lacute': 278,
  30195. 'agrave': 556,
  30196. 'Tcommaaccent': 611,
  30197. 'Cacute': 722,
  30198. 'atilde': 556,
  30199. 'Edotaccent': 667,
  30200. 'scaron': 556,
  30201. 'scedilla': 556,
  30202. 'iacute': 278,
  30203. 'lozenge': 494,
  30204. 'Rcaron': 722,
  30205. 'Gcommaaccent': 778,
  30206. 'ucircumflex': 611,
  30207. 'acircumflex': 556,
  30208. 'Amacron': 722,
  30209. 'rcaron': 389,
  30210. 'ccedilla': 556,
  30211. 'Zdotaccent': 611,
  30212. 'Thorn': 667,
  30213. 'Omacron': 778,
  30214. 'Racute': 722,
  30215. 'Sacute': 667,
  30216. 'dcaron': 743,
  30217. 'Umacron': 722,
  30218. 'uring': 611,
  30219. 'threesuperior': 333,
  30220. 'Ograve': 778,
  30221. 'Agrave': 722,
  30222. 'Abreve': 722,
  30223. 'multiply': 584,
  30224. 'uacute': 611,
  30225. 'Tcaron': 611,
  30226. 'partialdiff': 494,
  30227. 'ydieresis': 556,
  30228. 'Nacute': 722,
  30229. 'icircumflex': 278,
  30230. 'Ecircumflex': 667,
  30231. 'adieresis': 556,
  30232. 'edieresis': 556,
  30233. 'cacute': 556,
  30234. 'nacute': 611,
  30235. 'umacron': 611,
  30236. 'Ncaron': 722,
  30237. 'Iacute': 278,
  30238. 'plusminus': 584,
  30239. 'brokenbar': 280,
  30240. 'registered': 737,
  30241. 'Gbreve': 778,
  30242. 'Idotaccent': 278,
  30243. 'summation': 600,
  30244. 'Egrave': 667,
  30245. 'racute': 389,
  30246. 'omacron': 611,
  30247. 'Zacute': 611,
  30248. 'Zcaron': 611,
  30249. 'greaterequal': 549,
  30250. 'Eth': 722,
  30251. 'Ccedilla': 722,
  30252. 'lcommaaccent': 278,
  30253. 'tcaron': 389,
  30254. 'eogonek': 556,
  30255. 'Uogonek': 722,
  30256. 'Aacute': 722,
  30257. 'Adieresis': 722,
  30258. 'egrave': 556,
  30259. 'zacute': 500,
  30260. 'iogonek': 278,
  30261. 'Oacute': 778,
  30262. 'oacute': 611,
  30263. 'amacron': 556,
  30264. 'sacute': 556,
  30265. 'idieresis': 278,
  30266. 'Ocircumflex': 778,
  30267. 'Ugrave': 722,
  30268. 'Delta': 612,
  30269. 'thorn': 611,
  30270. 'twosuperior': 333,
  30271. 'Odieresis': 778,
  30272. 'mu': 611,
  30273. 'igrave': 278,
  30274. 'ohungarumlaut': 611,
  30275. 'Eogonek': 667,
  30276. 'dcroat': 611,
  30277. 'threequarters': 834,
  30278. 'Scedilla': 667,
  30279. 'lcaron': 400,
  30280. 'Kcommaaccent': 722,
  30281. 'Lacute': 611,
  30282. 'trademark': 1000,
  30283. 'edotaccent': 556,
  30284. 'Igrave': 278,
  30285. 'Imacron': 278,
  30286. 'Lcaron': 611,
  30287. 'onehalf': 834,
  30288. 'lessequal': 549,
  30289. 'ocircumflex': 611,
  30290. 'ntilde': 611,
  30291. 'Uhungarumlaut': 722,
  30292. 'Eacute': 667,
  30293. 'emacron': 556,
  30294. 'gbreve': 611,
  30295. 'onequarter': 834,
  30296. 'Scaron': 667,
  30297. 'Scommaaccent': 667,
  30298. 'Ohungarumlaut': 778,
  30299. 'degree': 400,
  30300. 'ograve': 611,
  30301. 'Ccaron': 722,
  30302. 'ugrave': 611,
  30303. 'radical': 549,
  30304. 'Dcaron': 722,
  30305. 'rcommaaccent': 389,
  30306. 'Ntilde': 722,
  30307. 'otilde': 611,
  30308. 'Rcommaaccent': 722,
  30309. 'Lcommaaccent': 611,
  30310. 'Atilde': 722,
  30311. 'Aogonek': 722,
  30312. 'Aring': 722,
  30313. 'Otilde': 778,
  30314. 'zdotaccent': 500,
  30315. 'Ecaron': 667,
  30316. 'Iogonek': 278,
  30317. 'kcommaaccent': 556,
  30318. 'minus': 584,
  30319. 'Icircumflex': 278,
  30320. 'ncaron': 611,
  30321. 'tcommaaccent': 333,
  30322. 'logicalnot': 584,
  30323. 'odieresis': 611,
  30324. 'udieresis': 611,
  30325. 'notequal': 549,
  30326. 'gcommaaccent': 611,
  30327. 'eth': 611,
  30328. 'zcaron': 500,
  30329. 'ncommaaccent': 611,
  30330. 'onesuperior': 333,
  30331. 'imacron': 278,
  30332. 'Euro': 556
  30333. },
  30334. 'Helvetica-Oblique' : {
  30335. 'space': 278,
  30336. 'exclam': 278,
  30337. 'quotedbl': 355,
  30338. 'numbersign': 556,
  30339. 'dollar': 556,
  30340. 'percent': 889,
  30341. 'ampersand': 667,
  30342. 'quoteright': 222,
  30343. 'parenleft': 333,
  30344. 'parenright': 333,
  30345. 'asterisk': 389,
  30346. 'plus': 584,
  30347. 'comma': 278,
  30348. 'hyphen': 333,
  30349. 'period': 278,
  30350. 'slash': 278,
  30351. 'zero': 556,
  30352. 'one': 556,
  30353. 'two': 556,
  30354. 'three': 556,
  30355. 'four': 556,
  30356. 'five': 556,
  30357. 'six': 556,
  30358. 'seven': 556,
  30359. 'eight': 556,
  30360. 'nine': 556,
  30361. 'colon': 278,
  30362. 'semicolon': 278,
  30363. 'less': 584,
  30364. 'equal': 584,
  30365. 'greater': 584,
  30366. 'question': 556,
  30367. 'at': 1015,
  30368. 'A': 667,
  30369. 'B': 667,
  30370. 'C': 722,
  30371. 'D': 722,
  30372. 'E': 667,
  30373. 'F': 611,
  30374. 'G': 778,
  30375. 'H': 722,
  30376. 'I': 278,
  30377. 'J': 500,
  30378. 'K': 667,
  30379. 'L': 556,
  30380. 'M': 833,
  30381. 'N': 722,
  30382. 'O': 778,
  30383. 'P': 667,
  30384. 'Q': 778,
  30385. 'R': 722,
  30386. 'S': 667,
  30387. 'T': 611,
  30388. 'U': 722,
  30389. 'V': 667,
  30390. 'W': 944,
  30391. 'X': 667,
  30392. 'Y': 667,
  30393. 'Z': 611,
  30394. 'bracketleft': 278,
  30395. 'backslash': 278,
  30396. 'bracketright': 278,
  30397. 'asciicircum': 469,
  30398. 'underscore': 556,
  30399. 'quoteleft': 222,
  30400. 'a': 556,
  30401. 'b': 556,
  30402. 'c': 500,
  30403. 'd': 556,
  30404. 'e': 556,
  30405. 'f': 278,
  30406. 'g': 556,
  30407. 'h': 556,
  30408. 'i': 222,
  30409. 'j': 222,
  30410. 'k': 500,
  30411. 'l': 222,
  30412. 'm': 833,
  30413. 'n': 556,
  30414. 'o': 556,
  30415. 'p': 556,
  30416. 'q': 556,
  30417. 'r': 333,
  30418. 's': 500,
  30419. 't': 278,
  30420. 'u': 556,
  30421. 'v': 500,
  30422. 'w': 722,
  30423. 'x': 500,
  30424. 'y': 500,
  30425. 'z': 500,
  30426. 'braceleft': 334,
  30427. 'bar': 260,
  30428. 'braceright': 334,
  30429. 'asciitilde': 584,
  30430. 'exclamdown': 333,
  30431. 'cent': 556,
  30432. 'sterling': 556,
  30433. 'fraction': 167,
  30434. 'yen': 556,
  30435. 'florin': 556,
  30436. 'section': 556,
  30437. 'currency': 556,
  30438. 'quotesingle': 191,
  30439. 'quotedblleft': 333,
  30440. 'guillemotleft': 556,
  30441. 'guilsinglleft': 333,
  30442. 'guilsinglright': 333,
  30443. 'fi': 500,
  30444. 'fl': 500,
  30445. 'endash': 556,
  30446. 'dagger': 556,
  30447. 'daggerdbl': 556,
  30448. 'periodcentered': 278,
  30449. 'paragraph': 537,
  30450. 'bullet': 350,
  30451. 'quotesinglbase': 222,
  30452. 'quotedblbase': 333,
  30453. 'quotedblright': 333,
  30454. 'guillemotright': 556,
  30455. 'ellipsis': 1000,
  30456. 'perthousand': 1000,
  30457. 'questiondown': 611,
  30458. 'grave': 333,
  30459. 'acute': 333,
  30460. 'circumflex': 333,
  30461. 'tilde': 333,
  30462. 'macron': 333,
  30463. 'breve': 333,
  30464. 'dotaccent': 333,
  30465. 'dieresis': 333,
  30466. 'ring': 333,
  30467. 'cedilla': 333,
  30468. 'hungarumlaut': 333,
  30469. 'ogonek': 333,
  30470. 'caron': 333,
  30471. 'emdash': 1000,
  30472. 'AE': 1000,
  30473. 'ordfeminine': 370,
  30474. 'Lslash': 556,
  30475. 'Oslash': 778,
  30476. 'OE': 1000,
  30477. 'ordmasculine': 365,
  30478. 'ae': 889,
  30479. 'dotlessi': 278,
  30480. 'lslash': 222,
  30481. 'oslash': 611,
  30482. 'oe': 944,
  30483. 'germandbls': 611,
  30484. 'Idieresis': 278,
  30485. 'eacute': 556,
  30486. 'abreve': 556,
  30487. 'uhungarumlaut': 556,
  30488. 'ecaron': 556,
  30489. 'Ydieresis': 667,
  30490. 'divide': 584,
  30491. 'Yacute': 667,
  30492. 'Acircumflex': 667,
  30493. 'aacute': 556,
  30494. 'Ucircumflex': 722,
  30495. 'yacute': 500,
  30496. 'scommaaccent': 500,
  30497. 'ecircumflex': 556,
  30498. 'Uring': 722,
  30499. 'Udieresis': 722,
  30500. 'aogonek': 556,
  30501. 'Uacute': 722,
  30502. 'uogonek': 556,
  30503. 'Edieresis': 667,
  30504. 'Dcroat': 722,
  30505. 'commaaccent': 250,
  30506. 'copyright': 737,
  30507. 'Emacron': 667,
  30508. 'ccaron': 500,
  30509. 'aring': 556,
  30510. 'Ncommaaccent': 722,
  30511. 'lacute': 222,
  30512. 'agrave': 556,
  30513. 'Tcommaaccent': 611,
  30514. 'Cacute': 722,
  30515. 'atilde': 556,
  30516. 'Edotaccent': 667,
  30517. 'scaron': 500,
  30518. 'scedilla': 500,
  30519. 'iacute': 278,
  30520. 'lozenge': 471,
  30521. 'Rcaron': 722,
  30522. 'Gcommaaccent': 778,
  30523. 'ucircumflex': 556,
  30524. 'acircumflex': 556,
  30525. 'Amacron': 667,
  30526. 'rcaron': 333,
  30527. 'ccedilla': 500,
  30528. 'Zdotaccent': 611,
  30529. 'Thorn': 667,
  30530. 'Omacron': 778,
  30531. 'Racute': 722,
  30532. 'Sacute': 667,
  30533. 'dcaron': 643,
  30534. 'Umacron': 722,
  30535. 'uring': 556,
  30536. 'threesuperior': 333,
  30537. 'Ograve': 778,
  30538. 'Agrave': 667,
  30539. 'Abreve': 667,
  30540. 'multiply': 584,
  30541. 'uacute': 556,
  30542. 'Tcaron': 611,
  30543. 'partialdiff': 476,
  30544. 'ydieresis': 500,
  30545. 'Nacute': 722,
  30546. 'icircumflex': 278,
  30547. 'Ecircumflex': 667,
  30548. 'adieresis': 556,
  30549. 'edieresis': 556,
  30550. 'cacute': 500,
  30551. 'nacute': 556,
  30552. 'umacron': 556,
  30553. 'Ncaron': 722,
  30554. 'Iacute': 278,
  30555. 'plusminus': 584,
  30556. 'brokenbar': 260,
  30557. 'registered': 737,
  30558. 'Gbreve': 778,
  30559. 'Idotaccent': 278,
  30560. 'summation': 600,
  30561. 'Egrave': 667,
  30562. 'racute': 333,
  30563. 'omacron': 556,
  30564. 'Zacute': 611,
  30565. 'Zcaron': 611,
  30566. 'greaterequal': 549,
  30567. 'Eth': 722,
  30568. 'Ccedilla': 722,
  30569. 'lcommaaccent': 222,
  30570. 'tcaron': 317,
  30571. 'eogonek': 556,
  30572. 'Uogonek': 722,
  30573. 'Aacute': 667,
  30574. 'Adieresis': 667,
  30575. 'egrave': 556,
  30576. 'zacute': 500,
  30577. 'iogonek': 222,
  30578. 'Oacute': 778,
  30579. 'oacute': 556,
  30580. 'amacron': 556,
  30581. 'sacute': 500,
  30582. 'idieresis': 278,
  30583. 'Ocircumflex': 778,
  30584. 'Ugrave': 722,
  30585. 'Delta': 612,
  30586. 'thorn': 556,
  30587. 'twosuperior': 333,
  30588. 'Odieresis': 778,
  30589. 'mu': 556,
  30590. 'igrave': 278,
  30591. 'ohungarumlaut': 556,
  30592. 'Eogonek': 667,
  30593. 'dcroat': 556,
  30594. 'threequarters': 834,
  30595. 'Scedilla': 667,
  30596. 'lcaron': 299,
  30597. 'Kcommaaccent': 667,
  30598. 'Lacute': 556,
  30599. 'trademark': 1000,
  30600. 'edotaccent': 556,
  30601. 'Igrave': 278,
  30602. 'Imacron': 278,
  30603. 'Lcaron': 556,
  30604. 'onehalf': 834,
  30605. 'lessequal': 549,
  30606. 'ocircumflex': 556,
  30607. 'ntilde': 556,
  30608. 'Uhungarumlaut': 722,
  30609. 'Eacute': 667,
  30610. 'emacron': 556,
  30611. 'gbreve': 556,
  30612. 'onequarter': 834,
  30613. 'Scaron': 667,
  30614. 'Scommaaccent': 667,
  30615. 'Ohungarumlaut': 778,
  30616. 'degree': 400,
  30617. 'ograve': 556,
  30618. 'Ccaron': 722,
  30619. 'ugrave': 556,
  30620. 'radical': 453,
  30621. 'Dcaron': 722,
  30622. 'rcommaaccent': 333,
  30623. 'Ntilde': 722,
  30624. 'otilde': 556,
  30625. 'Rcommaaccent': 722,
  30626. 'Lcommaaccent': 556,
  30627. 'Atilde': 667,
  30628. 'Aogonek': 667,
  30629. 'Aring': 667,
  30630. 'Otilde': 778,
  30631. 'zdotaccent': 500,
  30632. 'Ecaron': 667,
  30633. 'Iogonek': 278,
  30634. 'kcommaaccent': 500,
  30635. 'minus': 584,
  30636. 'Icircumflex': 278,
  30637. 'ncaron': 556,
  30638. 'tcommaaccent': 278,
  30639. 'logicalnot': 584,
  30640. 'odieresis': 556,
  30641. 'udieresis': 556,
  30642. 'notequal': 549,
  30643. 'gcommaaccent': 556,
  30644. 'eth': 556,
  30645. 'zcaron': 500,
  30646. 'ncommaaccent': 556,
  30647. 'onesuperior': 333,
  30648. 'imacron': 278,
  30649. 'Euro': 556
  30650. },
  30651. 'Symbol': {
  30652. 'space': 250,
  30653. 'exclam': 333,
  30654. 'universal': 713,
  30655. 'numbersign': 500,
  30656. 'existential': 549,
  30657. 'percent': 833,
  30658. 'ampersand': 778,
  30659. 'suchthat': 439,
  30660. 'parenleft': 333,
  30661. 'parenright': 333,
  30662. 'asteriskmath': 500,
  30663. 'plus': 549,
  30664. 'comma': 250,
  30665. 'minus': 549,
  30666. 'period': 250,
  30667. 'slash': 278,
  30668. 'zero': 500,
  30669. 'one': 500,
  30670. 'two': 500,
  30671. 'three': 500,
  30672. 'four': 500,
  30673. 'five': 500,
  30674. 'six': 500,
  30675. 'seven': 500,
  30676. 'eight': 500,
  30677. 'nine': 500,
  30678. 'colon': 278,
  30679. 'semicolon': 278,
  30680. 'less': 549,
  30681. 'equal': 549,
  30682. 'greater': 549,
  30683. 'question': 444,
  30684. 'congruent': 549,
  30685. 'Alpha': 722,
  30686. 'Beta': 667,
  30687. 'Chi': 722,
  30688. 'Delta': 612,
  30689. 'Epsilon': 611,
  30690. 'Phi': 763,
  30691. 'Gamma': 603,
  30692. 'Eta': 722,
  30693. 'Iota': 333,
  30694. 'theta1': 631,
  30695. 'Kappa': 722,
  30696. 'Lambda': 686,
  30697. 'Mu': 889,
  30698. 'Nu': 722,
  30699. 'Omicron': 722,
  30700. 'Pi': 768,
  30701. 'Theta': 741,
  30702. 'Rho': 556,
  30703. 'Sigma': 592,
  30704. 'Tau': 611,
  30705. 'Upsilon': 690,
  30706. 'sigma1': 439,
  30707. 'Omega': 768,
  30708. 'Xi': 645,
  30709. 'Psi': 795,
  30710. 'Zeta': 611,
  30711. 'bracketleft': 333,
  30712. 'therefore': 863,
  30713. 'bracketright': 333,
  30714. 'perpendicular': 658,
  30715. 'underscore': 500,
  30716. 'radicalex': 500,
  30717. 'alpha': 631,
  30718. 'beta': 549,
  30719. 'chi': 549,
  30720. 'delta': 494,
  30721. 'epsilon': 439,
  30722. 'phi': 521,
  30723. 'gamma': 411,
  30724. 'eta': 603,
  30725. 'iota': 329,
  30726. 'phi1': 603,
  30727. 'kappa': 549,
  30728. 'lambda': 549,
  30729. 'mu': 576,
  30730. 'nu': 521,
  30731. 'omicron': 549,
  30732. 'pi': 549,
  30733. 'theta': 521,
  30734. 'rho': 549,
  30735. 'sigma': 603,
  30736. 'tau': 439,
  30737. 'upsilon': 576,
  30738. 'omega1': 713,
  30739. 'omega': 686,
  30740. 'xi': 493,
  30741. 'psi': 686,
  30742. 'zeta': 494,
  30743. 'braceleft': 480,
  30744. 'bar': 200,
  30745. 'braceright': 480,
  30746. 'similar': 549,
  30747. 'Euro': 750,
  30748. 'Upsilon1': 620,
  30749. 'minute': 247,
  30750. 'lessequal': 549,
  30751. 'fraction': 167,
  30752. 'infinity': 713,
  30753. 'florin': 500,
  30754. 'club': 753,
  30755. 'diamond': 753,
  30756. 'heart': 753,
  30757. 'spade': 753,
  30758. 'arrowboth': 1042,
  30759. 'arrowleft': 987,
  30760. 'arrowup': 603,
  30761. 'arrowright': 987,
  30762. 'arrowdown': 603,
  30763. 'degree': 400,
  30764. 'plusminus': 549,
  30765. 'second': 411,
  30766. 'greaterequal': 549,
  30767. 'multiply': 549,
  30768. 'proportional': 713,
  30769. 'partialdiff': 494,
  30770. 'bullet': 460,
  30771. 'divide': 549,
  30772. 'notequal': 549,
  30773. 'equivalence': 549,
  30774. 'approxequal': 549,
  30775. 'ellipsis': 1000,
  30776. 'arrowvertex': 603,
  30777. 'arrowhorizex': 1000,
  30778. 'carriagereturn': 658,
  30779. 'aleph': 823,
  30780. 'Ifraktur': 686,
  30781. 'Rfraktur': 795,
  30782. 'weierstrass': 987,
  30783. 'circlemultiply': 768,
  30784. 'circleplus': 768,
  30785. 'emptyset': 823,
  30786. 'intersection': 768,
  30787. 'union': 768,
  30788. 'propersuperset': 713,
  30789. 'reflexsuperset': 713,
  30790. 'notsubset': 713,
  30791. 'propersubset': 713,
  30792. 'reflexsubset': 713,
  30793. 'element': 713,
  30794. 'notelement': 713,
  30795. 'angle': 768,
  30796. 'gradient': 713,
  30797. 'registerserif': 790,
  30798. 'copyrightserif': 790,
  30799. 'trademarkserif': 890,
  30800. 'product': 823,
  30801. 'radical': 549,
  30802. 'dotmath': 250,
  30803. 'logicalnot': 713,
  30804. 'logicaland': 603,
  30805. 'logicalor': 603,
  30806. 'arrowdblboth': 1042,
  30807. 'arrowdblleft': 987,
  30808. 'arrowdblup': 603,
  30809. 'arrowdblright': 987,
  30810. 'arrowdbldown': 603,
  30811. 'lozenge': 494,
  30812. 'angleleft': 329,
  30813. 'registersans': 790,
  30814. 'copyrightsans': 790,
  30815. 'trademarksans': 786,
  30816. 'summation': 713,
  30817. 'parenlefttp': 384,
  30818. 'parenleftex': 384,
  30819. 'parenleftbt': 384,
  30820. 'bracketlefttp': 384,
  30821. 'bracketleftex': 384,
  30822. 'bracketleftbt': 384,
  30823. 'bracelefttp': 494,
  30824. 'braceleftmid': 494,
  30825. 'braceleftbt': 494,
  30826. 'braceex': 494,
  30827. 'angleright': 329,
  30828. 'integral': 274,
  30829. 'integraltp': 686,
  30830. 'integralex': 686,
  30831. 'integralbt': 686,
  30832. 'parenrighttp': 384,
  30833. 'parenrightex': 384,
  30834. 'parenrightbt': 384,
  30835. 'bracketrighttp': 384,
  30836. 'bracketrightex': 384,
  30837. 'bracketrightbt': 384,
  30838. 'bracerighttp': 494,
  30839. 'bracerightmid': 494,
  30840. 'bracerightbt': 494,
  30841. 'apple': 790
  30842. },
  30843. 'Times-Roman': {
  30844. 'space': 250,
  30845. 'exclam': 333,
  30846. 'quotedbl': 408,
  30847. 'numbersign': 500,
  30848. 'dollar': 500,
  30849. 'percent': 833,
  30850. 'ampersand': 778,
  30851. 'quoteright': 333,
  30852. 'parenleft': 333,
  30853. 'parenright': 333,
  30854. 'asterisk': 500,
  30855. 'plus': 564,
  30856. 'comma': 250,
  30857. 'hyphen': 333,
  30858. 'period': 250,
  30859. 'slash': 278,
  30860. 'zero': 500,
  30861. 'one': 500,
  30862. 'two': 500,
  30863. 'three': 500,
  30864. 'four': 500,
  30865. 'five': 500,
  30866. 'six': 500,
  30867. 'seven': 500,
  30868. 'eight': 500,
  30869. 'nine': 500,
  30870. 'colon': 278,
  30871. 'semicolon': 278,
  30872. 'less': 564,
  30873. 'equal': 564,
  30874. 'greater': 564,
  30875. 'question': 444,
  30876. 'at': 921,
  30877. 'A': 722,
  30878. 'B': 667,
  30879. 'C': 667,
  30880. 'D': 722,
  30881. 'E': 611,
  30882. 'F': 556,
  30883. 'G': 722,
  30884. 'H': 722,
  30885. 'I': 333,
  30886. 'J': 389,
  30887. 'K': 722,
  30888. 'L': 611,
  30889. 'M': 889,
  30890. 'N': 722,
  30891. 'O': 722,
  30892. 'P': 556,
  30893. 'Q': 722,
  30894. 'R': 667,
  30895. 'S': 556,
  30896. 'T': 611,
  30897. 'U': 722,
  30898. 'V': 722,
  30899. 'W': 944,
  30900. 'X': 722,
  30901. 'Y': 722,
  30902. 'Z': 611,
  30903. 'bracketleft': 333,
  30904. 'backslash': 278,
  30905. 'bracketright': 333,
  30906. 'asciicircum': 469,
  30907. 'underscore': 500,
  30908. 'quoteleft': 333,
  30909. 'a': 444,
  30910. 'b': 500,
  30911. 'c': 444,
  30912. 'd': 500,
  30913. 'e': 444,
  30914. 'f': 333,
  30915. 'g': 500,
  30916. 'h': 500,
  30917. 'i': 278,
  30918. 'j': 278,
  30919. 'k': 500,
  30920. 'l': 278,
  30921. 'm': 778,
  30922. 'n': 500,
  30923. 'o': 500,
  30924. 'p': 500,
  30925. 'q': 500,
  30926. 'r': 333,
  30927. 's': 389,
  30928. 't': 278,
  30929. 'u': 500,
  30930. 'v': 500,
  30931. 'w': 722,
  30932. 'x': 500,
  30933. 'y': 500,
  30934. 'z': 444,
  30935. 'braceleft': 480,
  30936. 'bar': 200,
  30937. 'braceright': 480,
  30938. 'asciitilde': 541,
  30939. 'exclamdown': 333,
  30940. 'cent': 500,
  30941. 'sterling': 500,
  30942. 'fraction': 167,
  30943. 'yen': 500,
  30944. 'florin': 500,
  30945. 'section': 500,
  30946. 'currency': 500,
  30947. 'quotesingle': 180,
  30948. 'quotedblleft': 444,
  30949. 'guillemotleft': 500,
  30950. 'guilsinglleft': 333,
  30951. 'guilsinglright': 333,
  30952. 'fi': 556,
  30953. 'fl': 556,
  30954. 'endash': 500,
  30955. 'dagger': 500,
  30956. 'daggerdbl': 500,
  30957. 'periodcentered': 250,
  30958. 'paragraph': 453,
  30959. 'bullet': 350,
  30960. 'quotesinglbase': 333,
  30961. 'quotedblbase': 444,
  30962. 'quotedblright': 444,
  30963. 'guillemotright': 500,
  30964. 'ellipsis': 1000,
  30965. 'perthousand': 1000,
  30966. 'questiondown': 444,
  30967. 'grave': 333,
  30968. 'acute': 333,
  30969. 'circumflex': 333,
  30970. 'tilde': 333,
  30971. 'macron': 333,
  30972. 'breve': 333,
  30973. 'dotaccent': 333,
  30974. 'dieresis': 333,
  30975. 'ring': 333,
  30976. 'cedilla': 333,
  30977. 'hungarumlaut': 333,
  30978. 'ogonek': 333,
  30979. 'caron': 333,
  30980. 'emdash': 1000,
  30981. 'AE': 889,
  30982. 'ordfeminine': 276,
  30983. 'Lslash': 611,
  30984. 'Oslash': 722,
  30985. 'OE': 889,
  30986. 'ordmasculine': 310,
  30987. 'ae': 667,
  30988. 'dotlessi': 278,
  30989. 'lslash': 278,
  30990. 'oslash': 500,
  30991. 'oe': 722,
  30992. 'germandbls': 500,
  30993. 'Idieresis': 333,
  30994. 'eacute': 444,
  30995. 'abreve': 444,
  30996. 'uhungarumlaut': 500,
  30997. 'ecaron': 444,
  30998. 'Ydieresis': 722,
  30999. 'divide': 564,
  31000. 'Yacute': 722,
  31001. 'Acircumflex': 722,
  31002. 'aacute': 444,
  31003. 'Ucircumflex': 722,
  31004. 'yacute': 500,
  31005. 'scommaaccent': 389,
  31006. 'ecircumflex': 444,
  31007. 'Uring': 722,
  31008. 'Udieresis': 722,
  31009. 'aogonek': 444,
  31010. 'Uacute': 722,
  31011. 'uogonek': 500,
  31012. 'Edieresis': 611,
  31013. 'Dcroat': 722,
  31014. 'commaaccent': 250,
  31015. 'copyright': 760,
  31016. 'Emacron': 611,
  31017. 'ccaron': 444,
  31018. 'aring': 444,
  31019. 'Ncommaaccent': 722,
  31020. 'lacute': 278,
  31021. 'agrave': 444,
  31022. 'Tcommaaccent': 611,
  31023. 'Cacute': 667,
  31024. 'atilde': 444,
  31025. 'Edotaccent': 611,
  31026. 'scaron': 389,
  31027. 'scedilla': 389,
  31028. 'iacute': 278,
  31029. 'lozenge': 471,
  31030. 'Rcaron': 667,
  31031. 'Gcommaaccent': 722,
  31032. 'ucircumflex': 500,
  31033. 'acircumflex': 444,
  31034. 'Amacron': 722,
  31035. 'rcaron': 333,
  31036. 'ccedilla': 444,
  31037. 'Zdotaccent': 611,
  31038. 'Thorn': 556,
  31039. 'Omacron': 722,
  31040. 'Racute': 667,
  31041. 'Sacute': 556,
  31042. 'dcaron': 588,
  31043. 'Umacron': 722,
  31044. 'uring': 500,
  31045. 'threesuperior': 300,
  31046. 'Ograve': 722,
  31047. 'Agrave': 722,
  31048. 'Abreve': 722,
  31049. 'multiply': 564,
  31050. 'uacute': 500,
  31051. 'Tcaron': 611,
  31052. 'partialdiff': 476,
  31053. 'ydieresis': 500,
  31054. 'Nacute': 722,
  31055. 'icircumflex': 278,
  31056. 'Ecircumflex': 611,
  31057. 'adieresis': 444,
  31058. 'edieresis': 444,
  31059. 'cacute': 444,
  31060. 'nacute': 500,
  31061. 'umacron': 500,
  31062. 'Ncaron': 722,
  31063. 'Iacute': 333,
  31064. 'plusminus': 564,
  31065. 'brokenbar': 200,
  31066. 'registered': 760,
  31067. 'Gbreve': 722,
  31068. 'Idotaccent': 333,
  31069. 'summation': 600,
  31070. 'Egrave': 611,
  31071. 'racute': 333,
  31072. 'omacron': 500,
  31073. 'Zacute': 611,
  31074. 'Zcaron': 611,
  31075. 'greaterequal': 549,
  31076. 'Eth': 722,
  31077. 'Ccedilla': 667,
  31078. 'lcommaaccent': 278,
  31079. 'tcaron': 326,
  31080. 'eogonek': 444,
  31081. 'Uogonek': 722,
  31082. 'Aacute': 722,
  31083. 'Adieresis': 722,
  31084. 'egrave': 444,
  31085. 'zacute': 444,
  31086. 'iogonek': 278,
  31087. 'Oacute': 722,
  31088. 'oacute': 500,
  31089. 'amacron': 444,
  31090. 'sacute': 389,
  31091. 'idieresis': 278,
  31092. 'Ocircumflex': 722,
  31093. 'Ugrave': 722,
  31094. 'Delta': 612,
  31095. 'thorn': 500,
  31096. 'twosuperior': 300,
  31097. 'Odieresis': 722,
  31098. 'mu': 500,
  31099. 'igrave': 278,
  31100. 'ohungarumlaut': 500,
  31101. 'Eogonek': 611,
  31102. 'dcroat': 500,
  31103. 'threequarters': 750,
  31104. 'Scedilla': 556,
  31105. 'lcaron': 344,
  31106. 'Kcommaaccent': 722,
  31107. 'Lacute': 611,
  31108. 'trademark': 980,
  31109. 'edotaccent': 444,
  31110. 'Igrave': 333,
  31111. 'Imacron': 333,
  31112. 'Lcaron': 611,
  31113. 'onehalf': 750,
  31114. 'lessequal': 549,
  31115. 'ocircumflex': 500,
  31116. 'ntilde': 500,
  31117. 'Uhungarumlaut': 722,
  31118. 'Eacute': 611,
  31119. 'emacron': 444,
  31120. 'gbreve': 500,
  31121. 'onequarter': 750,
  31122. 'Scaron': 556,
  31123. 'Scommaaccent': 556,
  31124. 'Ohungarumlaut': 722,
  31125. 'degree': 400,
  31126. 'ograve': 500,
  31127. 'Ccaron': 667,
  31128. 'ugrave': 500,
  31129. 'radical': 453,
  31130. 'Dcaron': 722,
  31131. 'rcommaaccent': 333,
  31132. 'Ntilde': 722,
  31133. 'otilde': 500,
  31134. 'Rcommaaccent': 667,
  31135. 'Lcommaaccent': 611,
  31136. 'Atilde': 722,
  31137. 'Aogonek': 722,
  31138. 'Aring': 722,
  31139. 'Otilde': 722,
  31140. 'zdotaccent': 444,
  31141. 'Ecaron': 611,
  31142. 'Iogonek': 333,
  31143. 'kcommaaccent': 500,
  31144. 'minus': 564,
  31145. 'Icircumflex': 333,
  31146. 'ncaron': 500,
  31147. 'tcommaaccent': 278,
  31148. 'logicalnot': 564,
  31149. 'odieresis': 500,
  31150. 'udieresis': 500,
  31151. 'notequal': 549,
  31152. 'gcommaaccent': 500,
  31153. 'eth': 500,
  31154. 'zcaron': 444,
  31155. 'ncommaaccent': 500,
  31156. 'onesuperior': 300,
  31157. 'imacron': 278,
  31158. 'Euro': 500
  31159. },
  31160. 'Times-Bold': {
  31161. 'space': 250,
  31162. 'exclam': 333,
  31163. 'quotedbl': 555,
  31164. 'numbersign': 500,
  31165. 'dollar': 500,
  31166. 'percent': 1000,
  31167. 'ampersand': 833,
  31168. 'quoteright': 333,
  31169. 'parenleft': 333,
  31170. 'parenright': 333,
  31171. 'asterisk': 500,
  31172. 'plus': 570,
  31173. 'comma': 250,
  31174. 'hyphen': 333,
  31175. 'period': 250,
  31176. 'slash': 278,
  31177. 'zero': 500,
  31178. 'one': 500,
  31179. 'two': 500,
  31180. 'three': 500,
  31181. 'four': 500,
  31182. 'five': 500,
  31183. 'six': 500,
  31184. 'seven': 500,
  31185. 'eight': 500,
  31186. 'nine': 500,
  31187. 'colon': 333,
  31188. 'semicolon': 333,
  31189. 'less': 570,
  31190. 'equal': 570,
  31191. 'greater': 570,
  31192. 'question': 500,
  31193. 'at': 930,
  31194. 'A': 722,
  31195. 'B': 667,
  31196. 'C': 722,
  31197. 'D': 722,
  31198. 'E': 667,
  31199. 'F': 611,
  31200. 'G': 778,
  31201. 'H': 778,
  31202. 'I': 389,
  31203. 'J': 500,
  31204. 'K': 778,
  31205. 'L': 667,
  31206. 'M': 944,
  31207. 'N': 722,
  31208. 'O': 778,
  31209. 'P': 611,
  31210. 'Q': 778,
  31211. 'R': 722,
  31212. 'S': 556,
  31213. 'T': 667,
  31214. 'U': 722,
  31215. 'V': 722,
  31216. 'W': 1000,
  31217. 'X': 722,
  31218. 'Y': 722,
  31219. 'Z': 667,
  31220. 'bracketleft': 333,
  31221. 'backslash': 278,
  31222. 'bracketright': 333,
  31223. 'asciicircum': 581,
  31224. 'underscore': 500,
  31225. 'quoteleft': 333,
  31226. 'a': 500,
  31227. 'b': 556,
  31228. 'c': 444,
  31229. 'd': 556,
  31230. 'e': 444,
  31231. 'f': 333,
  31232. 'g': 500,
  31233. 'h': 556,
  31234. 'i': 278,
  31235. 'j': 333,
  31236. 'k': 556,
  31237. 'l': 278,
  31238. 'm': 833,
  31239. 'n': 556,
  31240. 'o': 500,
  31241. 'p': 556,
  31242. 'q': 556,
  31243. 'r': 444,
  31244. 's': 389,
  31245. 't': 333,
  31246. 'u': 556,
  31247. 'v': 500,
  31248. 'w': 722,
  31249. 'x': 500,
  31250. 'y': 500,
  31251. 'z': 444,
  31252. 'braceleft': 394,
  31253. 'bar': 220,
  31254. 'braceright': 394,
  31255. 'asciitilde': 520,
  31256. 'exclamdown': 333,
  31257. 'cent': 500,
  31258. 'sterling': 500,
  31259. 'fraction': 167,
  31260. 'yen': 500,
  31261. 'florin': 500,
  31262. 'section': 500,
  31263. 'currency': 500,
  31264. 'quotesingle': 278,
  31265. 'quotedblleft': 500,
  31266. 'guillemotleft': 500,
  31267. 'guilsinglleft': 333,
  31268. 'guilsinglright': 333,
  31269. 'fi': 556,
  31270. 'fl': 556,
  31271. 'endash': 500,
  31272. 'dagger': 500,
  31273. 'daggerdbl': 500,
  31274. 'periodcentered': 250,
  31275. 'paragraph': 540,
  31276. 'bullet': 350,
  31277. 'quotesinglbase': 333,
  31278. 'quotedblbase': 500,
  31279. 'quotedblright': 500,
  31280. 'guillemotright': 500,
  31281. 'ellipsis': 1000,
  31282. 'perthousand': 1000,
  31283. 'questiondown': 500,
  31284. 'grave': 333,
  31285. 'acute': 333,
  31286. 'circumflex': 333,
  31287. 'tilde': 333,
  31288. 'macron': 333,
  31289. 'breve': 333,
  31290. 'dotaccent': 333,
  31291. 'dieresis': 333,
  31292. 'ring': 333,
  31293. 'cedilla': 333,
  31294. 'hungarumlaut': 333,
  31295. 'ogonek': 333,
  31296. 'caron': 333,
  31297. 'emdash': 1000,
  31298. 'AE': 1000,
  31299. 'ordfeminine': 300,
  31300. 'Lslash': 667,
  31301. 'Oslash': 778,
  31302. 'OE': 1000,
  31303. 'ordmasculine': 330,
  31304. 'ae': 722,
  31305. 'dotlessi': 278,
  31306. 'lslash': 278,
  31307. 'oslash': 500,
  31308. 'oe': 722,
  31309. 'germandbls': 556,
  31310. 'Idieresis': 389,
  31311. 'eacute': 444,
  31312. 'abreve': 500,
  31313. 'uhungarumlaut': 556,
  31314. 'ecaron': 444,
  31315. 'Ydieresis': 722,
  31316. 'divide': 570,
  31317. 'Yacute': 722,
  31318. 'Acircumflex': 722,
  31319. 'aacute': 500,
  31320. 'Ucircumflex': 722,
  31321. 'yacute': 500,
  31322. 'scommaaccent': 389,
  31323. 'ecircumflex': 444,
  31324. 'Uring': 722,
  31325. 'Udieresis': 722,
  31326. 'aogonek': 500,
  31327. 'Uacute': 722,
  31328. 'uogonek': 556,
  31329. 'Edieresis': 667,
  31330. 'Dcroat': 722,
  31331. 'commaaccent': 250,
  31332. 'copyright': 747,
  31333. 'Emacron': 667,
  31334. 'ccaron': 444,
  31335. 'aring': 500,
  31336. 'Ncommaaccent': 722,
  31337. 'lacute': 278,
  31338. 'agrave': 500,
  31339. 'Tcommaaccent': 667,
  31340. 'Cacute': 722,
  31341. 'atilde': 500,
  31342. 'Edotaccent': 667,
  31343. 'scaron': 389,
  31344. 'scedilla': 389,
  31345. 'iacute': 278,
  31346. 'lozenge': 494,
  31347. 'Rcaron': 722,
  31348. 'Gcommaaccent': 778,
  31349. 'ucircumflex': 556,
  31350. 'acircumflex': 500,
  31351. 'Amacron': 722,
  31352. 'rcaron': 444,
  31353. 'ccedilla': 444,
  31354. 'Zdotaccent': 667,
  31355. 'Thorn': 611,
  31356. 'Omacron': 778,
  31357. 'Racute': 722,
  31358. 'Sacute': 556,
  31359. 'dcaron': 672,
  31360. 'Umacron': 722,
  31361. 'uring': 556,
  31362. 'threesuperior': 300,
  31363. 'Ograve': 778,
  31364. 'Agrave': 722,
  31365. 'Abreve': 722,
  31366. 'multiply': 570,
  31367. 'uacute': 556,
  31368. 'Tcaron': 667,
  31369. 'partialdiff': 494,
  31370. 'ydieresis': 500,
  31371. 'Nacute': 722,
  31372. 'icircumflex': 278,
  31373. 'Ecircumflex': 667,
  31374. 'adieresis': 500,
  31375. 'edieresis': 444,
  31376. 'cacute': 444,
  31377. 'nacute': 556,
  31378. 'umacron': 556,
  31379. 'Ncaron': 722,
  31380. 'Iacute': 389,
  31381. 'plusminus': 570,
  31382. 'brokenbar': 220,
  31383. 'registered': 747,
  31384. 'Gbreve': 778,
  31385. 'Idotaccent': 389,
  31386. 'summation': 600,
  31387. 'Egrave': 667,
  31388. 'racute': 444,
  31389. 'omacron': 500,
  31390. 'Zacute': 667,
  31391. 'Zcaron': 667,
  31392. 'greaterequal': 549,
  31393. 'Eth': 722,
  31394. 'Ccedilla': 722,
  31395. 'lcommaaccent': 278,
  31396. 'tcaron': 416,
  31397. 'eogonek': 444,
  31398. 'Uogonek': 722,
  31399. 'Aacute': 722,
  31400. 'Adieresis': 722,
  31401. 'egrave': 444,
  31402. 'zacute': 444,
  31403. 'iogonek': 278,
  31404. 'Oacute': 778,
  31405. 'oacute': 500,
  31406. 'amacron': 500,
  31407. 'sacute': 389,
  31408. 'idieresis': 278,
  31409. 'Ocircumflex': 778,
  31410. 'Ugrave': 722,
  31411. 'Delta': 612,
  31412. 'thorn': 556,
  31413. 'twosuperior': 300,
  31414. 'Odieresis': 778,
  31415. 'mu': 556,
  31416. 'igrave': 278,
  31417. 'ohungarumlaut': 500,
  31418. 'Eogonek': 667,
  31419. 'dcroat': 556,
  31420. 'threequarters': 750,
  31421. 'Scedilla': 556,
  31422. 'lcaron': 394,
  31423. 'Kcommaaccent': 778,
  31424. 'Lacute': 667,
  31425. 'trademark': 1000,
  31426. 'edotaccent': 444,
  31427. 'Igrave': 389,
  31428. 'Imacron': 389,
  31429. 'Lcaron': 667,
  31430. 'onehalf': 750,
  31431. 'lessequal': 549,
  31432. 'ocircumflex': 500,
  31433. 'ntilde': 556,
  31434. 'Uhungarumlaut': 722,
  31435. 'Eacute': 667,
  31436. 'emacron': 444,
  31437. 'gbreve': 500,
  31438. 'onequarter': 750,
  31439. 'Scaron': 556,
  31440. 'Scommaaccent': 556,
  31441. 'Ohungarumlaut': 778,
  31442. 'degree': 400,
  31443. 'ograve': 500,
  31444. 'Ccaron': 722,
  31445. 'ugrave': 556,
  31446. 'radical': 549,
  31447. 'Dcaron': 722,
  31448. 'rcommaaccent': 444,
  31449. 'Ntilde': 722,
  31450. 'otilde': 500,
  31451. 'Rcommaaccent': 722,
  31452. 'Lcommaaccent': 667,
  31453. 'Atilde': 722,
  31454. 'Aogonek': 722,
  31455. 'Aring': 722,
  31456. 'Otilde': 778,
  31457. 'zdotaccent': 444,
  31458. 'Ecaron': 667,
  31459. 'Iogonek': 389,
  31460. 'kcommaaccent': 556,
  31461. 'minus': 570,
  31462. 'Icircumflex': 389,
  31463. 'ncaron': 556,
  31464. 'tcommaaccent': 333,
  31465. 'logicalnot': 570,
  31466. 'odieresis': 500,
  31467. 'udieresis': 556,
  31468. 'notequal': 549,
  31469. 'gcommaaccent': 500,
  31470. 'eth': 500,
  31471. 'zcaron': 444,
  31472. 'ncommaaccent': 556,
  31473. 'onesuperior': 300,
  31474. 'imacron': 278,
  31475. 'Euro': 500
  31476. },
  31477. 'Times-BoldItalic': {
  31478. 'space': 250,
  31479. 'exclam': 389,
  31480. 'quotedbl': 555,
  31481. 'numbersign': 500,
  31482. 'dollar': 500,
  31483. 'percent': 833,
  31484. 'ampersand': 778,
  31485. 'quoteright': 333,
  31486. 'parenleft': 333,
  31487. 'parenright': 333,
  31488. 'asterisk': 500,
  31489. 'plus': 570,
  31490. 'comma': 250,
  31491. 'hyphen': 333,
  31492. 'period': 250,
  31493. 'slash': 278,
  31494. 'zero': 500,
  31495. 'one': 500,
  31496. 'two': 500,
  31497. 'three': 500,
  31498. 'four': 500,
  31499. 'five': 500,
  31500. 'six': 500,
  31501. 'seven': 500,
  31502. 'eight': 500,
  31503. 'nine': 500,
  31504. 'colon': 333,
  31505. 'semicolon': 333,
  31506. 'less': 570,
  31507. 'equal': 570,
  31508. 'greater': 570,
  31509. 'question': 500,
  31510. 'at': 832,
  31511. 'A': 667,
  31512. 'B': 667,
  31513. 'C': 667,
  31514. 'D': 722,
  31515. 'E': 667,
  31516. 'F': 667,
  31517. 'G': 722,
  31518. 'H': 778,
  31519. 'I': 389,
  31520. 'J': 500,
  31521. 'K': 667,
  31522. 'L': 611,
  31523. 'M': 889,
  31524. 'N': 722,
  31525. 'O': 722,
  31526. 'P': 611,
  31527. 'Q': 722,
  31528. 'R': 667,
  31529. 'S': 556,
  31530. 'T': 611,
  31531. 'U': 722,
  31532. 'V': 667,
  31533. 'W': 889,
  31534. 'X': 667,
  31535. 'Y': 611,
  31536. 'Z': 611,
  31537. 'bracketleft': 333,
  31538. 'backslash': 278,
  31539. 'bracketright': 333,
  31540. 'asciicircum': 570,
  31541. 'underscore': 500,
  31542. 'quoteleft': 333,
  31543. 'a': 500,
  31544. 'b': 500,
  31545. 'c': 444,
  31546. 'd': 500,
  31547. 'e': 444,
  31548. 'f': 333,
  31549. 'g': 500,
  31550. 'h': 556,
  31551. 'i': 278,
  31552. 'j': 278,
  31553. 'k': 500,
  31554. 'l': 278,
  31555. 'm': 778,
  31556. 'n': 556,
  31557. 'o': 500,
  31558. 'p': 500,
  31559. 'q': 500,
  31560. 'r': 389,
  31561. 's': 389,
  31562. 't': 278,
  31563. 'u': 556,
  31564. 'v': 444,
  31565. 'w': 667,
  31566. 'x': 500,
  31567. 'y': 444,
  31568. 'z': 389,
  31569. 'braceleft': 348,
  31570. 'bar': 220,
  31571. 'braceright': 348,
  31572. 'asciitilde': 570,
  31573. 'exclamdown': 389,
  31574. 'cent': 500,
  31575. 'sterling': 500,
  31576. 'fraction': 167,
  31577. 'yen': 500,
  31578. 'florin': 500,
  31579. 'section': 500,
  31580. 'currency': 500,
  31581. 'quotesingle': 278,
  31582. 'quotedblleft': 500,
  31583. 'guillemotleft': 500,
  31584. 'guilsinglleft': 333,
  31585. 'guilsinglright': 333,
  31586. 'fi': 556,
  31587. 'fl': 556,
  31588. 'endash': 500,
  31589. 'dagger': 500,
  31590. 'daggerdbl': 500,
  31591. 'periodcentered': 250,
  31592. 'paragraph': 500,
  31593. 'bullet': 350,
  31594. 'quotesinglbase': 333,
  31595. 'quotedblbase': 500,
  31596. 'quotedblright': 500,
  31597. 'guillemotright': 500,
  31598. 'ellipsis': 1000,
  31599. 'perthousand': 1000,
  31600. 'questiondown': 500,
  31601. 'grave': 333,
  31602. 'acute': 333,
  31603. 'circumflex': 333,
  31604. 'tilde': 333,
  31605. 'macron': 333,
  31606. 'breve': 333,
  31607. 'dotaccent': 333,
  31608. 'dieresis': 333,
  31609. 'ring': 333,
  31610. 'cedilla': 333,
  31611. 'hungarumlaut': 333,
  31612. 'ogonek': 333,
  31613. 'caron': 333,
  31614. 'emdash': 1000,
  31615. 'AE': 944,
  31616. 'ordfeminine': 266,
  31617. 'Lslash': 611,
  31618. 'Oslash': 722,
  31619. 'OE': 944,
  31620. 'ordmasculine': 300,
  31621. 'ae': 722,
  31622. 'dotlessi': 278,
  31623. 'lslash': 278,
  31624. 'oslash': 500,
  31625. 'oe': 722,
  31626. 'germandbls': 500,
  31627. 'Idieresis': 389,
  31628. 'eacute': 444,
  31629. 'abreve': 500,
  31630. 'uhungarumlaut': 556,
  31631. 'ecaron': 444,
  31632. 'Ydieresis': 611,
  31633. 'divide': 570,
  31634. 'Yacute': 611,
  31635. 'Acircumflex': 667,
  31636. 'aacute': 500,
  31637. 'Ucircumflex': 722,
  31638. 'yacute': 444,
  31639. 'scommaaccent': 389,
  31640. 'ecircumflex': 444,
  31641. 'Uring': 722,
  31642. 'Udieresis': 722,
  31643. 'aogonek': 500,
  31644. 'Uacute': 722,
  31645. 'uogonek': 556,
  31646. 'Edieresis': 667,
  31647. 'Dcroat': 722,
  31648. 'commaaccent': 250,
  31649. 'copyright': 747,
  31650. 'Emacron': 667,
  31651. 'ccaron': 444,
  31652. 'aring': 500,
  31653. 'Ncommaaccent': 722,
  31654. 'lacute': 278,
  31655. 'agrave': 500,
  31656. 'Tcommaaccent': 611,
  31657. 'Cacute': 667,
  31658. 'atilde': 500,
  31659. 'Edotaccent': 667,
  31660. 'scaron': 389,
  31661. 'scedilla': 389,
  31662. 'iacute': 278,
  31663. 'lozenge': 494,
  31664. 'Rcaron': 667,
  31665. 'Gcommaaccent': 722,
  31666. 'ucircumflex': 556,
  31667. 'acircumflex': 500,
  31668. 'Amacron': 667,
  31669. 'rcaron': 389,
  31670. 'ccedilla': 444,
  31671. 'Zdotaccent': 611,
  31672. 'Thorn': 611,
  31673. 'Omacron': 722,
  31674. 'Racute': 667,
  31675. 'Sacute': 556,
  31676. 'dcaron': 608,
  31677. 'Umacron': 722,
  31678. 'uring': 556,
  31679. 'threesuperior': 300,
  31680. 'Ograve': 722,
  31681. 'Agrave': 667,
  31682. 'Abreve': 667,
  31683. 'multiply': 570,
  31684. 'uacute': 556,
  31685. 'Tcaron': 611,
  31686. 'partialdiff': 494,
  31687. 'ydieresis': 444,
  31688. 'Nacute': 722,
  31689. 'icircumflex': 278,
  31690. 'Ecircumflex': 667,
  31691. 'adieresis': 500,
  31692. 'edieresis': 444,
  31693. 'cacute': 444,
  31694. 'nacute': 556,
  31695. 'umacron': 556,
  31696. 'Ncaron': 722,
  31697. 'Iacute': 389,
  31698. 'plusminus': 570,
  31699. 'brokenbar': 220,
  31700. 'registered': 747,
  31701. 'Gbreve': 722,
  31702. 'Idotaccent': 389,
  31703. 'summation': 600,
  31704. 'Egrave': 667,
  31705. 'racute': 389,
  31706. 'omacron': 500,
  31707. 'Zacute': 611,
  31708. 'Zcaron': 611,
  31709. 'greaterequal': 549,
  31710. 'Eth': 722,
  31711. 'Ccedilla': 667,
  31712. 'lcommaaccent': 278,
  31713. 'tcaron': 366,
  31714. 'eogonek': 444,
  31715. 'Uogonek': 722,
  31716. 'Aacute': 667,
  31717. 'Adieresis': 667,
  31718. 'egrave': 444,
  31719. 'zacute': 389,
  31720. 'iogonek': 278,
  31721. 'Oacute': 722,
  31722. 'oacute': 500,
  31723. 'amacron': 500,
  31724. 'sacute': 389,
  31725. 'idieresis': 278,
  31726. 'Ocircumflex': 722,
  31727. 'Ugrave': 722,
  31728. 'Delta': 612,
  31729. 'thorn': 500,
  31730. 'twosuperior': 300,
  31731. 'Odieresis': 722,
  31732. 'mu': 576,
  31733. 'igrave': 278,
  31734. 'ohungarumlaut': 500,
  31735. 'Eogonek': 667,
  31736. 'dcroat': 500,
  31737. 'threequarters': 750,
  31738. 'Scedilla': 556,
  31739. 'lcaron': 382,
  31740. 'Kcommaaccent': 667,
  31741. 'Lacute': 611,
  31742. 'trademark': 1000,
  31743. 'edotaccent': 444,
  31744. 'Igrave': 389,
  31745. 'Imacron': 389,
  31746. 'Lcaron': 611,
  31747. 'onehalf': 750,
  31748. 'lessequal': 549,
  31749. 'ocircumflex': 500,
  31750. 'ntilde': 556,
  31751. 'Uhungarumlaut': 722,
  31752. 'Eacute': 667,
  31753. 'emacron': 444,
  31754. 'gbreve': 500,
  31755. 'onequarter': 750,
  31756. 'Scaron': 556,
  31757. 'Scommaaccent': 556,
  31758. 'Ohungarumlaut': 722,
  31759. 'degree': 400,
  31760. 'ograve': 500,
  31761. 'Ccaron': 667,
  31762. 'ugrave': 556,
  31763. 'radical': 549,
  31764. 'Dcaron': 722,
  31765. 'rcommaaccent': 389,
  31766. 'Ntilde': 722,
  31767. 'otilde': 500,
  31768. 'Rcommaaccent': 667,
  31769. 'Lcommaaccent': 611,
  31770. 'Atilde': 667,
  31771. 'Aogonek': 667,
  31772. 'Aring': 667,
  31773. 'Otilde': 722,
  31774. 'zdotaccent': 389,
  31775. 'Ecaron': 667,
  31776. 'Iogonek': 389,
  31777. 'kcommaaccent': 500,
  31778. 'minus': 606,
  31779. 'Icircumflex': 389,
  31780. 'ncaron': 556,
  31781. 'tcommaaccent': 278,
  31782. 'logicalnot': 606,
  31783. 'odieresis': 500,
  31784. 'udieresis': 556,
  31785. 'notequal': 549,
  31786. 'gcommaaccent': 500,
  31787. 'eth': 500,
  31788. 'zcaron': 389,
  31789. 'ncommaaccent': 556,
  31790. 'onesuperior': 300,
  31791. 'imacron': 278,
  31792. 'Euro': 500
  31793. },
  31794. 'Times-Italic': {
  31795. 'space': 250,
  31796. 'exclam': 333,
  31797. 'quotedbl': 420,
  31798. 'numbersign': 500,
  31799. 'dollar': 500,
  31800. 'percent': 833,
  31801. 'ampersand': 778,
  31802. 'quoteright': 333,
  31803. 'parenleft': 333,
  31804. 'parenright': 333,
  31805. 'asterisk': 500,
  31806. 'plus': 675,
  31807. 'comma': 250,
  31808. 'hyphen': 333,
  31809. 'period': 250,
  31810. 'slash': 278,
  31811. 'zero': 500,
  31812. 'one': 500,
  31813. 'two': 500,
  31814. 'three': 500,
  31815. 'four': 500,
  31816. 'five': 500,
  31817. 'six': 500,
  31818. 'seven': 500,
  31819. 'eight': 500,
  31820. 'nine': 500,
  31821. 'colon': 333,
  31822. 'semicolon': 333,
  31823. 'less': 675,
  31824. 'equal': 675,
  31825. 'greater': 675,
  31826. 'question': 500,
  31827. 'at': 920,
  31828. 'A': 611,
  31829. 'B': 611,
  31830. 'C': 667,
  31831. 'D': 722,
  31832. 'E': 611,
  31833. 'F': 611,
  31834. 'G': 722,
  31835. 'H': 722,
  31836. 'I': 333,
  31837. 'J': 444,
  31838. 'K': 667,
  31839. 'L': 556,
  31840. 'M': 833,
  31841. 'N': 667,
  31842. 'O': 722,
  31843. 'P': 611,
  31844. 'Q': 722,
  31845. 'R': 611,
  31846. 'S': 500,
  31847. 'T': 556,
  31848. 'U': 722,
  31849. 'V': 611,
  31850. 'W': 833,
  31851. 'X': 611,
  31852. 'Y': 556,
  31853. 'Z': 556,
  31854. 'bracketleft': 389,
  31855. 'backslash': 278,
  31856. 'bracketright': 389,
  31857. 'asciicircum': 422,
  31858. 'underscore': 500,
  31859. 'quoteleft': 333,
  31860. 'a': 500,
  31861. 'b': 500,
  31862. 'c': 444,
  31863. 'd': 500,
  31864. 'e': 444,
  31865. 'f': 278,
  31866. 'g': 500,
  31867. 'h': 500,
  31868. 'i': 278,
  31869. 'j': 278,
  31870. 'k': 444,
  31871. 'l': 278,
  31872. 'm': 722,
  31873. 'n': 500,
  31874. 'o': 500,
  31875. 'p': 500,
  31876. 'q': 500,
  31877. 'r': 389,
  31878. 's': 389,
  31879. 't': 278,
  31880. 'u': 500,
  31881. 'v': 444,
  31882. 'w': 667,
  31883. 'x': 444,
  31884. 'y': 444,
  31885. 'z': 389,
  31886. 'braceleft': 400,
  31887. 'bar': 275,
  31888. 'braceright': 400,
  31889. 'asciitilde': 541,
  31890. 'exclamdown': 389,
  31891. 'cent': 500,
  31892. 'sterling': 500,
  31893. 'fraction': 167,
  31894. 'yen': 500,
  31895. 'florin': 500,
  31896. 'section': 500,
  31897. 'currency': 500,
  31898. 'quotesingle': 214,
  31899. 'quotedblleft': 556,
  31900. 'guillemotleft': 500,
  31901. 'guilsinglleft': 333,
  31902. 'guilsinglright': 333,
  31903. 'fi': 500,
  31904. 'fl': 500,
  31905. 'endash': 500,
  31906. 'dagger': 500,
  31907. 'daggerdbl': 500,
  31908. 'periodcentered': 250,
  31909. 'paragraph': 523,
  31910. 'bullet': 350,
  31911. 'quotesinglbase': 333,
  31912. 'quotedblbase': 556,
  31913. 'quotedblright': 556,
  31914. 'guillemotright': 500,
  31915. 'ellipsis': 889,
  31916. 'perthousand': 1000,
  31917. 'questiondown': 500,
  31918. 'grave': 333,
  31919. 'acute': 333,
  31920. 'circumflex': 333,
  31921. 'tilde': 333,
  31922. 'macron': 333,
  31923. 'breve': 333,
  31924. 'dotaccent': 333,
  31925. 'dieresis': 333,
  31926. 'ring': 333,
  31927. 'cedilla': 333,
  31928. 'hungarumlaut': 333,
  31929. 'ogonek': 333,
  31930. 'caron': 333,
  31931. 'emdash': 889,
  31932. 'AE': 889,
  31933. 'ordfeminine': 276,
  31934. 'Lslash': 556,
  31935. 'Oslash': 722,
  31936. 'OE': 944,
  31937. 'ordmasculine': 310,
  31938. 'ae': 667,
  31939. 'dotlessi': 278,
  31940. 'lslash': 278,
  31941. 'oslash': 500,
  31942. 'oe': 667,
  31943. 'germandbls': 500,
  31944. 'Idieresis': 333,
  31945. 'eacute': 444,
  31946. 'abreve': 500,
  31947. 'uhungarumlaut': 500,
  31948. 'ecaron': 444,
  31949. 'Ydieresis': 556,
  31950. 'divide': 675,
  31951. 'Yacute': 556,
  31952. 'Acircumflex': 611,
  31953. 'aacute': 500,
  31954. 'Ucircumflex': 722,
  31955. 'yacute': 444,
  31956. 'scommaaccent': 389,
  31957. 'ecircumflex': 444,
  31958. 'Uring': 722,
  31959. 'Udieresis': 722,
  31960. 'aogonek': 500,
  31961. 'Uacute': 722,
  31962. 'uogonek': 500,
  31963. 'Edieresis': 611,
  31964. 'Dcroat': 722,
  31965. 'commaaccent': 250,
  31966. 'copyright': 760,
  31967. 'Emacron': 611,
  31968. 'ccaron': 444,
  31969. 'aring': 500,
  31970. 'Ncommaaccent': 667,
  31971. 'lacute': 278,
  31972. 'agrave': 500,
  31973. 'Tcommaaccent': 556,
  31974. 'Cacute': 667,
  31975. 'atilde': 500,
  31976. 'Edotaccent': 611,
  31977. 'scaron': 389,
  31978. 'scedilla': 389,
  31979. 'iacute': 278,
  31980. 'lozenge': 471,
  31981. 'Rcaron': 611,
  31982. 'Gcommaaccent': 722,
  31983. 'ucircumflex': 500,
  31984. 'acircumflex': 500,
  31985. 'Amacron': 611,
  31986. 'rcaron': 389,
  31987. 'ccedilla': 444,
  31988. 'Zdotaccent': 556,
  31989. 'Thorn': 611,
  31990. 'Omacron': 722,
  31991. 'Racute': 611,
  31992. 'Sacute': 500,
  31993. 'dcaron': 544,
  31994. 'Umacron': 722,
  31995. 'uring': 500,
  31996. 'threesuperior': 300,
  31997. 'Ograve': 722,
  31998. 'Agrave': 611,
  31999. 'Abreve': 611,
  32000. 'multiply': 675,
  32001. 'uacute': 500,
  32002. 'Tcaron': 556,
  32003. 'partialdiff': 476,
  32004. 'ydieresis': 444,
  32005. 'Nacute': 667,
  32006. 'icircumflex': 278,
  32007. 'Ecircumflex': 611,
  32008. 'adieresis': 500,
  32009. 'edieresis': 444,
  32010. 'cacute': 444,
  32011. 'nacute': 500,
  32012. 'umacron': 500,
  32013. 'Ncaron': 667,
  32014. 'Iacute': 333,
  32015. 'plusminus': 675,
  32016. 'brokenbar': 275,
  32017. 'registered': 760,
  32018. 'Gbreve': 722,
  32019. 'Idotaccent': 333,
  32020. 'summation': 600,
  32021. 'Egrave': 611,
  32022. 'racute': 389,
  32023. 'omacron': 500,
  32024. 'Zacute': 556,
  32025. 'Zcaron': 556,
  32026. 'greaterequal': 549,
  32027. 'Eth': 722,
  32028. 'Ccedilla': 667,
  32029. 'lcommaaccent': 278,
  32030. 'tcaron': 300,
  32031. 'eogonek': 444,
  32032. 'Uogonek': 722,
  32033. 'Aacute': 611,
  32034. 'Adieresis': 611,
  32035. 'egrave': 444,
  32036. 'zacute': 389,
  32037. 'iogonek': 278,
  32038. 'Oacute': 722,
  32039. 'oacute': 500,
  32040. 'amacron': 500,
  32041. 'sacute': 389,
  32042. 'idieresis': 278,
  32043. 'Ocircumflex': 722,
  32044. 'Ugrave': 722,
  32045. 'Delta': 612,
  32046. 'thorn': 500,
  32047. 'twosuperior': 300,
  32048. 'Odieresis': 722,
  32049. 'mu': 500,
  32050. 'igrave': 278,
  32051. 'ohungarumlaut': 500,
  32052. 'Eogonek': 611,
  32053. 'dcroat': 500,
  32054. 'threequarters': 750,
  32055. 'Scedilla': 500,
  32056. 'lcaron': 300,
  32057. 'Kcommaaccent': 667,
  32058. 'Lacute': 556,
  32059. 'trademark': 980,
  32060. 'edotaccent': 444,
  32061. 'Igrave': 333,
  32062. 'Imacron': 333,
  32063. 'Lcaron': 611,
  32064. 'onehalf': 750,
  32065. 'lessequal': 549,
  32066. 'ocircumflex': 500,
  32067. 'ntilde': 500,
  32068. 'Uhungarumlaut': 722,
  32069. 'Eacute': 611,
  32070. 'emacron': 444,
  32071. 'gbreve': 500,
  32072. 'onequarter': 750,
  32073. 'Scaron': 500,
  32074. 'Scommaaccent': 500,
  32075. 'Ohungarumlaut': 722,
  32076. 'degree': 400,
  32077. 'ograve': 500,
  32078. 'Ccaron': 667,
  32079. 'ugrave': 500,
  32080. 'radical': 453,
  32081. 'Dcaron': 722,
  32082. 'rcommaaccent': 389,
  32083. 'Ntilde': 667,
  32084. 'otilde': 500,
  32085. 'Rcommaaccent': 611,
  32086. 'Lcommaaccent': 556,
  32087. 'Atilde': 611,
  32088. 'Aogonek': 611,
  32089. 'Aring': 611,
  32090. 'Otilde': 722,
  32091. 'zdotaccent': 389,
  32092. 'Ecaron': 611,
  32093. 'Iogonek': 333,
  32094. 'kcommaaccent': 444,
  32095. 'minus': 675,
  32096. 'Icircumflex': 333,
  32097. 'ncaron': 500,
  32098. 'tcommaaccent': 278,
  32099. 'logicalnot': 675,
  32100. 'odieresis': 500,
  32101. 'udieresis': 500,
  32102. 'notequal': 549,
  32103. 'gcommaaccent': 500,
  32104. 'eth': 500,
  32105. 'zcaron': 389,
  32106. 'ncommaaccent': 500,
  32107. 'onesuperior': 300,
  32108. 'imacron': 278,
  32109. 'Euro': 500
  32110. },
  32111. 'ZapfDingbats': {
  32112. 'space': 278,
  32113. 'a1': 974,
  32114. 'a2': 961,
  32115. 'a202': 974,
  32116. 'a3': 980,
  32117. 'a4': 719,
  32118. 'a5': 789,
  32119. 'a119': 790,
  32120. 'a118': 791,
  32121. 'a117': 690,
  32122. 'a11': 960,
  32123. 'a12': 939,
  32124. 'a13': 549,
  32125. 'a14': 855,
  32126. 'a15': 911,
  32127. 'a16': 933,
  32128. 'a105': 911,
  32129. 'a17': 945,
  32130. 'a18': 974,
  32131. 'a19': 755,
  32132. 'a20': 846,
  32133. 'a21': 762,
  32134. 'a22': 761,
  32135. 'a23': 571,
  32136. 'a24': 677,
  32137. 'a25': 763,
  32138. 'a26': 760,
  32139. 'a27': 759,
  32140. 'a28': 754,
  32141. 'a6': 494,
  32142. 'a7': 552,
  32143. 'a8': 537,
  32144. 'a9': 577,
  32145. 'a10': 692,
  32146. 'a29': 786,
  32147. 'a30': 788,
  32148. 'a31': 788,
  32149. 'a32': 790,
  32150. 'a33': 793,
  32151. 'a34': 794,
  32152. 'a35': 816,
  32153. 'a36': 823,
  32154. 'a37': 789,
  32155. 'a38': 841,
  32156. 'a39': 823,
  32157. 'a40': 833,
  32158. 'a41': 816,
  32159. 'a42': 831,
  32160. 'a43': 923,
  32161. 'a44': 744,
  32162. 'a45': 723,
  32163. 'a46': 749,
  32164. 'a47': 790,
  32165. 'a48': 792,
  32166. 'a49': 695,
  32167. 'a50': 776,
  32168. 'a51': 768,
  32169. 'a52': 792,
  32170. 'a53': 759,
  32171. 'a54': 707,
  32172. 'a55': 708,
  32173. 'a56': 682,
  32174. 'a57': 701,
  32175. 'a58': 826,
  32176. 'a59': 815,
  32177. 'a60': 789,
  32178. 'a61': 789,
  32179. 'a62': 707,
  32180. 'a63': 687,
  32181. 'a64': 696,
  32182. 'a65': 689,
  32183. 'a66': 786,
  32184. 'a67': 787,
  32185. 'a68': 713,
  32186. 'a69': 791,
  32187. 'a70': 785,
  32188. 'a71': 791,
  32189. 'a72': 873,
  32190. 'a73': 761,
  32191. 'a74': 762,
  32192. 'a203': 762,
  32193. 'a75': 759,
  32194. 'a204': 759,
  32195. 'a76': 892,
  32196. 'a77': 892,
  32197. 'a78': 788,
  32198. 'a79': 784,
  32199. 'a81': 438,
  32200. 'a82': 138,
  32201. 'a83': 277,
  32202. 'a84': 415,
  32203. 'a97': 392,
  32204. 'a98': 392,
  32205. 'a99': 668,
  32206. 'a100': 668,
  32207. 'a89': 390,
  32208. 'a90': 390,
  32209. 'a93': 317,
  32210. 'a94': 317,
  32211. 'a91': 276,
  32212. 'a92': 276,
  32213. 'a205': 509,
  32214. 'a85': 509,
  32215. 'a206': 410,
  32216. 'a86': 410,
  32217. 'a87': 234,
  32218. 'a88': 234,
  32219. 'a95': 334,
  32220. 'a96': 334,
  32221. 'a101': 732,
  32222. 'a102': 544,
  32223. 'a103': 544,
  32224. 'a104': 910,
  32225. 'a106': 667,
  32226. 'a107': 760,
  32227. 'a108': 760,
  32228. 'a112': 776,
  32229. 'a111': 595,
  32230. 'a110': 694,
  32231. 'a109': 626,
  32232. 'a120': 788,
  32233. 'a121': 788,
  32234. 'a122': 788,
  32235. 'a123': 788,
  32236. 'a124': 788,
  32237. 'a125': 788,
  32238. 'a126': 788,
  32239. 'a127': 788,
  32240. 'a128': 788,
  32241. 'a129': 788,
  32242. 'a130': 788,
  32243. 'a131': 788,
  32244. 'a132': 788,
  32245. 'a133': 788,
  32246. 'a134': 788,
  32247. 'a135': 788,
  32248. 'a136': 788,
  32249. 'a137': 788,
  32250. 'a138': 788,
  32251. 'a139': 788,
  32252. 'a140': 788,
  32253. 'a141': 788,
  32254. 'a142': 788,
  32255. 'a143': 788,
  32256. 'a144': 788,
  32257. 'a145': 788,
  32258. 'a146': 788,
  32259. 'a147': 788,
  32260. 'a148': 788,
  32261. 'a149': 788,
  32262. 'a150': 788,
  32263. 'a151': 788,
  32264. 'a152': 788,
  32265. 'a153': 788,
  32266. 'a154': 788,
  32267. 'a155': 788,
  32268. 'a156': 788,
  32269. 'a157': 788,
  32270. 'a158': 788,
  32271. 'a159': 788,
  32272. 'a160': 894,
  32273. 'a161': 838,
  32274. 'a163': 1016,
  32275. 'a164': 458,
  32276. 'a196': 748,
  32277. 'a165': 924,
  32278. 'a192': 748,
  32279. 'a166': 918,
  32280. 'a167': 927,
  32281. 'a168': 928,
  32282. 'a169': 928,
  32283. 'a170': 834,
  32284. 'a171': 873,
  32285. 'a172': 828,
  32286. 'a173': 924,
  32287. 'a162': 924,
  32288. 'a174': 917,
  32289. 'a175': 930,
  32290. 'a176': 931,
  32291. 'a177': 463,
  32292. 'a178': 883,
  32293. 'a179': 836,
  32294. 'a193': 836,
  32295. 'a180': 867,
  32296. 'a199': 867,
  32297. 'a181': 696,
  32298. 'a200': 696,
  32299. 'a182': 874,
  32300. 'a201': 874,
  32301. 'a183': 760,
  32302. 'a184': 946,
  32303. 'a197': 771,
  32304. 'a185': 865,
  32305. 'a194': 771,
  32306. 'a198': 888,
  32307. 'a186': 967,
  32308. 'a195': 888,
  32309. 'a187': 831,
  32310. 'a188': 873,
  32311. 'a189': 927,
  32312. 'a190': 970,
  32313. 'a191': 918
  32314. }
  32315. };
  32316. var EOF = {};
  32317. function isEOF(v) {
  32318. return (v == EOF);
  32319. }
  32320. var Parser = (function ParserClosure() {
  32321. function Parser(lexer, allowStreams, xref) {
  32322. this.lexer = lexer;
  32323. this.allowStreams = allowStreams;
  32324. this.xref = xref;
  32325. this.imageCache = {
  32326. length: 0,
  32327. adler32: 0,
  32328. stream: null
  32329. };
  32330. this.refill();
  32331. }
  32332. Parser.prototype = {
  32333. refill: function Parser_refill() {
  32334. this.buf1 = this.lexer.getObj();
  32335. this.buf2 = this.lexer.getObj();
  32336. },
  32337. shift: function Parser_shift() {
  32338. if (isCmd(this.buf2, 'ID')) {
  32339. this.buf1 = this.buf2;
  32340. this.buf2 = null;
  32341. } else {
  32342. this.buf1 = this.buf2;
  32343. this.buf2 = this.lexer.getObj();
  32344. }
  32345. },
  32346. getObj: function Parser_getObj(cipherTransform) {
  32347. if (isCmd(this.buf1, 'BI')) { // inline image
  32348. this.shift();
  32349. return this.makeInlineImage(cipherTransform);
  32350. }
  32351. if (isCmd(this.buf1, '[')) { // array
  32352. this.shift();
  32353. var array = [];
  32354. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  32355. array.push(this.getObj(cipherTransform));
  32356. }
  32357. if (isEOF(this.buf1)) {
  32358. error('End of file inside array');
  32359. }
  32360. this.shift();
  32361. return array;
  32362. }
  32363. if (isCmd(this.buf1, '<<')) { // dictionary or stream
  32364. this.shift();
  32365. var dict = new Dict(this.xref);
  32366. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  32367. if (!isName(this.buf1)) {
  32368. info('Malformed dictionary: key must be a name object');
  32369. this.shift();
  32370. continue;
  32371. }
  32372. var key = this.buf1.name;
  32373. this.shift();
  32374. if (isEOF(this.buf1)) {
  32375. break;
  32376. }
  32377. dict.set(key, this.getObj(cipherTransform));
  32378. }
  32379. if (isEOF(this.buf1)) {
  32380. error('End of file inside dictionary');
  32381. }
  32382. // Stream objects are not allowed inside content streams or
  32383. // object streams.
  32384. if (isCmd(this.buf2, 'stream')) {
  32385. return (this.allowStreams ?
  32386. this.makeStream(dict, cipherTransform) : dict);
  32387. }
  32388. this.shift();
  32389. return dict;
  32390. }
  32391. if (isInt(this.buf1)) { // indirect reference or integer
  32392. var num = this.buf1;
  32393. this.shift();
  32394. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  32395. var ref = new Ref(num, this.buf1);
  32396. this.shift();
  32397. this.shift();
  32398. return ref;
  32399. }
  32400. return num;
  32401. }
  32402. if (isString(this.buf1)) { // string
  32403. var str = this.buf1;
  32404. this.shift();
  32405. if (cipherTransform) {
  32406. str = cipherTransform.decryptString(str);
  32407. }
  32408. return str;
  32409. }
  32410. // simple object
  32411. var obj = this.buf1;
  32412. this.shift();
  32413. return obj;
  32414. },
  32415. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  32416. var lexer = this.lexer;
  32417. var stream = lexer.stream;
  32418. // parse dictionary
  32419. var dict = new Dict(null);
  32420. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  32421. if (!isName(this.buf1)) {
  32422. error('Dictionary key must be a name object');
  32423. }
  32424. var key = this.buf1.name;
  32425. this.shift();
  32426. if (isEOF(this.buf1)) {
  32427. break;
  32428. }
  32429. dict.set(key, this.getObj(cipherTransform));
  32430. }
  32431. // parse image stream
  32432. var startPos = stream.pos;
  32433. // searching for the /EI\s/
  32434. var state = 0, ch, i, ii;
  32435. while (state != 4 && (ch = stream.getByte()) !== -1) {
  32436. switch (ch | 0) {
  32437. case 0x20:
  32438. case 0x0D:
  32439. case 0x0A:
  32440. // let's check next five bytes to be ASCII... just be sure
  32441. var followingBytes = stream.peekBytes(5);
  32442. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  32443. ch = followingBytes[i];
  32444. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  32445. // not a LF, CR, SPACE or any visible ASCII character
  32446. state = 0;
  32447. break; // some binary stuff found, resetting the state
  32448. }
  32449. }
  32450. state = (state === 3 ? 4 : 0);
  32451. break;
  32452. case 0x45:
  32453. state = 2;
  32454. break;
  32455. case 0x49:
  32456. state = (state === 2 ? 3 : 0);
  32457. break;
  32458. default:
  32459. state = 0;
  32460. break;
  32461. }
  32462. }
  32463. var length = (stream.pos - 4) - startPos;
  32464. var imageStream = stream.makeSubStream(startPos, length, dict);
  32465. // trying to cache repeat images, first we are trying to "warm up" caching
  32466. // using length, then comparing adler32
  32467. var MAX_LENGTH_TO_CACHE = 1000;
  32468. var cacheImage = false, adler32;
  32469. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  32470. var imageBytes = imageStream.getBytes();
  32471. imageStream.reset();
  32472. var a = 1;
  32473. var b = 0;
  32474. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  32475. a = (a + (imageBytes[i] & 0xff)) % 65521;
  32476. b = (b + a) % 65521;
  32477. }
  32478. adler32 = (b << 16) | a;
  32479. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  32480. this.buf2 = Cmd.get('EI');
  32481. this.shift();
  32482. this.imageCache.stream.reset();
  32483. return this.imageCache.stream;
  32484. }
  32485. cacheImage = true;
  32486. }
  32487. if (!cacheImage && !this.imageCache.stream) {
  32488. this.imageCache.length = length;
  32489. this.imageCache.stream = null;
  32490. }
  32491. if (cipherTransform) {
  32492. imageStream = cipherTransform.createStream(imageStream, length);
  32493. }
  32494. imageStream = this.filter(imageStream, dict, length);
  32495. imageStream.dict = dict;
  32496. if (cacheImage) {
  32497. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  32498. this.imageCache.adler32 = adler32;
  32499. this.imageCache.stream = imageStream;
  32500. }
  32501. this.buf2 = Cmd.get('EI');
  32502. this.shift();
  32503. return imageStream;
  32504. },
  32505. fetchIfRef: function Parser_fetchIfRef(obj) {
  32506. // not relying on the xref.fetchIfRef -- xref might not be set
  32507. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  32508. },
  32509. makeStream: function Parser_makeStream(dict, cipherTransform) {
  32510. var lexer = this.lexer;
  32511. var stream = lexer.stream;
  32512. // get stream start position
  32513. lexer.skipToNextLine();
  32514. var pos = stream.pos - 1;
  32515. // get length
  32516. var length = this.fetchIfRef(dict.get('Length'));
  32517. if (!isInt(length)) {
  32518. info('Bad ' + length + ' attribute in stream');
  32519. length = 0;
  32520. }
  32521. // skip over the stream data
  32522. stream.pos = pos + length;
  32523. lexer.nextChar();
  32524. this.shift(); // '>>'
  32525. this.shift(); // 'stream'
  32526. if (!isCmd(this.buf1, 'endstream')) {
  32527. // bad stream length, scanning for endstream
  32528. stream.pos = pos;
  32529. var SCAN_BLOCK_SIZE = 2048;
  32530. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  32531. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  32532. 0x61, 0x6D];
  32533. var skipped = 0, found = false, i, j;
  32534. while (stream.pos < stream.end) {
  32535. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  32536. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  32537. found = false;
  32538. for (i = 0, j = 0; i < scanLength; i++) {
  32539. var b = scanBytes[i];
  32540. if (b !== ENDSTREAM_SIGNATURE[j]) {
  32541. i -= j;
  32542. j = 0;
  32543. } else {
  32544. j++;
  32545. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  32546. i++;
  32547. found = true;
  32548. break;
  32549. }
  32550. }
  32551. }
  32552. if (found) {
  32553. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  32554. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  32555. break;
  32556. }
  32557. skipped += scanLength;
  32558. stream.pos += scanLength;
  32559. }
  32560. if (!found) {
  32561. error('Missing endstream');
  32562. }
  32563. length = skipped;
  32564. lexer.nextChar();
  32565. this.shift();
  32566. this.shift();
  32567. }
  32568. this.shift(); // 'endstream'
  32569. stream = stream.makeSubStream(pos, length, dict);
  32570. if (cipherTransform) {
  32571. stream = cipherTransform.createStream(stream, length);
  32572. }
  32573. stream = this.filter(stream, dict, length);
  32574. stream.dict = dict;
  32575. return stream;
  32576. },
  32577. filter: function Parser_filter(stream, dict, length) {
  32578. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  32579. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  32580. if (isName(filter)) {
  32581. return this.makeFilter(stream, filter.name, length, params);
  32582. }
  32583. var maybeLength = length;
  32584. if (isArray(filter)) {
  32585. var filterArray = filter;
  32586. var paramsArray = params;
  32587. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  32588. filter = filterArray[i];
  32589. if (!isName(filter)) {
  32590. error('Bad filter name: ' + filter);
  32591. }
  32592. params = null;
  32593. if (isArray(paramsArray) && (i in paramsArray)) {
  32594. params = paramsArray[i];
  32595. }
  32596. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  32597. // after the first stream the length variable is invalid
  32598. maybeLength = null;
  32599. }
  32600. }
  32601. return stream;
  32602. },
  32603. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  32604. if (stream.dict.get('Length') === 0) {
  32605. return new NullStream(stream);
  32606. }
  32607. if (name == 'FlateDecode' || name == 'Fl') {
  32608. if (params) {
  32609. return new PredictorStream(new FlateStream(stream, maybeLength),
  32610. maybeLength, params);
  32611. }
  32612. return new FlateStream(stream, maybeLength);
  32613. }
  32614. if (name == 'LZWDecode' || name == 'LZW') {
  32615. var earlyChange = 1;
  32616. if (params) {
  32617. if (params.has('EarlyChange')) {
  32618. earlyChange = params.get('EarlyChange');
  32619. }
  32620. return new PredictorStream(
  32621. new LZWStream(stream, maybeLength, earlyChange),
  32622. maybeLength, params);
  32623. }
  32624. return new LZWStream(stream, maybeLength, earlyChange);
  32625. }
  32626. if (name == 'DCTDecode' || name == 'DCT') {
  32627. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  32628. }
  32629. if (name == 'JPXDecode' || name == 'JPX') {
  32630. return new JpxStream(stream, maybeLength, stream.dict);
  32631. }
  32632. if (name == 'ASCII85Decode' || name == 'A85') {
  32633. return new Ascii85Stream(stream, maybeLength);
  32634. }
  32635. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  32636. return new AsciiHexStream(stream, maybeLength);
  32637. }
  32638. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  32639. return new CCITTFaxStream(stream, maybeLength, params);
  32640. }
  32641. if (name == 'RunLengthDecode' || name == 'RL') {
  32642. return new RunLengthStream(stream, maybeLength);
  32643. }
  32644. if (name == 'JBIG2Decode') {
  32645. return new Jbig2Stream(stream, maybeLength, stream.dict);
  32646. }
  32647. warn('filter "' + name + '" not supported yet');
  32648. return stream;
  32649. }
  32650. };
  32651. return Parser;
  32652. })();
  32653. var Lexer = (function LexerClosure() {
  32654. function Lexer(stream, knownCommands) {
  32655. this.stream = stream;
  32656. this.nextChar();
  32657. // While lexing, we build up many strings one char at a time. Using += for
  32658. // this can result in lots of garbage strings. It's better to build an
  32659. // array of single-char strings and then join() them together at the end.
  32660. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  32661. // purpose uses less memory than using a new array for each string.
  32662. this.strBuf = [];
  32663. // The PDFs might have "glued" commands with other commands, operands or
  32664. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  32665. // commands and their prefixes. The prefixes are built the following way:
  32666. // if there a command that is a prefix of the other valid command or
  32667. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  32668. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  32669. // other commands or literals as a prefix. The knowCommands is optional.
  32670. this.knownCommands = knownCommands;
  32671. }
  32672. Lexer.isSpace = function Lexer_isSpace(ch) {
  32673. // Space is one of the following characters: SPACE, TAB, CR or LF.
  32674. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  32675. };
  32676. // A '1' in this array means the character is white space. A '1' or
  32677. // '2' means the character ends a name or command.
  32678. var specialChars = [
  32679. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  32680. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  32681. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  32682. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  32683. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  32684. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  32685. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  32686. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  32687. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  32688. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  32689. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  32690. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  32691. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  32692. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  32693. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  32694. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  32695. ];
  32696. function toHexDigit(ch) {
  32697. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  32698. return ch & 0x0F;
  32699. }
  32700. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  32701. // 'A'-'F', 'a'-'f'
  32702. return (ch & 0x0F) + 9;
  32703. }
  32704. return -1;
  32705. }
  32706. Lexer.prototype = {
  32707. nextChar: function Lexer_nextChar() {
  32708. return (this.currentChar = this.stream.getByte());
  32709. },
  32710. peekChar: function Lexer_peekChar() {
  32711. return this.stream.peekBytes(1)[0];
  32712. },
  32713. getNumber: function Lexer_getNumber() {
  32714. var ch = this.currentChar;
  32715. var eNotation = false;
  32716. var divideBy = 0; // different from 0 if it's a floating point value
  32717. var sign = 1;
  32718. if (ch === 0x2D) { // '-'
  32719. sign = -1;
  32720. ch = this.nextChar();
  32721. } else if (ch === 0x2B) { // '+'
  32722. ch = this.nextChar();
  32723. }
  32724. if (ch === 0x2E) { // '.'
  32725. divideBy = 10;
  32726. ch = this.nextChar();
  32727. }
  32728. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32729. error('Invalid number: ' + String.fromCharCode(ch));
  32730. return 0;
  32731. }
  32732. var baseValue = ch - 0x30; // '0'
  32733. var powerValue = 0;
  32734. var powerValueSign = 1;
  32735. while ((ch = this.nextChar()) >= 0) {
  32736. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  32737. var currentDigit = ch - 0x30; // '0'
  32738. if (eNotation) { // We are after an 'e' or 'E'
  32739. powerValue = powerValue * 10 + currentDigit;
  32740. } else {
  32741. if (divideBy !== 0) { // We are after a point
  32742. divideBy *= 10;
  32743. }
  32744. baseValue = baseValue * 10 + currentDigit;
  32745. }
  32746. } else if (ch === 0x2E) { // '.'
  32747. if (divideBy === 0) {
  32748. divideBy = 1;
  32749. } else {
  32750. // A number can have only one '.'
  32751. break;
  32752. }
  32753. } else if (ch === 0x2D) { // '-'
  32754. // ignore minus signs in the middle of numbers to match
  32755. // Adobe's behavior
  32756. warn('Badly formated number');
  32757. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  32758. // 'E' can be either a scientific notation or the beginning of a new
  32759. // operator
  32760. ch = this.peekChar();
  32761. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  32762. powerValueSign = (ch === 0x2D) ? -1 : 1;
  32763. this.nextChar(); // Consume the sign character
  32764. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32765. // The 'E' must be the beginning of a new operator
  32766. break;
  32767. }
  32768. eNotation = true;
  32769. } else {
  32770. // the last character doesn't belong to us
  32771. break;
  32772. }
  32773. }
  32774. if (divideBy !== 0) {
  32775. baseValue /= divideBy;
  32776. }
  32777. if (eNotation) {
  32778. baseValue *= Math.pow(10, powerValueSign * powerValue);
  32779. }
  32780. return sign * baseValue;
  32781. },
  32782. getString: function Lexer_getString() {
  32783. var numParen = 1;
  32784. var done = false;
  32785. var strBuf = this.strBuf;
  32786. strBuf.length = 0;
  32787. var ch = this.nextChar();
  32788. while (true) {
  32789. var charBuffered = false;
  32790. switch (ch | 0) {
  32791. case -1:
  32792. warn('Unterminated string');
  32793. done = true;
  32794. break;
  32795. case 0x28: // '('
  32796. ++numParen;
  32797. strBuf.push('(');
  32798. break;
  32799. case 0x29: // ')'
  32800. if (--numParen === 0) {
  32801. this.nextChar(); // consume strings ')'
  32802. done = true;
  32803. } else {
  32804. strBuf.push(')');
  32805. }
  32806. break;
  32807. case 0x5C: // '\\'
  32808. ch = this.nextChar();
  32809. switch (ch) {
  32810. case -1:
  32811. warn('Unterminated string');
  32812. done = true;
  32813. break;
  32814. case 0x6E: // 'n'
  32815. strBuf.push('\n');
  32816. break;
  32817. case 0x72: // 'r'
  32818. strBuf.push('\r');
  32819. break;
  32820. case 0x74: // 't'
  32821. strBuf.push('\t');
  32822. break;
  32823. case 0x62: // 'b'
  32824. strBuf.push('\b');
  32825. break;
  32826. case 0x66: // 'f'
  32827. strBuf.push('\f');
  32828. break;
  32829. case 0x5C: // '\'
  32830. case 0x28: // '('
  32831. case 0x29: // ')'
  32832. strBuf.push(String.fromCharCode(ch));
  32833. break;
  32834. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  32835. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  32836. var x = ch & 0x0F;
  32837. ch = this.nextChar();
  32838. charBuffered = true;
  32839. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32840. x = (x << 3) + (ch & 0x0F);
  32841. ch = this.nextChar();
  32842. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32843. charBuffered = false;
  32844. x = (x << 3) + (ch & 0x0F);
  32845. }
  32846. }
  32847. strBuf.push(String.fromCharCode(x));
  32848. break;
  32849. case 0x0D: // CR
  32850. if (this.peekChar() === 0x0A) { // LF
  32851. this.nextChar();
  32852. }
  32853. break;
  32854. case 0x0A: // LF
  32855. break;
  32856. default:
  32857. strBuf.push(String.fromCharCode(ch));
  32858. break;
  32859. }
  32860. break;
  32861. default:
  32862. strBuf.push(String.fromCharCode(ch));
  32863. break;
  32864. }
  32865. if (done) {
  32866. break;
  32867. }
  32868. if (!charBuffered) {
  32869. ch = this.nextChar();
  32870. }
  32871. }
  32872. return strBuf.join('');
  32873. },
  32874. getName: function Lexer_getName() {
  32875. var ch;
  32876. var strBuf = this.strBuf;
  32877. strBuf.length = 0;
  32878. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  32879. if (ch === 0x23) { // '#'
  32880. ch = this.nextChar();
  32881. var x = toHexDigit(ch);
  32882. if (x != -1) {
  32883. var x2 = toHexDigit(this.nextChar());
  32884. if (x2 == -1) {
  32885. error('Illegal digit in hex char in name: ' + x2);
  32886. }
  32887. strBuf.push(String.fromCharCode((x << 4) | x2));
  32888. } else {
  32889. strBuf.push('#', String.fromCharCode(ch));
  32890. }
  32891. } else {
  32892. strBuf.push(String.fromCharCode(ch));
  32893. }
  32894. }
  32895. if (strBuf.length > 128) {
  32896. error('Warning: name token is longer than allowed by the spec: ' +
  32897. strBuf.length);
  32898. }
  32899. return Name.get(strBuf.join(''));
  32900. },
  32901. getHexString: function Lexer_getHexString() {
  32902. var strBuf = this.strBuf;
  32903. strBuf.length = 0;
  32904. var ch = this.currentChar;
  32905. var isFirstHex = true;
  32906. var firstDigit;
  32907. var secondDigit;
  32908. while (true) {
  32909. if (ch < 0) {
  32910. warn('Unterminated hex string');
  32911. break;
  32912. } else if (ch === 0x3E) { // '>'
  32913. this.nextChar();
  32914. break;
  32915. } else if (specialChars[ch] === 1) {
  32916. ch = this.nextChar();
  32917. continue;
  32918. } else {
  32919. if (isFirstHex) {
  32920. firstDigit = toHexDigit(ch);
  32921. if (firstDigit === -1) {
  32922. warn('Ignoring invalid character "' + ch + '" in hex string');
  32923. ch = this.nextChar();
  32924. continue;
  32925. }
  32926. } else {
  32927. secondDigit = toHexDigit(ch);
  32928. if (secondDigit === -1) {
  32929. warn('Ignoring invalid character "' + ch + '" in hex string');
  32930. ch = this.nextChar();
  32931. continue;
  32932. }
  32933. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  32934. }
  32935. isFirstHex = !isFirstHex;
  32936. ch = this.nextChar();
  32937. }
  32938. }
  32939. return strBuf.join('');
  32940. },
  32941. getObj: function Lexer_getObj() {
  32942. // skip whitespace and comments
  32943. var comment = false;
  32944. var ch = this.currentChar;
  32945. while (true) {
  32946. if (ch < 0) {
  32947. return EOF;
  32948. }
  32949. if (comment) {
  32950. if (ch === 0x0A || ch == 0x0D) { // LF, CR
  32951. comment = false;
  32952. }
  32953. } else if (ch === 0x25) { // '%'
  32954. comment = true;
  32955. } else if (specialChars[ch] !== 1) {
  32956. break;
  32957. }
  32958. ch = this.nextChar();
  32959. }
  32960. // start reading token
  32961. switch (ch | 0) {
  32962. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  32963. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  32964. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  32965. return this.getNumber();
  32966. case 0x28: // '('
  32967. return this.getString();
  32968. case 0x2F: // '/'
  32969. return this.getName();
  32970. // array punctuation
  32971. case 0x5B: // '['
  32972. this.nextChar();
  32973. return Cmd.get('[');
  32974. case 0x5D: // ']'
  32975. this.nextChar();
  32976. return Cmd.get(']');
  32977. // hex string or dict punctuation
  32978. case 0x3C: // '<'
  32979. ch = this.nextChar();
  32980. if (ch === 0x3C) {
  32981. // dict punctuation
  32982. this.nextChar();
  32983. return Cmd.get('<<');
  32984. }
  32985. return this.getHexString();
  32986. // dict punctuation
  32987. case 0x3E: // '>'
  32988. ch = this.nextChar();
  32989. if (ch === 0x3E) {
  32990. this.nextChar();
  32991. return Cmd.get('>>');
  32992. }
  32993. return Cmd.get('>');
  32994. case 0x7B: // '{'
  32995. this.nextChar();
  32996. return Cmd.get('{');
  32997. case 0x7D: // '}'
  32998. this.nextChar();
  32999. return Cmd.get('}');
  33000. case 0x29: // ')'
  33001. error('Illegal character: ' + ch);
  33002. break;
  33003. }
  33004. // command
  33005. var str = String.fromCharCode(ch);
  33006. var knownCommands = this.knownCommands;
  33007. var knownCommandFound = knownCommands && (str in knownCommands);
  33008. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  33009. // stop if known command is found and next character does not make
  33010. // the str a command
  33011. var possibleCommand = str + String.fromCharCode(ch);
  33012. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  33013. break;
  33014. }
  33015. if (str.length == 128) {
  33016. error('Command token too long: ' + str.length);
  33017. }
  33018. str = possibleCommand;
  33019. knownCommandFound = knownCommands && (str in knownCommands);
  33020. }
  33021. if (str == 'true') {
  33022. return true;
  33023. }
  33024. if (str == 'false') {
  33025. return false;
  33026. }
  33027. if (str == 'null') {
  33028. return null;
  33029. }
  33030. return Cmd.get(str);
  33031. },
  33032. skipToNextLine: function Lexer_skipToNextLine() {
  33033. var ch = this.currentChar;
  33034. while (ch >= 0) {
  33035. if (ch === 0x0D) { // CR
  33036. ch = this.nextChar();
  33037. if (ch === 0x0A) { // LF
  33038. this.nextChar();
  33039. }
  33040. break;
  33041. } else if (ch === 0x0A) { // LF
  33042. this.nextChar();
  33043. break;
  33044. }
  33045. ch = this.nextChar();
  33046. }
  33047. }
  33048. };
  33049. return Lexer;
  33050. })();
  33051. var Linearization = (function LinearizationClosure() {
  33052. function Linearization(stream) {
  33053. this.parser = new Parser(new Lexer(stream), false, null);
  33054. var obj1 = this.parser.getObj();
  33055. var obj2 = this.parser.getObj();
  33056. var obj3 = this.parser.getObj();
  33057. this.linDict = this.parser.getObj();
  33058. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  33059. isDict(this.linDict)) {
  33060. var obj = this.linDict.get('Linearized');
  33061. if (!(isNum(obj) && obj > 0)) {
  33062. this.linDict = null;
  33063. }
  33064. }
  33065. }
  33066. Linearization.prototype = {
  33067. getInt: function Linearization_getInt(name) {
  33068. var linDict = this.linDict;
  33069. var obj;
  33070. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  33071. return obj;
  33072. }
  33073. error('"' + name + '" field in linearization table is invalid');
  33074. },
  33075. getHint: function Linearization_getHint(index) {
  33076. var linDict = this.linDict;
  33077. var obj1, obj2;
  33078. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  33079. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  33080. return obj2;
  33081. }
  33082. error('Hints table in linearization table is invalid: ' + index);
  33083. },
  33084. get length() {
  33085. if (!isDict(this.linDict)) {
  33086. return 0;
  33087. }
  33088. return this.getInt('L');
  33089. },
  33090. get hintsOffset() {
  33091. return this.getHint(0);
  33092. },
  33093. get hintsLength() {
  33094. return this.getHint(1);
  33095. },
  33096. get hintsOffset2() {
  33097. return this.getHint(2);
  33098. },
  33099. get hintsLenth2() {
  33100. return this.getHint(3);
  33101. },
  33102. get objectNumberFirst() {
  33103. return this.getInt('O');
  33104. },
  33105. get endFirst() {
  33106. return this.getInt('E');
  33107. },
  33108. get numPages() {
  33109. return this.getInt('N');
  33110. },
  33111. get mainXRefEntriesOffset() {
  33112. return this.getInt('T');
  33113. },
  33114. get pageFirst() {
  33115. return this.getInt('P');
  33116. }
  33117. };
  33118. return Linearization;
  33119. })();
  33120. var PostScriptParser = (function PostScriptParserClosure() {
  33121. function PostScriptParser(lexer) {
  33122. this.lexer = lexer;
  33123. this.operators = [];
  33124. this.token = null;
  33125. this.prev = null;
  33126. }
  33127. PostScriptParser.prototype = {
  33128. nextToken: function PostScriptParser_nextToken() {
  33129. this.prev = this.token;
  33130. this.token = this.lexer.getToken();
  33131. },
  33132. accept: function PostScriptParser_accept(type) {
  33133. if (this.token.type == type) {
  33134. this.nextToken();
  33135. return true;
  33136. }
  33137. return false;
  33138. },
  33139. expect: function PostScriptParser_expect(type) {
  33140. if (this.accept(type)) {
  33141. return true;
  33142. }
  33143. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  33144. type + '.');
  33145. },
  33146. parse: function PostScriptParser_parse() {
  33147. this.nextToken();
  33148. this.expect(PostScriptTokenTypes.LBRACE);
  33149. this.parseBlock();
  33150. this.expect(PostScriptTokenTypes.RBRACE);
  33151. return this.operators;
  33152. },
  33153. parseBlock: function PostScriptParser_parseBlock() {
  33154. while (true) {
  33155. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  33156. this.operators.push(this.prev.value);
  33157. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  33158. this.operators.push(this.prev.value);
  33159. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33160. this.parseCondition();
  33161. } else {
  33162. return;
  33163. }
  33164. }
  33165. },
  33166. parseCondition: function PostScriptParser_parseCondition() {
  33167. // Add two place holders that will be updated later
  33168. var conditionLocation = this.operators.length;
  33169. this.operators.push(null, null);
  33170. this.parseBlock();
  33171. this.expect(PostScriptTokenTypes.RBRACE);
  33172. if (this.accept(PostScriptTokenTypes.IF)) {
  33173. // The true block is right after the 'if' so it just falls through on
  33174. // true else it jumps and skips the true block.
  33175. this.operators[conditionLocation] = this.operators.length;
  33176. this.operators[conditionLocation + 1] = 'jz';
  33177. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33178. var jumpLocation = this.operators.length;
  33179. this.operators.push(null, null);
  33180. var endOfTrue = this.operators.length;
  33181. this.parseBlock();
  33182. this.expect(PostScriptTokenTypes.RBRACE);
  33183. this.expect(PostScriptTokenTypes.IFELSE);
  33184. // The jump is added at the end of the true block to skip the false
  33185. // block.
  33186. this.operators[jumpLocation] = this.operators.length;
  33187. this.operators[jumpLocation + 1] = 'j';
  33188. this.operators[conditionLocation] = endOfTrue;
  33189. this.operators[conditionLocation + 1] = 'jz';
  33190. } else {
  33191. error('PS Function: error parsing conditional.');
  33192. }
  33193. }
  33194. };
  33195. return PostScriptParser;
  33196. })();
  33197. var PostScriptTokenTypes = {
  33198. LBRACE: 0,
  33199. RBRACE: 1,
  33200. NUMBER: 2,
  33201. OPERATOR: 3,
  33202. IF: 4,
  33203. IFELSE: 5
  33204. };
  33205. var PostScriptToken = (function PostScriptTokenClosure() {
  33206. function PostScriptToken(type, value) {
  33207. this.type = type;
  33208. this.value = value;
  33209. }
  33210. var opCache = {};
  33211. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  33212. var opValue = opCache[op];
  33213. if (opValue) {
  33214. return opValue;
  33215. }
  33216. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  33217. };
  33218. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  33219. '{');
  33220. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  33221. '}');
  33222. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  33223. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  33224. 'IFELSE');
  33225. return PostScriptToken;
  33226. })();
  33227. var PostScriptLexer = (function PostScriptLexerClosure() {
  33228. function PostScriptLexer(stream) {
  33229. this.stream = stream;
  33230. this.nextChar();
  33231. }
  33232. PostScriptLexer.prototype = {
  33233. nextChar: function PostScriptLexer_nextChar() {
  33234. return (this.currentChar = this.stream.getByte());
  33235. },
  33236. getToken: function PostScriptLexer_getToken() {
  33237. var comment = false;
  33238. var ch = this.currentChar;
  33239. // skip comments
  33240. while (true) {
  33241. if (ch < 0) {
  33242. return EOF;
  33243. }
  33244. if (comment) {
  33245. if (ch === 0x0A || ch === 0x0D) {
  33246. comment = false;
  33247. }
  33248. } else if (ch == 0x25) { // '%'
  33249. comment = true;
  33250. } else if (!Lexer.isSpace(ch)) {
  33251. break;
  33252. }
  33253. ch = this.nextChar();
  33254. }
  33255. switch (ch | 0) {
  33256. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33257. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33258. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33259. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  33260. this.getNumber());
  33261. case 0x7B: // '{'
  33262. this.nextChar();
  33263. return PostScriptToken.LBRACE;
  33264. case 0x7D: // '}'
  33265. this.nextChar();
  33266. return PostScriptToken.RBRACE;
  33267. }
  33268. // operator
  33269. var str = String.fromCharCode(ch);
  33270. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  33271. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  33272. str += String.fromCharCode(ch);
  33273. }
  33274. switch (str.toLowerCase()) {
  33275. case 'if':
  33276. return PostScriptToken.IF;
  33277. case 'ifelse':
  33278. return PostScriptToken.IFELSE;
  33279. default:
  33280. return PostScriptToken.getOperator(str);
  33281. }
  33282. },
  33283. getNumber: function PostScriptLexer_getNumber() {
  33284. var ch = this.currentChar;
  33285. var str = String.fromCharCode(ch);
  33286. while ((ch = this.nextChar()) >= 0) {
  33287. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  33288. ch === 0x2D || ch === 0x2E) { // '-', '.'
  33289. str += String.fromCharCode(ch);
  33290. } else {
  33291. break;
  33292. }
  33293. }
  33294. var value = parseFloat(str);
  33295. if (isNaN(value)) {
  33296. error('Invalid floating point number: ' + value);
  33297. }
  33298. return value;
  33299. }
  33300. };
  33301. return PostScriptLexer;
  33302. })();
  33303. var Stream = (function StreamClosure() {
  33304. function Stream(arrayBuffer, start, length, dict) {
  33305. this.bytes = (arrayBuffer instanceof Uint8Array ?
  33306. arrayBuffer : new Uint8Array(arrayBuffer));
  33307. this.start = start || 0;
  33308. this.pos = this.start;
  33309. this.end = (start + length) || this.bytes.length;
  33310. this.dict = dict;
  33311. }
  33312. // required methods for a stream. if a particular stream does not
  33313. // implement these, an error should be thrown
  33314. Stream.prototype = {
  33315. get length() {
  33316. return this.end - this.start;
  33317. },
  33318. getByte: function Stream_getByte() {
  33319. if (this.pos >= this.end) {
  33320. return -1;
  33321. }
  33322. return this.bytes[this.pos++];
  33323. },
  33324. getUint16: function Stream_getUint16() {
  33325. var b0 = this.getByte();
  33326. var b1 = this.getByte();
  33327. return (b0 << 8) + b1;
  33328. },
  33329. getInt32: function Stream_getInt32() {
  33330. var b0 = this.getByte();
  33331. var b1 = this.getByte();
  33332. var b2 = this.getByte();
  33333. var b3 = this.getByte();
  33334. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33335. },
  33336. // returns subarray of original buffer
  33337. // should only be read
  33338. getBytes: function Stream_getBytes(length) {
  33339. var bytes = this.bytes;
  33340. var pos = this.pos;
  33341. var strEnd = this.end;
  33342. if (!length) {
  33343. return bytes.subarray(pos, strEnd);
  33344. }
  33345. var end = pos + length;
  33346. if (end > strEnd) {
  33347. end = strEnd;
  33348. }
  33349. this.pos = end;
  33350. return bytes.subarray(pos, end);
  33351. },
  33352. peekBytes: function Stream_peekBytes(length) {
  33353. var bytes = this.getBytes(length);
  33354. this.pos -= bytes.length;
  33355. return bytes;
  33356. },
  33357. skip: function Stream_skip(n) {
  33358. if (!n) {
  33359. n = 1;
  33360. }
  33361. this.pos += n;
  33362. },
  33363. reset: function Stream_reset() {
  33364. this.pos = this.start;
  33365. },
  33366. moveStart: function Stream_moveStart() {
  33367. this.start = this.pos;
  33368. },
  33369. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  33370. return new Stream(this.bytes.buffer, start, length, dict);
  33371. },
  33372. isStream: true
  33373. };
  33374. return Stream;
  33375. })();
  33376. var StringStream = (function StringStreamClosure() {
  33377. function StringStream(str) {
  33378. var length = str.length;
  33379. var bytes = new Uint8Array(length);
  33380. for (var n = 0; n < length; ++n) {
  33381. bytes[n] = str.charCodeAt(n);
  33382. }
  33383. Stream.call(this, bytes);
  33384. }
  33385. StringStream.prototype = Stream.prototype;
  33386. return StringStream;
  33387. })();
  33388. // super class for the decoding streams
  33389. var DecodeStream = (function DecodeStreamClosure() {
  33390. function DecodeStream(maybeMinBufferLength) {
  33391. this.pos = 0;
  33392. this.bufferLength = 0;
  33393. this.eof = false;
  33394. this.buffer = null;
  33395. this.minBufferLength = 512;
  33396. if (maybeMinBufferLength) {
  33397. // Compute the first power of two that is as big as maybeMinBufferLength.
  33398. while (this.minBufferLength < maybeMinBufferLength) {
  33399. this.minBufferLength *= 2;
  33400. }
  33401. }
  33402. }
  33403. DecodeStream.prototype = {
  33404. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  33405. var buffer = this.buffer;
  33406. var current;
  33407. if (buffer) {
  33408. current = buffer.byteLength;
  33409. if (requested <= current) {
  33410. return buffer;
  33411. }
  33412. } else {
  33413. current = 0;
  33414. }
  33415. var size = this.minBufferLength;
  33416. while (size < requested) {
  33417. size *= 2;
  33418. }
  33419. var buffer2 = new Uint8Array(size);
  33420. for (var i = 0; i < current; ++i) {
  33421. buffer2[i] = buffer[i];
  33422. }
  33423. return (this.buffer = buffer2);
  33424. },
  33425. getByte: function DecodeStream_getByte() {
  33426. var pos = this.pos;
  33427. while (this.bufferLength <= pos) {
  33428. if (this.eof) {
  33429. return -1;
  33430. }
  33431. this.readBlock();
  33432. }
  33433. return this.buffer[this.pos++];
  33434. },
  33435. getUint16: function DecodeStream_getUint16() {
  33436. var b0 = this.getByte();
  33437. var b1 = this.getByte();
  33438. return (b0 << 8) + b1;
  33439. },
  33440. getInt32: function DecodeStream_getInt32() {
  33441. var b0 = this.getByte();
  33442. var b1 = this.getByte();
  33443. var b2 = this.getByte();
  33444. var b3 = this.getByte();
  33445. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33446. },
  33447. getBytes: function DecodeStream_getBytes(length) {
  33448. var end, pos = this.pos;
  33449. if (length) {
  33450. this.ensureBuffer(pos + length);
  33451. end = pos + length;
  33452. while (!this.eof && this.bufferLength < end) {
  33453. this.readBlock();
  33454. }
  33455. var bufEnd = this.bufferLength;
  33456. if (end > bufEnd) {
  33457. end = bufEnd;
  33458. }
  33459. } else {
  33460. while (!this.eof) {
  33461. this.readBlock();
  33462. }
  33463. end = this.bufferLength;
  33464. // checking if bufferLength is still 0 then
  33465. // the buffer has to be initialized
  33466. if (!end) {
  33467. this.buffer = new Uint8Array(0);
  33468. }
  33469. }
  33470. this.pos = end;
  33471. return this.buffer.subarray(pos, end);
  33472. },
  33473. peekBytes: function DecodeStream_peekBytes(length) {
  33474. var bytes = this.getBytes(length);
  33475. this.pos -= bytes.length;
  33476. return bytes;
  33477. },
  33478. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  33479. var end = start + length;
  33480. while (this.bufferLength <= end && !this.eof) {
  33481. this.readBlock();
  33482. }
  33483. return new Stream(this.buffer, start, length, dict);
  33484. },
  33485. skip: function Stream_skip(n) {
  33486. if (!n) {
  33487. n = 1;
  33488. }
  33489. this.pos += n;
  33490. },
  33491. reset: function DecodeStream_reset() {
  33492. this.pos = 0;
  33493. },
  33494. getBaseStreams: function DecodeStream_getBaseStreams() {
  33495. if (this.str && this.str.getBaseStreams) {
  33496. return this.str.getBaseStreams();
  33497. }
  33498. return [];
  33499. }
  33500. };
  33501. return DecodeStream;
  33502. })();
  33503. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  33504. function StreamsSequenceStream(streams) {
  33505. this.streams = streams;
  33506. DecodeStream.call(this, /* maybeLength = */ null);
  33507. }
  33508. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  33509. StreamsSequenceStream.prototype.readBlock =
  33510. function streamSequenceStreamReadBlock() {
  33511. var streams = this.streams;
  33512. if (streams.length === 0) {
  33513. this.eof = true;
  33514. return;
  33515. }
  33516. var stream = streams.shift();
  33517. var chunk = stream.getBytes();
  33518. var bufferLength = this.bufferLength;
  33519. var newLength = bufferLength + chunk.length;
  33520. var buffer = this.ensureBuffer(newLength);
  33521. buffer.set(chunk, bufferLength);
  33522. this.bufferLength = newLength;
  33523. };
  33524. StreamsSequenceStream.prototype.getBaseStreams =
  33525. function StreamsSequenceStream_getBaseStreams() {
  33526. var baseStreams = [];
  33527. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  33528. var stream = this.streams[i];
  33529. if (stream.getBaseStreams) {
  33530. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  33531. }
  33532. }
  33533. return baseStreams;
  33534. };
  33535. return StreamsSequenceStream;
  33536. })();
  33537. var FlateStream = (function FlateStreamClosure() {
  33538. var codeLenCodeMap = new Uint32Array([
  33539. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  33540. ]);
  33541. var lengthDecode = new Uint32Array([
  33542. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  33543. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  33544. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  33545. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  33546. ]);
  33547. var distDecode = new Uint32Array([
  33548. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  33549. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  33550. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  33551. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  33552. ]);
  33553. var fixedLitCodeTab = [new Uint32Array([
  33554. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  33555. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  33556. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  33557. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  33558. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  33559. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  33560. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  33561. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  33562. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  33563. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  33564. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  33565. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  33566. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  33567. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  33568. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  33569. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  33570. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  33571. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  33572. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  33573. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  33574. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  33575. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  33576. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  33577. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  33578. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  33579. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  33580. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  33581. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  33582. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  33583. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  33584. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  33585. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  33586. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  33587. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  33588. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  33589. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  33590. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  33591. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  33592. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  33593. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  33594. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  33595. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  33596. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  33597. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  33598. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  33599. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  33600. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  33601. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  33602. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  33603. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  33604. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  33605. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  33606. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  33607. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  33608. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  33609. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  33610. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  33611. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  33612. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  33613. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  33614. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  33615. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  33616. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  33617. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  33618. ]), 9];
  33619. var fixedDistCodeTab = [new Uint32Array([
  33620. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  33621. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  33622. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  33623. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  33624. ]), 5];
  33625. function FlateStream(str, maybeLength) {
  33626. this.str = str;
  33627. this.dict = str.dict;
  33628. var cmf = str.getByte();
  33629. var flg = str.getByte();
  33630. if (cmf == -1 || flg == -1) {
  33631. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  33632. }
  33633. if ((cmf & 0x0f) != 0x08) {
  33634. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  33635. }
  33636. if ((((cmf << 8) + flg) % 31) !== 0) {
  33637. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  33638. }
  33639. if (flg & 0x20) {
  33640. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  33641. }
  33642. this.codeSize = 0;
  33643. this.codeBuf = 0;
  33644. DecodeStream.call(this, maybeLength);
  33645. }
  33646. FlateStream.prototype = Object.create(DecodeStream.prototype);
  33647. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  33648. var str = this.str;
  33649. var codeSize = this.codeSize;
  33650. var codeBuf = this.codeBuf;
  33651. var b;
  33652. while (codeSize < bits) {
  33653. if ((b = str.getByte()) === -1) {
  33654. error('Bad encoding in flate stream');
  33655. }
  33656. codeBuf |= b << codeSize;
  33657. codeSize += 8;
  33658. }
  33659. b = codeBuf & ((1 << bits) - 1);
  33660. this.codeBuf = codeBuf >> bits;
  33661. this.codeSize = codeSize -= bits;
  33662. return b;
  33663. };
  33664. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  33665. var str = this.str;
  33666. var codes = table[0];
  33667. var maxLen = table[1];
  33668. var codeSize = this.codeSize;
  33669. var codeBuf = this.codeBuf;
  33670. while (codeSize < maxLen) {
  33671. var b;
  33672. if ((b = str.getByte()) === -1) {
  33673. error('Bad encoding in flate stream');
  33674. }
  33675. codeBuf |= (b << codeSize);
  33676. codeSize += 8;
  33677. }
  33678. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  33679. var codeLen = code >> 16;
  33680. var codeVal = code & 0xffff;
  33681. if (codeSize === 0 || codeSize < codeLen || codeLen === 0) {
  33682. error('Bad encoding in flate stream');
  33683. }
  33684. this.codeBuf = (codeBuf >> codeLen);
  33685. this.codeSize = (codeSize - codeLen);
  33686. return codeVal;
  33687. };
  33688. FlateStream.prototype.generateHuffmanTable =
  33689. function flateStreamGenerateHuffmanTable(lengths) {
  33690. var n = lengths.length;
  33691. // find max code length
  33692. var maxLen = 0;
  33693. var i;
  33694. for (i = 0; i < n; ++i) {
  33695. if (lengths[i] > maxLen) {
  33696. maxLen = lengths[i];
  33697. }
  33698. }
  33699. // build the table
  33700. var size = 1 << maxLen;
  33701. var codes = new Uint32Array(size);
  33702. for (var len = 1, code = 0, skip = 2;
  33703. len <= maxLen;
  33704. ++len, code <<= 1, skip <<= 1) {
  33705. for (var val = 0; val < n; ++val) {
  33706. if (lengths[val] == len) {
  33707. // bit-reverse the code
  33708. var code2 = 0;
  33709. var t = code;
  33710. for (i = 0; i < len; ++i) {
  33711. code2 = (code2 << 1) | (t & 1);
  33712. t >>= 1;
  33713. }
  33714. // fill the table entries
  33715. for (i = code2; i < size; i += skip) {
  33716. codes[i] = (len << 16) | val;
  33717. }
  33718. ++code;
  33719. }
  33720. }
  33721. }
  33722. return [codes, maxLen];
  33723. };
  33724. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  33725. var buffer, len;
  33726. var str = this.str;
  33727. // read block header
  33728. var hdr = this.getBits(3);
  33729. if (hdr & 1) {
  33730. this.eof = true;
  33731. }
  33732. hdr >>= 1;
  33733. if (hdr === 0) { // uncompressed block
  33734. var b;
  33735. if ((b = str.getByte()) === -1) {
  33736. error('Bad block header in flate stream');
  33737. }
  33738. var blockLen = b;
  33739. if ((b = str.getByte()) === -1) {
  33740. error('Bad block header in flate stream');
  33741. }
  33742. blockLen |= (b << 8);
  33743. if ((b = str.getByte()) === -1) {
  33744. error('Bad block header in flate stream');
  33745. }
  33746. var check = b;
  33747. if ((b = str.getByte()) === -1) {
  33748. error('Bad block header in flate stream');
  33749. }
  33750. check |= (b << 8);
  33751. if (check != (~blockLen & 0xffff) &&
  33752. (blockLen !== 0 || check !== 0)) {
  33753. // Ignoring error for bad "empty" block (see issue 1277)
  33754. error('Bad uncompressed block length in flate stream');
  33755. }
  33756. this.codeBuf = 0;
  33757. this.codeSize = 0;
  33758. var bufferLength = this.bufferLength;
  33759. buffer = this.ensureBuffer(bufferLength + blockLen);
  33760. var end = bufferLength + blockLen;
  33761. this.bufferLength = end;
  33762. if (blockLen === 0) {
  33763. if (str.peekBytes(1).length === 0) {
  33764. this.eof = true;
  33765. }
  33766. } else {
  33767. for (var n = bufferLength; n < end; ++n) {
  33768. if ((b = str.getByte()) === -1) {
  33769. this.eof = true;
  33770. break;
  33771. }
  33772. buffer[n] = b;
  33773. }
  33774. }
  33775. return;
  33776. }
  33777. var litCodeTable;
  33778. var distCodeTable;
  33779. if (hdr == 1) { // compressed block, fixed codes
  33780. litCodeTable = fixedLitCodeTab;
  33781. distCodeTable = fixedDistCodeTab;
  33782. } else if (hdr == 2) { // compressed block, dynamic codes
  33783. var numLitCodes = this.getBits(5) + 257;
  33784. var numDistCodes = this.getBits(5) + 1;
  33785. var numCodeLenCodes = this.getBits(4) + 4;
  33786. // build the code lengths code table
  33787. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  33788. var i;
  33789. for (i = 0; i < numCodeLenCodes; ++i) {
  33790. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  33791. }
  33792. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  33793. // build the literal and distance code tables
  33794. len = 0;
  33795. i = 0;
  33796. var codes = numLitCodes + numDistCodes;
  33797. var codeLengths = new Uint8Array(codes);
  33798. var bitsLength, bitsOffset, what;
  33799. while (i < codes) {
  33800. var code = this.getCode(codeLenCodeTab);
  33801. if (code == 16) {
  33802. bitsLength = 2; bitsOffset = 3; what = len;
  33803. } else if (code == 17) {
  33804. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  33805. } else if (code == 18) {
  33806. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  33807. } else {
  33808. codeLengths[i++] = len = code;
  33809. continue;
  33810. }
  33811. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  33812. while (repeatLength-- > 0) {
  33813. codeLengths[i++] = what;
  33814. }
  33815. }
  33816. litCodeTable =
  33817. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  33818. distCodeTable =
  33819. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  33820. } else {
  33821. error('Unknown block type in flate stream');
  33822. }
  33823. buffer = this.buffer;
  33824. var limit = buffer ? buffer.length : 0;
  33825. var pos = this.bufferLength;
  33826. while (true) {
  33827. var code1 = this.getCode(litCodeTable);
  33828. if (code1 < 256) {
  33829. if (pos + 1 >= limit) {
  33830. buffer = this.ensureBuffer(pos + 1);
  33831. limit = buffer.length;
  33832. }
  33833. buffer[pos++] = code1;
  33834. continue;
  33835. }
  33836. if (code1 == 256) {
  33837. this.bufferLength = pos;
  33838. return;
  33839. }
  33840. code1 -= 257;
  33841. code1 = lengthDecode[code1];
  33842. var code2 = code1 >> 16;
  33843. if (code2 > 0) {
  33844. code2 = this.getBits(code2);
  33845. }
  33846. len = (code1 & 0xffff) + code2;
  33847. code1 = this.getCode(distCodeTable);
  33848. code1 = distDecode[code1];
  33849. code2 = code1 >> 16;
  33850. if (code2 > 0) {
  33851. code2 = this.getBits(code2);
  33852. }
  33853. var dist = (code1 & 0xffff) + code2;
  33854. if (pos + len >= limit) {
  33855. buffer = this.ensureBuffer(pos + len);
  33856. limit = buffer.length;
  33857. }
  33858. for (var k = 0; k < len; ++k, ++pos) {
  33859. buffer[pos] = buffer[pos - dist];
  33860. }
  33861. }
  33862. };
  33863. return FlateStream;
  33864. })();
  33865. var PredictorStream = (function PredictorStreamClosure() {
  33866. function PredictorStream(str, maybeLength, params) {
  33867. var predictor = this.predictor = params.get('Predictor') || 1;
  33868. if (predictor <= 1) {
  33869. return str; // no prediction
  33870. }
  33871. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  33872. error('Unsupported predictor: ' + predictor);
  33873. }
  33874. if (predictor === 2) {
  33875. this.readBlock = this.readBlockTiff;
  33876. } else {
  33877. this.readBlock = this.readBlockPng;
  33878. }
  33879. this.str = str;
  33880. this.dict = str.dict;
  33881. var colors = this.colors = params.get('Colors') || 1;
  33882. var bits = this.bits = params.get('BitsPerComponent') || 8;
  33883. var columns = this.columns = params.get('Columns') || 1;
  33884. this.pixBytes = (colors * bits + 7) >> 3;
  33885. this.rowBytes = (columns * colors * bits + 7) >> 3;
  33886. DecodeStream.call(this, maybeLength);
  33887. return this;
  33888. }
  33889. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  33890. PredictorStream.prototype.readBlockTiff =
  33891. function predictorStreamReadBlockTiff() {
  33892. var rowBytes = this.rowBytes;
  33893. var bufferLength = this.bufferLength;
  33894. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33895. var bits = this.bits;
  33896. var colors = this.colors;
  33897. var rawBytes = this.str.getBytes(rowBytes);
  33898. this.eof = !rawBytes.length;
  33899. if (this.eof) {
  33900. return;
  33901. }
  33902. var inbuf = 0, outbuf = 0;
  33903. var inbits = 0, outbits = 0;
  33904. var pos = bufferLength;
  33905. var i;
  33906. if (bits === 1) {
  33907. for (i = 0; i < rowBytes; ++i) {
  33908. var c = rawBytes[i];
  33909. inbuf = (inbuf << 8) | c;
  33910. // bitwise addition is exclusive or
  33911. // first shift inbuf and then add
  33912. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  33913. // truncate inbuf (assumes colors < 16)
  33914. inbuf &= 0xFFFF;
  33915. }
  33916. } else if (bits === 8) {
  33917. for (i = 0; i < colors; ++i) {
  33918. buffer[pos++] = rawBytes[i];
  33919. }
  33920. for (; i < rowBytes; ++i) {
  33921. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  33922. pos++;
  33923. }
  33924. } else {
  33925. var compArray = new Uint8Array(colors + 1);
  33926. var bitMask = (1 << bits) - 1;
  33927. var j = 0, k = bufferLength;
  33928. var columns = this.columns;
  33929. for (i = 0; i < columns; ++i) {
  33930. for (var kk = 0; kk < colors; ++kk) {
  33931. if (inbits < bits) {
  33932. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  33933. inbits += 8;
  33934. }
  33935. compArray[kk] = (compArray[kk] +
  33936. (inbuf >> (inbits - bits))) & bitMask;
  33937. inbits -= bits;
  33938. outbuf = (outbuf << bits) | compArray[kk];
  33939. outbits += bits;
  33940. if (outbits >= 8) {
  33941. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  33942. outbits -= 8;
  33943. }
  33944. }
  33945. }
  33946. if (outbits > 0) {
  33947. buffer[k++] = (outbuf << (8 - outbits)) +
  33948. (inbuf & ((1 << (8 - outbits)) - 1));
  33949. }
  33950. }
  33951. this.bufferLength += rowBytes;
  33952. };
  33953. PredictorStream.prototype.readBlockPng =
  33954. function predictorStreamReadBlockPng() {
  33955. var rowBytes = this.rowBytes;
  33956. var pixBytes = this.pixBytes;
  33957. var predictor = this.str.getByte();
  33958. var rawBytes = this.str.getBytes(rowBytes);
  33959. this.eof = !rawBytes.length;
  33960. if (this.eof) {
  33961. return;
  33962. }
  33963. var bufferLength = this.bufferLength;
  33964. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33965. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  33966. if (prevRow.length === 0) {
  33967. prevRow = new Uint8Array(rowBytes);
  33968. }
  33969. var i, j = bufferLength, up, c;
  33970. switch (predictor) {
  33971. case 0:
  33972. for (i = 0; i < rowBytes; ++i) {
  33973. buffer[j++] = rawBytes[i];
  33974. }
  33975. break;
  33976. case 1:
  33977. for (i = 0; i < pixBytes; ++i) {
  33978. buffer[j++] = rawBytes[i];
  33979. }
  33980. for (; i < rowBytes; ++i) {
  33981. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  33982. j++;
  33983. }
  33984. break;
  33985. case 2:
  33986. for (i = 0; i < rowBytes; ++i) {
  33987. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  33988. }
  33989. break;
  33990. case 3:
  33991. for (i = 0; i < pixBytes; ++i) {
  33992. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  33993. }
  33994. for (; i < rowBytes; ++i) {
  33995. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  33996. rawBytes[i]) & 0xFF;
  33997. j++;
  33998. }
  33999. break;
  34000. case 4:
  34001. // we need to save the up left pixels values. the simplest way
  34002. // is to create a new buffer
  34003. for (i = 0; i < pixBytes; ++i) {
  34004. up = prevRow[i];
  34005. c = rawBytes[i];
  34006. buffer[j++] = up + c;
  34007. }
  34008. for (; i < rowBytes; ++i) {
  34009. up = prevRow[i];
  34010. var upLeft = prevRow[i - pixBytes];
  34011. var left = buffer[j - pixBytes];
  34012. var p = left + up - upLeft;
  34013. var pa = p - left;
  34014. if (pa < 0) {
  34015. pa = -pa;
  34016. }
  34017. var pb = p - up;
  34018. if (pb < 0) {
  34019. pb = -pb;
  34020. }
  34021. var pc = p - upLeft;
  34022. if (pc < 0) {
  34023. pc = -pc;
  34024. }
  34025. c = rawBytes[i];
  34026. if (pa <= pb && pa <= pc) {
  34027. buffer[j++] = left + c;
  34028. } else if (pb <= pc) {
  34029. buffer[j++] = up + c;
  34030. } else {
  34031. buffer[j++] = upLeft + c;
  34032. }
  34033. }
  34034. break;
  34035. default:
  34036. error('Unsupported predictor: ' + predictor);
  34037. }
  34038. this.bufferLength += rowBytes;
  34039. };
  34040. return PredictorStream;
  34041. })();
  34042. /**
  34043. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  34044. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  34045. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  34046. * a library to decode these images and the stream behaves like all the other
  34047. * DecodeStreams.
  34048. */
  34049. var JpegStream = (function JpegStreamClosure() {
  34050. function JpegStream(stream, maybeLength, dict, xref) {
  34051. // TODO: per poppler, some images may have 'junk' before that
  34052. // need to be removed
  34053. this.stream = stream;
  34054. this.maybeLength = maybeLength;
  34055. this.dict = dict;
  34056. DecodeStream.call(this, maybeLength);
  34057. }
  34058. JpegStream.prototype = Object.create(DecodeStream.prototype);
  34059. Object.defineProperty(JpegStream.prototype, 'bytes', {
  34060. get: function JpegStream_bytes() {
  34061. // If this.maybeLength is null, we'll get the entire stream.
  34062. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34063. },
  34064. configurable: true
  34065. });
  34066. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  34067. if (this.bufferLength) {
  34068. return;
  34069. }
  34070. try {
  34071. var jpegImage = new JpegImage();
  34072. if (this.colorTransform != -1) {
  34073. jpegImage.colorTransform = this.colorTransform;
  34074. }
  34075. jpegImage.parse(this.bytes);
  34076. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  34077. /* forceRGBoutput = */true);
  34078. this.buffer = data;
  34079. this.bufferLength = data.length;
  34080. this.eof = true;
  34081. } catch (e) {
  34082. error('JPEG error: ' + e);
  34083. }
  34084. };
  34085. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  34086. this.ensureBuffer();
  34087. return this.buffer;
  34088. };
  34089. JpegStream.prototype.getIR = function JpegStream_getIR() {
  34090. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  34091. };
  34092. /**
  34093. * Checks if the image can be decoded and displayed by the browser without any
  34094. * further processing such as color space conversions.
  34095. */
  34096. JpegStream.prototype.isNativelySupported =
  34097. function JpegStream_isNativelySupported(xref, res) {
  34098. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34099. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  34100. };
  34101. /**
  34102. * Checks if the image can be decoded by the browser.
  34103. */
  34104. JpegStream.prototype.isNativelyDecodable =
  34105. function JpegStream_isNativelyDecodable(xref, res) {
  34106. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34107. var numComps = cs.numComps;
  34108. return numComps == 1 || numComps == 3;
  34109. };
  34110. return JpegStream;
  34111. })();
  34112. /**
  34113. * For JPEG 2000's we use a library to decode these images and
  34114. * the stream behaves like all the other DecodeStreams.
  34115. */
  34116. var JpxStream = (function JpxStreamClosure() {
  34117. function JpxStream(stream, maybeLength, dict) {
  34118. this.stream = stream;
  34119. this.maybeLength = maybeLength;
  34120. this.dict = dict;
  34121. DecodeStream.call(this, maybeLength);
  34122. }
  34123. JpxStream.prototype = Object.create(DecodeStream.prototype);
  34124. Object.defineProperty(JpxStream.prototype, 'bytes', {
  34125. get: function JpxStream_bytes() {
  34126. // If this.maybeLength is null, we'll get the entire stream.
  34127. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34128. },
  34129. configurable: true
  34130. });
  34131. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  34132. if (this.bufferLength) {
  34133. return;
  34134. }
  34135. var jpxImage = new JpxImage();
  34136. jpxImage.parse(this.bytes);
  34137. var width = jpxImage.width;
  34138. var height = jpxImage.height;
  34139. var componentsCount = jpxImage.componentsCount;
  34140. var tileCount = jpxImage.tiles.length;
  34141. if (tileCount === 1) {
  34142. this.buffer = jpxImage.tiles[0].items;
  34143. } else {
  34144. var data = new Uint8Array(width * height * componentsCount);
  34145. for (var k = 0; k < tileCount; k++) {
  34146. var tileComponents = jpxImage.tiles[k];
  34147. var tileWidth = tileComponents.width;
  34148. var tileHeight = tileComponents.height;
  34149. var tileLeft = tileComponents.left;
  34150. var tileTop = tileComponents.top;
  34151. var src = tileComponents.items;
  34152. var srcPosition = 0;
  34153. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  34154. var imgRowSize = width * componentsCount;
  34155. var tileRowSize = tileWidth * componentsCount;
  34156. for (var j = 0; j < tileHeight; j++) {
  34157. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  34158. data.set(rowBytes, dataPosition);
  34159. srcPosition += tileRowSize;
  34160. dataPosition += imgRowSize;
  34161. }
  34162. }
  34163. this.buffer = data;
  34164. }
  34165. this.bufferLength = this.buffer.length;
  34166. this.eof = true;
  34167. };
  34168. return JpxStream;
  34169. })();
  34170. /**
  34171. * For JBIG2's we use a library to decode these images and
  34172. * the stream behaves like all the other DecodeStreams.
  34173. */
  34174. var Jbig2Stream = (function Jbig2StreamClosure() {
  34175. function Jbig2Stream(stream, maybeLength, dict) {
  34176. this.stream = stream;
  34177. this.maybeLength = maybeLength;
  34178. this.dict = dict;
  34179. DecodeStream.call(this, maybeLength);
  34180. }
  34181. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  34182. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  34183. get: function Jbig2Stream_bytes() {
  34184. // If this.maybeLength is null, we'll get the entire stream.
  34185. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34186. },
  34187. configurable: true
  34188. });
  34189. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  34190. if (this.bufferLength) {
  34191. return;
  34192. }
  34193. var jbig2Image = new Jbig2Image();
  34194. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  34195. // According to the PDF specification, DecodeParms can be either
  34196. // a dictionary, or an array whose elements are dictionaries.
  34197. if (isArray(decodeParams)) {
  34198. if (decodeParams.length > 1) {
  34199. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  34200. 'not supported.');
  34201. }
  34202. decodeParams = decodeParams[0];
  34203. }
  34204. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  34205. var globalsStream = decodeParams.get('JBIG2Globals');
  34206. var globals = globalsStream.getBytes();
  34207. chunks.push({data: globals, start: 0, end: globals.length});
  34208. }
  34209. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  34210. var data = jbig2Image.parseChunks(chunks);
  34211. var dataLength = data.length;
  34212. // JBIG2 had black as 1 and white as 0, inverting the colors
  34213. for (var i = 0; i < dataLength; i++) {
  34214. data[i] ^= 0xFF;
  34215. }
  34216. this.buffer = data;
  34217. this.bufferLength = dataLength;
  34218. this.eof = true;
  34219. };
  34220. return Jbig2Stream;
  34221. })();
  34222. var DecryptStream = (function DecryptStreamClosure() {
  34223. function DecryptStream(str, maybeLength, decrypt) {
  34224. this.str = str;
  34225. this.dict = str.dict;
  34226. this.decrypt = decrypt;
  34227. this.nextChunk = null;
  34228. this.initialized = false;
  34229. DecodeStream.call(this, maybeLength);
  34230. }
  34231. var chunkSize = 512;
  34232. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  34233. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  34234. var chunk;
  34235. if (this.initialized) {
  34236. chunk = this.nextChunk;
  34237. } else {
  34238. chunk = this.str.getBytes(chunkSize);
  34239. this.initialized = true;
  34240. }
  34241. if (!chunk || chunk.length === 0) {
  34242. this.eof = true;
  34243. return;
  34244. }
  34245. this.nextChunk = this.str.getBytes(chunkSize);
  34246. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  34247. var decrypt = this.decrypt;
  34248. chunk = decrypt(chunk, !hasMoreData);
  34249. var bufferLength = this.bufferLength;
  34250. var i, n = chunk.length;
  34251. var buffer = this.ensureBuffer(bufferLength + n);
  34252. for (i = 0; i < n; i++) {
  34253. buffer[bufferLength++] = chunk[i];
  34254. }
  34255. this.bufferLength = bufferLength;
  34256. };
  34257. return DecryptStream;
  34258. })();
  34259. var Ascii85Stream = (function Ascii85StreamClosure() {
  34260. function Ascii85Stream(str, maybeLength) {
  34261. this.str = str;
  34262. this.dict = str.dict;
  34263. this.input = new Uint8Array(5);
  34264. // Most streams increase in size when decoded, but Ascii85 streams
  34265. // typically shrink by ~20%.
  34266. if (maybeLength) {
  34267. maybeLength = 0.8 * maybeLength;
  34268. }
  34269. DecodeStream.call(this, maybeLength);
  34270. }
  34271. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  34272. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  34273. var TILDA_CHAR = 0x7E; // '~'
  34274. var Z_LOWER_CHAR = 0x7A; // 'z'
  34275. var EOF = -1;
  34276. var str = this.str;
  34277. var c = str.getByte();
  34278. while (Lexer.isSpace(c)) {
  34279. c = str.getByte();
  34280. }
  34281. if (c === EOF || c === TILDA_CHAR) {
  34282. this.eof = true;
  34283. return;
  34284. }
  34285. var bufferLength = this.bufferLength, buffer;
  34286. var i;
  34287. // special code for z
  34288. if (c == Z_LOWER_CHAR) {
  34289. buffer = this.ensureBuffer(bufferLength + 4);
  34290. for (i = 0; i < 4; ++i) {
  34291. buffer[bufferLength + i] = 0;
  34292. }
  34293. this.bufferLength += 4;
  34294. } else {
  34295. var input = this.input;
  34296. input[0] = c;
  34297. for (i = 1; i < 5; ++i) {
  34298. c = str.getByte();
  34299. while (Lexer.isSpace(c)) {
  34300. c = str.getByte();
  34301. }
  34302. input[i] = c;
  34303. if (c === EOF || c == TILDA_CHAR) {
  34304. break;
  34305. }
  34306. }
  34307. buffer = this.ensureBuffer(bufferLength + i - 1);
  34308. this.bufferLength += i - 1;
  34309. // partial ending;
  34310. if (i < 5) {
  34311. for (; i < 5; ++i) {
  34312. input[i] = 0x21 + 84;
  34313. }
  34314. this.eof = true;
  34315. }
  34316. var t = 0;
  34317. for (i = 0; i < 5; ++i) {
  34318. t = t * 85 + (input[i] - 0x21);
  34319. }
  34320. for (i = 3; i >= 0; --i) {
  34321. buffer[bufferLength + i] = t & 0xFF;
  34322. t >>= 8;
  34323. }
  34324. }
  34325. };
  34326. return Ascii85Stream;
  34327. })();
  34328. var AsciiHexStream = (function AsciiHexStreamClosure() {
  34329. function AsciiHexStream(str, maybeLength) {
  34330. this.str = str;
  34331. this.dict = str.dict;
  34332. this.firstDigit = -1;
  34333. // Most streams increase in size when decoded, but AsciiHex streams shrink
  34334. // by 50%.
  34335. if (maybeLength) {
  34336. maybeLength = 0.5 * maybeLength;
  34337. }
  34338. DecodeStream.call(this, maybeLength);
  34339. }
  34340. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  34341. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  34342. var UPSTREAM_BLOCK_SIZE = 8000;
  34343. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  34344. if (!bytes.length) {
  34345. this.eof = true;
  34346. return;
  34347. }
  34348. var maxDecodeLength = (bytes.length + 1) >> 1;
  34349. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  34350. var bufferLength = this.bufferLength;
  34351. var firstDigit = this.firstDigit;
  34352. for (var i = 0, ii = bytes.length; i < ii; i++) {
  34353. var ch = bytes[i], digit;
  34354. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34355. digit = ch & 0x0F;
  34356. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34357. // 'A'-'Z', 'a'-'z'
  34358. digit = (ch & 0x0F) + 9;
  34359. } else if (ch === 0x3E) { // '>'
  34360. this.eof = true;
  34361. break;
  34362. } else { // probably whitespace
  34363. continue; // ignoring
  34364. }
  34365. if (firstDigit < 0) {
  34366. firstDigit = digit;
  34367. } else {
  34368. buffer[bufferLength++] = (firstDigit << 4) | digit;
  34369. firstDigit = -1;
  34370. }
  34371. }
  34372. if (firstDigit >= 0 && this.eof) {
  34373. // incomplete byte
  34374. buffer[bufferLength++] = (firstDigit << 4);
  34375. firstDigit = -1;
  34376. }
  34377. this.firstDigit = firstDigit;
  34378. this.bufferLength = bufferLength;
  34379. };
  34380. return AsciiHexStream;
  34381. })();
  34382. var RunLengthStream = (function RunLengthStreamClosure() {
  34383. function RunLengthStream(str, maybeLength) {
  34384. this.str = str;
  34385. this.dict = str.dict;
  34386. DecodeStream.call(this, maybeLength);
  34387. }
  34388. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  34389. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  34390. // The repeatHeader has following format. The first byte defines type of run
  34391. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  34392. // (in addition to the second byte from the header), n = 129 through 255 -
  34393. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  34394. var repeatHeader = this.str.getBytes(2);
  34395. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  34396. this.eof = true;
  34397. return;
  34398. }
  34399. var buffer;
  34400. var bufferLength = this.bufferLength;
  34401. var n = repeatHeader[0];
  34402. if (n < 128) {
  34403. // copy n bytes
  34404. buffer = this.ensureBuffer(bufferLength + n + 1);
  34405. buffer[bufferLength++] = repeatHeader[1];
  34406. if (n > 0) {
  34407. var source = this.str.getBytes(n);
  34408. buffer.set(source, bufferLength);
  34409. bufferLength += n;
  34410. }
  34411. } else {
  34412. n = 257 - n;
  34413. var b = repeatHeader[1];
  34414. buffer = this.ensureBuffer(bufferLength + n + 1);
  34415. for (var i = 0; i < n; i++) {
  34416. buffer[bufferLength++] = b;
  34417. }
  34418. }
  34419. this.bufferLength = bufferLength;
  34420. };
  34421. return RunLengthStream;
  34422. })();
  34423. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  34424. var ccittEOL = -2;
  34425. var twoDimPass = 0;
  34426. var twoDimHoriz = 1;
  34427. var twoDimVert0 = 2;
  34428. var twoDimVertR1 = 3;
  34429. var twoDimVertL1 = 4;
  34430. var twoDimVertR2 = 5;
  34431. var twoDimVertL2 = 6;
  34432. var twoDimVertR3 = 7;
  34433. var twoDimVertL3 = 8;
  34434. var twoDimTable = [
  34435. [-1, -1], [-1, -1], // 000000x
  34436. [7, twoDimVertL3], // 0000010
  34437. [7, twoDimVertR3], // 0000011
  34438. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  34439. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  34440. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  34441. [4, twoDimPass], [4, twoDimPass],
  34442. [4, twoDimPass], [4, twoDimPass],
  34443. [4, twoDimPass], [4, twoDimPass],
  34444. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  34445. [3, twoDimHoriz], [3, twoDimHoriz],
  34446. [3, twoDimHoriz], [3, twoDimHoriz],
  34447. [3, twoDimHoriz], [3, twoDimHoriz],
  34448. [3, twoDimHoriz], [3, twoDimHoriz],
  34449. [3, twoDimHoriz], [3, twoDimHoriz],
  34450. [3, twoDimHoriz], [3, twoDimHoriz],
  34451. [3, twoDimHoriz], [3, twoDimHoriz],
  34452. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  34453. [3, twoDimVertL1], [3, twoDimVertL1],
  34454. [3, twoDimVertL1], [3, twoDimVertL1],
  34455. [3, twoDimVertL1], [3, twoDimVertL1],
  34456. [3, twoDimVertL1], [3, twoDimVertL1],
  34457. [3, twoDimVertL1], [3, twoDimVertL1],
  34458. [3, twoDimVertL1], [3, twoDimVertL1],
  34459. [3, twoDimVertL1], [3, twoDimVertL1],
  34460. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  34461. [3, twoDimVertR1], [3, twoDimVertR1],
  34462. [3, twoDimVertR1], [3, twoDimVertR1],
  34463. [3, twoDimVertR1], [3, twoDimVertR1],
  34464. [3, twoDimVertR1], [3, twoDimVertR1],
  34465. [3, twoDimVertR1], [3, twoDimVertR1],
  34466. [3, twoDimVertR1], [3, twoDimVertR1],
  34467. [3, twoDimVertR1], [3, twoDimVertR1],
  34468. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  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. [1, twoDimVert0], [1, twoDimVert0],
  34487. [1, twoDimVert0], [1, twoDimVert0],
  34488. [1, twoDimVert0], [1, twoDimVert0],
  34489. [1, twoDimVert0], [1, twoDimVert0],
  34490. [1, twoDimVert0], [1, twoDimVert0],
  34491. [1, twoDimVert0], [1, twoDimVert0],
  34492. [1, twoDimVert0], [1, twoDimVert0],
  34493. [1, twoDimVert0], [1, twoDimVert0],
  34494. [1, twoDimVert0], [1, twoDimVert0],
  34495. [1, twoDimVert0], [1, twoDimVert0],
  34496. [1, twoDimVert0], [1, twoDimVert0],
  34497. [1, twoDimVert0], [1, twoDimVert0],
  34498. [1, twoDimVert0], [1, twoDimVert0],
  34499. [1, twoDimVert0], [1, twoDimVert0]
  34500. ];
  34501. var whiteTable1 = [
  34502. [-1, -1], // 00000
  34503. [12, ccittEOL], // 00001
  34504. [-1, -1], [-1, -1], // 0001x
  34505. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  34506. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  34507. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  34508. [11, 1792], [11, 1792], // 1000x
  34509. [12, 1984], // 10010
  34510. [12, 2048], // 10011
  34511. [12, 2112], // 10100
  34512. [12, 2176], // 10101
  34513. [12, 2240], // 10110
  34514. [12, 2304], // 10111
  34515. [11, 1856], [11, 1856], // 1100x
  34516. [11, 1920], [11, 1920], // 1101x
  34517. [12, 2368], // 11100
  34518. [12, 2432], // 11101
  34519. [12, 2496], // 11110
  34520. [12, 2560] // 11111
  34521. ];
  34522. var whiteTable2 = [
  34523. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  34524. [8, 29], [8, 29], // 00000010x
  34525. [8, 30], [8, 30], // 00000011x
  34526. [8, 45], [8, 45], // 00000100x
  34527. [8, 46], [8, 46], // 00000101x
  34528. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  34529. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  34530. [8, 47], [8, 47], // 00001010x
  34531. [8, 48], [8, 48], // 00001011x
  34532. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  34533. [6, 13], [6, 13], [6, 13], [6, 13],
  34534. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  34535. [8, 33], [8, 33], // 00010010x
  34536. [8, 34], [8, 34], // 00010011x
  34537. [8, 35], [8, 35], // 00010100x
  34538. [8, 36], [8, 36], // 00010101x
  34539. [8, 37], [8, 37], // 00010110x
  34540. [8, 38], [8, 38], // 00010111x
  34541. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  34542. [8, 31], [8, 31], // 00011010x
  34543. [8, 32], [8, 32], // 00011011x
  34544. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  34545. [6, 1], [6, 1], [6, 1], [6, 1],
  34546. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  34547. [6, 12], [6, 12], [6, 12], [6, 12],
  34548. [8, 53], [8, 53], // 00100100x
  34549. [8, 54], [8, 54], // 00100101x
  34550. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  34551. [8, 39], [8, 39], // 00101000x
  34552. [8, 40], [8, 40], // 00101001x
  34553. [8, 41], [8, 41], // 00101010x
  34554. [8, 42], [8, 42], // 00101011x
  34555. [8, 43], [8, 43], // 00101100x
  34556. [8, 44], [8, 44], // 00101101x
  34557. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  34558. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  34559. [8, 61], [8, 61], // 00110010x
  34560. [8, 62], [8, 62], // 00110011x
  34561. [8, 63], [8, 63], // 00110100x
  34562. [8, 0], [8, 0], // 00110101x
  34563. [8, 320], [8, 320], // 00110110x
  34564. [8, 384], [8, 384], // 00110111x
  34565. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  34566. [5, 10], [5, 10], [5, 10], [5, 10],
  34567. [5, 10], [5, 10], [5, 10], [5, 10],
  34568. [5, 10], [5, 10], [5, 10], [5, 10],
  34569. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  34570. [5, 11], [5, 11], [5, 11], [5, 11],
  34571. [5, 11], [5, 11], [5, 11], [5, 11],
  34572. [5, 11], [5, 11], [5, 11], [5, 11],
  34573. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  34574. [8, 59], [8, 59], // 01001010x
  34575. [8, 60], [8, 60], // 01001011x
  34576. [9, 1472], // 010011000
  34577. [9, 1536], // 010011001
  34578. [9, 1600], // 010011010
  34579. [9, 1728], // 010011011
  34580. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  34581. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  34582. [8, 49], [8, 49], // 01010010x
  34583. [8, 50], [8, 50], // 01010011x
  34584. [8, 51], [8, 51], // 01010100x
  34585. [8, 52], [8, 52], // 01010101x
  34586. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  34587. [8, 55], [8, 55], // 01011000x
  34588. [8, 56], [8, 56], // 01011001x
  34589. [8, 57], [8, 57], // 01011010x
  34590. [8, 58], [8, 58], // 01011011x
  34591. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  34592. [6, 192], [6, 192], [6, 192], [6, 192],
  34593. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  34594. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  34595. [8, 448], [8, 448], // 01100100x
  34596. [8, 512], [8, 512], // 01100101x
  34597. [9, 704], // 011001100
  34598. [9, 768], // 011001101
  34599. [8, 640], [8, 640], // 01100111x
  34600. [8, 576], [8, 576], // 01101000x
  34601. [9, 832], // 011010010
  34602. [9, 896], // 011010011
  34603. [9, 960], // 011010100
  34604. [9, 1024], // 011010101
  34605. [9, 1088], // 011010110
  34606. [9, 1152], // 011010111
  34607. [9, 1216], // 011011000
  34608. [9, 1280], // 011011001
  34609. [9, 1344], // 011011010
  34610. [9, 1408], // 011011011
  34611. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  34612. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  34613. [4, 2], [4, 2], [4, 2], [4, 2],
  34614. [4, 2], [4, 2], [4, 2], [4, 2],
  34615. [4, 2], [4, 2], [4, 2], [4, 2],
  34616. [4, 2], [4, 2], [4, 2], [4, 2],
  34617. [4, 2], [4, 2], [4, 2], [4, 2],
  34618. [4, 2], [4, 2], [4, 2], [4, 2],
  34619. [4, 2], [4, 2], [4, 2], [4, 2],
  34620. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  34621. [4, 3], [4, 3], [4, 3], [4, 3],
  34622. [4, 3], [4, 3], [4, 3], [4, 3],
  34623. [4, 3], [4, 3], [4, 3], [4, 3],
  34624. [4, 3], [4, 3], [4, 3], [4, 3],
  34625. [4, 3], [4, 3], [4, 3], [4, 3],
  34626. [4, 3], [4, 3], [4, 3], [4, 3],
  34627. [4, 3], [4, 3], [4, 3], [4, 3],
  34628. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  34629. [5, 128], [5, 128], [5, 128], [5, 128],
  34630. [5, 128], [5, 128], [5, 128], [5, 128],
  34631. [5, 128], [5, 128], [5, 128], [5, 128],
  34632. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  34633. [5, 8], [5, 8], [5, 8], [5, 8],
  34634. [5, 8], [5, 8], [5, 8], [5, 8],
  34635. [5, 8], [5, 8], [5, 8], [5, 8],
  34636. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  34637. [5, 9], [5, 9], [5, 9], [5, 9],
  34638. [5, 9], [5, 9], [5, 9], [5, 9],
  34639. [5, 9], [5, 9], [5, 9], [5, 9],
  34640. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  34641. [6, 16], [6, 16], [6, 16], [6, 16],
  34642. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  34643. [6, 17], [6, 17], [6, 17], [6, 17],
  34644. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  34645. [4, 4], [4, 4], [4, 4], [4, 4],
  34646. [4, 4], [4, 4], [4, 4], [4, 4],
  34647. [4, 4], [4, 4], [4, 4], [4, 4],
  34648. [4, 4], [4, 4], [4, 4], [4, 4],
  34649. [4, 4], [4, 4], [4, 4], [4, 4],
  34650. [4, 4], [4, 4], [4, 4], [4, 4],
  34651. [4, 4], [4, 4], [4, 4], [4, 4],
  34652. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  34653. [4, 5], [4, 5], [4, 5], [4, 5],
  34654. [4, 5], [4, 5], [4, 5], [4, 5],
  34655. [4, 5], [4, 5], [4, 5], [4, 5],
  34656. [4, 5], [4, 5], [4, 5], [4, 5],
  34657. [4, 5], [4, 5], [4, 5], [4, 5],
  34658. [4, 5], [4, 5], [4, 5], [4, 5],
  34659. [4, 5], [4, 5], [4, 5], [4, 5],
  34660. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  34661. [6, 14], [6, 14], [6, 14], [6, 14],
  34662. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  34663. [6, 15], [6, 15], [6, 15], [6, 15],
  34664. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  34665. [5, 64], [5, 64], [5, 64], [5, 64],
  34666. [5, 64], [5, 64], [5, 64], [5, 64],
  34667. [5, 64], [5, 64], [5, 64], [5, 64],
  34668. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  34669. [4, 6], [4, 6], [4, 6], [4, 6],
  34670. [4, 6], [4, 6], [4, 6], [4, 6],
  34671. [4, 6], [4, 6], [4, 6], [4, 6],
  34672. [4, 6], [4, 6], [4, 6], [4, 6],
  34673. [4, 6], [4, 6], [4, 6], [4, 6],
  34674. [4, 6], [4, 6], [4, 6], [4, 6],
  34675. [4, 6], [4, 6], [4, 6], [4, 6],
  34676. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  34677. [4, 7], [4, 7], [4, 7], [4, 7],
  34678. [4, 7], [4, 7], [4, 7], [4, 7],
  34679. [4, 7], [4, 7], [4, 7], [4, 7],
  34680. [4, 7], [4, 7], [4, 7], [4, 7],
  34681. [4, 7], [4, 7], [4, 7], [4, 7],
  34682. [4, 7], [4, 7], [4, 7], [4, 7],
  34683. [4, 7], [4, 7], [4, 7], [4, 7]
  34684. ];
  34685. var blackTable1 = [
  34686. [-1, -1], [-1, -1], // 000000000000x
  34687. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  34688. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  34689. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  34690. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  34691. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  34692. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  34693. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  34694. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  34695. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  34696. [12, 1984], [12, 1984], // 000000010010x
  34697. [12, 2048], [12, 2048], // 000000010011x
  34698. [12, 2112], [12, 2112], // 000000010100x
  34699. [12, 2176], [12, 2176], // 000000010101x
  34700. [12, 2240], [12, 2240], // 000000010110x
  34701. [12, 2304], [12, 2304], // 000000010111x
  34702. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  34703. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  34704. [12, 2368], [12, 2368], // 000000011100x
  34705. [12, 2432], [12, 2432], // 000000011101x
  34706. [12, 2496], [12, 2496], // 000000011110x
  34707. [12, 2560], [12, 2560], // 000000011111x
  34708. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  34709. [10, 18], [10, 18], [10, 18], [10, 18],
  34710. [12, 52], [12, 52], // 000000100100x
  34711. [13, 640], // 0000001001010
  34712. [13, 704], // 0000001001011
  34713. [13, 768], // 0000001001100
  34714. [13, 832], // 0000001001101
  34715. [12, 55], [12, 55], // 000000100111x
  34716. [12, 56], [12, 56], // 000000101000x
  34717. [13, 1280], // 0000001010010
  34718. [13, 1344], // 0000001010011
  34719. [13, 1408], // 0000001010100
  34720. [13, 1472], // 0000001010101
  34721. [12, 59], [12, 59], // 000000101011x
  34722. [12, 60], [12, 60], // 000000101100x
  34723. [13, 1536], // 0000001011010
  34724. [13, 1600], // 0000001011011
  34725. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  34726. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  34727. [13, 1664], // 0000001100100
  34728. [13, 1728], // 0000001100101
  34729. [12, 320], [12, 320], // 000000110011x
  34730. [12, 384], [12, 384], // 000000110100x
  34731. [12, 448], [12, 448], // 000000110101x
  34732. [13, 512], // 0000001101100
  34733. [13, 576], // 0000001101101
  34734. [12, 53], [12, 53], // 000000110111x
  34735. [12, 54], [12, 54], // 000000111000x
  34736. [13, 896], // 0000001110010
  34737. [13, 960], // 0000001110011
  34738. [13, 1024], // 0000001110100
  34739. [13, 1088], // 0000001110101
  34740. [13, 1152], // 0000001110110
  34741. [13, 1216], // 0000001110111
  34742. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  34743. [10, 64], [10, 64], [10, 64], [10, 64]
  34744. ];
  34745. var blackTable2 = [
  34746. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  34747. [8, 13], [8, 13], [8, 13], [8, 13],
  34748. [8, 13], [8, 13], [8, 13], [8, 13],
  34749. [8, 13], [8, 13], [8, 13], [8, 13],
  34750. [11, 23], [11, 23], // 00000101000x
  34751. [12, 50], // 000001010010
  34752. [12, 51], // 000001010011
  34753. [12, 44], // 000001010100
  34754. [12, 45], // 000001010101
  34755. [12, 46], // 000001010110
  34756. [12, 47], // 000001010111
  34757. [12, 57], // 000001011000
  34758. [12, 58], // 000001011001
  34759. [12, 61], // 000001011010
  34760. [12, 256], // 000001011011
  34761. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  34762. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  34763. [12, 48], // 000001100100
  34764. [12, 49], // 000001100101
  34765. [12, 62], // 000001100110
  34766. [12, 63], // 000001100111
  34767. [12, 30], // 000001101000
  34768. [12, 31], // 000001101001
  34769. [12, 32], // 000001101010
  34770. [12, 33], // 000001101011
  34771. [12, 40], // 000001101100
  34772. [12, 41], // 000001101101
  34773. [11, 22], [11, 22], // 00000110111x
  34774. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  34775. [8, 14], [8, 14], [8, 14], [8, 14],
  34776. [8, 14], [8, 14], [8, 14], [8, 14],
  34777. [8, 14], [8, 14], [8, 14], [8, 14],
  34778. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  34779. [7, 10], [7, 10], [7, 10], [7, 10],
  34780. [7, 10], [7, 10], [7, 10], [7, 10],
  34781. [7, 10], [7, 10], [7, 10], [7, 10],
  34782. [7, 10], [7, 10], [7, 10], [7, 10],
  34783. [7, 10], [7, 10], [7, 10], [7, 10],
  34784. [7, 10], [7, 10], [7, 10], [7, 10],
  34785. [7, 10], [7, 10], [7, 10], [7, 10],
  34786. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  34787. [7, 11], [7, 11], [7, 11], [7, 11],
  34788. [7, 11], [7, 11], [7, 11], [7, 11],
  34789. [7, 11], [7, 11], [7, 11], [7, 11],
  34790. [7, 11], [7, 11], [7, 11], [7, 11],
  34791. [7, 11], [7, 11], [7, 11], [7, 11],
  34792. [7, 11], [7, 11], [7, 11], [7, 11],
  34793. [7, 11], [7, 11], [7, 11], [7, 11],
  34794. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  34795. [9, 15], [9, 15], [9, 15], [9, 15],
  34796. [12, 128], // 000011001000
  34797. [12, 192], // 000011001001
  34798. [12, 26], // 000011001010
  34799. [12, 27], // 000011001011
  34800. [12, 28], // 000011001100
  34801. [12, 29], // 000011001101
  34802. [11, 19], [11, 19], // 00001100111x
  34803. [11, 20], [11, 20], // 00001101000x
  34804. [12, 34], // 000011010010
  34805. [12, 35], // 000011010011
  34806. [12, 36], // 000011010100
  34807. [12, 37], // 000011010101
  34808. [12, 38], // 000011010110
  34809. [12, 39], // 000011010111
  34810. [11, 21], [11, 21], // 00001101100x
  34811. [12, 42], // 000011011010
  34812. [12, 43], // 000011011011
  34813. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  34814. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  34815. [7, 12], [7, 12], [7, 12], [7, 12],
  34816. [7, 12], [7, 12], [7, 12], [7, 12],
  34817. [7, 12], [7, 12], [7, 12], [7, 12],
  34818. [7, 12], [7, 12], [7, 12], [7, 12],
  34819. [7, 12], [7, 12], [7, 12], [7, 12],
  34820. [7, 12], [7, 12], [7, 12], [7, 12],
  34821. [7, 12], [7, 12], [7, 12], [7, 12]
  34822. ];
  34823. var blackTable3 = [
  34824. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  34825. [6, 9], // 000100
  34826. [6, 8], // 000101
  34827. [5, 7], [5, 7], // 00011x
  34828. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  34829. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  34830. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  34831. [3, 1], [3, 1], [3, 1], [3, 1],
  34832. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  34833. [3, 4], [3, 4], [3, 4], [3, 4],
  34834. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  34835. [2, 3], [2, 3], [2, 3], [2, 3],
  34836. [2, 3], [2, 3], [2, 3], [2, 3],
  34837. [2, 3], [2, 3], [2, 3], [2, 3],
  34838. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  34839. [2, 2], [2, 2], [2, 2], [2, 2],
  34840. [2, 2], [2, 2], [2, 2], [2, 2],
  34841. [2, 2], [2, 2], [2, 2], [2, 2]
  34842. ];
  34843. function CCITTFaxStream(str, maybeLength, params) {
  34844. this.str = str;
  34845. this.dict = str.dict;
  34846. params = params || Dict.empty;
  34847. this.encoding = params.get('K') || 0;
  34848. this.eoline = params.get('EndOfLine') || false;
  34849. this.byteAlign = params.get('EncodedByteAlign') || false;
  34850. this.columns = params.get('Columns') || 1728;
  34851. this.rows = params.get('Rows') || 0;
  34852. var eoblock = params.get('EndOfBlock');
  34853. if (eoblock === null || eoblock === undefined) {
  34854. eoblock = true;
  34855. }
  34856. this.eoblock = eoblock;
  34857. this.black = params.get('BlackIs1') || false;
  34858. this.codingLine = new Uint32Array(this.columns + 1);
  34859. this.refLine = new Uint32Array(this.columns + 2);
  34860. this.codingLine[0] = this.columns;
  34861. this.codingPos = 0;
  34862. this.row = 0;
  34863. this.nextLine2D = this.encoding < 0;
  34864. this.inputBits = 0;
  34865. this.inputBuf = 0;
  34866. this.outputBits = 0;
  34867. var code1;
  34868. while ((code1 = this.lookBits(12)) === 0) {
  34869. this.eatBits(1);
  34870. }
  34871. if (code1 == 1) {
  34872. this.eatBits(12);
  34873. }
  34874. if (this.encoding > 0) {
  34875. this.nextLine2D = !this.lookBits(1);
  34876. this.eatBits(1);
  34877. }
  34878. DecodeStream.call(this, maybeLength);
  34879. }
  34880. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  34881. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  34882. while (!this.eof) {
  34883. var c = this.lookChar();
  34884. this.ensureBuffer(this.bufferLength + 1);
  34885. this.buffer[this.bufferLength++] = c;
  34886. }
  34887. };
  34888. CCITTFaxStream.prototype.addPixels =
  34889. function ccittFaxStreamAddPixels(a1, blackPixels) {
  34890. var codingLine = this.codingLine;
  34891. var codingPos = this.codingPos;
  34892. if (a1 > codingLine[codingPos]) {
  34893. if (a1 > this.columns) {
  34894. info('row is wrong length');
  34895. this.err = true;
  34896. a1 = this.columns;
  34897. }
  34898. if ((codingPos & 1) ^ blackPixels) {
  34899. ++codingPos;
  34900. }
  34901. codingLine[codingPos] = a1;
  34902. }
  34903. this.codingPos = codingPos;
  34904. };
  34905. CCITTFaxStream.prototype.addPixelsNeg =
  34906. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  34907. var codingLine = this.codingLine;
  34908. var codingPos = this.codingPos;
  34909. if (a1 > codingLine[codingPos]) {
  34910. if (a1 > this.columns) {
  34911. info('row is wrong length');
  34912. this.err = true;
  34913. a1 = this.columns;
  34914. }
  34915. if ((codingPos & 1) ^ blackPixels) {
  34916. ++codingPos;
  34917. }
  34918. codingLine[codingPos] = a1;
  34919. } else if (a1 < codingLine[codingPos]) {
  34920. if (a1 < 0) {
  34921. info('invalid code');
  34922. this.err = true;
  34923. a1 = 0;
  34924. }
  34925. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  34926. --codingPos;
  34927. }
  34928. codingLine[codingPos] = a1;
  34929. }
  34930. this.codingPos = codingPos;
  34931. };
  34932. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  34933. var refLine = this.refLine;
  34934. var codingLine = this.codingLine;
  34935. var columns = this.columns;
  34936. var refPos, blackPixels, bits, i;
  34937. if (this.outputBits === 0) {
  34938. if (this.eof) {
  34939. return null;
  34940. }
  34941. this.err = false;
  34942. var code1, code2, code3;
  34943. if (this.nextLine2D) {
  34944. for (i = 0; codingLine[i] < columns; ++i) {
  34945. refLine[i] = codingLine[i];
  34946. }
  34947. refLine[i++] = columns;
  34948. refLine[i] = columns;
  34949. codingLine[0] = 0;
  34950. this.codingPos = 0;
  34951. refPos = 0;
  34952. blackPixels = 0;
  34953. while (codingLine[this.codingPos] < columns) {
  34954. code1 = this.getTwoDimCode();
  34955. switch (code1) {
  34956. case twoDimPass:
  34957. this.addPixels(refLine[refPos + 1], blackPixels);
  34958. if (refLine[refPos + 1] < columns) {
  34959. refPos += 2;
  34960. }
  34961. break;
  34962. case twoDimHoriz:
  34963. code1 = code2 = 0;
  34964. if (blackPixels) {
  34965. do {
  34966. code1 += (code3 = this.getBlackCode());
  34967. } while (code3 >= 64);
  34968. do {
  34969. code2 += (code3 = this.getWhiteCode());
  34970. } while (code3 >= 64);
  34971. } else {
  34972. do {
  34973. code1 += (code3 = this.getWhiteCode());
  34974. } while (code3 >= 64);
  34975. do {
  34976. code2 += (code3 = this.getBlackCode());
  34977. } while (code3 >= 64);
  34978. }
  34979. this.addPixels(codingLine[this.codingPos] +
  34980. code1, blackPixels);
  34981. if (codingLine[this.codingPos] < columns) {
  34982. this.addPixels(codingLine[this.codingPos] + code2,
  34983. blackPixels ^ 1);
  34984. }
  34985. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34986. refLine[refPos] < columns) {
  34987. refPos += 2;
  34988. }
  34989. break;
  34990. case twoDimVertR3:
  34991. this.addPixels(refLine[refPos] + 3, blackPixels);
  34992. blackPixels ^= 1;
  34993. if (codingLine[this.codingPos] < columns) {
  34994. ++refPos;
  34995. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34996. refLine[refPos] < columns) {
  34997. refPos += 2;
  34998. }
  34999. }
  35000. break;
  35001. case twoDimVertR2:
  35002. this.addPixels(refLine[refPos] + 2, blackPixels);
  35003. blackPixels ^= 1;
  35004. if (codingLine[this.codingPos] < columns) {
  35005. ++refPos;
  35006. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35007. refLine[refPos] < columns) {
  35008. refPos += 2;
  35009. }
  35010. }
  35011. break;
  35012. case twoDimVertR1:
  35013. this.addPixels(refLine[refPos] + 1, blackPixels);
  35014. blackPixels ^= 1;
  35015. if (codingLine[this.codingPos] < columns) {
  35016. ++refPos;
  35017. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35018. refLine[refPos] < columns) {
  35019. refPos += 2;
  35020. }
  35021. }
  35022. break;
  35023. case twoDimVert0:
  35024. this.addPixels(refLine[refPos], blackPixels);
  35025. blackPixels ^= 1;
  35026. if (codingLine[this.codingPos] < columns) {
  35027. ++refPos;
  35028. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35029. refLine[refPos] < columns) {
  35030. refPos += 2;
  35031. }
  35032. }
  35033. break;
  35034. case twoDimVertL3:
  35035. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  35036. blackPixels ^= 1;
  35037. if (codingLine[this.codingPos] < columns) {
  35038. if (refPos > 0) {
  35039. --refPos;
  35040. } else {
  35041. ++refPos;
  35042. }
  35043. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35044. refLine[refPos] < columns) {
  35045. refPos += 2;
  35046. }
  35047. }
  35048. break;
  35049. case twoDimVertL2:
  35050. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  35051. blackPixels ^= 1;
  35052. if (codingLine[this.codingPos] < columns) {
  35053. if (refPos > 0) {
  35054. --refPos;
  35055. } else {
  35056. ++refPos;
  35057. }
  35058. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35059. refLine[refPos] < columns) {
  35060. refPos += 2;
  35061. }
  35062. }
  35063. break;
  35064. case twoDimVertL1:
  35065. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  35066. blackPixels ^= 1;
  35067. if (codingLine[this.codingPos] < columns) {
  35068. if (refPos > 0) {
  35069. --refPos;
  35070. } else {
  35071. ++refPos;
  35072. }
  35073. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35074. refLine[refPos] < columns) {
  35075. refPos += 2;
  35076. }
  35077. }
  35078. break;
  35079. case EOF:
  35080. this.addPixels(columns, 0);
  35081. this.eof = true;
  35082. break;
  35083. default:
  35084. info('bad 2d code');
  35085. this.addPixels(columns, 0);
  35086. this.err = true;
  35087. }
  35088. }
  35089. } else {
  35090. codingLine[0] = 0;
  35091. this.codingPos = 0;
  35092. blackPixels = 0;
  35093. while (codingLine[this.codingPos] < columns) {
  35094. code1 = 0;
  35095. if (blackPixels) {
  35096. do {
  35097. code1 += (code3 = this.getBlackCode());
  35098. } while (code3 >= 64);
  35099. } else {
  35100. do {
  35101. code1 += (code3 = this.getWhiteCode());
  35102. } while (code3 >= 64);
  35103. }
  35104. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  35105. blackPixels ^= 1;
  35106. }
  35107. }
  35108. if (this.byteAlign) {
  35109. this.inputBits &= ~7;
  35110. }
  35111. var gotEOL = false;
  35112. if (!this.eoblock && this.row == this.rows - 1) {
  35113. this.eof = true;
  35114. } else {
  35115. code1 = this.lookBits(12);
  35116. while (code1 === 0) {
  35117. this.eatBits(1);
  35118. code1 = this.lookBits(12);
  35119. }
  35120. if (code1 == 1) {
  35121. this.eatBits(12);
  35122. gotEOL = true;
  35123. } else if (code1 == EOF) {
  35124. this.eof = true;
  35125. }
  35126. }
  35127. if (!this.eof && this.encoding > 0) {
  35128. this.nextLine2D = !this.lookBits(1);
  35129. this.eatBits(1);
  35130. }
  35131. if (this.eoblock && gotEOL) {
  35132. code1 = this.lookBits(12);
  35133. if (code1 == 1) {
  35134. this.eatBits(12);
  35135. if (this.encoding > 0) {
  35136. this.lookBits(1);
  35137. this.eatBits(1);
  35138. }
  35139. if (this.encoding >= 0) {
  35140. for (i = 0; i < 4; ++i) {
  35141. code1 = this.lookBits(12);
  35142. if (code1 != 1) {
  35143. info('bad rtc code: ' + code1);
  35144. }
  35145. this.eatBits(12);
  35146. if (this.encoding > 0) {
  35147. this.lookBits(1);
  35148. this.eatBits(1);
  35149. }
  35150. }
  35151. }
  35152. this.eof = true;
  35153. }
  35154. } else if (this.err && this.eoline) {
  35155. while (true) {
  35156. code1 = this.lookBits(13);
  35157. if (code1 == EOF) {
  35158. this.eof = true;
  35159. return null;
  35160. }
  35161. if ((code1 >> 1) == 1) {
  35162. break;
  35163. }
  35164. this.eatBits(1);
  35165. }
  35166. this.eatBits(12);
  35167. if (this.encoding > 0) {
  35168. this.eatBits(1);
  35169. this.nextLine2D = !(code1 & 1);
  35170. }
  35171. }
  35172. if (codingLine[0] > 0) {
  35173. this.outputBits = codingLine[this.codingPos = 0];
  35174. } else {
  35175. this.outputBits = codingLine[this.codingPos = 1];
  35176. }
  35177. this.row++;
  35178. }
  35179. var c;
  35180. if (this.outputBits >= 8) {
  35181. c = (this.codingPos & 1) ? 0 : 0xFF;
  35182. this.outputBits -= 8;
  35183. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  35184. this.codingPos++;
  35185. this.outputBits = (codingLine[this.codingPos] -
  35186. codingLine[this.codingPos - 1]);
  35187. }
  35188. } else {
  35189. bits = 8;
  35190. c = 0;
  35191. do {
  35192. if (this.outputBits > bits) {
  35193. c <<= bits;
  35194. if (!(this.codingPos & 1)) {
  35195. c |= 0xFF >> (8 - bits);
  35196. }
  35197. this.outputBits -= bits;
  35198. bits = 0;
  35199. } else {
  35200. c <<= this.outputBits;
  35201. if (!(this.codingPos & 1)) {
  35202. c |= 0xFF >> (8 - this.outputBits);
  35203. }
  35204. bits -= this.outputBits;
  35205. this.outputBits = 0;
  35206. if (codingLine[this.codingPos] < columns) {
  35207. this.codingPos++;
  35208. this.outputBits = (codingLine[this.codingPos] -
  35209. codingLine[this.codingPos - 1]);
  35210. } else if (bits > 0) {
  35211. c <<= bits;
  35212. bits = 0;
  35213. }
  35214. }
  35215. } while (bits);
  35216. }
  35217. if (this.black) {
  35218. c ^= 0xFF;
  35219. }
  35220. return c;
  35221. };
  35222. // This functions returns the code found from the table.
  35223. // The start and end parameters set the boundaries for searching the table.
  35224. // The limit parameter is optional. Function returns an array with three
  35225. // values. The first array element indicates whether a valid code is being
  35226. // returned. The second array element is the actual code. The third array
  35227. // element indicates whether EOF was reached.
  35228. CCITTFaxStream.prototype.findTableCode =
  35229. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  35230. var limitValue = limit || 0;
  35231. for (var i = start; i <= end; ++i) {
  35232. var code = this.lookBits(i);
  35233. if (code == EOF) {
  35234. return [true, 1, false];
  35235. }
  35236. if (i < end) {
  35237. code <<= end - i;
  35238. }
  35239. if (!limitValue || code >= limitValue) {
  35240. var p = table[code - limitValue];
  35241. if (p[0] == i) {
  35242. this.eatBits(i);
  35243. return [true, p[1], true];
  35244. }
  35245. }
  35246. }
  35247. return [false, 0, false];
  35248. };
  35249. CCITTFaxStream.prototype.getTwoDimCode =
  35250. function ccittFaxStreamGetTwoDimCode() {
  35251. var code = 0;
  35252. var p;
  35253. if (this.eoblock) {
  35254. code = this.lookBits(7);
  35255. p = twoDimTable[code];
  35256. if (p && p[0] > 0) {
  35257. this.eatBits(p[0]);
  35258. return p[1];
  35259. }
  35260. } else {
  35261. var result = this.findTableCode(1, 7, twoDimTable);
  35262. if (result[0] && result[2]) {
  35263. return result[1];
  35264. }
  35265. }
  35266. info('Bad two dim code');
  35267. return EOF;
  35268. };
  35269. CCITTFaxStream.prototype.getWhiteCode =
  35270. function ccittFaxStreamGetWhiteCode() {
  35271. var code = 0;
  35272. var p;
  35273. if (this.eoblock) {
  35274. code = this.lookBits(12);
  35275. if (code == EOF) {
  35276. return 1;
  35277. }
  35278. if ((code >> 5) === 0) {
  35279. p = whiteTable1[code];
  35280. } else {
  35281. p = whiteTable2[code >> 3];
  35282. }
  35283. if (p[0] > 0) {
  35284. this.eatBits(p[0]);
  35285. return p[1];
  35286. }
  35287. } else {
  35288. var result = this.findTableCode(1, 9, whiteTable2);
  35289. if (result[0]) {
  35290. return result[1];
  35291. }
  35292. result = this.findTableCode(11, 12, whiteTable1);
  35293. if (result[0]) {
  35294. return result[1];
  35295. }
  35296. }
  35297. info('bad white code');
  35298. this.eatBits(1);
  35299. return 1;
  35300. };
  35301. CCITTFaxStream.prototype.getBlackCode =
  35302. function ccittFaxStreamGetBlackCode() {
  35303. var code, p;
  35304. if (this.eoblock) {
  35305. code = this.lookBits(13);
  35306. if (code == EOF) {
  35307. return 1;
  35308. }
  35309. if ((code >> 7) === 0) {
  35310. p = blackTable1[code];
  35311. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  35312. p = blackTable2[(code >> 1) - 64];
  35313. } else {
  35314. p = blackTable3[code >> 7];
  35315. }
  35316. if (p[0] > 0) {
  35317. this.eatBits(p[0]);
  35318. return p[1];
  35319. }
  35320. } else {
  35321. var result = this.findTableCode(2, 6, blackTable3);
  35322. if (result[0]) {
  35323. return result[1];
  35324. }
  35325. result = this.findTableCode(7, 12, blackTable2, 64);
  35326. if (result[0]) {
  35327. return result[1];
  35328. }
  35329. result = this.findTableCode(10, 13, blackTable1);
  35330. if (result[0]) {
  35331. return result[1];
  35332. }
  35333. }
  35334. info('bad black code');
  35335. this.eatBits(1);
  35336. return 1;
  35337. };
  35338. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  35339. var c;
  35340. while (this.inputBits < n) {
  35341. if ((c = this.str.getByte()) === -1) {
  35342. if (this.inputBits === 0) {
  35343. return EOF;
  35344. }
  35345. return ((this.inputBuf << (n - this.inputBits)) &
  35346. (0xFFFF >> (16 - n)));
  35347. }
  35348. this.inputBuf = (this.inputBuf << 8) + c;
  35349. this.inputBits += 8;
  35350. }
  35351. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  35352. };
  35353. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  35354. if ((this.inputBits -= n) < 0) {
  35355. this.inputBits = 0;
  35356. }
  35357. };
  35358. return CCITTFaxStream;
  35359. })();
  35360. var LZWStream = (function LZWStreamClosure() {
  35361. function LZWStream(str, maybeLength, earlyChange) {
  35362. this.str = str;
  35363. this.dict = str.dict;
  35364. this.cachedData = 0;
  35365. this.bitsCached = 0;
  35366. var maxLzwDictionarySize = 4096;
  35367. var lzwState = {
  35368. earlyChange: earlyChange,
  35369. codeLength: 9,
  35370. nextCode: 258,
  35371. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  35372. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  35373. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  35374. currentSequence: new Uint8Array(maxLzwDictionarySize),
  35375. currentSequenceLength: 0
  35376. };
  35377. for (var i = 0; i < 256; ++i) {
  35378. lzwState.dictionaryValues[i] = i;
  35379. lzwState.dictionaryLengths[i] = 1;
  35380. }
  35381. this.lzwState = lzwState;
  35382. DecodeStream.call(this, maybeLength);
  35383. }
  35384. LZWStream.prototype = Object.create(DecodeStream.prototype);
  35385. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  35386. var bitsCached = this.bitsCached;
  35387. var cachedData = this.cachedData;
  35388. while (bitsCached < n) {
  35389. var c = this.str.getByte();
  35390. if (c === -1) {
  35391. this.eof = true;
  35392. return null;
  35393. }
  35394. cachedData = (cachedData << 8) | c;
  35395. bitsCached += 8;
  35396. }
  35397. this.bitsCached = (bitsCached -= n);
  35398. this.cachedData = cachedData;
  35399. this.lastCode = null;
  35400. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  35401. };
  35402. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  35403. var blockSize = 512;
  35404. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  35405. var i, j, q;
  35406. var lzwState = this.lzwState;
  35407. if (!lzwState) {
  35408. return; // eof was found
  35409. }
  35410. var earlyChange = lzwState.earlyChange;
  35411. var nextCode = lzwState.nextCode;
  35412. var dictionaryValues = lzwState.dictionaryValues;
  35413. var dictionaryLengths = lzwState.dictionaryLengths;
  35414. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  35415. var codeLength = lzwState.codeLength;
  35416. var prevCode = lzwState.prevCode;
  35417. var currentSequence = lzwState.currentSequence;
  35418. var currentSequenceLength = lzwState.currentSequenceLength;
  35419. var decodedLength = 0;
  35420. var currentBufferLength = this.bufferLength;
  35421. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35422. for (i = 0; i < blockSize; i++) {
  35423. var code = this.readBits(codeLength);
  35424. var hasPrev = currentSequenceLength > 0;
  35425. if (code < 256) {
  35426. currentSequence[0] = code;
  35427. currentSequenceLength = 1;
  35428. } else if (code >= 258) {
  35429. if (code < nextCode) {
  35430. currentSequenceLength = dictionaryLengths[code];
  35431. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  35432. currentSequence[j] = dictionaryValues[q];
  35433. q = dictionaryPrevCodes[q];
  35434. }
  35435. } else {
  35436. currentSequence[currentSequenceLength++] = currentSequence[0];
  35437. }
  35438. } else if (code == 256) {
  35439. codeLength = 9;
  35440. nextCode = 258;
  35441. currentSequenceLength = 0;
  35442. continue;
  35443. } else {
  35444. this.eof = true;
  35445. delete this.lzwState;
  35446. break;
  35447. }
  35448. if (hasPrev) {
  35449. dictionaryPrevCodes[nextCode] = prevCode;
  35450. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  35451. dictionaryValues[nextCode] = currentSequence[0];
  35452. nextCode++;
  35453. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  35454. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  35455. 0.6931471805599453 + 1, 12) | 0;
  35456. }
  35457. prevCode = code;
  35458. decodedLength += currentSequenceLength;
  35459. if (estimatedDecodedSize < decodedLength) {
  35460. do {
  35461. estimatedDecodedSize += decodedSizeDelta;
  35462. } while (estimatedDecodedSize < decodedLength);
  35463. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35464. }
  35465. for (j = 0; j < currentSequenceLength; j++) {
  35466. buffer[currentBufferLength++] = currentSequence[j];
  35467. }
  35468. }
  35469. lzwState.nextCode = nextCode;
  35470. lzwState.codeLength = codeLength;
  35471. lzwState.prevCode = prevCode;
  35472. lzwState.currentSequenceLength = currentSequenceLength;
  35473. this.bufferLength = currentBufferLength;
  35474. };
  35475. return LZWStream;
  35476. })();
  35477. var NullStream = (function NullStreamClosure() {
  35478. function NullStream() {
  35479. Stream.call(this, new Uint8Array(0));
  35480. }
  35481. NullStream.prototype = Stream.prototype;
  35482. return NullStream;
  35483. })();
  35484. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  35485. setup: function wphSetup(handler) {
  35486. var pdfManager;
  35487. function loadDocument(recoveryMode) {
  35488. var loadDocumentCapability = createPromiseCapability();
  35489. var parseSuccess = function parseSuccess() {
  35490. var numPagesPromise = pdfManager.ensureDoc('numPages');
  35491. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  35492. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  35493. Promise.all([numPagesPromise, fingerprintPromise,
  35494. encryptedPromise]).then(function onDocReady(results) {
  35495. var doc = {
  35496. numPages: results[0],
  35497. fingerprint: results[1],
  35498. encrypted: !!results[2],
  35499. };
  35500. loadDocumentCapability.resolve(doc);
  35501. },
  35502. parseFailure);
  35503. };
  35504. var parseFailure = function parseFailure(e) {
  35505. loadDocumentCapability.reject(e);
  35506. };
  35507. pdfManager.ensureDoc('checkHeader', []).then(function() {
  35508. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  35509. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  35510. parseSuccess, parseFailure);
  35511. }, parseFailure);
  35512. }, parseFailure);
  35513. return loadDocumentCapability.promise;
  35514. }
  35515. function getPdfManager(data) {
  35516. var pdfManagerCapability = createPromiseCapability();
  35517. var source = data.source;
  35518. var disableRange = data.disableRange;
  35519. if (source.data) {
  35520. try {
  35521. pdfManager = new LocalPdfManager(source.data, source.password);
  35522. pdfManagerCapability.resolve();
  35523. } catch (ex) {
  35524. pdfManagerCapability.reject(ex);
  35525. }
  35526. return pdfManagerCapability.promise;
  35527. } else if (source.chunkedViewerLoading) {
  35528. try {
  35529. pdfManager = new NetworkPdfManager(source, handler);
  35530. pdfManagerCapability.resolve();
  35531. } catch (ex) {
  35532. pdfManagerCapability.reject(ex);
  35533. }
  35534. return pdfManagerCapability.promise;
  35535. }
  35536. var networkManager = new NetworkManager(source.url, {
  35537. httpHeaders: source.httpHeaders,
  35538. withCredentials: source.withCredentials
  35539. });
  35540. var fullRequestXhrId = networkManager.requestFull({
  35541. onHeadersReceived: function onHeadersReceived() {
  35542. if (disableRange) {
  35543. return;
  35544. }
  35545. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  35546. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  35547. return;
  35548. }
  35549. var contentEncoding =
  35550. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  35551. if (contentEncoding !== 'identity') {
  35552. return;
  35553. }
  35554. var length = fullRequestXhr.getResponseHeader('Content-Length');
  35555. length = parseInt(length, 10);
  35556. if (!isInt(length)) {
  35557. return;
  35558. }
  35559. source.length = length;
  35560. if (length <= 2 * RANGE_CHUNK_SIZE) {
  35561. // The file size is smaller than the size of two chunks, so it does
  35562. // not make any sense to abort the request and retry with a range
  35563. // request.
  35564. return;
  35565. }
  35566. // NOTE: by cancelling the full request, and then issuing range
  35567. // requests, there will be an issue for sites where you can only
  35568. // request the pdf once. However, if this is the case, then the
  35569. // server should not be returning that it can support range requests.
  35570. networkManager.abortRequest(fullRequestXhrId);
  35571. try {
  35572. pdfManager = new NetworkPdfManager(source, handler);
  35573. pdfManagerCapability.resolve(pdfManager);
  35574. } catch (ex) {
  35575. pdfManagerCapability.reject(ex);
  35576. }
  35577. },
  35578. onDone: function onDone(args) {
  35579. // the data is array, instantiating directly from it
  35580. try {
  35581. pdfManager = new LocalPdfManager(args.chunk, source.password);
  35582. pdfManagerCapability.resolve();
  35583. } catch (ex) {
  35584. pdfManagerCapability.reject(ex);
  35585. }
  35586. },
  35587. onError: function onError(status) {
  35588. if (status == 404) {
  35589. var exception = new MissingPDFException('Missing PDF "' +
  35590. source.url + '".');
  35591. handler.send('MissingPDF', { exception: exception });
  35592. } else {
  35593. handler.send('DocError', 'Unexpected server response (' +
  35594. status + ') while retrieving PDF "' +
  35595. source.url + '".');
  35596. }
  35597. },
  35598. onProgress: function onProgress(evt) {
  35599. handler.send('DocProgress', {
  35600. loaded: evt.loaded,
  35601. total: evt.lengthComputable ? evt.total : source.length
  35602. });
  35603. }
  35604. });
  35605. return pdfManagerCapability.promise;
  35606. }
  35607. handler.on('test', function wphSetupTest(data) {
  35608. // check if Uint8Array can be sent to worker
  35609. if (!(data instanceof Uint8Array)) {
  35610. handler.send('test', false);
  35611. return;
  35612. }
  35613. // making sure postMessage transfers are working
  35614. var supportTransfers = data[0] === 255;
  35615. handler.postMessageTransfers = supportTransfers;
  35616. // check if the response property is supported by xhr
  35617. var xhr = new XMLHttpRequest();
  35618. var responseExists = 'response' in xhr;
  35619. // check if the property is actually implemented
  35620. try {
  35621. var dummy = xhr.responseType;
  35622. } catch (e) {
  35623. responseExists = false;
  35624. }
  35625. if (!responseExists) {
  35626. handler.send('test', false);
  35627. return;
  35628. }
  35629. handler.send('test', {
  35630. supportTypedArray: true,
  35631. supportTransfers: supportTransfers
  35632. });
  35633. });
  35634. handler.on('GetDocRequest', function wphSetupDoc(data) {
  35635. var onSuccess = function(doc) {
  35636. handler.send('GetDoc', { pdfInfo: doc });
  35637. };
  35638. var onFailure = function(e) {
  35639. if (e instanceof PasswordException) {
  35640. if (e.code === PasswordResponses.NEED_PASSWORD) {
  35641. handler.send('NeedPassword', {
  35642. exception: e
  35643. });
  35644. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  35645. handler.send('IncorrectPassword', {
  35646. exception: e
  35647. });
  35648. }
  35649. } else if (e instanceof InvalidPDFException) {
  35650. handler.send('InvalidPDF', {
  35651. exception: e
  35652. });
  35653. } else if (e instanceof MissingPDFException) {
  35654. handler.send('MissingPDF', {
  35655. exception: e
  35656. });
  35657. } else {
  35658. handler.send('UnknownError', {
  35659. exception: new UnknownErrorException(e.message, e.toString())
  35660. });
  35661. }
  35662. };
  35663. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  35664. -1 : data.maxImageSize;
  35665. PDFJS.disableFontFace = data.disableFontFace;
  35666. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  35667. PDFJS.verbosity = data.verbosity;
  35668. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  35669. null : data.cMapUrl;
  35670. PDFJS.cMapPacked = data.cMapPacked === true;
  35671. getPdfManager(data).then(function () {
  35672. pdfManager.onLoadedStream().then(function(stream) {
  35673. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  35674. });
  35675. }).then(function pdfManagerReady() {
  35676. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  35677. // Try again with recoveryMode == true
  35678. if (!(ex instanceof XRefParseException)) {
  35679. if (ex instanceof PasswordException) {
  35680. // after password exception prepare to receive a new password
  35681. // to repeat loading
  35682. pdfManager.passwordChanged().then(pdfManagerReady);
  35683. }
  35684. onFailure(ex);
  35685. return;
  35686. }
  35687. pdfManager.requestLoadedStream();
  35688. pdfManager.onLoadedStream().then(function() {
  35689. loadDocument(true).then(onSuccess, onFailure);
  35690. });
  35691. }, onFailure);
  35692. }, onFailure);
  35693. });
  35694. handler.on('GetPageRequest', function wphSetupGetPage(data) {
  35695. var pageIndex = data.pageIndex;
  35696. pdfManager.getPage(pageIndex).then(function(page) {
  35697. var rotatePromise = pdfManager.ensure(page, 'rotate');
  35698. var refPromise = pdfManager.ensure(page, 'ref');
  35699. var viewPromise = pdfManager.ensure(page, 'view');
  35700. Promise.all([rotatePromise, refPromise, viewPromise]).then(
  35701. function(results) {
  35702. var page = {
  35703. pageIndex: data.pageIndex,
  35704. rotate: results[0],
  35705. ref: results[1],
  35706. view: results[2]
  35707. };
  35708. handler.send('GetPage', { pageInfo: page });
  35709. });
  35710. });
  35711. });
  35712. handler.on('GetPageIndex', function wphSetupGetPageIndex(data, deferred) {
  35713. var ref = new Ref(data.ref.num, data.ref.gen);
  35714. var catalog = pdfManager.pdfDocument.catalog;
  35715. catalog.getPageIndex(ref).then(function (pageIndex) {
  35716. deferred.resolve(pageIndex);
  35717. }, deferred.reject);
  35718. });
  35719. handler.on('GetDestinations',
  35720. function wphSetupGetDestinations(data, deferred) {
  35721. pdfManager.ensureCatalog('destinations').then(function(destinations) {
  35722. deferred.resolve(destinations);
  35723. });
  35724. }
  35725. );
  35726. handler.on('GetAttachments',
  35727. function wphSetupGetAttachments(data, deferred) {
  35728. pdfManager.ensureCatalog('attachments').then(function(attachments) {
  35729. deferred.resolve(attachments);
  35730. }, deferred.reject);
  35731. }
  35732. );
  35733. handler.on('GetJavaScript',
  35734. function wphSetupGetJavaScript(data, deferred) {
  35735. pdfManager.ensureCatalog('javaScript').then(function (js) {
  35736. deferred.resolve(js);
  35737. }, deferred.reject);
  35738. }
  35739. );
  35740. handler.on('GetOutline',
  35741. function wphSetupGetOutline(data, deferred) {
  35742. pdfManager.ensureCatalog('documentOutline').then(function (outline) {
  35743. deferred.resolve(outline);
  35744. }, deferred.reject);
  35745. }
  35746. );
  35747. handler.on('GetMetadata',
  35748. function wphSetupGetMetadata(data, deferred) {
  35749. Promise.all([pdfManager.ensureDoc('documentInfo'),
  35750. pdfManager.ensureCatalog('metadata')]).then(
  35751. function (results) {
  35752. deferred.resolve(results);
  35753. }, deferred.reject);
  35754. }
  35755. );
  35756. handler.on('GetData', function wphSetupGetData(data, deferred) {
  35757. pdfManager.requestLoadedStream();
  35758. pdfManager.onLoadedStream().then(function(stream) {
  35759. deferred.resolve(stream.bytes);
  35760. });
  35761. });
  35762. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  35763. pdfManager.updatePassword(data);
  35764. });
  35765. handler.on('GetAnnotationsRequest', function wphSetupGetAnnotations(data) {
  35766. pdfManager.getPage(data.pageIndex).then(function(page) {
  35767. pdfManager.ensure(page, 'getAnnotationsData', []).then(
  35768. function(annotationsData) {
  35769. handler.send('GetAnnotations', {
  35770. pageIndex: data.pageIndex,
  35771. annotations: annotationsData
  35772. });
  35773. }
  35774. );
  35775. });
  35776. });
  35777. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  35778. pdfManager.getPage(data.pageIndex).then(function(page) {
  35779. var pageNum = data.pageIndex + 1;
  35780. var start = Date.now();
  35781. // Pre compile the pdf page and fetch the fonts/images.
  35782. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  35783. info('page=' + pageNum + ' - getOperatorList: time=' +
  35784. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  35785. }, function(e) {
  35786. var minimumStackMessage =
  35787. 'worker.js: while trying to getPage() and getOperatorList()';
  35788. var wrappedException;
  35789. // Turn the error into an obj that can be serialized
  35790. if (typeof e === 'string') {
  35791. wrappedException = {
  35792. message: e,
  35793. stack: minimumStackMessage
  35794. };
  35795. } else if (typeof e === 'object') {
  35796. wrappedException = {
  35797. message: e.message || e.toString(),
  35798. stack: e.stack || minimumStackMessage
  35799. };
  35800. } else {
  35801. wrappedException = {
  35802. message: 'Unknown exception type: ' + (typeof e),
  35803. stack: minimumStackMessage
  35804. };
  35805. }
  35806. handler.send('PageError', {
  35807. pageNum: pageNum,
  35808. error: wrappedException,
  35809. intent: data.intent
  35810. });
  35811. });
  35812. });
  35813. }, this);
  35814. handler.on('GetTextContent', function wphExtractText(data, deferred) {
  35815. pdfManager.getPage(data.pageIndex).then(function(page) {
  35816. var pageNum = data.pageIndex + 1;
  35817. var start = Date.now();
  35818. page.extractTextContent().then(function(textContent) {
  35819. deferred.resolve(textContent);
  35820. info('text indexing: page=' + pageNum + ' - time=' +
  35821. (Date.now() - start) + 'ms');
  35822. }, function (e) {
  35823. // Skip errored pages
  35824. deferred.reject(e);
  35825. });
  35826. });
  35827. });
  35828. handler.on('Cleanup', function wphCleanup(data, deferred) {
  35829. pdfManager.cleanup();
  35830. deferred.resolve(true);
  35831. });
  35832. handler.on('Terminate', function wphTerminate(data, deferred) {
  35833. pdfManager.terminate();
  35834. deferred.resolve();
  35835. });
  35836. }
  35837. };
  35838. var consoleTimer = {};
  35839. var workerConsole = {
  35840. log: function log() {
  35841. var args = Array.prototype.slice.call(arguments);
  35842. globalScope.postMessage({
  35843. action: 'console_log',
  35844. data: args
  35845. });
  35846. },
  35847. error: function error() {
  35848. var args = Array.prototype.slice.call(arguments);
  35849. globalScope.postMessage({
  35850. action: 'console_error',
  35851. data: args
  35852. });
  35853. throw 'pdf.js execution error';
  35854. },
  35855. time: function time(name) {
  35856. consoleTimer[name] = Date.now();
  35857. },
  35858. timeEnd: function timeEnd(name) {
  35859. var time = consoleTimer[name];
  35860. if (!time) {
  35861. error('Unknown timer name ' + name);
  35862. }
  35863. this.log('Timer:', name, Date.now() - time);
  35864. }
  35865. };
  35866. // Worker thread?
  35867. if (typeof window === 'undefined') {
  35868. if (!('console' in globalScope)) {
  35869. globalScope.console = workerConsole;
  35870. }
  35871. // Listen for unsupported features so we can pass them on to the main thread.
  35872. PDFJS.UnsupportedManager.listen(function (msg) {
  35873. globalScope.postMessage({
  35874. action: '_unsupported_feature',
  35875. data: msg
  35876. });
  35877. });
  35878. var handler = new MessageHandler('worker_processor', this);
  35879. WorkerMessageHandler.setup(handler);
  35880. }
  35881. /* This class implements the QM Coder decoding as defined in
  35882. * JPEG 2000 Part I Final Committee Draft Version 1.0
  35883. * Annex C.3 Arithmetic decoding procedure
  35884. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  35885. *
  35886. * The arithmetic decoder is used in conjunction with context models to decode
  35887. * JPEG2000 and JBIG2 streams.
  35888. */
  35889. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  35890. // Table C-2
  35891. var QeTable = [
  35892. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  35893. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  35894. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  35895. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  35896. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  35897. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  35898. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  35899. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  35900. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  35901. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  35902. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  35903. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  35904. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  35905. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  35906. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  35907. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  35908. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  35909. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  35910. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  35911. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  35912. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  35913. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  35914. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  35915. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  35916. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  35917. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  35918. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  35919. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  35920. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  35921. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  35922. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  35923. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  35924. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  35925. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  35926. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  35927. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  35928. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  35929. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  35930. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  35931. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  35932. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  35933. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  35934. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  35935. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  35936. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  35937. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  35938. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  35939. ];
  35940. // C.3.5 Initialisation of the decoder (INITDEC)
  35941. function ArithmeticDecoder(data, start, end) {
  35942. this.data = data;
  35943. this.bp = start;
  35944. this.dataEnd = end;
  35945. this.chigh = data[start];
  35946. this.clow = 0;
  35947. this.byteIn();
  35948. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  35949. this.clow = (this.clow << 7) & 0xFFFF;
  35950. this.ct -= 7;
  35951. this.a = 0x8000;
  35952. }
  35953. ArithmeticDecoder.prototype = {
  35954. // C.3.4 Compressed data input (BYTEIN)
  35955. byteIn: function ArithmeticDecoder_byteIn() {
  35956. var data = this.data;
  35957. var bp = this.bp;
  35958. if (data[bp] == 0xFF) {
  35959. var b1 = data[bp + 1];
  35960. if (b1 > 0x8F) {
  35961. this.clow += 0xFF00;
  35962. this.ct = 8;
  35963. } else {
  35964. bp++;
  35965. this.clow += (data[bp] << 9);
  35966. this.ct = 7;
  35967. this.bp = bp;
  35968. }
  35969. } else {
  35970. bp++;
  35971. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  35972. this.ct = 8;
  35973. this.bp = bp;
  35974. }
  35975. if (this.clow > 0xFFFF) {
  35976. this.chigh += (this.clow >> 16);
  35977. this.clow &= 0xFFFF;
  35978. }
  35979. },
  35980. // C.3.2 Decoding a decision (DECODE)
  35981. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  35982. // contexts are packed into 1 byte:
  35983. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  35984. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  35985. var qeTableIcx = QeTable[cx_index];
  35986. var qeIcx = qeTableIcx.qe;
  35987. var d;
  35988. var a = this.a - qeIcx;
  35989. if (this.chigh < qeIcx) {
  35990. // exchangeLps
  35991. if (a < qeIcx) {
  35992. a = qeIcx;
  35993. d = cx_mps;
  35994. cx_index = qeTableIcx.nmps;
  35995. } else {
  35996. a = qeIcx;
  35997. d = 1 ^ cx_mps;
  35998. if (qeTableIcx.switchFlag === 1) {
  35999. cx_mps = d;
  36000. }
  36001. cx_index = qeTableIcx.nlps;
  36002. }
  36003. } else {
  36004. this.chigh -= qeIcx;
  36005. if ((a & 0x8000) !== 0) {
  36006. this.a = a;
  36007. return cx_mps;
  36008. }
  36009. // exchangeMps
  36010. if (a < qeIcx) {
  36011. d = 1 ^ cx_mps;
  36012. if (qeTableIcx.switchFlag === 1) {
  36013. cx_mps = d;
  36014. }
  36015. cx_index = qeTableIcx.nlps;
  36016. } else {
  36017. d = cx_mps;
  36018. cx_index = qeTableIcx.nmps;
  36019. }
  36020. }
  36021. // C.3.3 renormD;
  36022. do {
  36023. if (this.ct === 0) {
  36024. this.byteIn();
  36025. }
  36026. a <<= 1;
  36027. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  36028. this.clow = (this.clow << 1) & 0xFFFF;
  36029. this.ct--;
  36030. } while ((a & 0x8000) === 0);
  36031. this.a = a;
  36032. contexts[pos] = cx_index << 1 | cx_mps;
  36033. return d;
  36034. }
  36035. };
  36036. return ArithmeticDecoder;
  36037. })();
  36038. var JpegImage = (function jpegImage() {
  36039. var dctZigZag = new Int32Array([
  36040. 0,
  36041. 1, 8,
  36042. 16, 9, 2,
  36043. 3, 10, 17, 24,
  36044. 32, 25, 18, 11, 4,
  36045. 5, 12, 19, 26, 33, 40,
  36046. 48, 41, 34, 27, 20, 13, 6,
  36047. 7, 14, 21, 28, 35, 42, 49, 56,
  36048. 57, 50, 43, 36, 29, 22, 15,
  36049. 23, 30, 37, 44, 51, 58,
  36050. 59, 52, 45, 38, 31,
  36051. 39, 46, 53, 60,
  36052. 61, 54, 47,
  36053. 55, 62,
  36054. 63
  36055. ]);
  36056. var dctCos1 = 4017; // cos(pi/16)
  36057. var dctSin1 = 799; // sin(pi/16)
  36058. var dctCos3 = 3406; // cos(3*pi/16)
  36059. var dctSin3 = 2276; // sin(3*pi/16)
  36060. var dctCos6 = 1567; // cos(6*pi/16)
  36061. var dctSin6 = 3784; // sin(6*pi/16)
  36062. var dctSqrt2 = 5793; // sqrt(2)
  36063. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  36064. function constructor() {
  36065. }
  36066. function buildHuffmanTable(codeLengths, values) {
  36067. var k = 0, code = [], i, j, length = 16;
  36068. while (length > 0 && !codeLengths[length - 1]) {
  36069. length--;
  36070. }
  36071. code.push({children: [], index: 0});
  36072. var p = code[0], q;
  36073. for (i = 0; i < length; i++) {
  36074. for (j = 0; j < codeLengths[i]; j++) {
  36075. p = code.pop();
  36076. p.children[p.index] = values[k];
  36077. while (p.index > 0) {
  36078. p = code.pop();
  36079. }
  36080. p.index++;
  36081. code.push(p);
  36082. while (code.length <= i) {
  36083. code.push(q = {children: [], index: 0});
  36084. p.children[p.index] = q.children;
  36085. p = q;
  36086. }
  36087. k++;
  36088. }
  36089. if (i + 1 < length) {
  36090. // p here points to last code
  36091. code.push(q = {children: [], index: 0});
  36092. p.children[p.index] = q.children;
  36093. p = q;
  36094. }
  36095. }
  36096. return code[0].children;
  36097. }
  36098. function getBlockBufferOffset(component, row, col) {
  36099. return 64 * ((component.blocksPerLine + 1) * row + col);
  36100. }
  36101. function decodeScan(data, offset,
  36102. frame, components, resetInterval,
  36103. spectralStart, spectralEnd,
  36104. successivePrev, successive) {
  36105. var precision = frame.precision;
  36106. var samplesPerLine = frame.samplesPerLine;
  36107. var scanLines = frame.scanLines;
  36108. var mcusPerLine = frame.mcusPerLine;
  36109. var progressive = frame.progressive;
  36110. var maxH = frame.maxH, maxV = frame.maxV;
  36111. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36112. function readBit() {
  36113. if (bitsCount > 0) {
  36114. bitsCount--;
  36115. return (bitsData >> bitsCount) & 1;
  36116. }
  36117. bitsData = data[offset++];
  36118. if (bitsData == 0xFF) {
  36119. var nextByte = data[offset++];
  36120. if (nextByte) {
  36121. throw 'unexpected marker: ' +
  36122. ((bitsData << 8) | nextByte).toString(16);
  36123. }
  36124. // unstuff 0
  36125. }
  36126. bitsCount = 7;
  36127. return bitsData >>> 7;
  36128. }
  36129. function decodeHuffman(tree) {
  36130. var node = tree;
  36131. var bit;
  36132. while ((bit = readBit()) !== null) {
  36133. node = node[bit];
  36134. if (typeof node === 'number') {
  36135. return node;
  36136. }
  36137. if (typeof node !== 'object') {
  36138. throw 'invalid huffman sequence';
  36139. }
  36140. }
  36141. return null;
  36142. }
  36143. function receive(length) {
  36144. var n = 0;
  36145. while (length > 0) {
  36146. var bit = readBit();
  36147. if (bit === null) {
  36148. return;
  36149. }
  36150. n = (n << 1) | bit;
  36151. length--;
  36152. }
  36153. return n;
  36154. }
  36155. function receiveAndExtend(length) {
  36156. var n = receive(length);
  36157. if (n >= 1 << (length - 1)) {
  36158. return n;
  36159. }
  36160. return n + (-1 << length) + 1;
  36161. }
  36162. function decodeBaseline(component, offset) {
  36163. var t = decodeHuffman(component.huffmanTableDC);
  36164. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36165. component.blockData[offset] = (component.pred += diff);
  36166. var k = 1;
  36167. while (k < 64) {
  36168. var rs = decodeHuffman(component.huffmanTableAC);
  36169. var s = rs & 15, r = rs >> 4;
  36170. if (s === 0) {
  36171. if (r < 15) {
  36172. break;
  36173. }
  36174. k += 16;
  36175. continue;
  36176. }
  36177. k += r;
  36178. var z = dctZigZag[k];
  36179. component.blockData[offset + z] = receiveAndExtend(s);
  36180. k++;
  36181. }
  36182. }
  36183. function decodeDCFirst(component, offset) {
  36184. var t = decodeHuffman(component.huffmanTableDC);
  36185. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  36186. component.blockData[offset] = (component.pred += diff);
  36187. }
  36188. function decodeDCSuccessive(component, offset) {
  36189. component.blockData[offset] |= readBit() << successive;
  36190. }
  36191. var eobrun = 0;
  36192. function decodeACFirst(component, offset) {
  36193. if (eobrun > 0) {
  36194. eobrun--;
  36195. return;
  36196. }
  36197. var k = spectralStart, e = spectralEnd;
  36198. while (k <= e) {
  36199. var rs = decodeHuffman(component.huffmanTableAC);
  36200. var s = rs & 15, r = rs >> 4;
  36201. if (s === 0) {
  36202. if (r < 15) {
  36203. eobrun = receive(r) + (1 << r) - 1;
  36204. break;
  36205. }
  36206. k += 16;
  36207. continue;
  36208. }
  36209. k += r;
  36210. var z = dctZigZag[k];
  36211. component.blockData[offset + z] =
  36212. receiveAndExtend(s) * (1 << successive);
  36213. k++;
  36214. }
  36215. }
  36216. var successiveACState = 0, successiveACNextValue;
  36217. function decodeACSuccessive(component, offset) {
  36218. var k = spectralStart;
  36219. var e = spectralEnd;
  36220. var r = 0;
  36221. var s;
  36222. var rs;
  36223. while (k <= e) {
  36224. var z = dctZigZag[k];
  36225. switch (successiveACState) {
  36226. case 0: // initial state
  36227. rs = decodeHuffman(component.huffmanTableAC);
  36228. s = rs & 15;
  36229. r = rs >> 4;
  36230. if (s === 0) {
  36231. if (r < 15) {
  36232. eobrun = receive(r) + (1 << r);
  36233. successiveACState = 4;
  36234. } else {
  36235. r = 16;
  36236. successiveACState = 1;
  36237. }
  36238. } else {
  36239. if (s !== 1) {
  36240. throw 'invalid ACn encoding';
  36241. }
  36242. successiveACNextValue = receiveAndExtend(s);
  36243. successiveACState = r ? 2 : 3;
  36244. }
  36245. continue;
  36246. case 1: // skipping r zero items
  36247. case 2:
  36248. if (component.blockData[offset + z]) {
  36249. component.blockData[offset + z] += (readBit() << successive);
  36250. } else {
  36251. r--;
  36252. if (r === 0) {
  36253. successiveACState = successiveACState == 2 ? 3 : 0;
  36254. }
  36255. }
  36256. break;
  36257. case 3: // set value for a zero item
  36258. if (component.blockData[offset + z]) {
  36259. component.blockData[offset + z] += (readBit() << successive);
  36260. } else {
  36261. component.blockData[offset + z] =
  36262. successiveACNextValue << successive;
  36263. successiveACState = 0;
  36264. }
  36265. break;
  36266. case 4: // eob
  36267. if (component.blockData[offset + z]) {
  36268. component.blockData[offset + z] += (readBit() << successive);
  36269. }
  36270. break;
  36271. }
  36272. k++;
  36273. }
  36274. if (successiveACState === 4) {
  36275. eobrun--;
  36276. if (eobrun === 0) {
  36277. successiveACState = 0;
  36278. }
  36279. }
  36280. }
  36281. function decodeMcu(component, decode, mcu, row, col) {
  36282. var mcuRow = (mcu / mcusPerLine) | 0;
  36283. var mcuCol = mcu % mcusPerLine;
  36284. var blockRow = mcuRow * component.v + row;
  36285. var blockCol = mcuCol * component.h + col;
  36286. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36287. decode(component, offset);
  36288. }
  36289. function decodeBlock(component, decode, mcu) {
  36290. var blockRow = (mcu / component.blocksPerLine) | 0;
  36291. var blockCol = mcu % component.blocksPerLine;
  36292. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36293. decode(component, offset);
  36294. }
  36295. var componentsLength = components.length;
  36296. var component, i, j, k, n;
  36297. var decodeFn;
  36298. if (progressive) {
  36299. if (spectralStart === 0) {
  36300. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  36301. } else {
  36302. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  36303. }
  36304. } else {
  36305. decodeFn = decodeBaseline;
  36306. }
  36307. var mcu = 0, marker;
  36308. var mcuExpected;
  36309. if (componentsLength == 1) {
  36310. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  36311. } else {
  36312. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  36313. }
  36314. if (!resetInterval) {
  36315. resetInterval = mcuExpected;
  36316. }
  36317. var h, v;
  36318. while (mcu < mcuExpected) {
  36319. // reset interval stuff
  36320. for (i = 0; i < componentsLength; i++) {
  36321. components[i].pred = 0;
  36322. }
  36323. eobrun = 0;
  36324. if (componentsLength == 1) {
  36325. component = components[0];
  36326. for (n = 0; n < resetInterval; n++) {
  36327. decodeBlock(component, decodeFn, mcu);
  36328. mcu++;
  36329. }
  36330. } else {
  36331. for (n = 0; n < resetInterval; n++) {
  36332. for (i = 0; i < componentsLength; i++) {
  36333. component = components[i];
  36334. h = component.h;
  36335. v = component.v;
  36336. for (j = 0; j < v; j++) {
  36337. for (k = 0; k < h; k++) {
  36338. decodeMcu(component, decodeFn, mcu, j, k);
  36339. }
  36340. }
  36341. }
  36342. mcu++;
  36343. }
  36344. }
  36345. // find marker
  36346. bitsCount = 0;
  36347. marker = (data[offset] << 8) | data[offset + 1];
  36348. if (marker <= 0xFF00) {
  36349. throw 'marker was not found';
  36350. }
  36351. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  36352. offset += 2;
  36353. } else {
  36354. break;
  36355. }
  36356. }
  36357. return offset - startOffset;
  36358. }
  36359. // A port of poppler's IDCT method which in turn is taken from:
  36360. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  36361. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  36362. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  36363. // 988-991.
  36364. function quantizeAndInverse(component, blockBufferOffset, p) {
  36365. var qt = component.quantizationTable;
  36366. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  36367. var i;
  36368. // dequant
  36369. for (i = 0; i < 64; i++) {
  36370. p[i] = component.blockData[blockBufferOffset + i] * qt[i];
  36371. }
  36372. // inverse DCT on rows
  36373. for (i = 0; i < 8; ++i) {
  36374. var row = 8 * i;
  36375. // check for all-zero AC coefficients
  36376. if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0 &&
  36377. p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0 &&
  36378. p[7 + row] === 0) {
  36379. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  36380. p[0 + row] = t;
  36381. p[1 + row] = t;
  36382. p[2 + row] = t;
  36383. p[3 + row] = t;
  36384. p[4 + row] = t;
  36385. p[5 + row] = t;
  36386. p[6 + row] = t;
  36387. p[7 + row] = t;
  36388. continue;
  36389. }
  36390. // stage 4
  36391. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  36392. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  36393. v2 = p[2 + row];
  36394. v3 = p[6 + row];
  36395. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  36396. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  36397. v5 = p[3 + row] << 4;
  36398. v6 = p[5 + row] << 4;
  36399. // stage 3
  36400. t = (v0 - v1+ 1) >> 1;
  36401. v0 = (v0 + v1 + 1) >> 1;
  36402. v1 = t;
  36403. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  36404. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  36405. v3 = t;
  36406. t = (v4 - v6 + 1) >> 1;
  36407. v4 = (v4 + v6 + 1) >> 1;
  36408. v6 = t;
  36409. t = (v7 + v5 + 1) >> 1;
  36410. v5 = (v7 - v5 + 1) >> 1;
  36411. v7 = t;
  36412. // stage 2
  36413. t = (v0 - v3 + 1) >> 1;
  36414. v0 = (v0 + v3 + 1) >> 1;
  36415. v3 = t;
  36416. t = (v1 - v2 + 1) >> 1;
  36417. v1 = (v1 + v2 + 1) >> 1;
  36418. v2 = t;
  36419. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36420. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36421. v7 = t;
  36422. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36423. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36424. v6 = t;
  36425. // stage 1
  36426. p[0 + row] = v0 + v7;
  36427. p[7 + row] = v0 - v7;
  36428. p[1 + row] = v1 + v6;
  36429. p[6 + row] = v1 - v6;
  36430. p[2 + row] = v2 + v5;
  36431. p[5 + row] = v2 - v5;
  36432. p[3 + row] = v3 + v4;
  36433. p[4 + row] = v3 - v4;
  36434. }
  36435. // inverse DCT on columns
  36436. for (i = 0; i < 8; ++i) {
  36437. var col = i;
  36438. // check for all-zero AC coefficients
  36439. if (p[1*8 + col] === 0 && p[2*8 + col] === 0 && p[3*8 + col] === 0 &&
  36440. p[4*8 + col] === 0 && p[5*8 + col] === 0 && p[6*8 + col] === 0 &&
  36441. p[7*8 + col] === 0) {
  36442. t = (dctSqrt2 * p[i+0] + 8192) >> 14;
  36443. p[0*8 + col] = t;
  36444. p[1*8 + col] = t;
  36445. p[2*8 + col] = t;
  36446. p[3*8 + col] = t;
  36447. p[4*8 + col] = t;
  36448. p[5*8 + col] = t;
  36449. p[6*8 + col] = t;
  36450. p[7*8 + col] = t;
  36451. continue;
  36452. }
  36453. // stage 4
  36454. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  36455. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  36456. v2 = p[2*8 + col];
  36457. v3 = p[6*8 + col];
  36458. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  36459. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  36460. v5 = p[3*8 + col];
  36461. v6 = p[5*8 + col];
  36462. // stage 3
  36463. t = (v0 - v1 + 1) >> 1;
  36464. v0 = (v0 + v1 + 1) >> 1;
  36465. v1 = t;
  36466. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  36467. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  36468. v3 = t;
  36469. t = (v4 - v6 + 1) >> 1;
  36470. v4 = (v4 + v6 + 1) >> 1;
  36471. v6 = t;
  36472. t = (v7 + v5 + 1) >> 1;
  36473. v5 = (v7 - v5 + 1) >> 1;
  36474. v7 = t;
  36475. // stage 2
  36476. t = (v0 - v3 + 1) >> 1;
  36477. v0 = (v0 + v3 + 1) >> 1;
  36478. v3 = t;
  36479. t = (v1 - v2 + 1) >> 1;
  36480. v1 = (v1 + v2 + 1) >> 1;
  36481. v2 = t;
  36482. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36483. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36484. v7 = t;
  36485. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36486. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36487. v6 = t;
  36488. // stage 1
  36489. p[0*8 + col] = v0 + v7;
  36490. p[7*8 + col] = v0 - v7;
  36491. p[1*8 + col] = v1 + v6;
  36492. p[6*8 + col] = v1 - v6;
  36493. p[2*8 + col] = v2 + v5;
  36494. p[5*8 + col] = v2 - v5;
  36495. p[3*8 + col] = v3 + v4;
  36496. p[4*8 + col] = v3 - v4;
  36497. }
  36498. // convert to 8-bit integers
  36499. for (i = 0; i < 64; ++i) {
  36500. var index = blockBufferOffset + i;
  36501. var q = p[i];
  36502. q = (q <= -2056) ? 0 : (q >= 2024) ? 255 : (q + 2056) >> 4;
  36503. component.blockData[index] = q;
  36504. }
  36505. }
  36506. function buildComponentData(frame, component) {
  36507. var lines = [];
  36508. var blocksPerLine = component.blocksPerLine;
  36509. var blocksPerColumn = component.blocksPerColumn;
  36510. var samplesPerLine = blocksPerLine << 3;
  36511. var computationBuffer = new Int32Array(64);
  36512. var i, j, ll = 0;
  36513. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36514. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36515. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36516. quantizeAndInverse(component, offset, computationBuffer);
  36517. }
  36518. }
  36519. return component.blockData;
  36520. }
  36521. function clamp0to255(a) {
  36522. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  36523. }
  36524. constructor.prototype = {
  36525. parse: function parse(data) {
  36526. function readUint16() {
  36527. var value = (data[offset] << 8) | data[offset + 1];
  36528. offset += 2;
  36529. return value;
  36530. }
  36531. function readDataBlock() {
  36532. var length = readUint16();
  36533. var array = data.subarray(offset, offset + length - 2);
  36534. offset += array.length;
  36535. return array;
  36536. }
  36537. function prepareComponents(frame) {
  36538. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  36539. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  36540. for (var i = 0; i < frame.components.length; i++) {
  36541. component = frame.components[i];
  36542. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  36543. component.h / frame.maxH);
  36544. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  36545. component.v / frame.maxV);
  36546. var blocksPerLineForMcu = mcusPerLine * component.h;
  36547. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  36548. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  36549. (blocksPerLineForMcu + 1);
  36550. component.blockData = new Int16Array(blocksBufferSize);
  36551. component.blocksPerLine = blocksPerLine;
  36552. component.blocksPerColumn = blocksPerColumn;
  36553. }
  36554. frame.mcusPerLine = mcusPerLine;
  36555. frame.mcusPerColumn = mcusPerColumn;
  36556. }
  36557. var offset = 0, length = data.length;
  36558. var jfif = null;
  36559. var adobe = null;
  36560. var pixels = null;
  36561. var frame, resetInterval;
  36562. var quantizationTables = [];
  36563. var huffmanTablesAC = [], huffmanTablesDC = [];
  36564. var fileMarker = readUint16();
  36565. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  36566. throw 'SOI not found';
  36567. }
  36568. fileMarker = readUint16();
  36569. while (fileMarker != 0xFFD9) { // EOI (End of image)
  36570. var i, j, l;
  36571. switch(fileMarker) {
  36572. case 0xFFE0: // APP0 (Application Specific)
  36573. case 0xFFE1: // APP1
  36574. case 0xFFE2: // APP2
  36575. case 0xFFE3: // APP3
  36576. case 0xFFE4: // APP4
  36577. case 0xFFE5: // APP5
  36578. case 0xFFE6: // APP6
  36579. case 0xFFE7: // APP7
  36580. case 0xFFE8: // APP8
  36581. case 0xFFE9: // APP9
  36582. case 0xFFEA: // APP10
  36583. case 0xFFEB: // APP11
  36584. case 0xFFEC: // APP12
  36585. case 0xFFED: // APP13
  36586. case 0xFFEE: // APP14
  36587. case 0xFFEF: // APP15
  36588. case 0xFFFE: // COM (Comment)
  36589. var appData = readDataBlock();
  36590. if (fileMarker === 0xFFE0) {
  36591. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  36592. appData[2] === 0x49 && appData[3] === 0x46 &&
  36593. appData[4] === 0) { // 'JFIF\x00'
  36594. jfif = {
  36595. version: { major: appData[5], minor: appData[6] },
  36596. densityUnits: appData[7],
  36597. xDensity: (appData[8] << 8) | appData[9],
  36598. yDensity: (appData[10] << 8) | appData[11],
  36599. thumbWidth: appData[12],
  36600. thumbHeight: appData[13],
  36601. thumbData: appData.subarray(14, 14 +
  36602. 3 * appData[12] * appData[13])
  36603. };
  36604. }
  36605. }
  36606. // TODO APP1 - Exif
  36607. if (fileMarker === 0xFFEE) {
  36608. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  36609. appData[2] === 0x6F && appData[3] === 0x62 &&
  36610. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  36611. adobe = {
  36612. version: appData[6],
  36613. flags0: (appData[7] << 8) | appData[8],
  36614. flags1: (appData[9] << 8) | appData[10],
  36615. transformCode: appData[11]
  36616. };
  36617. }
  36618. }
  36619. break;
  36620. case 0xFFDB: // DQT (Define Quantization Tables)
  36621. var quantizationTablesLength = readUint16();
  36622. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  36623. var z;
  36624. while (offset < quantizationTablesEnd) {
  36625. var quantizationTableSpec = data[offset++];
  36626. var tableData = new Int32Array(64);
  36627. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  36628. for (j = 0; j < 64; j++) {
  36629. z = dctZigZag[j];
  36630. tableData[z] = data[offset++];
  36631. }
  36632. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  36633. for (j = 0; j < 64; j++) {
  36634. z = dctZigZag[j];
  36635. tableData[z] = readUint16();
  36636. }
  36637. } else {
  36638. throw 'DQT: invalid table spec';
  36639. }
  36640. quantizationTables[quantizationTableSpec & 15] = tableData;
  36641. }
  36642. break;
  36643. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  36644. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  36645. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  36646. if (frame) {
  36647. throw 'Only single frame JPEGs supported';
  36648. }
  36649. readUint16(); // skip data length
  36650. frame = {};
  36651. frame.extended = (fileMarker === 0xFFC1);
  36652. frame.progressive = (fileMarker === 0xFFC2);
  36653. frame.precision = data[offset++];
  36654. frame.scanLines = readUint16();
  36655. frame.samplesPerLine = readUint16();
  36656. frame.components = [];
  36657. frame.componentIds = {};
  36658. var componentsCount = data[offset++], componentId;
  36659. var maxH = 0, maxV = 0;
  36660. for (i = 0; i < componentsCount; i++) {
  36661. componentId = data[offset];
  36662. var h = data[offset + 1] >> 4;
  36663. var v = data[offset + 1] & 15;
  36664. if (maxH < h) {
  36665. maxH = h;
  36666. }
  36667. if (maxV < v) {
  36668. maxV = v;
  36669. }
  36670. var qId = data[offset + 2];
  36671. l = frame.components.push({
  36672. h: h,
  36673. v: v,
  36674. quantizationTable: quantizationTables[qId]
  36675. });
  36676. frame.componentIds[componentId] = l - 1;
  36677. offset += 3;
  36678. }
  36679. frame.maxH = maxH;
  36680. frame.maxV = maxV;
  36681. prepareComponents(frame);
  36682. break;
  36683. case 0xFFC4: // DHT (Define Huffman Tables)
  36684. var huffmanLength = readUint16();
  36685. for (i = 2; i < huffmanLength;) {
  36686. var huffmanTableSpec = data[offset++];
  36687. var codeLengths = new Uint8Array(16);
  36688. var codeLengthSum = 0;
  36689. for (j = 0; j < 16; j++, offset++) {
  36690. codeLengthSum += (codeLengths[j] = data[offset]);
  36691. }
  36692. var huffmanValues = new Uint8Array(codeLengthSum);
  36693. for (j = 0; j < codeLengthSum; j++, offset++) {
  36694. huffmanValues[j] = data[offset];
  36695. }
  36696. i += 17 + codeLengthSum;
  36697. ((huffmanTableSpec >> 4) === 0 ?
  36698. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  36699. buildHuffmanTable(codeLengths, huffmanValues);
  36700. }
  36701. break;
  36702. case 0xFFDD: // DRI (Define Restart Interval)
  36703. readUint16(); // skip data length
  36704. resetInterval = readUint16();
  36705. break;
  36706. case 0xFFDA: // SOS (Start of Scan)
  36707. var scanLength = readUint16();
  36708. var selectorsCount = data[offset++];
  36709. var components = [], component;
  36710. for (i = 0; i < selectorsCount; i++) {
  36711. var componentIndex = frame.componentIds[data[offset++]];
  36712. component = frame.components[componentIndex];
  36713. var tableSpec = data[offset++];
  36714. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  36715. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  36716. components.push(component);
  36717. }
  36718. var spectralStart = data[offset++];
  36719. var spectralEnd = data[offset++];
  36720. var successiveApproximation = data[offset++];
  36721. var processed = decodeScan(data, offset,
  36722. frame, components, resetInterval,
  36723. spectralStart, spectralEnd,
  36724. successiveApproximation >> 4, successiveApproximation & 15);
  36725. offset += processed;
  36726. break;
  36727. default:
  36728. if (data[offset - 3] == 0xFF &&
  36729. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  36730. // could be incorrect encoding -- last 0xFF byte of the previous
  36731. // block was eaten by the encoder
  36732. offset -= 3;
  36733. break;
  36734. }
  36735. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  36736. }
  36737. fileMarker = readUint16();
  36738. }
  36739. this.width = frame.samplesPerLine;
  36740. this.height = frame.scanLines;
  36741. this.jfif = jfif;
  36742. this.adobe = adobe;
  36743. this.components = [];
  36744. for (i = 0; i < frame.components.length; i++) {
  36745. component = frame.components[i];
  36746. this.components.push({
  36747. output: buildComponentData(frame, component),
  36748. scaleX: component.h / frame.maxH,
  36749. scaleY: component.v / frame.maxV,
  36750. blocksPerLine: component.blocksPerLine,
  36751. blocksPerColumn: component.blocksPerColumn
  36752. });
  36753. }
  36754. this.numComponents = this.components.length;
  36755. },
  36756. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  36757. var scaleX = this.width / width, scaleY = this.height / height;
  36758. var component, componentScaleX, componentScaleY, blocksPerScanline;
  36759. var x, y, i, j;
  36760. var index;
  36761. var offset = 0;
  36762. var output;
  36763. var numComponents = this.components.length;
  36764. var dataLength = width * height * numComponents;
  36765. var data = new Uint8Array(dataLength);
  36766. var xScaleBlockOffset = new Uint32Array(width);
  36767. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  36768. for (i = 0; i < numComponents; i++) {
  36769. component = this.components[i];
  36770. componentScaleX = component.scaleX * scaleX;
  36771. componentScaleY = component.scaleY * scaleY;
  36772. offset = i;
  36773. output = component.output;
  36774. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  36775. // precalculate the xScaleBlockOffset
  36776. for (x = 0; x < width; x++) {
  36777. j = 0 | (x * componentScaleX);
  36778. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  36779. }
  36780. // linearize the blocks of the component
  36781. for (y = 0; y < height; y++) {
  36782. j = 0 | (y * componentScaleY);
  36783. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  36784. for (x = 0; x < width; x++) {
  36785. data[offset] = output[index + xScaleBlockOffset[x]];
  36786. offset += numComponents;
  36787. }
  36788. }
  36789. }
  36790. return data;
  36791. },
  36792. _isColorConversionNeeded: function isColorConversionNeeded() {
  36793. if (this.adobe && this.adobe.transformCode) {
  36794. // The adobe transform marker overrides any previous setting
  36795. return true;
  36796. } else if (this.numComponents == 3) {
  36797. return true;
  36798. } else if (typeof this.colorTransform !== 'undefined') {
  36799. return !!this.colorTransform;
  36800. } else {
  36801. return false;
  36802. }
  36803. },
  36804. _convertYccToRgb: function convertYccToRgb(data) {
  36805. var Y, Cb, Cr;
  36806. for (var i = 0; i < data.length; i += this.numComponents) {
  36807. Y = data[i ];
  36808. Cb = data[i + 1];
  36809. Cr = data[i + 2];
  36810. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  36811. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  36812. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  36813. }
  36814. return data;
  36815. },
  36816. _convertYcckToRgb: function convertYcckToRgb(data) {
  36817. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  36818. var offset = 0;
  36819. for (var i = 0; i < data.length; i += this.numComponents) {
  36820. Y = data[i];
  36821. Cb = data[i + 1];
  36822. Cr = data[i + 2];
  36823. k = data[i + 3];
  36824. CbCb = Cb * Cb;
  36825. CbCr = Cb * Cr;
  36826. CbY = Cb * Y;
  36827. Cbk = Cb * k;
  36828. CrCr = Cr * Cr;
  36829. Crk = Cr * k;
  36830. CrY = Cr * Y;
  36831. YY = Y * Y;
  36832. Yk = Y * k;
  36833. kk = k * k;
  36834. var r = - 122.67195406894 -
  36835. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  36836. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  36837. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  36838. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  36839. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  36840. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  36841. 0.000336197177618394 * kk + 0.484791561490776 * k;
  36842. var g = 107.268039397724 +
  36843. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  36844. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  36845. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  36846. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  36847. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  36848. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  36849. 0.000318913117588328 * kk - 0.213742400323665 * k;
  36850. var b = - 20.810012546947 -
  36851. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  36852. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  36853. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  36854. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  36855. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  36856. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  36857. 0.000343531996510555 * kk + 0.24165260232407 * k;
  36858. data[offset++] = clamp0to255(r);
  36859. data[offset++] = clamp0to255(g);
  36860. data[offset++] = clamp0to255(b);
  36861. }
  36862. return data;
  36863. },
  36864. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  36865. var Y, Cb, Cr;
  36866. for (var i = 0; i < data.length; i += this.numComponents) {
  36867. Y = data[i];
  36868. Cb = data[i + 1];
  36869. Cr = data[i + 2];
  36870. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  36871. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  36872. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  36873. // K in data[i + 3] is unchanged
  36874. }
  36875. return data;
  36876. },
  36877. _convertCmykToRgb: function convertCmykToRgb(data) {
  36878. var c, m, y, k;
  36879. var offset = 0;
  36880. var length = data.length;
  36881. var min = -255 * 255 * 255;
  36882. var scale = 1 / 255 / 255;
  36883. for (var i = 0; i < length;) {
  36884. c = data[i++];
  36885. m = data[i++];
  36886. y = data[i++];
  36887. k = data[i++];
  36888. var r =
  36889. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  36890. 18.82290502165302 * y + 212.25662451639585 * k -
  36891. 72734.4411664936) +
  36892. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  36893. 17.873870861415444 * k - 1401.7366389350734) +
  36894. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  36895. 4465.541406466231) -
  36896. k * (21.86122147463605 * k + 48317.86113160301);
  36897. var g =
  36898. c * (8.841041422036149 * c + 60.118027045597366 * m +
  36899. 6.871425592049007 * y + 31.159100130055922 * k -
  36900. 20220.756542821975) +
  36901. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  36902. 131.35250912493976 * k - 48691.05921601825) +
  36903. y * (4.444339102852739 * y + 9.8632861493405 * k -
  36904. 6341.191035517494) -
  36905. k * (20.737325471181034 * k + 47890.15695978492);
  36906. var b =
  36907. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  36908. 30.89978309703729 * y - 0.23883238689178934 * k -
  36909. 3616.812083916688) +
  36910. m * (10.49593273432072 * m + 63.02378494754052 * y +
  36911. 50.606957656360734 * k - 28620.90484698408) +
  36912. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  36913. 49363.43385999684) -
  36914. k * (22.33816807309886 * k + 45932.16563550634);
  36915. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  36916. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  36917. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  36918. }
  36919. return data;
  36920. },
  36921. getData: function getData(width, height, forceRGBoutput) {
  36922. if (this.numComponents > 4) {
  36923. throw 'Unsupported color mode';
  36924. }
  36925. // type of data: Uint8Array(width * height * numComponents)
  36926. var data = this._getLinearizedBlockData(width, height);
  36927. if (this.numComponents === 3) {
  36928. return this._convertYccToRgb(data);
  36929. } else if (this.numComponents === 4) {
  36930. if (this._isColorConversionNeeded()) {
  36931. if (forceRGBoutput) {
  36932. return this._convertYcckToRgb(data);
  36933. } else {
  36934. return this._convertYcckToCmyk(data);
  36935. }
  36936. } else {
  36937. return this._convertCmykToRgb(data);
  36938. }
  36939. }
  36940. return data;
  36941. }
  36942. };
  36943. return constructor;
  36944. })();
  36945. var JpxImage = (function JpxImageClosure() {
  36946. // Table E.1
  36947. var SubbandsGainLog2 = {
  36948. 'LL': 0,
  36949. 'LH': 1,
  36950. 'HL': 1,
  36951. 'HH': 2
  36952. };
  36953. function JpxImage() {
  36954. this.failOnCorruptedImage = false;
  36955. }
  36956. JpxImage.prototype = {
  36957. load: function JpxImage_load(url) {
  36958. var xhr = new XMLHttpRequest();
  36959. xhr.open('GET', url, true);
  36960. xhr.responseType = 'arraybuffer';
  36961. xhr.onload = (function() {
  36962. // TODO catch parse error
  36963. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  36964. this.parse(data);
  36965. if (this.onload) {
  36966. this.onload();
  36967. }
  36968. }).bind(this);
  36969. xhr.send(null);
  36970. },
  36971. parse: function JpxImage_parse(data) {
  36972. var head = readUint16(data, 0);
  36973. // No box header, immediate start of codestream (SOC)
  36974. if (head === 0xFF4F) {
  36975. this.parseCodestream(data, 0, data.length);
  36976. return;
  36977. }
  36978. var position = 0, length = data.length;
  36979. while (position < length) {
  36980. var headerSize = 8;
  36981. var lbox = readUint32(data, position);
  36982. var tbox = readUint32(data, position + 4);
  36983. position += headerSize;
  36984. if (lbox === 1) {
  36985. // XLBox: read UInt64 according to spec.
  36986. // JavaScript's int precision of 53 bit should be sufficient here.
  36987. lbox = readUint32(data, position) * 4294967296 +
  36988. readUint32(data, position + 4);
  36989. position += 8;
  36990. headerSize += 8;
  36991. }
  36992. if (lbox === 0) {
  36993. lbox = length - position + headerSize;
  36994. }
  36995. if (lbox < headerSize) {
  36996. error('JPX error: Invalid box field size');
  36997. }
  36998. var dataLength = lbox - headerSize;
  36999. var jumpDataLength = true;
  37000. switch (tbox) {
  37001. case 0x6A501A1A: // 'jP\032\032'
  37002. // TODO
  37003. break;
  37004. case 0x6A703268: // 'jp2h'
  37005. jumpDataLength = false; // parsing child boxes
  37006. break;
  37007. case 0x636F6C72: // 'colr'
  37008. // TODO
  37009. break;
  37010. case 0x6A703263: // 'jp2c'
  37011. this.parseCodestream(data, position, position + dataLength);
  37012. break;
  37013. }
  37014. if (jumpDataLength) {
  37015. position += dataLength;
  37016. }
  37017. }
  37018. },
  37019. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  37020. try {
  37021. var newByte = stream.getByte();
  37022. while (newByte >= 0) {
  37023. var oldByte = newByte;
  37024. newByte = stream.getByte();
  37025. var code = (oldByte << 8) | newByte;
  37026. // Image and tile size (SIZ)
  37027. if (code == 0xFF51) {
  37028. stream.skip(4);
  37029. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  37030. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  37031. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  37032. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  37033. stream.skip(16);
  37034. var Csiz = stream.getUint16(); // Byte 36
  37035. this.width = Xsiz - XOsiz;
  37036. this.height = Ysiz - YOsiz;
  37037. this.componentsCount = Csiz;
  37038. // Results are always returned as Uint8Arrays
  37039. this.bitsPerComponent = 8;
  37040. return;
  37041. }
  37042. }
  37043. throw 'No size marker found in JPX stream';
  37044. } catch (e) {
  37045. if (this.failOnCorruptedImage) {
  37046. error('JPX error: ' + e);
  37047. } else {
  37048. warn('JPX error: ' + e + '. Trying to recover');
  37049. }
  37050. }
  37051. },
  37052. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  37053. var context = {};
  37054. try {
  37055. var position = start;
  37056. while (position + 1 < end) {
  37057. var code = readUint16(data, position);
  37058. position += 2;
  37059. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  37060. switch (code) {
  37061. case 0xFF4F: // Start of codestream (SOC)
  37062. context.mainHeader = true;
  37063. break;
  37064. case 0xFFD9: // End of codestream (EOC)
  37065. break;
  37066. case 0xFF51: // Image and tile size (SIZ)
  37067. length = readUint16(data, position);
  37068. var siz = {};
  37069. siz.Xsiz = readUint32(data, position + 4);
  37070. siz.Ysiz = readUint32(data, position + 8);
  37071. siz.XOsiz = readUint32(data, position + 12);
  37072. siz.YOsiz = readUint32(data, position + 16);
  37073. siz.XTsiz = readUint32(data, position + 20);
  37074. siz.YTsiz = readUint32(data, position + 24);
  37075. siz.XTOsiz = readUint32(data, position + 28);
  37076. siz.YTOsiz = readUint32(data, position + 32);
  37077. var componentsCount = readUint16(data, position + 36);
  37078. siz.Csiz = componentsCount;
  37079. var components = [];
  37080. j = position + 38;
  37081. for (var i = 0; i < componentsCount; i++) {
  37082. var component = {
  37083. precision: (data[j] & 0x7F) + 1,
  37084. isSigned: !!(data[j] & 0x80),
  37085. XRsiz: data[j + 1],
  37086. YRsiz: data[j + 1]
  37087. };
  37088. calculateComponentDimensions(component, siz);
  37089. components.push(component);
  37090. }
  37091. context.SIZ = siz;
  37092. context.components = components;
  37093. calculateTileGrids(context, components);
  37094. context.QCC = [];
  37095. context.COC = [];
  37096. break;
  37097. case 0xFF5C: // Quantization default (QCD)
  37098. length = readUint16(data, position);
  37099. var qcd = {};
  37100. j = position + 2;
  37101. sqcd = data[j++];
  37102. switch (sqcd & 0x1F) {
  37103. case 0:
  37104. spqcdSize = 8;
  37105. scalarExpounded = true;
  37106. break;
  37107. case 1:
  37108. spqcdSize = 16;
  37109. scalarExpounded = false;
  37110. break;
  37111. case 2:
  37112. spqcdSize = 16;
  37113. scalarExpounded = true;
  37114. break;
  37115. default:
  37116. throw 'Invalid SQcd value ' + sqcd;
  37117. }
  37118. qcd.noQuantization = (spqcdSize == 8);
  37119. qcd.scalarExpounded = scalarExpounded;
  37120. qcd.guardBits = sqcd >> 5;
  37121. spqcds = [];
  37122. while (j < length + position) {
  37123. var spqcd = {};
  37124. if (spqcdSize == 8) {
  37125. spqcd.epsilon = data[j++] >> 3;
  37126. spqcd.mu = 0;
  37127. } else {
  37128. spqcd.epsilon = data[j] >> 3;
  37129. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37130. j += 2;
  37131. }
  37132. spqcds.push(spqcd);
  37133. }
  37134. qcd.SPqcds = spqcds;
  37135. if (context.mainHeader) {
  37136. context.QCD = qcd;
  37137. } else {
  37138. context.currentTile.QCD = qcd;
  37139. context.currentTile.QCC = [];
  37140. }
  37141. break;
  37142. case 0xFF5D: // Quantization component (QCC)
  37143. length = readUint16(data, position);
  37144. var qcc = {};
  37145. j = position + 2;
  37146. var cqcc;
  37147. if (context.SIZ.Csiz < 257) {
  37148. cqcc = data[j++];
  37149. } else {
  37150. cqcc = readUint16(data, j);
  37151. j += 2;
  37152. }
  37153. sqcd = data[j++];
  37154. switch (sqcd & 0x1F) {
  37155. case 0:
  37156. spqcdSize = 8;
  37157. scalarExpounded = true;
  37158. break;
  37159. case 1:
  37160. spqcdSize = 16;
  37161. scalarExpounded = false;
  37162. break;
  37163. case 2:
  37164. spqcdSize = 16;
  37165. scalarExpounded = true;
  37166. break;
  37167. default:
  37168. throw 'Invalid SQcd value ' + sqcd;
  37169. }
  37170. qcc.noQuantization = (spqcdSize == 8);
  37171. qcc.scalarExpounded = scalarExpounded;
  37172. qcc.guardBits = sqcd >> 5;
  37173. spqcds = [];
  37174. while (j < (length + position)) {
  37175. spqcd = {};
  37176. if (spqcdSize == 8) {
  37177. spqcd.epsilon = data[j++] >> 3;
  37178. spqcd.mu = 0;
  37179. } else {
  37180. spqcd.epsilon = data[j] >> 3;
  37181. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37182. j += 2;
  37183. }
  37184. spqcds.push(spqcd);
  37185. }
  37186. qcc.SPqcds = spqcds;
  37187. if (context.mainHeader) {
  37188. context.QCC[cqcc] = qcc;
  37189. } else {
  37190. context.currentTile.QCC[cqcc] = qcc;
  37191. }
  37192. break;
  37193. case 0xFF52: // Coding style default (COD)
  37194. length = readUint16(data, position);
  37195. var cod = {};
  37196. j = position + 2;
  37197. var scod = data[j++];
  37198. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  37199. cod.sopMarkerUsed = !!(scod & 2);
  37200. cod.ephMarkerUsed = !!(scod & 4);
  37201. cod.progressionOrder = data[j++];
  37202. cod.layersCount = readUint16(data, j);
  37203. j += 2;
  37204. cod.multipleComponentTransform = data[j++];
  37205. cod.decompositionLevelsCount = data[j++];
  37206. cod.xcb = (data[j++] & 0xF) + 2;
  37207. cod.ycb = (data[j++] & 0xF) + 2;
  37208. var blockStyle = data[j++];
  37209. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  37210. cod.resetContextProbabilities = !!(blockStyle & 2);
  37211. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  37212. cod.verticalyStripe = !!(blockStyle & 8);
  37213. cod.predictableTermination = !!(blockStyle & 16);
  37214. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  37215. cod.reversibleTransformation = data[j++];
  37216. if (cod.entropyCoderWithCustomPrecincts) {
  37217. var precinctsSizes = [];
  37218. while (j < length + position) {
  37219. var precinctsSize = data[j++];
  37220. precinctsSizes.push({
  37221. PPx: precinctsSize & 0xF,
  37222. PPy: precinctsSize >> 4
  37223. });
  37224. }
  37225. cod.precinctsSizes = precinctsSizes;
  37226. }
  37227. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  37228. cod.selectiveArithmeticCodingBypass ||
  37229. cod.resetContextProbabilities ||
  37230. cod.terminationOnEachCodingPass ||
  37231. cod.verticalyStripe || cod.predictableTermination) {
  37232. throw 'Unsupported COD options: ' +
  37233. globalScope.JSON.stringify(cod);
  37234. }
  37235. if (context.mainHeader) {
  37236. context.COD = cod;
  37237. } else {
  37238. context.currentTile.COD = cod;
  37239. context.currentTile.COC = [];
  37240. }
  37241. break;
  37242. case 0xFF90: // Start of tile-part (SOT)
  37243. length = readUint16(data, position);
  37244. tile = {};
  37245. tile.index = readUint16(data, position + 2);
  37246. tile.length = readUint32(data, position + 4);
  37247. tile.dataEnd = tile.length + position - 2;
  37248. tile.partIndex = data[position + 8];
  37249. tile.partsCount = data[position + 9];
  37250. context.mainHeader = false;
  37251. if (tile.partIndex === 0) {
  37252. // reset component specific settings
  37253. tile.COD = context.COD;
  37254. tile.COC = context.COC.slice(0); // clone of the global COC
  37255. tile.QCD = context.QCD;
  37256. tile.QCC = context.QCC.slice(0); // clone of the global COC
  37257. }
  37258. context.currentTile = tile;
  37259. break;
  37260. case 0xFF93: // Start of data (SOD)
  37261. tile = context.currentTile;
  37262. if (tile.partIndex === 0) {
  37263. initializeTile(context, tile.index);
  37264. buildPackets(context);
  37265. }
  37266. // moving to the end of the data
  37267. length = tile.dataEnd - position;
  37268. parseTilePackets(context, data, position, length);
  37269. break;
  37270. case 0xFF64: // Comment (COM)
  37271. length = readUint16(data, position);
  37272. // skipping content
  37273. break;
  37274. case 0xFF53: // Coding style component (COC)
  37275. throw 'Codestream code 0xFF53 (COC) is not implemented';
  37276. default:
  37277. throw 'Unknown codestream code: ' + code.toString(16);
  37278. }
  37279. position += length;
  37280. }
  37281. } catch (e) {
  37282. if (this.failOnCorruptedImage) {
  37283. error('JPX error: ' + e);
  37284. } else {
  37285. warn('JPX error: ' + e + '. Trying to recover');
  37286. }
  37287. }
  37288. this.tiles = transformComponents(context);
  37289. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  37290. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  37291. this.componentsCount = context.SIZ.Csiz;
  37292. }
  37293. };
  37294. function calculateComponentDimensions(component, siz) {
  37295. // Section B.2 Component mapping
  37296. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  37297. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  37298. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  37299. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  37300. component.width = component.x1 - component.x0;
  37301. component.height = component.y1 - component.y0;
  37302. }
  37303. function calculateTileGrids(context, components) {
  37304. var siz = context.SIZ;
  37305. // Section B.3 Division into tile and tile-components
  37306. var tile, tiles = [];
  37307. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  37308. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  37309. for (var q = 0; q < numYtiles; q++) {
  37310. for (var p = 0; p < numXtiles; p++) {
  37311. tile = {};
  37312. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  37313. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  37314. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  37315. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  37316. tile.width = tile.tx1 - tile.tx0;
  37317. tile.height = tile.ty1 - tile.ty0;
  37318. tile.components = [];
  37319. tiles.push(tile);
  37320. }
  37321. }
  37322. context.tiles = tiles;
  37323. var componentsCount = siz.Csiz;
  37324. for (var i = 0, ii = componentsCount; i < ii; i++) {
  37325. var component = components[i];
  37326. for (var j = 0, jj = tiles.length; j < jj; j++) {
  37327. var tileComponent = {};
  37328. tile = tiles[j];
  37329. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  37330. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  37331. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  37332. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  37333. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  37334. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  37335. tile.components[i] = tileComponent;
  37336. }
  37337. }
  37338. }
  37339. function getBlocksDimensions(context, component, r) {
  37340. var codOrCoc = component.codingStyleParameters;
  37341. var result = {};
  37342. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  37343. result.PPx = 15;
  37344. result.PPy = 15;
  37345. } else {
  37346. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  37347. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  37348. }
  37349. // calculate codeblock size as described in section B.7
  37350. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  37351. Math.min(codOrCoc.xcb, result.PPx));
  37352. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  37353. Math.min(codOrCoc.ycb, result.PPy));
  37354. return result;
  37355. }
  37356. function buildPrecincts(context, resolution, dimensions) {
  37357. // Section B.6 Division resolution to precincts
  37358. var precinctWidth = 1 << dimensions.PPx;
  37359. var precinctHeight = 1 << dimensions.PPy;
  37360. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  37361. Math.ceil(resolution.trx1 / precinctWidth) -
  37362. Math.floor(resolution.trx0 / precinctWidth) : 0);
  37363. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  37364. Math.ceil(resolution.try1 / precinctHeight) -
  37365. Math.floor(resolution.try0 / precinctHeight) : 0);
  37366. var numprecincts = numprecinctswide * numprecinctshigh;
  37367. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  37368. precinctWidth;
  37369. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  37370. precinctHeight;
  37371. resolution.precinctParameters = {
  37372. precinctXOffset: precinctXOffset,
  37373. precinctYOffset: precinctYOffset,
  37374. precinctWidth: precinctWidth,
  37375. precinctHeight: precinctHeight,
  37376. numprecinctswide: numprecinctswide,
  37377. numprecinctshigh: numprecinctshigh,
  37378. numprecincts: numprecincts
  37379. };
  37380. }
  37381. function buildCodeblocks(context, subband, dimensions) {
  37382. // Section B.7 Division sub-band into code-blocks
  37383. var xcb_ = dimensions.xcb_;
  37384. var ycb_ = dimensions.ycb_;
  37385. var codeblockWidth = 1 << xcb_;
  37386. var codeblockHeight = 1 << ycb_;
  37387. var cbx0 = subband.tbx0 >> xcb_;
  37388. var cby0 = subband.tby0 >> ycb_;
  37389. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  37390. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  37391. var precinctParameters = subband.resolution.precinctParameters;
  37392. var codeblocks = [];
  37393. var precincts = [];
  37394. var i, j, codeblock, precinctNumber;
  37395. for (j = cby0; j < cby1; j++) {
  37396. for (i = cbx0; i < cbx1; i++) {
  37397. codeblock = {
  37398. cbx: i,
  37399. cby: j,
  37400. tbx0: codeblockWidth * i,
  37401. tby0: codeblockHeight * j,
  37402. tbx1: codeblockWidth * (i + 1),
  37403. tby1: codeblockHeight * (j + 1)
  37404. };
  37405. // calculate precinct number
  37406. var pi = Math.floor((codeblock.tbx0 -
  37407. precinctParameters.precinctXOffset) /
  37408. precinctParameters.precinctWidth);
  37409. var pj = Math.floor((codeblock.tby0 -
  37410. precinctParameters.precinctYOffset) /
  37411. precinctParameters.precinctHeight);
  37412. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  37413. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  37414. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  37415. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  37416. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  37417. codeblock.precinctNumber = precinctNumber;
  37418. codeblock.subbandType = subband.type;
  37419. codeblock.Lblock = 3;
  37420. codeblocks.push(codeblock);
  37421. // building precinct for the sub-band
  37422. var precinct = precincts[precinctNumber];
  37423. if (precinct !== undefined) {
  37424. if (i < precinct.cbxMin) {
  37425. precinct.cbxMin = i;
  37426. } else if (i > precinct.cbxMax) {
  37427. precinct.cbxMax = i;
  37428. }
  37429. if (j < precinct.cbyMin) {
  37430. precinct.cbxMin = j;
  37431. } else if (j > precinct.cbyMax) {
  37432. precinct.cbyMax = j;
  37433. }
  37434. } else {
  37435. precincts[precinctNumber] = precinct = {
  37436. cbxMin: i,
  37437. cbyMin: j,
  37438. cbxMax: i,
  37439. cbyMax: j
  37440. };
  37441. }
  37442. codeblock.precinct = precinct;
  37443. }
  37444. }
  37445. subband.codeblockParameters = {
  37446. codeblockWidth: xcb_,
  37447. codeblockHeight: ycb_,
  37448. numcodeblockwide: cbx1 - cbx0 + 1,
  37449. numcodeblockhigh: cby1 - cby1 + 1
  37450. };
  37451. subband.codeblocks = codeblocks;
  37452. subband.precincts = precincts;
  37453. }
  37454. function createPacket(resolution, precinctNumber, layerNumber) {
  37455. var precinctCodeblocks = [];
  37456. // Section B.10.8 Order of info in packet
  37457. var subbands = resolution.subbands;
  37458. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  37459. for (var i = 0, ii = subbands.length; i < ii; i++) {
  37460. var subband = subbands[i];
  37461. var codeblocks = subband.codeblocks;
  37462. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  37463. var codeblock = codeblocks[j];
  37464. if (codeblock.precinctNumber != precinctNumber) {
  37465. continue;
  37466. }
  37467. precinctCodeblocks.push(codeblock);
  37468. }
  37469. }
  37470. return {
  37471. layerNumber: layerNumber,
  37472. codeblocks: precinctCodeblocks
  37473. };
  37474. }
  37475. function LayerResolutionComponentPositionIterator(context) {
  37476. var siz = context.SIZ;
  37477. var tileIndex = context.currentTile.index;
  37478. var tile = context.tiles[tileIndex];
  37479. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37480. var componentsCount = siz.Csiz;
  37481. var maxDecompositionLevelsCount = 0;
  37482. for (var q = 0; q < componentsCount; q++) {
  37483. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37484. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37485. }
  37486. var l = 0, r = 0, i = 0, k = 0;
  37487. this.nextPacket = function JpxImage_nextPacket() {
  37488. // Section B.12.1.1 Layer-resolution-component-position
  37489. for (; l < layersCount; l++) {
  37490. for (; r <= maxDecompositionLevelsCount; r++) {
  37491. for (; i < componentsCount; i++) {
  37492. var component = tile.components[i];
  37493. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37494. continue;
  37495. }
  37496. var resolution = component.resolutions[r];
  37497. var numprecincts = resolution.precinctParameters.numprecincts;
  37498. for (; k < numprecincts;) {
  37499. var packet = createPacket(resolution, k, l);
  37500. k++;
  37501. return packet;
  37502. }
  37503. k = 0;
  37504. }
  37505. i = 0;
  37506. }
  37507. r = 0;
  37508. }
  37509. throw 'Out of packets';
  37510. };
  37511. }
  37512. function ResolutionLayerComponentPositionIterator(context) {
  37513. var siz = context.SIZ;
  37514. var tileIndex = context.currentTile.index;
  37515. var tile = context.tiles[tileIndex];
  37516. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37517. var componentsCount = siz.Csiz;
  37518. var maxDecompositionLevelsCount = 0;
  37519. for (var q = 0; q < componentsCount; q++) {
  37520. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37521. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37522. }
  37523. var r = 0, l = 0, i = 0, k = 0;
  37524. this.nextPacket = function JpxImage_nextPacket() {
  37525. // Section B.12.1.2 Resolution-layer-component-position
  37526. for (; r <= maxDecompositionLevelsCount; r++) {
  37527. for (; l < layersCount; l++) {
  37528. for (; i < componentsCount; i++) {
  37529. var component = tile.components[i];
  37530. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37531. continue;
  37532. }
  37533. var resolution = component.resolutions[r];
  37534. var numprecincts = resolution.precinctParameters.numprecincts;
  37535. for (; k < numprecincts;) {
  37536. var packet = createPacket(resolution, k, l);
  37537. k++;
  37538. return packet;
  37539. }
  37540. k = 0;
  37541. }
  37542. i = 0;
  37543. }
  37544. l = 0;
  37545. }
  37546. throw 'Out of packets';
  37547. };
  37548. }
  37549. function buildPackets(context) {
  37550. var siz = context.SIZ;
  37551. var tileIndex = context.currentTile.index;
  37552. var tile = context.tiles[tileIndex];
  37553. var componentsCount = siz.Csiz;
  37554. // Creating resolutions and sub-bands for each component
  37555. for (var c = 0; c < componentsCount; c++) {
  37556. var component = tile.components[c];
  37557. var decompositionLevelsCount =
  37558. component.codingStyleParameters.decompositionLevelsCount;
  37559. // Section B.5 Resolution levels and sub-bands
  37560. var resolutions = [];
  37561. var subbands = [];
  37562. for (var r = 0; r <= decompositionLevelsCount; r++) {
  37563. var blocksDimensions = getBlocksDimensions(context, component, r);
  37564. var resolution = {};
  37565. var scale = 1 << (decompositionLevelsCount - r);
  37566. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  37567. resolution.try0 = Math.ceil(component.tcy0 / scale);
  37568. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  37569. resolution.try1 = Math.ceil(component.tcy1 / scale);
  37570. buildPrecincts(context, resolution, blocksDimensions);
  37571. resolutions.push(resolution);
  37572. var subband;
  37573. if (r === 0) {
  37574. // one sub-band (LL) with last decomposition
  37575. subband = {};
  37576. subband.type = 'LL';
  37577. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  37578. subband.tby0 = Math.ceil(component.tcy0 / scale);
  37579. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  37580. subband.tby1 = Math.ceil(component.tcy1 / scale);
  37581. subband.resolution = resolution;
  37582. buildCodeblocks(context, subband, blocksDimensions);
  37583. subbands.push(subband);
  37584. resolution.subbands = [subband];
  37585. } else {
  37586. var bscale = 1 << (decompositionLevelsCount - r + 1);
  37587. var resolutionSubbands = [];
  37588. // three sub-bands (HL, LH and HH) with rest of decompositions
  37589. subband = {};
  37590. subband.type = 'HL';
  37591. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37592. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  37593. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37594. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  37595. subband.resolution = resolution;
  37596. buildCodeblocks(context, subband, blocksDimensions);
  37597. subbands.push(subband);
  37598. resolutionSubbands.push(subband);
  37599. subband = {};
  37600. subband.type = 'LH';
  37601. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  37602. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37603. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  37604. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37605. subband.resolution = resolution;
  37606. buildCodeblocks(context, subband, blocksDimensions);
  37607. subbands.push(subband);
  37608. resolutionSubbands.push(subband);
  37609. subband = {};
  37610. subband.type = 'HH';
  37611. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37612. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37613. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37614. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37615. subband.resolution = resolution;
  37616. buildCodeblocks(context, subband, blocksDimensions);
  37617. subbands.push(subband);
  37618. resolutionSubbands.push(subband);
  37619. resolution.subbands = resolutionSubbands;
  37620. }
  37621. }
  37622. component.resolutions = resolutions;
  37623. component.subbands = subbands;
  37624. }
  37625. // Generate the packets sequence
  37626. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  37627. switch (progressionOrder) {
  37628. case 0:
  37629. tile.packetsIterator =
  37630. new LayerResolutionComponentPositionIterator(context);
  37631. break;
  37632. case 1:
  37633. tile.packetsIterator =
  37634. new ResolutionLayerComponentPositionIterator(context);
  37635. break;
  37636. default:
  37637. throw 'Unsupported progression order ' + progressionOrder;
  37638. }
  37639. }
  37640. function parseTilePackets(context, data, offset, dataLength) {
  37641. var position = 0;
  37642. var buffer, bufferSize = 0, skipNextBit = false;
  37643. function readBits(count) {
  37644. while (bufferSize < count) {
  37645. var b = data[offset + position];
  37646. position++;
  37647. if (skipNextBit) {
  37648. buffer = (buffer << 7) | b;
  37649. bufferSize += 7;
  37650. skipNextBit = false;
  37651. } else {
  37652. buffer = (buffer << 8) | b;
  37653. bufferSize += 8;
  37654. }
  37655. if (b == 0xFF) {
  37656. skipNextBit = true;
  37657. }
  37658. }
  37659. bufferSize -= count;
  37660. return (buffer >>> bufferSize) & ((1 << count) - 1);
  37661. }
  37662. function alignToByte() {
  37663. bufferSize = 0;
  37664. if (skipNextBit) {
  37665. position++;
  37666. skipNextBit = false;
  37667. }
  37668. }
  37669. function readCodingpasses() {
  37670. if (readBits(1) === 0) {
  37671. return 1;
  37672. }
  37673. if (readBits(1) === 0) {
  37674. return 2;
  37675. }
  37676. var value = readBits(2);
  37677. if (value < 3) {
  37678. return value + 3;
  37679. }
  37680. value = readBits(5);
  37681. if (value < 31) {
  37682. return value + 6;
  37683. }
  37684. value = readBits(7);
  37685. return value + 37;
  37686. }
  37687. var tileIndex = context.currentTile.index;
  37688. var tile = context.tiles[tileIndex];
  37689. var packetsIterator = tile.packetsIterator;
  37690. while (position < dataLength) {
  37691. var packet = packetsIterator.nextPacket();
  37692. if (!readBits(1)) {
  37693. alignToByte();
  37694. continue;
  37695. }
  37696. var layerNumber = packet.layerNumber;
  37697. var queue = [], codeblock;
  37698. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  37699. codeblock = packet.codeblocks[i];
  37700. var precinct = codeblock.precinct;
  37701. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  37702. var codeblockRow = codeblock.cby - precinct.cbyMin;
  37703. var codeblockIncluded = false;
  37704. var firstTimeInclusion = false;
  37705. var valueReady;
  37706. if ('included' in codeblock) {
  37707. codeblockIncluded = !!readBits(1);
  37708. } else {
  37709. // reading inclusion tree
  37710. precinct = codeblock.precinct;
  37711. var inclusionTree, zeroBitPlanesTree;
  37712. if ('inclusionTree' in precinct) {
  37713. inclusionTree = precinct.inclusionTree;
  37714. } else {
  37715. // building inclusion and zero bit-planes trees
  37716. var width = precinct.cbxMax - precinct.cbxMin + 1;
  37717. var height = precinct.cbyMax - precinct.cbyMin + 1;
  37718. inclusionTree = new InclusionTree(width, height, layerNumber);
  37719. zeroBitPlanesTree = new TagTree(width, height);
  37720. precinct.inclusionTree = inclusionTree;
  37721. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  37722. }
  37723. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  37724. while (true) {
  37725. if (readBits(1)) {
  37726. valueReady = !inclusionTree.nextLevel();
  37727. if (valueReady) {
  37728. codeblock.included = true;
  37729. codeblockIncluded = firstTimeInclusion = true;
  37730. break;
  37731. }
  37732. } else {
  37733. inclusionTree.incrementValue(layerNumber);
  37734. break;
  37735. }
  37736. }
  37737. }
  37738. }
  37739. if (!codeblockIncluded) {
  37740. continue;
  37741. }
  37742. if (firstTimeInclusion) {
  37743. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  37744. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  37745. while (true) {
  37746. if (readBits(1)) {
  37747. valueReady = !zeroBitPlanesTree.nextLevel();
  37748. if (valueReady) {
  37749. break;
  37750. }
  37751. } else {
  37752. zeroBitPlanesTree.incrementValue();
  37753. }
  37754. }
  37755. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  37756. }
  37757. var codingpasses = readCodingpasses();
  37758. while (readBits(1)) {
  37759. codeblock.Lblock++;
  37760. }
  37761. var codingpassesLog2 = log2(codingpasses);
  37762. // rounding down log2
  37763. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  37764. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  37765. var codedDataLength = readBits(bits);
  37766. queue.push({
  37767. codeblock: codeblock,
  37768. codingpasses: codingpasses,
  37769. dataLength: codedDataLength
  37770. });
  37771. }
  37772. alignToByte();
  37773. while (queue.length > 0) {
  37774. var packetItem = queue.shift();
  37775. codeblock = packetItem.codeblock;
  37776. if (!('data' in codeblock)) {
  37777. codeblock.data = [];
  37778. }
  37779. codeblock.data.push({
  37780. data: data,
  37781. start: offset + position,
  37782. end: offset + position + packetItem.dataLength,
  37783. codingpasses: packetItem.codingpasses
  37784. });
  37785. position += packetItem.dataLength;
  37786. }
  37787. }
  37788. return position;
  37789. }
  37790. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  37791. delta, mb, reversible, segmentationSymbolUsed) {
  37792. var x0 = subband.tbx0;
  37793. var y0 = subband.tby0;
  37794. var width = subband.tbx1 - subband.tbx0;
  37795. var codeblocks = subband.codeblocks;
  37796. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  37797. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  37798. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  37799. var codeblock = codeblocks[i];
  37800. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  37801. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  37802. if (blockWidth === 0 || blockHeight === 0) {
  37803. continue;
  37804. }
  37805. if (!('data' in codeblock)) {
  37806. continue;
  37807. }
  37808. var bitModel, currentCodingpassType;
  37809. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  37810. codeblock.zeroBitPlanes, mb);
  37811. currentCodingpassType = 2; // first bit plane starts from cleanup
  37812. // collect data
  37813. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  37814. var j, jj, dataItem;
  37815. for (j = 0, jj = data.length; j < jj; j++) {
  37816. dataItem = data[j];
  37817. totalLength += dataItem.end - dataItem.start;
  37818. codingpasses += dataItem.codingpasses;
  37819. }
  37820. var encodedData = new Uint8Array(totalLength);
  37821. var position = 0;
  37822. for (j = 0, jj = data.length; j < jj; j++) {
  37823. dataItem = data[j];
  37824. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  37825. encodedData.set(chunk, position);
  37826. position += chunk.length;
  37827. }
  37828. // decoding the item
  37829. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  37830. bitModel.setDecoder(decoder);
  37831. for (j = 0; j < codingpasses; j++) {
  37832. switch (currentCodingpassType) {
  37833. case 0:
  37834. bitModel.runSignificancePropogationPass();
  37835. break;
  37836. case 1:
  37837. bitModel.runMagnitudeRefinementPass();
  37838. break;
  37839. case 2:
  37840. bitModel.runCleanupPass();
  37841. if (segmentationSymbolUsed) {
  37842. bitModel.checkSegmentationSymbol();
  37843. }
  37844. break;
  37845. }
  37846. currentCodingpassType = (currentCodingpassType + 1) % 3;
  37847. }
  37848. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  37849. var sign = bitModel.coefficentsSign;
  37850. var magnitude = bitModel.coefficentsMagnitude;
  37851. var bitsDecoded = bitModel.bitsDecoded;
  37852. var magnitudeCorrection = reversible ? 0 : 0.5;
  37853. var k, n, nb;
  37854. position = 0;
  37855. // Do the interleaving of Section F.3.3 here, so we do not need
  37856. // to copy later. LL level is not interleaved, just copied.
  37857. var interleave = (subband.type !== 'LL');
  37858. for (j = 0; j < blockHeight; j++) {
  37859. var row = (offset / width) | 0; // row in the non-interleaved subband
  37860. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  37861. for (k = 0; k < blockWidth; k++) {
  37862. n = magnitude[position];
  37863. if (n !== 0) {
  37864. n = (n + magnitudeCorrection) * delta;
  37865. if (sign[position] !== 0) {
  37866. n = -n;
  37867. }
  37868. nb = bitsDecoded[position];
  37869. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  37870. if (reversible && (nb >= mb)) {
  37871. coefficients[pos] = n;
  37872. } else {
  37873. coefficients[pos] = n * (1 << (mb - nb));
  37874. }
  37875. }
  37876. offset++;
  37877. position++;
  37878. }
  37879. offset += width - blockWidth;
  37880. }
  37881. }
  37882. }
  37883. function transformTile(context, tile, c) {
  37884. var component = tile.components[c];
  37885. var codingStyleParameters = component.codingStyleParameters;
  37886. var quantizationParameters = component.quantizationParameters;
  37887. var decompositionLevelsCount =
  37888. codingStyleParameters.decompositionLevelsCount;
  37889. var spqcds = quantizationParameters.SPqcds;
  37890. var scalarExpounded = quantizationParameters.scalarExpounded;
  37891. var guardBits = quantizationParameters.guardBits;
  37892. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  37893. var precision = context.components[c].precision;
  37894. var reversible = codingStyleParameters.reversibleTransformation;
  37895. var transform = (reversible ? new ReversibleTransform() :
  37896. new IrreversibleTransform());
  37897. var subbandCoefficients = [];
  37898. var b = 0;
  37899. for (var i = 0; i <= decompositionLevelsCount; i++) {
  37900. var resolution = component.resolutions[i];
  37901. var width = resolution.trx1 - resolution.trx0;
  37902. var height = resolution.try1 - resolution.try0;
  37903. // Allocate space for the whole sublevel.
  37904. var coefficients = new Float32Array(width * height);
  37905. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  37906. var mu, epsilon;
  37907. if (!scalarExpounded) {
  37908. // formula E-5
  37909. mu = spqcds[0].mu;
  37910. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  37911. } else {
  37912. mu = spqcds[b].mu;
  37913. epsilon = spqcds[b].epsilon;
  37914. b++;
  37915. }
  37916. var subband = resolution.subbands[j];
  37917. var gainLog2 = SubbandsGainLog2[subband.type];
  37918. // calulate quantization coefficient (Section E.1.1.1)
  37919. var delta = (reversible ? 1 :
  37920. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  37921. var mb = (guardBits + epsilon - 1);
  37922. // In the first resolution level, copyCoefficients will fill the
  37923. // whole array with coefficients. In the succeding passes,
  37924. // copyCoefficients will consecutively fill in the values that belong
  37925. // to the interleaved positions of the HL, LH, and HH coefficients.
  37926. // The LL coefficients will then be interleaved in Transform.iterate().
  37927. copyCoefficients(coefficients, width, height, subband, delta, mb,
  37928. reversible, segmentationSymbolUsed);
  37929. }
  37930. subbandCoefficients.push({
  37931. width: width,
  37932. height: height,
  37933. items: coefficients
  37934. });
  37935. }
  37936. var result = transform.calculate(subbandCoefficients,
  37937. component.tcx0, component.tcy0);
  37938. return {
  37939. left: component.tcx0,
  37940. top: component.tcy0,
  37941. width: result.width,
  37942. height: result.height,
  37943. items: result.items
  37944. };
  37945. }
  37946. function transformComponents(context) {
  37947. var siz = context.SIZ;
  37948. var components = context.components;
  37949. var componentsCount = siz.Csiz;
  37950. var resultImages = [];
  37951. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  37952. var tile = context.tiles[i];
  37953. var transformedTiles = [];
  37954. var c;
  37955. for (c = 0; c < componentsCount; c++) {
  37956. transformedTiles[c] = transformTile(context, tile, c);
  37957. }
  37958. var tile0 = transformedTiles[0];
  37959. var out = new Uint8Array(tile0.items.length * componentsCount);
  37960. var result = {
  37961. left: tile0.left,
  37962. top: tile0.top,
  37963. width: tile0.width,
  37964. height: tile0.height,
  37965. items: out
  37966. };
  37967. // Section G.2.2 Inverse multi component transform
  37968. var shift, offset, max, min, maxK;
  37969. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  37970. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  37971. var fourComponents = componentsCount === 4;
  37972. var y0items = transformedTiles[0].items;
  37973. var y1items = transformedTiles[1].items;
  37974. var y2items = transformedTiles[2].items;
  37975. var y3items = fourComponents ? transformedTiles[3].items : null;
  37976. // HACK: The multiple component transform formulas below assume that
  37977. // all components have the same precision. With this in mind, we
  37978. // compute shift and offset only once.
  37979. shift = components[0].precision - 8;
  37980. offset = (128 << shift) + 0.5;
  37981. max = 255 * (1 << shift);
  37982. maxK = max * 0.5;
  37983. min = -maxK;
  37984. var component0 = tile.components[0];
  37985. var alpha01 = componentsCount - 3;
  37986. jj = y0items.length;
  37987. if (!component0.codingStyleParameters.reversibleTransformation) {
  37988. // inverse irreversible multiple component transform
  37989. for (j = 0; j < jj; j++, pos += alpha01) {
  37990. y0 = y0items[j] + offset;
  37991. y1 = y1items[j];
  37992. y2 = y2items[j];
  37993. r = y0 + 1.402 * y2;
  37994. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  37995. b = y0 + 1.772 * y1;
  37996. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  37997. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  37998. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  37999. }
  38000. } else {
  38001. // inverse reversible multiple component transform
  38002. for (j = 0; j < jj; j++, pos += alpha01) {
  38003. y0 = y0items[j] + offset;
  38004. y1 = y1items[j];
  38005. y2 = y2items[j];
  38006. g = y0 - ((y2 + y1) >> 2);
  38007. r = g + y2;
  38008. b = g + y1;
  38009. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  38010. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  38011. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  38012. }
  38013. }
  38014. if (fourComponents) {
  38015. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  38016. k = y3items[j];
  38017. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  38018. }
  38019. }
  38020. } else { // no multi-component transform
  38021. for (c = 0; c < componentsCount; c++) {
  38022. var items = transformedTiles[c].items;
  38023. shift = components[c].precision - 8;
  38024. offset = (128 << shift) + 0.5;
  38025. max = (127.5 * (1 << shift));
  38026. min = -max;
  38027. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  38028. val = items[j];
  38029. out[pos] = val <= min ? 0 :
  38030. val >= max ? 255 : (val + offset) >> shift;
  38031. pos += componentsCount;
  38032. }
  38033. }
  38034. }
  38035. resultImages.push(result);
  38036. }
  38037. return resultImages;
  38038. }
  38039. function initializeTile(context, tileIndex) {
  38040. var siz = context.SIZ;
  38041. var componentsCount = siz.Csiz;
  38042. var tile = context.tiles[tileIndex];
  38043. for (var c = 0; c < componentsCount; c++) {
  38044. var component = tile.components[c];
  38045. var qcdOrQcc = (c in context.currentTile.QCC ?
  38046. context.currentTile.QCC[c] : context.currentTile.QCD);
  38047. component.quantizationParameters = qcdOrQcc;
  38048. var codOrCoc = (c in context.currentTile.COC ?
  38049. context.currentTile.COC[c] : context.currentTile.COD);
  38050. component.codingStyleParameters = codOrCoc;
  38051. }
  38052. tile.codingStyleDefaultParameters = context.currentTile.COD;
  38053. }
  38054. // Section B.10.2 Tag trees
  38055. var TagTree = (function TagTreeClosure() {
  38056. function TagTree(width, height) {
  38057. var levelsLength = log2(Math.max(width, height)) + 1;
  38058. this.levels = [];
  38059. for (var i = 0; i < levelsLength; i++) {
  38060. var level = {
  38061. width: width,
  38062. height: height,
  38063. items: []
  38064. };
  38065. this.levels.push(level);
  38066. width = Math.ceil(width / 2);
  38067. height = Math.ceil(height / 2);
  38068. }
  38069. }
  38070. TagTree.prototype = {
  38071. reset: function TagTree_reset(i, j) {
  38072. var currentLevel = 0, value = 0, level;
  38073. while (currentLevel < this.levels.length) {
  38074. level = this.levels[currentLevel];
  38075. var index = i + j * level.width;
  38076. if (index in level.items) {
  38077. value = level.items[index];
  38078. break;
  38079. }
  38080. level.index = index;
  38081. i >>= 1;
  38082. j >>= 1;
  38083. currentLevel++;
  38084. }
  38085. currentLevel--;
  38086. level = this.levels[currentLevel];
  38087. level.items[level.index] = value;
  38088. this.currentLevel = currentLevel;
  38089. delete this.value;
  38090. },
  38091. incrementValue: function TagTree_incrementValue() {
  38092. var level = this.levels[this.currentLevel];
  38093. level.items[level.index]++;
  38094. },
  38095. nextLevel: function TagTree_nextLevel() {
  38096. var currentLevel = this.currentLevel;
  38097. var level = this.levels[currentLevel];
  38098. var value = level.items[level.index];
  38099. currentLevel--;
  38100. if (currentLevel < 0) {
  38101. this.value = value;
  38102. return false;
  38103. }
  38104. this.currentLevel = currentLevel;
  38105. level = this.levels[currentLevel];
  38106. level.items[level.index] = value;
  38107. return true;
  38108. }
  38109. };
  38110. return TagTree;
  38111. })();
  38112. var InclusionTree = (function InclusionTreeClosure() {
  38113. function InclusionTree(width, height, defaultValue) {
  38114. var levelsLength = log2(Math.max(width, height)) + 1;
  38115. this.levels = [];
  38116. for (var i = 0; i < levelsLength; i++) {
  38117. var items = new Uint8Array(width * height);
  38118. for (var j = 0, jj = items.length; j < jj; j++) {
  38119. items[j] = defaultValue;
  38120. }
  38121. var level = {
  38122. width: width,
  38123. height: height,
  38124. items: items
  38125. };
  38126. this.levels.push(level);
  38127. width = Math.ceil(width / 2);
  38128. height = Math.ceil(height / 2);
  38129. }
  38130. }
  38131. InclusionTree.prototype = {
  38132. reset: function InclusionTree_reset(i, j, stopValue) {
  38133. var currentLevel = 0;
  38134. while (currentLevel < this.levels.length) {
  38135. var level = this.levels[currentLevel];
  38136. var index = i + j * level.width;
  38137. level.index = index;
  38138. var value = level.items[index];
  38139. if (value == 0xFF) {
  38140. break;
  38141. }
  38142. if (value > stopValue) {
  38143. this.currentLevel = currentLevel;
  38144. // already know about this one, propagating the value to top levels
  38145. this.propagateValues();
  38146. return false;
  38147. }
  38148. i >>= 1;
  38149. j >>= 1;
  38150. currentLevel++;
  38151. }
  38152. this.currentLevel = currentLevel - 1;
  38153. return true;
  38154. },
  38155. incrementValue: function InclusionTree_incrementValue(stopValue) {
  38156. var level = this.levels[this.currentLevel];
  38157. level.items[level.index] = stopValue + 1;
  38158. this.propagateValues();
  38159. },
  38160. propagateValues: function InclusionTree_propagateValues() {
  38161. var levelIndex = this.currentLevel;
  38162. var level = this.levels[levelIndex];
  38163. var currentValue = level.items[level.index];
  38164. while (--levelIndex >= 0) {
  38165. level = this.levels[levelIndex];
  38166. level.items[level.index] = currentValue;
  38167. }
  38168. },
  38169. nextLevel: function InclusionTree_nextLevel() {
  38170. var currentLevel = this.currentLevel;
  38171. var level = this.levels[currentLevel];
  38172. var value = level.items[level.index];
  38173. level.items[level.index] = 0xFF;
  38174. currentLevel--;
  38175. if (currentLevel < 0) {
  38176. return false;
  38177. }
  38178. this.currentLevel = currentLevel;
  38179. level = this.levels[currentLevel];
  38180. level.items[level.index] = value;
  38181. return true;
  38182. }
  38183. };
  38184. return InclusionTree;
  38185. })();
  38186. // Section D. Coefficient bit modeling
  38187. var BitModel = (function BitModelClosure() {
  38188. var UNIFORM_CONTEXT = 17;
  38189. var RUNLENGTH_CONTEXT = 18;
  38190. // Table D-1
  38191. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  38192. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  38193. var LLAndLHContextsLabel = new Uint8Array([
  38194. 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,
  38195. 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,
  38196. 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
  38197. ]);
  38198. var HLContextLabel = new Uint8Array([
  38199. 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,
  38200. 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,
  38201. 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
  38202. ]);
  38203. var HHContextLabel = new Uint8Array([
  38204. 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,
  38205. 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,
  38206. 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
  38207. ]);
  38208. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  38209. this.width = width;
  38210. this.height = height;
  38211. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  38212. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  38213. var coefficientCount = width * height;
  38214. // coefficients outside the encoding region treated as insignificant
  38215. // add border state cells for significanceState
  38216. this.neighborsSignificance = new Uint8Array(coefficientCount);
  38217. this.coefficentsSign = new Uint8Array(coefficientCount);
  38218. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  38219. mb > 6 ? new Uint16Array(coefficientCount) :
  38220. new Uint8Array(coefficientCount);
  38221. this.processingFlags = new Uint8Array(coefficientCount);
  38222. var bitsDecoded = new Uint8Array(coefficientCount);
  38223. if (zeroBitPlanes !== 0) {
  38224. for (var i = 0; i < coefficientCount; i++) {
  38225. bitsDecoded[i] = zeroBitPlanes;
  38226. }
  38227. }
  38228. this.bitsDecoded = bitsDecoded;
  38229. this.reset();
  38230. }
  38231. BitModel.prototype = {
  38232. setDecoder: function BitModel_setDecoder(decoder) {
  38233. this.decoder = decoder;
  38234. },
  38235. reset: function BitModel_reset() {
  38236. // We have 17 contexts that are accessed via context labels,
  38237. // plus the uniform and runlength context.
  38238. this.contexts = new Int8Array(19);
  38239. // Contexts are packed into 1 byte:
  38240. // highest 7 bits carry the index, lowest bit carries mps
  38241. this.contexts[0] = (4 << 1) | 0;
  38242. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  38243. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  38244. },
  38245. setNeighborsSignificance:
  38246. function BitModel_setNeighborsSignificance(row, column, index) {
  38247. var neighborsSignificance = this.neighborsSignificance;
  38248. var width = this.width, height = this.height;
  38249. var left = (column > 0);
  38250. var right = (column + 1 < width);
  38251. var i;
  38252. if (row > 0) {
  38253. i = index - width;
  38254. if (left) {
  38255. neighborsSignificance[i - 1] += 0x10;
  38256. }
  38257. if (right) {
  38258. neighborsSignificance[i + 1] += 0x10;
  38259. }
  38260. neighborsSignificance[i] += 0x04;
  38261. }
  38262. if (row + 1 < height) {
  38263. i = index + width;
  38264. if (left) {
  38265. neighborsSignificance[i - 1] += 0x10;
  38266. }
  38267. if (right) {
  38268. neighborsSignificance[i + 1] += 0x10;
  38269. }
  38270. neighborsSignificance[i] += 0x04;
  38271. }
  38272. if (left) {
  38273. neighborsSignificance[index - 1] += 0x01;
  38274. }
  38275. if (right) {
  38276. neighborsSignificance[index + 1] += 0x01;
  38277. }
  38278. neighborsSignificance[index] |= 0x80;
  38279. },
  38280. runSignificancePropogationPass:
  38281. function BitModel_runSignificancePropogationPass() {
  38282. var decoder = this.decoder;
  38283. var width = this.width, height = this.height;
  38284. var coefficentsMagnitude = this.coefficentsMagnitude;
  38285. var coefficentsSign = this.coefficentsSign;
  38286. var neighborsSignificance = this.neighborsSignificance;
  38287. var processingFlags = this.processingFlags;
  38288. var contexts = this.contexts;
  38289. var labels = this.contextLabelTable;
  38290. var bitsDecoded = this.bitsDecoded;
  38291. var processedInverseMask = ~1;
  38292. var processedMask = 1;
  38293. var firstMagnitudeBitMask = 2;
  38294. for (var i0 = 0; i0 < height; i0 += 4) {
  38295. for (var j = 0; j < width; j++) {
  38296. var index = i0 * width + j;
  38297. for (var i1 = 0; i1 < 4; i1++, index += width) {
  38298. var i = i0 + i1;
  38299. if (i >= height) {
  38300. break;
  38301. }
  38302. // clear processed flag first
  38303. processingFlags[index] &= processedInverseMask;
  38304. if (coefficentsMagnitude[index] ||
  38305. !neighborsSignificance[index]) {
  38306. continue;
  38307. }
  38308. var contextLabel = labels[neighborsSignificance[index]];
  38309. var decision = decoder.readBit(contexts, contextLabel);
  38310. if (decision) {
  38311. var sign = this.decodeSignBit(i, j, index);
  38312. coefficentsSign[index] = sign;
  38313. coefficentsMagnitude[index] = 1;
  38314. this.setNeighborsSignificance(i, j, index);
  38315. processingFlags[index] |= firstMagnitudeBitMask;
  38316. }
  38317. bitsDecoded[index]++;
  38318. processingFlags[index] |= processedMask;
  38319. }
  38320. }
  38321. }
  38322. },
  38323. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  38324. var width = this.width, height = this.height;
  38325. var coefficentsMagnitude = this.coefficentsMagnitude;
  38326. var coefficentsSign = this.coefficentsSign;
  38327. var contribution, sign0, sign1, significance1;
  38328. var contextLabel, decoded;
  38329. // calculate horizontal contribution
  38330. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  38331. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  38332. sign1 = coefficentsSign[index + 1];
  38333. if (significance1) {
  38334. sign0 = coefficentsSign[index - 1];
  38335. contribution = 1 - sign1 - sign0;
  38336. } else {
  38337. contribution = 1 - sign1 - sign1;
  38338. }
  38339. } else if (significance1) {
  38340. sign0 = coefficentsSign[index - 1];
  38341. contribution = 1 - sign0 - sign0;
  38342. } else {
  38343. contribution = 0;
  38344. }
  38345. var horizontalContribution = 3 * contribution;
  38346. // calculate vertical contribution and combine with the horizontal
  38347. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  38348. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  38349. sign1 = coefficentsSign[index + width];
  38350. if (significance1) {
  38351. sign0 = coefficentsSign[index - width];
  38352. contribution = 1 - sign1 - sign0 + horizontalContribution;
  38353. } else {
  38354. contribution = 1 - sign1 - sign1 + horizontalContribution;
  38355. }
  38356. } else if (significance1) {
  38357. sign0 = coefficentsSign[index - width];
  38358. contribution = 1 - sign0 - sign0 + horizontalContribution;
  38359. } else {
  38360. contribution = horizontalContribution;
  38361. }
  38362. if (contribution >= 0) {
  38363. contextLabel = 9 + contribution;
  38364. decoded = this.decoder.readBit(this.contexts, contextLabel);
  38365. } else {
  38366. contextLabel = 9 - contribution;
  38367. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  38368. }
  38369. return decoded;
  38370. },
  38371. runMagnitudeRefinementPass:
  38372. function BitModel_runMagnitudeRefinementPass() {
  38373. var decoder = this.decoder;
  38374. var width = this.width, height = this.height;
  38375. var coefficentsMagnitude = this.coefficentsMagnitude;
  38376. var neighborsSignificance = this.neighborsSignificance;
  38377. var contexts = this.contexts;
  38378. var bitsDecoded = this.bitsDecoded;
  38379. var processingFlags = this.processingFlags;
  38380. var processedMask = 1;
  38381. var firstMagnitudeBitMask = 2;
  38382. var length = width * height;
  38383. var width4 = width * 4;
  38384. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  38385. indexNext = Math.min(length, index0 + width4);
  38386. for (var j = 0; j < width; j++) {
  38387. for (var index = index0 + j; index < indexNext; index += width) {
  38388. // significant but not those that have just become
  38389. if (!coefficentsMagnitude[index] ||
  38390. (processingFlags[index] & processedMask) !== 0) {
  38391. continue;
  38392. }
  38393. var contextLabel = 16;
  38394. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  38395. processingFlags[index] ^= firstMagnitudeBitMask;
  38396. // first refinement
  38397. var significance = neighborsSignificance[index] & 127;
  38398. contextLabel = significance === 0 ? 15 : 14;
  38399. }
  38400. var bit = decoder.readBit(contexts, contextLabel);
  38401. coefficentsMagnitude[index] =
  38402. (coefficentsMagnitude[index] << 1) | bit;
  38403. bitsDecoded[index]++;
  38404. processingFlags[index] |= processedMask;
  38405. }
  38406. }
  38407. }
  38408. },
  38409. runCleanupPass: function BitModel_runCleanupPass() {
  38410. var decoder = this.decoder;
  38411. var width = this.width, height = this.height;
  38412. var neighborsSignificance = this.neighborsSignificance;
  38413. var coefficentsMagnitude = this.coefficentsMagnitude;
  38414. var coefficentsSign = this.coefficentsSign;
  38415. var contexts = this.contexts;
  38416. var labels = this.contextLabelTable;
  38417. var bitsDecoded = this.bitsDecoded;
  38418. var processingFlags = this.processingFlags;
  38419. var processedMask = 1;
  38420. var firstMagnitudeBitMask = 2;
  38421. var oneRowDown = width;
  38422. var twoRowsDown = width * 2;
  38423. var threeRowsDown = width * 3;
  38424. var iNext;
  38425. for (var i0 = 0; i0 < height; i0 = iNext) {
  38426. iNext = Math.min(i0 + 4, height);
  38427. var indexBase = i0 * width;
  38428. var checkAllEmpty = i0 + 3 < height;
  38429. for (var j = 0; j < width; j++) {
  38430. var index0 = indexBase + j;
  38431. // using the property: labels[neighborsSignificance[index]] == 0
  38432. // when neighborsSignificance[index] == 0
  38433. var allEmpty = (checkAllEmpty &&
  38434. processingFlags[index0] === 0 &&
  38435. processingFlags[index0 + oneRowDown] === 0 &&
  38436. processingFlags[index0 + twoRowsDown] === 0 &&
  38437. processingFlags[index0 + threeRowsDown] === 0 &&
  38438. neighborsSignificance[index0] === 0 &&
  38439. neighborsSignificance[index0 + oneRowDown] === 0 &&
  38440. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  38441. neighborsSignificance[index0 + threeRowsDown] === 0);
  38442. var i1 = 0, index = index0;
  38443. var i = i0, sign;
  38444. if (allEmpty) {
  38445. var hasSignificantCoefficent =
  38446. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  38447. if (!hasSignificantCoefficent) {
  38448. bitsDecoded[index0]++;
  38449. bitsDecoded[index0 + oneRowDown]++;
  38450. bitsDecoded[index0 + twoRowsDown]++;
  38451. bitsDecoded[index0 + threeRowsDown]++;
  38452. continue; // next column
  38453. }
  38454. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38455. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38456. if (i1 !== 0) {
  38457. i = i0 + i1;
  38458. index += i1 * width;
  38459. }
  38460. sign = this.decodeSignBit(i, j, index);
  38461. coefficentsSign[index] = sign;
  38462. coefficentsMagnitude[index] = 1;
  38463. this.setNeighborsSignificance(i, j, index);
  38464. processingFlags[index] |= firstMagnitudeBitMask;
  38465. index = index0;
  38466. for (var i2 = i0; i2 <= i; i2++, index += width) {
  38467. bitsDecoded[index]++;
  38468. }
  38469. i1++;
  38470. }
  38471. for (i = i0 + i1; i < iNext; i++, index += width) {
  38472. if (coefficentsMagnitude[index] ||
  38473. (processingFlags[index] & processedMask) !== 0) {
  38474. continue;
  38475. }
  38476. var contextLabel = labels[neighborsSignificance[index]];
  38477. var decision = decoder.readBit(contexts, contextLabel);
  38478. if (decision === 1) {
  38479. sign = this.decodeSignBit(i, j, index);
  38480. coefficentsSign[index] = sign;
  38481. coefficentsMagnitude[index] = 1;
  38482. this.setNeighborsSignificance(i, j, index);
  38483. processingFlags[index] |= firstMagnitudeBitMask;
  38484. }
  38485. bitsDecoded[index]++;
  38486. }
  38487. }
  38488. }
  38489. },
  38490. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  38491. var decoder = this.decoder;
  38492. var contexts = this.contexts;
  38493. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  38494. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  38495. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38496. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38497. if (symbol != 0xA) {
  38498. throw 'Invalid segmentation symbol';
  38499. }
  38500. }
  38501. };
  38502. return BitModel;
  38503. })();
  38504. // Section F, Discrete wavelet transformation
  38505. var Transform = (function TransformClosure() {
  38506. function Transform() {}
  38507. Transform.prototype.calculate =
  38508. function transformCalculate(subbands, u0, v0) {
  38509. var ll = subbands[0];
  38510. for (var i = 1, ii = subbands.length; i < ii; i++) {
  38511. ll = this.iterate(ll, subbands[i], u0, v0);
  38512. }
  38513. return ll;
  38514. };
  38515. Transform.prototype.extend = function extend(buffer, offset, size) {
  38516. // Section F.3.7 extending... using max extension of 4
  38517. var i1 = offset - 1, j1 = offset + 1;
  38518. var i2 = offset + size - 2, j2 = offset + size;
  38519. buffer[i1--] = buffer[j1++];
  38520. buffer[j2++] = buffer[i2--];
  38521. buffer[i1--] = buffer[j1++];
  38522. buffer[j2++] = buffer[i2--];
  38523. buffer[i1--] = buffer[j1++];
  38524. buffer[j2++] = buffer[i2--];
  38525. buffer[i1] = buffer[j1];
  38526. buffer[j2] = buffer[i2];
  38527. };
  38528. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  38529. u0, v0) {
  38530. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  38531. var width = hl_lh_hh.width;
  38532. var height = hl_lh_hh.height;
  38533. var items = hl_lh_hh.items;
  38534. var i, j, k, l, u, v;
  38535. // Interleave LL according to Section F.3.3
  38536. for (k = 0, i = 0; i < llHeight; i++) {
  38537. l = i * 2 * width;
  38538. for (j = 0; j < llWidth; j++, k++, l += 2) {
  38539. items[l] = llItems[k];
  38540. }
  38541. }
  38542. // The LL band is not needed anymore.
  38543. llItems = ll.items = null;
  38544. var bufferPadding = 4;
  38545. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  38546. // Section F.3.4 HOR_SR
  38547. if (width === 1) {
  38548. // if width = 1, when u0 even keep items as is, when odd divide by 2
  38549. if ((u0 & 1) !== 0) {
  38550. for (v = 0, k = 0; v < height; v++, k += width) {
  38551. items[k] *= 0.5;
  38552. }
  38553. }
  38554. } else {
  38555. for (v = 0, k = 0; v < height; v++, k += width) {
  38556. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  38557. this.extend(rowBuffer, bufferPadding, width);
  38558. this.filter(rowBuffer, bufferPadding, width);
  38559. items.set(
  38560. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  38561. k);
  38562. }
  38563. }
  38564. // Accesses to the items array can take long, because it may not fit into
  38565. // CPU cache and has to be fetched from main memory. Since subsequent
  38566. // accesses to the items array are not local when reading columns, we
  38567. // have a cache miss every time. To reduce cache misses, get up to
  38568. // 'numBuffers' items at a time and store them into the individual
  38569. // buffers. The colBuffers should be small enough to fit into CPU cache.
  38570. var numBuffers = 16;
  38571. var colBuffers = [];
  38572. for (i = 0; i < numBuffers; i++) {
  38573. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  38574. }
  38575. var b, currentBuffer = 0;
  38576. ll = bufferPadding + height;
  38577. // Section F.3.5 VER_SR
  38578. if (height === 1) {
  38579. // if height = 1, when v0 even keep items as is, when odd divide by 2
  38580. if ((v0 & 1) !== 0) {
  38581. for (u = 0; u < width; u++) {
  38582. items[u] *= 0.5;
  38583. }
  38584. }
  38585. } else {
  38586. for (u = 0; u < width; u++) {
  38587. // if we ran out of buffers, copy several image columns at once
  38588. if (currentBuffer === 0) {
  38589. numBuffers = Math.min(width - u, numBuffers);
  38590. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  38591. for (b = 0; b < numBuffers; b++) {
  38592. colBuffers[b][l] = items[k + b];
  38593. }
  38594. }
  38595. currentBuffer = numBuffers;
  38596. }
  38597. currentBuffer--;
  38598. var buffer = colBuffers[currentBuffer];
  38599. this.extend(buffer, bufferPadding, height);
  38600. this.filter(buffer, bufferPadding, height);
  38601. // If this is last buffer in this group of buffers, flush all buffers.
  38602. if (currentBuffer === 0) {
  38603. k = u - numBuffers + 1;
  38604. for (l = bufferPadding; l < ll; k += width, l++) {
  38605. for (b = 0; b < numBuffers; b++) {
  38606. items[k + b] = colBuffers[b][l];
  38607. }
  38608. }
  38609. }
  38610. }
  38611. }
  38612. return {
  38613. width: width,
  38614. height: height,
  38615. items: items
  38616. };
  38617. };
  38618. return Transform;
  38619. })();
  38620. // Section 3.8.2 Irreversible 9-7 filter
  38621. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  38622. function IrreversibleTransform() {
  38623. Transform.call(this);
  38624. }
  38625. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  38626. IrreversibleTransform.prototype.filter =
  38627. function irreversibleTransformFilter(x, offset, length) {
  38628. var len = length >> 1;
  38629. offset = offset | 0;
  38630. var j, n, current, next;
  38631. var alpha = -1.586134342059924;
  38632. var beta = -0.052980118572961;
  38633. var gamma = 0.882911075530934;
  38634. var delta = 0.443506852043971;
  38635. var K = 1.230174104914001;
  38636. var K_ = 1 / K;
  38637. // step 1 is combined with step 3
  38638. // step 2
  38639. j = offset - 3;
  38640. for (n = len + 4; n--; j += 2) {
  38641. x[j] *= K_;
  38642. }
  38643. // step 1 & 3
  38644. j = offset - 2;
  38645. current = delta * x[j -1];
  38646. for (n = len + 3; n--; j += 2) {
  38647. next = delta * x[j + 1];
  38648. x[j] = K * x[j] - current - next;
  38649. if (n--) {
  38650. j += 2;
  38651. current = delta * x[j + 1];
  38652. x[j] = K * x[j] - current - next;
  38653. } else {
  38654. break;
  38655. }
  38656. }
  38657. // step 4
  38658. j = offset - 1;
  38659. current = gamma * x[j - 1];
  38660. for (n = len + 2; n--; j += 2) {
  38661. next = gamma * x[j + 1];
  38662. x[j] -= current + next;
  38663. if (n--) {
  38664. j += 2;
  38665. current = gamma * x[j + 1];
  38666. x[j] -= current + next;
  38667. } else {
  38668. break;
  38669. }
  38670. }
  38671. // step 5
  38672. j = offset;
  38673. current = beta * x[j - 1];
  38674. for (n = len + 1; n--; j += 2) {
  38675. next = beta * x[j + 1];
  38676. x[j] -= current + next;
  38677. if (n--) {
  38678. j += 2;
  38679. current = beta * x[j + 1];
  38680. x[j] -= current + next;
  38681. } else {
  38682. break;
  38683. }
  38684. }
  38685. // step 6
  38686. if (len !== 0) {
  38687. j = offset + 1;
  38688. current = alpha * x[j - 1];
  38689. for (n = len; n--; j += 2) {
  38690. next = alpha * x[j + 1];
  38691. x[j] -= current + next;
  38692. if (n--) {
  38693. j += 2;
  38694. current = alpha * x[j + 1];
  38695. x[j] -= current + next;
  38696. } else {
  38697. break;
  38698. }
  38699. }
  38700. }
  38701. };
  38702. return IrreversibleTransform;
  38703. })();
  38704. // Section 3.8.1 Reversible 5-3 filter
  38705. var ReversibleTransform = (function ReversibleTransformClosure() {
  38706. function ReversibleTransform() {
  38707. Transform.call(this);
  38708. }
  38709. ReversibleTransform.prototype = Object.create(Transform.prototype);
  38710. ReversibleTransform.prototype.filter =
  38711. function reversibleTransformFilter(x, offset, length) {
  38712. var len = length >> 1;
  38713. offset = offset | 0;
  38714. var j, n;
  38715. for (j = offset, n = len + 1; n--; j += 2) {
  38716. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  38717. }
  38718. for (j = offset + 1, n = len; n--; j += 2) {
  38719. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  38720. }
  38721. };
  38722. return ReversibleTransform;
  38723. })();
  38724. return JpxImage;
  38725. })();
  38726. var Jbig2Image = (function Jbig2ImageClosure() {
  38727. // Utility data structures
  38728. function ContextCache() {}
  38729. ContextCache.prototype = {
  38730. getContexts: function(id) {
  38731. if (id in this) {
  38732. return this[id];
  38733. }
  38734. return (this[id] = new Int8Array(1<<16));
  38735. }
  38736. };
  38737. function DecodingContext(data, start, end) {
  38738. this.data = data;
  38739. this.start = start;
  38740. this.end = end;
  38741. }
  38742. DecodingContext.prototype = {
  38743. get decoder() {
  38744. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  38745. return shadow(this, 'decoder', decoder);
  38746. },
  38747. get contextCache() {
  38748. var cache = new ContextCache();
  38749. return shadow(this, 'contextCache', cache);
  38750. }
  38751. };
  38752. // Annex A. Arithmetic Integer Decoding Procedure
  38753. // A.2 Procedure for decoding values
  38754. function decodeInteger(contextCache, procedure, decoder) {
  38755. var contexts = contextCache.getContexts(procedure);
  38756. var prev = 1;
  38757. var state = 1, v = 0, s;
  38758. var toRead = 32, offset = 4436; // defaults for state 7
  38759. while (state) {
  38760. var bit = decoder.readBit(contexts, prev);
  38761. prev = (prev < 256 ? (prev << 1) | bit :
  38762. (((prev << 1) | bit) & 511) | 256);
  38763. switch (state) {
  38764. case 1:
  38765. s = !!bit;
  38766. break;
  38767. case 2:
  38768. if (bit) {
  38769. break;
  38770. }
  38771. state = 7;
  38772. toRead = 2;
  38773. offset = 0;
  38774. break;
  38775. case 3:
  38776. if (bit) {
  38777. break;
  38778. }
  38779. state = 7;
  38780. toRead = 4;
  38781. offset = 4;
  38782. break;
  38783. case 4:
  38784. if (bit) {
  38785. break;
  38786. }
  38787. state = 7;
  38788. toRead = 6;
  38789. offset = 20;
  38790. break;
  38791. case 5:
  38792. if (bit) {
  38793. break;
  38794. }
  38795. state = 7;
  38796. toRead = 8;
  38797. offset = 84;
  38798. break;
  38799. case 6:
  38800. if (bit) {
  38801. break;
  38802. }
  38803. state = 7;
  38804. toRead = 12;
  38805. offset = 340;
  38806. break;
  38807. default:
  38808. v = ((v << 1) | bit) >>> 0;
  38809. if (--toRead === 0) {
  38810. state = 0;
  38811. }
  38812. continue;
  38813. }
  38814. state++;
  38815. }
  38816. v += offset;
  38817. return (!s ? v : (v > 0 ? -v : null));
  38818. }
  38819. // A.3 The IAID decoding procedure
  38820. function decodeIAID(contextCache, decoder, codeLength) {
  38821. var contexts = contextCache.getContexts('IAID');
  38822. var prev = 1;
  38823. for (var i = 0; i < codeLength; i++) {
  38824. var bit = decoder.readBit(contexts, prev);
  38825. prev = (prev << 1) | bit;
  38826. }
  38827. if (codeLength < 31) {
  38828. return prev & ((1 << codeLength) - 1);
  38829. }
  38830. return prev & 0x7FFFFFFF;
  38831. }
  38832. // 7.3 Segment types
  38833. var SegmentTypes = [
  38834. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  38835. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  38836. null, null, null, null, null, 'patternDictionary', null, null, null,
  38837. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  38838. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  38839. null, null, null, null, null, 'IntermediateGenericRegion', null,
  38840. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  38841. 'IntermediateGenericRefinementRegion', null,
  38842. 'ImmediateGenericRefinementRegion',
  38843. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  38844. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  38845. 'Tables', null, null, null, null, null, null, null, null,
  38846. 'Extension'
  38847. ];
  38848. var CodingTemplates = [
  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: -1},
  38851. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38852. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  38853. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  38854. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38855. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38856. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  38857. {x: -1, y: 0}],
  38858. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  38859. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  38860. ];
  38861. var RefinementTemplates = [
  38862. {
  38863. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38864. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  38865. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  38866. },
  38867. {
  38868. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38869. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  38870. {x: 0, y: 1}, {x: 1, y: 1}]
  38871. }
  38872. ];
  38873. var ReusedContexts = [
  38874. 0x1CD3, // '00111001101' (template) + '0011' (at),
  38875. 0x079A, // '001111001101' + '0',
  38876. 0x00E3, // '001110001' + '1',
  38877. 0x018B // '011000101' + '1'
  38878. ];
  38879. var RefinementReusedContexts = [
  38880. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  38881. 0x0008 // '0000' + '001000'
  38882. ];
  38883. // 6.2 Generic Region Decoding Procedure
  38884. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  38885. decodingContext) {
  38886. if (mmr) {
  38887. error('JBIG2 error: MMR encoding is not supported');
  38888. }
  38889. var useskip = !!skip;
  38890. var template = CodingTemplates[templateIndex].concat(at);
  38891. // Sorting is non-standard, and it is not required. But sorting increases
  38892. // the number of template bits that can be reused from the previous
  38893. // contextLabel in the main loop.
  38894. template.sort(function (a, b) {
  38895. return (a.y - b.y) || (a.x - b.x);
  38896. });
  38897. var templateLength = template.length;
  38898. var templateX = new Int8Array(templateLength);
  38899. var templateY = new Int8Array(templateLength);
  38900. var changingTemplateEntries = [];
  38901. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  38902. var c, k;
  38903. for (k = 0; k < templateLength; k++) {
  38904. templateX[k] = template[k].x;
  38905. templateY[k] = template[k].y;
  38906. minX = Math.min(minX, template[k].x);
  38907. maxX = Math.max(maxX, template[k].x);
  38908. minY = Math.min(minY, template[k].y);
  38909. // Check if the template pixel appears in two consecutive context labels,
  38910. // so it can be reused. Otherwise, we add it to the list of changing
  38911. // template entries.
  38912. if (k < templateLength - 1 &&
  38913. template[k].y === template[k + 1].y &&
  38914. template[k].x === template[k + 1].x - 1) {
  38915. reuseMask |= 1 << (templateLength - 1 - k);
  38916. } else {
  38917. changingTemplateEntries.push(k);
  38918. }
  38919. }
  38920. var changingEntriesLength = changingTemplateEntries.length;
  38921. var changingTemplateX = new Int8Array(changingEntriesLength);
  38922. var changingTemplateY = new Int8Array(changingEntriesLength);
  38923. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  38924. for (c = 0; c < changingEntriesLength; c++) {
  38925. k = changingTemplateEntries[c];
  38926. changingTemplateX[c] = template[k].x;
  38927. changingTemplateY[c] = template[k].y;
  38928. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  38929. }
  38930. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  38931. var sbb_left = -minX;
  38932. var sbb_top = -minY;
  38933. var sbb_right = width - maxX;
  38934. var pseudoPixelContext = ReusedContexts[templateIndex];
  38935. var row = new Uint8Array(width);
  38936. var bitmap = [];
  38937. var decoder = decodingContext.decoder;
  38938. var contexts = decodingContext.contextCache.getContexts('GB');
  38939. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  38940. for (var i = 0; i < height; i++) {
  38941. if (prediction) {
  38942. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  38943. ltp ^= sltp;
  38944. if (ltp) {
  38945. bitmap.push(row); // duplicate previous row
  38946. continue;
  38947. }
  38948. }
  38949. row = new Uint8Array(row);
  38950. bitmap.push(row);
  38951. for (j = 0; j < width; j++) {
  38952. if (useskip && skip[i][j]) {
  38953. row[j] = 0;
  38954. continue;
  38955. }
  38956. // Are we in the middle of a scanline, so we can reuse contextLabel
  38957. // bits?
  38958. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  38959. // If yes, we can just shift the bits that are reusable and only
  38960. // fetch the remaining ones.
  38961. contextLabel = (contextLabel << 1) & reuseMask;
  38962. for (k = 0; k < changingEntriesLength; k++) {
  38963. i0 = i + changingTemplateY[k];
  38964. j0 = j + changingTemplateX[k];
  38965. bit = bitmap[i0][j0];
  38966. if (bit) {
  38967. bit = changingTemplateBit[k];
  38968. contextLabel |= bit;
  38969. }
  38970. }
  38971. } else {
  38972. // compute the contextLabel from scratch
  38973. contextLabel = 0;
  38974. shift = templateLength - 1;
  38975. for (k = 0; k < templateLength; k++, shift--) {
  38976. j0 = j + templateX[k];
  38977. if (j0 >= 0 && j0 < width) {
  38978. i0 = i + templateY[k];
  38979. if (i0 >= 0) {
  38980. bit = bitmap[i0][j0];
  38981. if (bit) {
  38982. contextLabel |= bit << shift;
  38983. }
  38984. }
  38985. }
  38986. }
  38987. }
  38988. var pixel = decoder.readBit(contexts, contextLabel);
  38989. row[j] = pixel;
  38990. }
  38991. }
  38992. return bitmap;
  38993. }
  38994. // 6.3.2 Generic Refinement Region Decoding Procedure
  38995. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  38996. offsetX, offsetY, prediction, at,
  38997. decodingContext) {
  38998. var codingTemplate = RefinementTemplates[templateIndex].coding;
  38999. if (templateIndex === 0) {
  39000. codingTemplate = codingTemplate.concat([at[0]]);
  39001. }
  39002. var codingTemplateLength = codingTemplate.length;
  39003. var codingTemplateX = new Int32Array(codingTemplateLength);
  39004. var codingTemplateY = new Int32Array(codingTemplateLength);
  39005. var k;
  39006. for (k = 0; k < codingTemplateLength; k++) {
  39007. codingTemplateX[k] = codingTemplate[k].x;
  39008. codingTemplateY[k] = codingTemplate[k].y;
  39009. }
  39010. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  39011. if (templateIndex === 0) {
  39012. referenceTemplate = referenceTemplate.concat([at[1]]);
  39013. }
  39014. var referenceTemplateLength = referenceTemplate.length;
  39015. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  39016. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  39017. for (k = 0; k < referenceTemplateLength; k++) {
  39018. referenceTemplateX[k] = referenceTemplate[k].x;
  39019. referenceTemplateY[k] = referenceTemplate[k].y;
  39020. }
  39021. var referenceWidth = referenceBitmap[0].length;
  39022. var referenceHeight = referenceBitmap.length;
  39023. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  39024. var bitmap = [];
  39025. var decoder = decodingContext.decoder;
  39026. var contexts = decodingContext.contextCache.getContexts('GR');
  39027. var ltp = 0;
  39028. for (var i = 0; i < height; i++) {
  39029. if (prediction) {
  39030. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39031. ltp ^= sltp;
  39032. if (ltp) {
  39033. error('JBIG2 error: prediction is not supported');
  39034. }
  39035. }
  39036. var row = new Uint8Array(width);
  39037. bitmap.push(row);
  39038. for (var j = 0; j < width; j++) {
  39039. var i0, j0;
  39040. var contextLabel = 0;
  39041. for (k = 0; k < codingTemplateLength; k++) {
  39042. i0 = i + codingTemplateY[k];
  39043. j0 = j + codingTemplateX[k];
  39044. if (i0 < 0 || j0 < 0 || j0 >= width) {
  39045. contextLabel <<= 1; // out of bound pixel
  39046. } else {
  39047. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  39048. }
  39049. }
  39050. for (k = 0; k < referenceTemplateLength; k++) {
  39051. i0 = i + referenceTemplateY[k] + offsetY;
  39052. j0 = j + referenceTemplateX[k] + offsetX;
  39053. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  39054. j0 >= referenceWidth) {
  39055. contextLabel <<= 1; // out of bound pixel
  39056. } else {
  39057. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  39058. }
  39059. }
  39060. var pixel = decoder.readBit(contexts, contextLabel);
  39061. row[j] = pixel;
  39062. }
  39063. }
  39064. return bitmap;
  39065. }
  39066. // 6.5.5 Decoding the symbol dictionary
  39067. function decodeSymbolDictionary(huffman, refinement, symbols,
  39068. numberOfNewSymbols, numberOfExportedSymbols,
  39069. huffmanTables, templateIndex, at,
  39070. refinementTemplateIndex, refinementAt,
  39071. decodingContext) {
  39072. if (huffman) {
  39073. error('JBIG2 error: huffman is not supported');
  39074. }
  39075. var newSymbols = [];
  39076. var currentHeight = 0;
  39077. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  39078. var decoder = decodingContext.decoder;
  39079. var contextCache = decodingContext.contextCache;
  39080. while (newSymbols.length < numberOfNewSymbols) {
  39081. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  39082. currentHeight += deltaHeight;
  39083. var currentWidth = 0;
  39084. var totalWidth = 0;
  39085. while (true) {
  39086. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  39087. if (deltaWidth === null) {
  39088. break; // OOB
  39089. }
  39090. currentWidth += deltaWidth;
  39091. totalWidth += currentWidth;
  39092. var bitmap;
  39093. if (refinement) {
  39094. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  39095. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  39096. if (numberOfInstances > 1) {
  39097. bitmap = decodeTextRegion(huffman, refinement,
  39098. currentWidth, currentHeight, 0,
  39099. numberOfInstances, 1, //strip size
  39100. symbols.concat(newSymbols),
  39101. symbolCodeLength,
  39102. 0, //transposed
  39103. 0, //ds offset
  39104. 1, //top left 7.4.3.1.1
  39105. 0, //OR operator
  39106. huffmanTables,
  39107. refinementTemplateIndex, refinementAt,
  39108. decodingContext);
  39109. } else {
  39110. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39111. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39112. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39113. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  39114. newSymbols[symbolId - symbols.length]);
  39115. bitmap = decodeRefinement(currentWidth, currentHeight,
  39116. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  39117. decodingContext);
  39118. }
  39119. } else {
  39120. // 6.5.8.1 Direct-coded symbol bitmap
  39121. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  39122. templateIndex, false, null, at, decodingContext);
  39123. }
  39124. newSymbols.push(bitmap);
  39125. }
  39126. }
  39127. // 6.5.10 Exported symbols
  39128. var exportedSymbols = [];
  39129. var flags = [], currentFlag = false;
  39130. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  39131. while (flags.length < totalSymbolsLength) {
  39132. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  39133. while (runLength--) {
  39134. flags.push(currentFlag);
  39135. }
  39136. currentFlag = !currentFlag;
  39137. }
  39138. for (var i = 0, ii = symbols.length; i < ii; i++) {
  39139. if (flags[i]) {
  39140. exportedSymbols.push(symbols[i]);
  39141. }
  39142. }
  39143. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  39144. if (flags[i]) {
  39145. exportedSymbols.push(newSymbols[j]);
  39146. }
  39147. }
  39148. return exportedSymbols;
  39149. }
  39150. function decodeTextRegion(huffman, refinement, width, height,
  39151. defaultPixelValue, numberOfSymbolInstances,
  39152. stripSize, inputSymbols, symbolCodeLength,
  39153. transposed, dsOffset, referenceCorner,
  39154. combinationOperator, huffmanTables,
  39155. refinementTemplateIndex, refinementAt,
  39156. decodingContext) {
  39157. if (huffman) {
  39158. error('JBIG2 error: huffman is not supported');
  39159. }
  39160. // Prepare bitmap
  39161. var bitmap = [];
  39162. var i, row;
  39163. for (i = 0; i < height; i++) {
  39164. row = new Uint8Array(width);
  39165. if (defaultPixelValue) {
  39166. for (var j = 0; j < width; j++) {
  39167. row[j] = defaultPixelValue;
  39168. }
  39169. }
  39170. bitmap.push(row);
  39171. }
  39172. var decoder = decodingContext.decoder;
  39173. var contextCache = decodingContext.contextCache;
  39174. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39175. var firstS = 0;
  39176. i = 0;
  39177. while (i < numberOfSymbolInstances) {
  39178. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39179. stripT += deltaT;
  39180. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  39181. firstS += deltaFirstS;
  39182. var currentS = firstS;
  39183. do {
  39184. var currentT = (stripSize == 1 ? 0 :
  39185. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  39186. var t = stripSize * stripT + currentT;
  39187. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39188. var applyRefinement = (refinement &&
  39189. decodeInteger(contextCache, 'IARI', decoder));
  39190. var symbolBitmap = inputSymbols[symbolId];
  39191. var symbolWidth = symbolBitmap[0].length;
  39192. var symbolHeight = symbolBitmap.length;
  39193. if (applyRefinement) {
  39194. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  39195. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  39196. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39197. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39198. symbolWidth += rdw;
  39199. symbolHeight += rdh;
  39200. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  39201. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  39202. (rdh >> 1) + rdy, false, refinementAt,
  39203. decodingContext);
  39204. }
  39205. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  39206. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  39207. var s2, t2, symbolRow;
  39208. if (transposed) {
  39209. // Place Symbol Bitmap from T1,S1
  39210. for (s2 = 0; s2 < symbolHeight; s2++) {
  39211. row = bitmap[offsetS + s2];
  39212. if (!row) {
  39213. continue;
  39214. }
  39215. symbolRow = symbolBitmap[s2];
  39216. // To ignore Parts of Symbol bitmap which goes
  39217. // outside bitmap region
  39218. var maxWidth = Math.min(width - offsetT, symbolWidth);
  39219. switch (combinationOperator) {
  39220. case 0: // OR
  39221. for (t2 = 0; t2 < maxWidth; t2++) {
  39222. row[offsetT + t2] |= symbolRow[t2];
  39223. }
  39224. break;
  39225. case 2: // XOR
  39226. for (t2 = 0; t2 < maxWidth; t2++) {
  39227. row[offsetT + t2] ^= symbolRow[t2];
  39228. }
  39229. break;
  39230. default:
  39231. error('JBIG2 error: operator ' + combinationOperator +
  39232. ' is not supported');
  39233. }
  39234. }
  39235. currentS += symbolHeight - 1;
  39236. } else {
  39237. for (t2 = 0; t2 < symbolHeight; t2++) {
  39238. row = bitmap[offsetT + t2];
  39239. if (!row) {
  39240. continue;
  39241. }
  39242. symbolRow = symbolBitmap[t2];
  39243. switch (combinationOperator) {
  39244. case 0: // OR
  39245. for (s2 = 0; s2 < symbolWidth; s2++) {
  39246. row[offsetS + s2] |= symbolRow[s2];
  39247. }
  39248. break;
  39249. case 2: // XOR
  39250. for (s2 = 0; s2 < symbolWidth; s2++) {
  39251. row[offsetS + s2] ^= symbolRow[s2];
  39252. }
  39253. break;
  39254. default:
  39255. error('JBIG2 error: operator ' + combinationOperator +
  39256. ' is not supported');
  39257. }
  39258. }
  39259. currentS += symbolWidth - 1;
  39260. }
  39261. i++;
  39262. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  39263. if (deltaS === null) {
  39264. break; // OOB
  39265. }
  39266. currentS += deltaS + dsOffset;
  39267. } while (true);
  39268. }
  39269. return bitmap;
  39270. }
  39271. function readSegmentHeader(data, start) {
  39272. var segmentHeader = {};
  39273. segmentHeader.number = readUint32(data, start);
  39274. var flags = data[start + 4];
  39275. var segmentType = flags & 0x3F;
  39276. if (!SegmentTypes[segmentType]) {
  39277. error('JBIG2 error: invalid segment type: ' + segmentType);
  39278. }
  39279. segmentHeader.type = segmentType;
  39280. segmentHeader.typeName = SegmentTypes[segmentType];
  39281. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  39282. var pageAssociationFieldSize = !!(flags & 0x40);
  39283. var referredFlags = data[start + 5];
  39284. var referredToCount = (referredFlags >> 5) & 7;
  39285. var retainBits = [referredFlags & 31];
  39286. var position = start + 6;
  39287. if (referredFlags == 7) {
  39288. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  39289. position += 3;
  39290. var bytes = (referredToCount + 7) >> 3;
  39291. retainBits[0] = data[position++];
  39292. while (--bytes > 0) {
  39293. retainBits.push(data[position++]);
  39294. }
  39295. } else if (referredFlags == 5 || referredFlags == 6) {
  39296. error('JBIG2 error: invalid referred-to flags');
  39297. }
  39298. segmentHeader.retainBits = retainBits;
  39299. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  39300. (segmentHeader.number <= 65536 ? 2 : 4));
  39301. var referredTo = [];
  39302. var i, ii;
  39303. for (i = 0; i < referredToCount; i++) {
  39304. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  39305. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  39306. readUint32(data, position)));
  39307. referredTo.push(number);
  39308. position += referredToSegmentNumberSize;
  39309. }
  39310. segmentHeader.referredTo = referredTo;
  39311. if (!pageAssociationFieldSize) {
  39312. segmentHeader.pageAssociation = data[position++];
  39313. } else {
  39314. segmentHeader.pageAssociation = readUint32(data, position);
  39315. position += 4;
  39316. }
  39317. segmentHeader.length = readUint32(data, position);
  39318. position += 4;
  39319. if (segmentHeader.length == 0xFFFFFFFF) {
  39320. // 7.2.7 Segment data length, unknown segment length
  39321. if (segmentType === 38) { // ImmediateGenericRegion
  39322. var genericRegionInfo = readRegionSegmentInformation(data, position);
  39323. var genericRegionSegmentFlags = data[position +
  39324. RegionSegmentInformationFieldLength];
  39325. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  39326. // searching for the segment end
  39327. var searchPatternLength = 6;
  39328. var searchPattern = new Uint8Array(searchPatternLength);
  39329. if (!genericRegionMmr) {
  39330. searchPattern[0] = 0xFF;
  39331. searchPattern[1] = 0xAC;
  39332. }
  39333. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  39334. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  39335. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  39336. searchPattern[5] = genericRegionInfo.height & 0xFF;
  39337. for (i = position, ii = data.length; i < ii; i++) {
  39338. var j = 0;
  39339. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  39340. j++;
  39341. }
  39342. if (j == searchPatternLength) {
  39343. segmentHeader.length = i + searchPatternLength;
  39344. break;
  39345. }
  39346. }
  39347. if (segmentHeader.length == 0xFFFFFFFF) {
  39348. error('JBIG2 error: segment end was not found');
  39349. }
  39350. } else {
  39351. error('JBIG2 error: invalid unknown segment length');
  39352. }
  39353. }
  39354. segmentHeader.headerEnd = position;
  39355. return segmentHeader;
  39356. }
  39357. function readSegments(header, data, start, end) {
  39358. var segments = [];
  39359. var position = start;
  39360. while (position < end) {
  39361. var segmentHeader = readSegmentHeader(data, position);
  39362. position = segmentHeader.headerEnd;
  39363. var segment = {
  39364. header: segmentHeader,
  39365. data: data
  39366. };
  39367. if (!header.randomAccess) {
  39368. segment.start = position;
  39369. position += segmentHeader.length;
  39370. segment.end = position;
  39371. }
  39372. segments.push(segment);
  39373. if (segmentHeader.type == 51) {
  39374. break; // end of file is found
  39375. }
  39376. }
  39377. if (header.randomAccess) {
  39378. for (var i = 0, ii = segments.length; i < ii; i++) {
  39379. segments[i].start = position;
  39380. position += segments[i].header.length;
  39381. segments[i].end = position;
  39382. }
  39383. }
  39384. return segments;
  39385. }
  39386. // 7.4.1 Region segment information field
  39387. function readRegionSegmentInformation(data, start) {
  39388. return {
  39389. width: readUint32(data, start),
  39390. height: readUint32(data, start + 4),
  39391. x: readUint32(data, start + 8),
  39392. y: readUint32(data, start + 12),
  39393. combinationOperator: data[start + 16] & 7
  39394. };
  39395. }
  39396. var RegionSegmentInformationFieldLength = 17;
  39397. function processSegment(segment, visitor) {
  39398. var header = segment.header;
  39399. var data = segment.data, position = segment.start, end = segment.end;
  39400. var args, at, i, atLength;
  39401. switch (header.type) {
  39402. case 0: // SymbolDictionary
  39403. // 7.4.2 Symbol dictionary segment syntax
  39404. var dictionary = {};
  39405. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  39406. dictionary.huffman = !!(dictionaryFlags & 1);
  39407. dictionary.refinement = !!(dictionaryFlags & 2);
  39408. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  39409. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  39410. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  39411. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  39412. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  39413. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  39414. dictionary.template = (dictionaryFlags >> 10) & 3;
  39415. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  39416. position += 2;
  39417. if (!dictionary.huffman) {
  39418. atLength = dictionary.template === 0 ? 4 : 1;
  39419. at = [];
  39420. for (i = 0; i < atLength; i++) {
  39421. at.push({
  39422. x: readInt8(data, position),
  39423. y: readInt8(data, position + 1)
  39424. });
  39425. position += 2;
  39426. }
  39427. dictionary.at = at;
  39428. }
  39429. if (dictionary.refinement && !dictionary.refinementTemplate) {
  39430. at = [];
  39431. for (i = 0; i < 2; i++) {
  39432. at.push({
  39433. x: readInt8(data, position),
  39434. y: readInt8(data, position + 1)
  39435. });
  39436. position += 2;
  39437. }
  39438. dictionary.refinementAt = at;
  39439. }
  39440. dictionary.numberOfExportedSymbols = readUint32(data, position);
  39441. position += 4;
  39442. dictionary.numberOfNewSymbols = readUint32(data, position);
  39443. position += 4;
  39444. args = [dictionary, header.number, header.referredTo,
  39445. data, position, end];
  39446. break;
  39447. case 6: // ImmediateTextRegion
  39448. case 7: // ImmediateLosslessTextRegion
  39449. var textRegion = {};
  39450. textRegion.info = readRegionSegmentInformation(data, position);
  39451. position += RegionSegmentInformationFieldLength;
  39452. var textRegionSegmentFlags = readUint16(data, position);
  39453. position += 2;
  39454. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  39455. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  39456. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  39457. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  39458. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  39459. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  39460. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  39461. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  39462. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  39463. if (textRegion.huffman) {
  39464. var textRegionHuffmanFlags = readUint16(data, position);
  39465. position += 2;
  39466. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  39467. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  39468. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  39469. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  39470. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  39471. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  39472. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  39473. textRegion.huffmanRefinementSizeSelector =
  39474. !!(textRegionHuffmanFlags & 14);
  39475. }
  39476. if (textRegion.refinement && !textRegion.refinementTemplate) {
  39477. at = [];
  39478. for (i = 0; i < 2; i++) {
  39479. at.push({
  39480. x: readInt8(data, position),
  39481. y: readInt8(data, position + 1)
  39482. });
  39483. position += 2;
  39484. }
  39485. textRegion.refinementAt = at;
  39486. }
  39487. textRegion.numberOfSymbolInstances = readUint32(data, position);
  39488. position += 4;
  39489. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  39490. if (textRegion.huffman) {
  39491. error('JBIG2 error: huffman is not supported');
  39492. }
  39493. args = [textRegion, header.referredTo, data, position, end];
  39494. break;
  39495. case 38: // ImmediateGenericRegion
  39496. case 39: // ImmediateLosslessGenericRegion
  39497. var genericRegion = {};
  39498. genericRegion.info = readRegionSegmentInformation(data, position);
  39499. position += RegionSegmentInformationFieldLength;
  39500. var genericRegionSegmentFlags = data[position++];
  39501. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  39502. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  39503. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  39504. if (!genericRegion.mmr) {
  39505. atLength = genericRegion.template === 0 ? 4 : 1;
  39506. at = [];
  39507. for (i = 0; i < atLength; i++) {
  39508. at.push({
  39509. x: readInt8(data, position),
  39510. y: readInt8(data, position + 1)
  39511. });
  39512. position += 2;
  39513. }
  39514. genericRegion.at = at;
  39515. }
  39516. args = [genericRegion, data, position, end];
  39517. break;
  39518. case 48: // PageInformation
  39519. var pageInfo = {
  39520. width: readUint32(data, position),
  39521. height: readUint32(data, position + 4),
  39522. resolutionX: readUint32(data, position + 8),
  39523. resolutionY: readUint32(data, position + 12)
  39524. };
  39525. if (pageInfo.height == 0xFFFFFFFF) {
  39526. delete pageInfo.height;
  39527. }
  39528. var pageSegmentFlags = data[position + 16];
  39529. var pageStripingInformatiom = readUint16(data, position + 17);
  39530. pageInfo.lossless = !!(pageSegmentFlags & 1);
  39531. pageInfo.refinement = !!(pageSegmentFlags & 2);
  39532. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  39533. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  39534. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  39535. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  39536. args = [pageInfo];
  39537. break;
  39538. case 49: // EndOfPage
  39539. break;
  39540. case 50: // EndOfStripe
  39541. break;
  39542. case 51: // EndOfFile
  39543. break;
  39544. case 62: // 7.4.15 defines 2 extension types which
  39545. // are comments and can be ignored.
  39546. break;
  39547. default:
  39548. error('JBIG2 error: segment type ' + header.typeName + '(' +
  39549. header.type + ') is not implemented');
  39550. }
  39551. var callbackName = 'on' + header.typeName;
  39552. if (callbackName in visitor) {
  39553. visitor[callbackName].apply(visitor, args);
  39554. }
  39555. }
  39556. function processSegments(segments, visitor) {
  39557. for (var i = 0, ii = segments.length; i < ii; i++) {
  39558. processSegment(segments[i], visitor);
  39559. }
  39560. }
  39561. function parseJbig2(data, start, end) {
  39562. var position = start;
  39563. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  39564. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  39565. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  39566. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  39567. error('JBIG2 error: invalid header');
  39568. }
  39569. var header = {};
  39570. position += 8;
  39571. var flags = data[position++];
  39572. header.randomAccess = !(flags & 1);
  39573. if (!(flags & 2)) {
  39574. header.numberOfPages = readUint32(data, position);
  39575. position += 4;
  39576. }
  39577. var segments = readSegments(header, data, position, end);
  39578. error('Not implemented');
  39579. // processSegments(segments, new SimpleSegmentVisitor());
  39580. }
  39581. function parseJbig2Chunks(chunks) {
  39582. var visitor = new SimpleSegmentVisitor();
  39583. for (var i = 0, ii = chunks.length; i < ii; i++) {
  39584. var chunk = chunks[i];
  39585. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  39586. processSegments(segments, visitor);
  39587. }
  39588. return visitor.buffer;
  39589. }
  39590. function SimpleSegmentVisitor() {}
  39591. SimpleSegmentVisitor.prototype = {
  39592. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  39593. this.currentPageInfo = info;
  39594. var rowSize = (info.width + 7) >> 3;
  39595. var buffer = new Uint8Array(rowSize * info.height);
  39596. // The contents of ArrayBuffers are initialized to 0.
  39597. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  39598. if (info.defaultPixelValue) {
  39599. for (var i = 0, ii = buffer.length; i < ii; i++) {
  39600. buffer[i] = 0xFF;
  39601. }
  39602. }
  39603. this.buffer = buffer;
  39604. },
  39605. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  39606. var pageInfo = this.currentPageInfo;
  39607. var width = regionInfo.width, height = regionInfo.height;
  39608. var rowSize = (pageInfo.width + 7) >> 3;
  39609. var combinationOperator = pageInfo.combinationOperatorOverride ?
  39610. regionInfo.combinationOperator : pageInfo.combinationOperator;
  39611. var buffer = this.buffer;
  39612. var mask0 = 128 >> (regionInfo.x & 7);
  39613. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  39614. var i, j, mask, offset;
  39615. switch (combinationOperator) {
  39616. case 0: // OR
  39617. for (i = 0; i < height; i++) {
  39618. mask = mask0;
  39619. offset = offset0;
  39620. for (j = 0; j < width; j++) {
  39621. if (bitmap[i][j]) {
  39622. buffer[offset] |= mask;
  39623. }
  39624. mask >>= 1;
  39625. if (!mask) {
  39626. mask = 128;
  39627. offset++;
  39628. }
  39629. }
  39630. offset0 += rowSize;
  39631. }
  39632. break;
  39633. case 2: // XOR
  39634. for (i = 0; i < height; i++) {
  39635. mask = mask0;
  39636. offset = offset0;
  39637. for (j = 0; j < width; j++) {
  39638. if (bitmap[i][j]) {
  39639. buffer[offset] ^= mask;
  39640. }
  39641. mask >>= 1;
  39642. if (!mask) {
  39643. mask = 128;
  39644. offset++;
  39645. }
  39646. }
  39647. offset0 += rowSize;
  39648. }
  39649. break;
  39650. default:
  39651. error('JBIG2 error: operator ' + combinationOperator +
  39652. ' is not supported');
  39653. }
  39654. },
  39655. onImmediateGenericRegion:
  39656. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  39657. start, end) {
  39658. var regionInfo = region.info;
  39659. var decodingContext = new DecodingContext(data, start, end);
  39660. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  39661. region.template, region.prediction, null,
  39662. region.at, decodingContext);
  39663. this.drawBitmap(regionInfo, bitmap);
  39664. },
  39665. onImmediateLosslessGenericRegion:
  39666. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  39667. this.onImmediateGenericRegion.apply(this, arguments);
  39668. },
  39669. onSymbolDictionary:
  39670. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  39671. currentSegment,
  39672. referredSegments,
  39673. data, start, end) {
  39674. var huffmanTables;
  39675. if (dictionary.huffman) {
  39676. error('JBIG2 error: huffman is not supported');
  39677. }
  39678. // Combines exported symbols from all referred segments
  39679. var symbols = this.symbols;
  39680. if (!symbols) {
  39681. this.symbols = symbols = {};
  39682. }
  39683. var inputSymbols = [];
  39684. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39685. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39686. }
  39687. var decodingContext = new DecodingContext(data, start, end);
  39688. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  39689. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  39690. dictionary.numberOfExportedSymbols, huffmanTables,
  39691. dictionary.template, dictionary.at,
  39692. dictionary.refinementTemplate, dictionary.refinementAt,
  39693. decodingContext);
  39694. },
  39695. onImmediateTextRegion:
  39696. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  39697. referredSegments,
  39698. data, start, end) {
  39699. var regionInfo = region.info;
  39700. var huffmanTables;
  39701. // Combines exported symbols from all referred segments
  39702. var symbols = this.symbols;
  39703. var inputSymbols = [];
  39704. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39705. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39706. }
  39707. var symbolCodeLength = log2(inputSymbols.length);
  39708. var decodingContext = new DecodingContext(data, start, end);
  39709. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  39710. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  39711. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  39712. symbolCodeLength, region.transposed, region.dsOffset,
  39713. region.referenceCorner, region.combinationOperator, huffmanTables,
  39714. region.refinementTemplate, region.refinementAt, decodingContext);
  39715. this.drawBitmap(regionInfo, bitmap);
  39716. },
  39717. onImmediateLosslessTextRegion:
  39718. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  39719. this.onImmediateTextRegion.apply(this, arguments);
  39720. }
  39721. };
  39722. function Jbig2Image() {}
  39723. Jbig2Image.prototype = {
  39724. parseChunks: function Jbig2Image_parseChunks(chunks) {
  39725. return parseJbig2Chunks(chunks);
  39726. }
  39727. };
  39728. return Jbig2Image;
  39729. })();
  39730. var bidi = PDFJS.bidi = (function bidiClosure() {
  39731. // Character types for symbols from 0000 to 00FF.
  39732. var baseTypes = [
  39733. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  39734. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39735. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  39736. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  39737. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  39738. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39739. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  39740. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39741. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39742. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  39743. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39744. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39745. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  39746. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  39747. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39748. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39749. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39750. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39751. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  39752. ];
  39753. // Character types for symbols from 0600 to 06FF
  39754. var arabicTypes = [
  39755. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39756. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  39757. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39758. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', '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', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39762. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39763. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  39764. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', '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', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39768. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39769. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39770. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39771. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39772. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39773. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39774. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  39775. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39776. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  39777. ];
  39778. function isOdd(i) {
  39779. return (i & 1) !== 0;
  39780. }
  39781. function isEven(i) {
  39782. return (i & 1) === 0;
  39783. }
  39784. function findUnequal(arr, start, value) {
  39785. for (var j = start, jj = arr.length; j < jj; ++j) {
  39786. if (arr[j] != value) {
  39787. return j;
  39788. }
  39789. }
  39790. return j;
  39791. }
  39792. function setValues(arr, start, end, value) {
  39793. for (var j = start; j < end; ++j) {
  39794. arr[j] = value;
  39795. }
  39796. }
  39797. function reverseValues(arr, start, end) {
  39798. for (var i = start, j = end - 1; i < j; ++i, --j) {
  39799. var temp = arr[i];
  39800. arr[i] = arr[j];
  39801. arr[j] = temp;
  39802. }
  39803. }
  39804. function createBidiText(str, isLTR, vertical) {
  39805. return {
  39806. str: str,
  39807. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  39808. };
  39809. }
  39810. // These are used in bidi(), which is called frequently. We re-use them on
  39811. // each call to avoid unnecessary allocations.
  39812. var chars = [];
  39813. var types = [];
  39814. function bidi(str, startLevel, vertical) {
  39815. var isLTR = true;
  39816. var strLength = str.length;
  39817. if (strLength === 0 || vertical) {
  39818. return createBidiText(str, isLTR, vertical);
  39819. }
  39820. // Get types and fill arrays
  39821. chars.length = 0;
  39822. types.length = 0;
  39823. var numBidi = 0;
  39824. var i, ii;
  39825. for (i = 0; i < strLength; ++i) {
  39826. chars[i] = str.charAt(i);
  39827. var charCode = str.charCodeAt(i);
  39828. var charType = 'L';
  39829. if (charCode <= 0x00ff) {
  39830. charType = baseTypes[charCode];
  39831. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  39832. charType = 'R';
  39833. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  39834. charType = arabicTypes[charCode & 0xff];
  39835. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  39836. charType = 'AL';
  39837. }
  39838. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  39839. numBidi++;
  39840. }
  39841. types[i] = charType;
  39842. }
  39843. // Detect the bidi method
  39844. // - If there are no rtl characters then no bidi needed
  39845. // - If less than 30% chars are rtl then string is primarily ltr
  39846. // - If more than 30% chars are rtl then string is primarily rtl
  39847. if (numBidi === 0) {
  39848. isLTR = true;
  39849. return createBidiText(str, isLTR);
  39850. }
  39851. if (startLevel == -1) {
  39852. if ((strLength / numBidi) < 0.3) {
  39853. isLTR = true;
  39854. startLevel = 0;
  39855. } else {
  39856. isLTR = false;
  39857. startLevel = 1;
  39858. }
  39859. }
  39860. var levels = [];
  39861. for (i = 0; i < strLength; ++i) {
  39862. levels[i] = startLevel;
  39863. }
  39864. /*
  39865. X1-X10: skip most of this, since we are NOT doing the embeddings.
  39866. */
  39867. var e = (isOdd(startLevel) ? 'R' : 'L');
  39868. var sor = e;
  39869. var eor = sor;
  39870. /*
  39871. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  39872. type of the NSM to the type of the previous character. If the NSM is at the
  39873. start of the level run, it will get the type of sor.
  39874. */
  39875. var lastType = sor;
  39876. for (i = 0; i < strLength; ++i) {
  39877. if (types[i] == 'NSM') {
  39878. types[i] = lastType;
  39879. } else {
  39880. lastType = types[i];
  39881. }
  39882. }
  39883. /*
  39884. W2. Search backwards from each instance of a European number until the
  39885. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  39886. the type of the European number to Arabic number.
  39887. */
  39888. lastType = sor;
  39889. var t;
  39890. for (i = 0; i < strLength; ++i) {
  39891. t = types[i];
  39892. if (t == 'EN') {
  39893. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  39894. } else if (t == 'R' || t == 'L' || t == 'AL') {
  39895. lastType = t;
  39896. }
  39897. }
  39898. /*
  39899. W3. Change all ALs to R.
  39900. */
  39901. for (i = 0; i < strLength; ++i) {
  39902. t = types[i];
  39903. if (t == 'AL') {
  39904. types[i] = 'R';
  39905. }
  39906. }
  39907. /*
  39908. W4. A single European separator between two European numbers changes to a
  39909. European number. A single common separator between two numbers of the same
  39910. type changes to that type:
  39911. */
  39912. for (i = 1; i < strLength - 1; ++i) {
  39913. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  39914. types[i] = 'EN';
  39915. }
  39916. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  39917. types[i + 1] == types[i - 1]) {
  39918. types[i] = types[i - 1];
  39919. }
  39920. }
  39921. /*
  39922. W5. A sequence of European terminators adjacent to European numbers changes
  39923. to all European numbers:
  39924. */
  39925. for (i = 0; i < strLength; ++i) {
  39926. if (types[i] == 'EN') {
  39927. // do before
  39928. var j;
  39929. for (j = i - 1; j >= 0; --j) {
  39930. if (types[j] != 'ET') {
  39931. break;
  39932. }
  39933. types[j] = 'EN';
  39934. }
  39935. // do after
  39936. for (j = i + 1; j < strLength; --j) {
  39937. if (types[j] != 'ET') {
  39938. break;
  39939. }
  39940. types[j] = 'EN';
  39941. }
  39942. }
  39943. }
  39944. /*
  39945. W6. Otherwise, separators and terminators change to Other Neutral:
  39946. */
  39947. for (i = 0; i < strLength; ++i) {
  39948. t = types[i];
  39949. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  39950. types[i] = 'ON';
  39951. }
  39952. }
  39953. /*
  39954. W7. Search backwards from each instance of a European number until the
  39955. first strong type (R, L, or sor) is found. If an L is found, then change
  39956. the type of the European number to L.
  39957. */
  39958. lastType = sor;
  39959. for (i = 0; i < strLength; ++i) {
  39960. t = types[i];
  39961. if (t == 'EN') {
  39962. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  39963. } else if (t == 'R' || t == 'L') {
  39964. lastType = t;
  39965. }
  39966. }
  39967. /*
  39968. N1. A sequence of neutrals takes the direction of the surrounding strong
  39969. text if the text on both sides has the same direction. European and Arabic
  39970. numbers are treated as though they were R. Start-of-level-run (sor) and
  39971. end-of-level-run (eor) are used at level run boundaries.
  39972. */
  39973. for (i = 0; i < strLength; ++i) {
  39974. if (types[i] == 'ON') {
  39975. var end = findUnequal(types, i + 1, 'ON');
  39976. var before = sor;
  39977. if (i > 0) {
  39978. before = types[i - 1];
  39979. }
  39980. var after = eor;
  39981. if (end + 1 < strLength) {
  39982. after = types[end + 1];
  39983. }
  39984. if (before != 'L') {
  39985. before = 'R';
  39986. }
  39987. if (after != 'L') {
  39988. after = 'R';
  39989. }
  39990. if (before == after) {
  39991. setValues(types, i, end, before);
  39992. }
  39993. i = end - 1; // reset to end (-1 so next iteration is ok)
  39994. }
  39995. }
  39996. /*
  39997. N2. Any remaining neutrals take the embedding direction.
  39998. */
  39999. for (i = 0; i < strLength; ++i) {
  40000. if (types[i] == 'ON') {
  40001. types[i] = e;
  40002. }
  40003. }
  40004. /*
  40005. I1. For all characters with an even (left-to-right) embedding direction,
  40006. those of type R go up one level and those of type AN or EN go up two
  40007. levels.
  40008. I2. For all characters with an odd (right-to-left) embedding direction,
  40009. those of type L, EN or AN go up one level.
  40010. */
  40011. for (i = 0; i < strLength; ++i) {
  40012. t = types[i];
  40013. if (isEven(levels[i])) {
  40014. if (t == 'R') {
  40015. levels[i] += 1;
  40016. } else if (t == 'AN' || t == 'EN') {
  40017. levels[i] += 2;
  40018. }
  40019. } else { // isOdd
  40020. if (t == 'L' || t == 'AN' || t == 'EN') {
  40021. levels[i] += 1;
  40022. }
  40023. }
  40024. }
  40025. /*
  40026. L1. On each line, reset the embedding level of the following characters to
  40027. the paragraph embedding level:
  40028. segment separators,
  40029. paragraph separators,
  40030. any sequence of whitespace characters preceding a segment separator or
  40031. paragraph separator, and any sequence of white space characters at the end
  40032. of the line.
  40033. */
  40034. // don't bother as text is only single line
  40035. /*
  40036. L2. From the highest level found in the text to the lowest odd level on
  40037. each line, reverse any contiguous sequence of characters that are at that
  40038. level or higher.
  40039. */
  40040. // find highest level & lowest odd level
  40041. var highestLevel = -1;
  40042. var lowestOddLevel = 99;
  40043. var level;
  40044. for (i = 0, ii = levels.length; i < ii; ++i) {
  40045. level = levels[i];
  40046. if (highestLevel < level) {
  40047. highestLevel = level;
  40048. }
  40049. if (lowestOddLevel > level && isOdd(level)) {
  40050. lowestOddLevel = level;
  40051. }
  40052. }
  40053. // now reverse between those limits
  40054. for (level = highestLevel; level >= lowestOddLevel; --level) {
  40055. // find segments to reverse
  40056. var start = -1;
  40057. for (i = 0, ii = levels.length; i < ii; ++i) {
  40058. if (levels[i] < level) {
  40059. if (start >= 0) {
  40060. reverseValues(chars, start, i);
  40061. start = -1;
  40062. }
  40063. } else if (start < 0) {
  40064. start = i;
  40065. }
  40066. }
  40067. if (start >= 0) {
  40068. reverseValues(chars, start, levels.length);
  40069. }
  40070. }
  40071. /*
  40072. L3. Combining marks applied to a right-to-left base character will at this
  40073. point precede their base character. If the rendering engine expects them to
  40074. follow the base characters in the final display process, then the ordering
  40075. of the marks and the base character must be reversed.
  40076. */
  40077. // don't bother for now
  40078. /*
  40079. L4. A character that possesses the mirrored property as specified by
  40080. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  40081. directionality of that character is R.
  40082. */
  40083. // don't mirror as characters are already mirrored in the pdf
  40084. // Finally, return string
  40085. var result = '';
  40086. for (i = 0, ii = chars.length; i < ii; ++i) {
  40087. var ch = chars[i];
  40088. if (ch != '<' && ch != '>') {
  40089. result += ch;
  40090. }
  40091. }
  40092. return createBidiText(result, isLTR);
  40093. }
  40094. return bidi;
  40095. })();
  40096. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  40097. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  40098. /* Copyright 2014 Opera Software ASA
  40099. *
  40100. * Licensed under the Apache License, Version 2.0 (the "License");
  40101. * you may not use this file except in compliance with the License.
  40102. * You may obtain a copy of the License at
  40103. *
  40104. * http://www.apache.org/licenses/LICENSE-2.0
  40105. *
  40106. * Unless required by applicable law or agreed to in writing, software
  40107. * distributed under the License is distributed on an "AS IS" BASIS,
  40108. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40109. * See the License for the specific language governing permissions and
  40110. * limitations under the License.
  40111. *
  40112. *
  40113. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  40114. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  40115. */
  40116. /* globals Uint32ArrayView */
  40117. 'use strict';
  40118. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  40119. // Workaround for missing math precison in JS.
  40120. var MASK_HIGH = 0xffff0000;
  40121. var MASK_LOW = 0xffff;
  40122. function MurmurHash3_64 (seed) {
  40123. var SEED = 0xc3d2e1f0;
  40124. this.h1 = seed ? seed & 0xffffffff : SEED;
  40125. this.h2 = seed ? seed & 0xffffffff : SEED;
  40126. }
  40127. MurmurHash3_64.prototype = {
  40128. update: function MurmurHash3_64_update(input) {
  40129. var useUint32ArrayView = false;
  40130. var i;
  40131. if (typeof input == 'string') {
  40132. var data = new Uint8Array(input.length * 2);
  40133. var length = 0;
  40134. for (i = 0; i < input.length; i++) {
  40135. var code = input.charCodeAt(i);
  40136. if (code <= 0xff) {
  40137. data[length++] = code;
  40138. }
  40139. else {
  40140. data[length++] = code >>> 8;
  40141. data[length++] = code & 0xff;
  40142. }
  40143. }
  40144. } else if (input instanceof Uint8Array) {
  40145. data = input;
  40146. length = data.length;
  40147. } else if (typeof input === 'object' && ('length' in input)) {
  40148. // processing regular arrays as well, e.g. for IE9
  40149. data = input;
  40150. length = data.length;
  40151. useUint32ArrayView = true;
  40152. } else {
  40153. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  40154. 'Input must be a string or array.');
  40155. }
  40156. var blockCounts = length >> 2;
  40157. var tailLength = length - blockCounts * 4;
  40158. // we don't care about endianness here
  40159. var dataUint32 = useUint32ArrayView ?
  40160. new Uint32ArrayView(data, blockCounts) :
  40161. new Uint32Array(data.buffer, 0, blockCounts);
  40162. var k1 = 0;
  40163. var k2 = 0;
  40164. var h1 = this.h1;
  40165. var h2 = this.h2;
  40166. var C1 = 0xcc9e2d51;
  40167. var C2 = 0x1b873593;
  40168. var C1_LOW = C1 & MASK_LOW;
  40169. var C2_LOW = C2 & MASK_LOW;
  40170. for (i = 0; i < blockCounts; i++) {
  40171. if (i & 1) {
  40172. k1 = dataUint32[i];
  40173. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40174. k1 = k1 << 15 | k1 >>> 17;
  40175. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40176. h1 ^= k1;
  40177. h1 = h1 << 13 | h1 >>> 19;
  40178. h1 = h1 * 5 + 0xe6546b64;
  40179. } else {
  40180. k2 = dataUint32[i];
  40181. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  40182. k2 = k2 << 15 | k2 >>> 17;
  40183. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  40184. h2 ^= k2;
  40185. h2 = h2 << 13 | h2 >>> 19;
  40186. h2 = h2 * 5 + 0xe6546b64;
  40187. }
  40188. }
  40189. k1 = 0;
  40190. switch (tailLength) {
  40191. case 3:
  40192. k1 ^= data[blockCounts * 4 + 2] << 16;
  40193. /* falls through */
  40194. case 2:
  40195. k1 ^= data[blockCounts * 4 + 1] << 8;
  40196. /* falls through */
  40197. case 1:
  40198. k1 ^= data[blockCounts * 4];
  40199. /* falls through */
  40200. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40201. k1 = k1 << 15 | k1 >>> 17;
  40202. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40203. if (blockCounts & 1) {
  40204. h1 ^= k1;
  40205. } else {
  40206. h2 ^= k1;
  40207. }
  40208. }
  40209. this.h1 = h1;
  40210. this.h2 = h2;
  40211. return this;
  40212. },
  40213. hexdigest: function MurmurHash3_64_hexdigest () {
  40214. var h1 = this.h1;
  40215. var h2 = this.h2;
  40216. h1 ^= h2 >>> 1;
  40217. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  40218. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  40219. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  40220. h1 ^= h2 >>> 1;
  40221. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  40222. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  40223. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  40224. h1 ^= h2 >>> 1;
  40225. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  40226. var hex = (arr[i] >>> 0).toString(16);
  40227. while (hex.length < 8) {
  40228. hex = '0' + hex;
  40229. }
  40230. str += hex;
  40231. }
  40232. return str;
  40233. }
  40234. };
  40235. return MurmurHash3_64;
  40236. })();
  40237. }).call((typeof window === 'undefined') ? this : window);
  40238. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  40239. // workerSrc is not set -- using last script url to define default location
  40240. PDFJS.workerSrc = (function () {
  40241. 'use strict';
  40242. var scriptTagContainer = document.body ||
  40243. document.getElementsByTagName('head')[0];
  40244. var pdfjsSrc = scriptTagContainer.lastChild.src;
  40245. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  40246. })();
  40247. }