2
0

pdf.worker.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514
  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.129';
  23. PDFJS.build = '164e11f';
  24. (function pdfjsWrapper() {
  25. // Use strict in our context only - users might not want it
  26. 'use strict';
  27. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  28. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  29. /* Copyright 2012 Mozilla Foundation
  30. *
  31. * Licensed under the Apache License, Version 2.0 (the "License");
  32. * you may not use this file except in compliance with the License.
  33. * You may obtain a copy of the License at
  34. *
  35. * http://www.apache.org/licenses/LICENSE-2.0
  36. *
  37. * Unless required by applicable law or agreed to in writing, software
  38. * distributed under the License is distributed on an "AS IS" BASIS,
  39. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40. * See the License for the specific language governing permissions and
  41. * limitations under the License.
  42. */
  43. /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL,
  44. Promise */
  45. 'use strict';
  46. var globalScope = (typeof window === 'undefined') ? this : window;
  47. var isWorker = (typeof window == 'undefined');
  48. var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
  49. var TextRenderingMode = {
  50. FILL: 0,
  51. STROKE: 1,
  52. FILL_STROKE: 2,
  53. INVISIBLE: 3,
  54. FILL_ADD_TO_PATH: 4,
  55. STROKE_ADD_TO_PATH: 5,
  56. FILL_STROKE_ADD_TO_PATH: 6,
  57. ADD_TO_PATH: 7,
  58. FILL_STROKE_MASK: 3,
  59. ADD_TO_PATH_FLAG: 4
  60. };
  61. var ImageKind = {
  62. GRAYSCALE_1BPP: 1,
  63. RGB_24BPP: 2,
  64. RGBA_32BPP: 3
  65. };
  66. // The global PDFJS object exposes the API
  67. // In production, it will be declared outside a global wrapper
  68. // In development, it will be declared here
  69. if (!globalScope.PDFJS) {
  70. globalScope.PDFJS = {};
  71. }
  72. globalScope.PDFJS.pdfBug = false;
  73. PDFJS.VERBOSITY_LEVELS = {
  74. errors: 0,
  75. warnings: 1,
  76. infos: 5
  77. };
  78. // All the possible operations for an operator list.
  79. var OPS = PDFJS.OPS = {
  80. // Intentionally start from 1 so it is easy to spot bad operators that will be
  81. // 0's.
  82. dependency: 1,
  83. setLineWidth: 2,
  84. setLineCap: 3,
  85. setLineJoin: 4,
  86. setMiterLimit: 5,
  87. setDash: 6,
  88. setRenderingIntent: 7,
  89. setFlatness: 8,
  90. setGState: 9,
  91. save: 10,
  92. restore: 11,
  93. transform: 12,
  94. moveTo: 13,
  95. lineTo: 14,
  96. curveTo: 15,
  97. curveTo2: 16,
  98. curveTo3: 17,
  99. closePath: 18,
  100. rectangle: 19,
  101. stroke: 20,
  102. closeStroke: 21,
  103. fill: 22,
  104. eoFill: 23,
  105. fillStroke: 24,
  106. eoFillStroke: 25,
  107. closeFillStroke: 26,
  108. closeEOFillStroke: 27,
  109. endPath: 28,
  110. clip: 29,
  111. eoClip: 30,
  112. beginText: 31,
  113. endText: 32,
  114. setCharSpacing: 33,
  115. setWordSpacing: 34,
  116. setHScale: 35,
  117. setLeading: 36,
  118. setFont: 37,
  119. setTextRenderingMode: 38,
  120. setTextRise: 39,
  121. moveText: 40,
  122. setLeadingMoveText: 41,
  123. setTextMatrix: 42,
  124. nextLine: 43,
  125. showText: 44,
  126. showSpacedText: 45,
  127. nextLineShowText: 46,
  128. nextLineSetSpacingShowText: 47,
  129. setCharWidth: 48,
  130. setCharWidthAndBounds: 49,
  131. setStrokeColorSpace: 50,
  132. setFillColorSpace: 51,
  133. setStrokeColor: 52,
  134. setStrokeColorN: 53,
  135. setFillColor: 54,
  136. setFillColorN: 55,
  137. setStrokeGray: 56,
  138. setFillGray: 57,
  139. setStrokeRGBColor: 58,
  140. setFillRGBColor: 59,
  141. setStrokeCMYKColor: 60,
  142. setFillCMYKColor: 61,
  143. shadingFill: 62,
  144. beginInlineImage: 63,
  145. beginImageData: 64,
  146. endInlineImage: 65,
  147. paintXObject: 66,
  148. markPoint: 67,
  149. markPointProps: 68,
  150. beginMarkedContent: 69,
  151. beginMarkedContentProps: 70,
  152. endMarkedContent: 71,
  153. beginCompat: 72,
  154. endCompat: 73,
  155. paintFormXObjectBegin: 74,
  156. paintFormXObjectEnd: 75,
  157. beginGroup: 76,
  158. endGroup: 77,
  159. beginAnnotations: 78,
  160. endAnnotations: 79,
  161. beginAnnotation: 80,
  162. endAnnotation: 81,
  163. paintJpegXObject: 82,
  164. paintImageMaskXObject: 83,
  165. paintImageMaskXObjectGroup: 84,
  166. paintImageXObject: 85,
  167. paintInlineImageXObject: 86,
  168. paintInlineImageXObjectGroup: 87,
  169. paintImageXObjectRepeat: 88,
  170. paintImageMaskXObjectRepeat: 89,
  171. paintSolidColorImageMask: 90
  172. };
  173. // A notice for devs. These are good for things that are helpful to devs, such
  174. // as warning that Workers were disabled, which is important to devs but not
  175. // end users.
  176. function info(msg) {
  177. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  178. console.log('Info: ' + msg);
  179. }
  180. }
  181. // Non-fatal warnings.
  182. function warn(msg) {
  183. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  184. console.log('Warning: ' + msg);
  185. }
  186. }
  187. // Fatal errors that should trigger the fallback UI and halt execution by
  188. // throwing an exception.
  189. function error(msg) {
  190. // If multiple arguments were passed, pass them all to the log function.
  191. if (arguments.length > 1) {
  192. var logArguments = ['Error:'];
  193. logArguments.push.apply(logArguments, arguments);
  194. console.log.apply(console, logArguments);
  195. // Join the arguments into a single string for the lines below.
  196. msg = [].join.call(arguments, ' ');
  197. } else {
  198. console.log('Error: ' + msg);
  199. }
  200. console.log(backtrace());
  201. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  202. throw new Error(msg);
  203. }
  204. function backtrace() {
  205. try {
  206. throw new Error();
  207. } catch (e) {
  208. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  209. }
  210. }
  211. function assert(cond, msg) {
  212. if (!cond) {
  213. error(msg);
  214. }
  215. }
  216. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  217. unknown: 'unknown',
  218. forms: 'forms',
  219. javaScript: 'javaScript',
  220. smask: 'smask',
  221. shadingPattern: 'shadingPattern',
  222. font: 'font'
  223. };
  224. var UnsupportedManager = PDFJS.UnsupportedManager =
  225. (function UnsupportedManagerClosure() {
  226. var listeners = [];
  227. return {
  228. listen: function (cb) {
  229. listeners.push(cb);
  230. },
  231. notify: function (featureId) {
  232. warn('Unsupported feature "' + featureId + '"');
  233. for (var i = 0, ii = listeners.length; i < ii; i++) {
  234. listeners[i](featureId);
  235. }
  236. }
  237. };
  238. })();
  239. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  240. // absolute URL, it will be returned as is.
  241. function combineUrl(baseUrl, url) {
  242. if (!url) {
  243. return baseUrl;
  244. }
  245. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  246. return url;
  247. }
  248. var i;
  249. if (url.charAt(0) == '/') {
  250. // absolute path
  251. i = baseUrl.indexOf('://');
  252. if (url.charAt(1) === '/') {
  253. ++i;
  254. } else {
  255. i = baseUrl.indexOf('/', i + 3);
  256. }
  257. return baseUrl.substring(0, i) + url;
  258. } else {
  259. // relative path
  260. var pathLength = baseUrl.length;
  261. i = baseUrl.lastIndexOf('#');
  262. pathLength = i >= 0 ? i : pathLength;
  263. i = baseUrl.lastIndexOf('?', pathLength);
  264. pathLength = i >= 0 ? i : pathLength;
  265. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  266. return baseUrl.substring(0, prefixLength + 1) + url;
  267. }
  268. }
  269. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  270. function isValidUrl(url, allowRelative) {
  271. if (!url) {
  272. return false;
  273. }
  274. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  275. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  276. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  277. if (!protocol) {
  278. return allowRelative;
  279. }
  280. protocol = protocol[0].toLowerCase();
  281. switch (protocol) {
  282. case 'http':
  283. case 'https':
  284. case 'ftp':
  285. case 'mailto':
  286. return true;
  287. default:
  288. return false;
  289. }
  290. }
  291. PDFJS.isValidUrl = isValidUrl;
  292. function shadow(obj, prop, value) {
  293. Object.defineProperty(obj, prop, { value: value,
  294. enumerable: true,
  295. configurable: true,
  296. writable: false });
  297. return value;
  298. }
  299. var PasswordResponses = PDFJS.PasswordResponses = {
  300. NEED_PASSWORD: 1,
  301. INCORRECT_PASSWORD: 2
  302. };
  303. var PasswordException = (function PasswordExceptionClosure() {
  304. function PasswordException(msg, code) {
  305. this.name = 'PasswordException';
  306. this.message = msg;
  307. this.code = code;
  308. }
  309. PasswordException.prototype = new Error();
  310. PasswordException.constructor = PasswordException;
  311. return PasswordException;
  312. })();
  313. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  314. function UnknownErrorException(msg, details) {
  315. this.name = 'UnknownErrorException';
  316. this.message = msg;
  317. this.details = details;
  318. }
  319. UnknownErrorException.prototype = new Error();
  320. UnknownErrorException.constructor = UnknownErrorException;
  321. return UnknownErrorException;
  322. })();
  323. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  324. function InvalidPDFException(msg) {
  325. this.name = 'InvalidPDFException';
  326. this.message = msg;
  327. }
  328. InvalidPDFException.prototype = new Error();
  329. InvalidPDFException.constructor = InvalidPDFException;
  330. return InvalidPDFException;
  331. })();
  332. var MissingPDFException = (function MissingPDFExceptionClosure() {
  333. function MissingPDFException(msg) {
  334. this.name = 'MissingPDFException';
  335. this.message = msg;
  336. }
  337. MissingPDFException.prototype = new Error();
  338. MissingPDFException.constructor = MissingPDFException;
  339. return MissingPDFException;
  340. })();
  341. var NotImplementedException = (function NotImplementedExceptionClosure() {
  342. function NotImplementedException(msg) {
  343. this.message = msg;
  344. }
  345. NotImplementedException.prototype = new Error();
  346. NotImplementedException.prototype.name = 'NotImplementedException';
  347. NotImplementedException.constructor = NotImplementedException;
  348. return NotImplementedException;
  349. })();
  350. var MissingDataException = (function MissingDataExceptionClosure() {
  351. function MissingDataException(begin, end) {
  352. this.begin = begin;
  353. this.end = end;
  354. this.message = 'Missing data [' + begin + ', ' + end + ')';
  355. }
  356. MissingDataException.prototype = new Error();
  357. MissingDataException.prototype.name = 'MissingDataException';
  358. MissingDataException.constructor = MissingDataException;
  359. return MissingDataException;
  360. })();
  361. var XRefParseException = (function XRefParseExceptionClosure() {
  362. function XRefParseException(msg) {
  363. this.message = msg;
  364. }
  365. XRefParseException.prototype = new Error();
  366. XRefParseException.prototype.name = 'XRefParseException';
  367. XRefParseException.constructor = XRefParseException;
  368. return XRefParseException;
  369. })();
  370. function bytesToString(bytes) {
  371. var length = bytes.length;
  372. var MAX_ARGUMENT_COUNT = 8192;
  373. if (length < MAX_ARGUMENT_COUNT) {
  374. return String.fromCharCode.apply(null, bytes);
  375. }
  376. var strBuf = [];
  377. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  378. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  379. var chunk = bytes.subarray(i, chunkEnd);
  380. strBuf.push(String.fromCharCode.apply(null, chunk));
  381. }
  382. return strBuf.join('');
  383. }
  384. function stringToArray(str) {
  385. var length = str.length;
  386. var array = [];
  387. for (var i = 0; i < length; ++i) {
  388. array[i] = str.charCodeAt(i);
  389. }
  390. return array;
  391. }
  392. function stringToBytes(str) {
  393. var length = str.length;
  394. var bytes = new Uint8Array(length);
  395. for (var i = 0; i < length; ++i) {
  396. bytes[i] = str.charCodeAt(i) & 0xFF;
  397. }
  398. return bytes;
  399. }
  400. function string32(value) {
  401. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  402. (value >> 8) & 0xff, value & 0xff);
  403. }
  404. function log2(x) {
  405. var n = 1, i = 0;
  406. while (x > n) {
  407. n <<= 1;
  408. i++;
  409. }
  410. return i;
  411. }
  412. function readInt8(data, start) {
  413. return (data[start] << 24) >> 24;
  414. }
  415. function readUint16(data, offset) {
  416. return (data[offset] << 8) | data[offset + 1];
  417. }
  418. function readUint32(data, offset) {
  419. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  420. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  421. }
  422. // Lazy test the endianness of the platform
  423. // NOTE: This will be 'true' for simulated TypedArrays
  424. function isLittleEndian() {
  425. var buffer8 = new Uint8Array(2);
  426. buffer8[0] = 1;
  427. var buffer16 = new Uint16Array(buffer8.buffer);
  428. return (buffer16[0] === 1);
  429. }
  430. Object.defineProperty(PDFJS, 'isLittleEndian', {
  431. configurable: true,
  432. get: function PDFJS_isLittleEndian() {
  433. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  434. }
  435. });
  436. // Lazy test if the userAgant support CanvasTypedArrays
  437. function hasCanvasTypedArrays() {
  438. var canvas = document.createElement('canvas');
  439. canvas.width = canvas.height = 1;
  440. var ctx = canvas.getContext('2d');
  441. var imageData = ctx.createImageData(1, 1);
  442. return (typeof imageData.data.buffer !== 'undefined');
  443. }
  444. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  445. configurable: true,
  446. get: function PDFJS_hasCanvasTypedArrays() {
  447. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  448. }
  449. });
  450. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  451. function Uint32ArrayView(buffer, length) {
  452. this.buffer = buffer;
  453. this.byteLength = buffer.length;
  454. this.length = length === undefined ? (this.byteLength >> 2) : length;
  455. ensureUint32ArrayViewProps(this.length);
  456. }
  457. Uint32ArrayView.prototype = Object.create(null);
  458. var uint32ArrayViewSetters = 0;
  459. function createUint32ArrayProp(index) {
  460. return {
  461. get: function () {
  462. var buffer = this.buffer, offset = index << 2;
  463. return (buffer[offset] | (buffer[offset + 1] << 8) |
  464. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  465. },
  466. set: function (value) {
  467. var buffer = this.buffer, offset = index << 2;
  468. buffer[offset] = value & 255;
  469. buffer[offset + 1] = (value >> 8) & 255;
  470. buffer[offset + 2] = (value >> 16) & 255;
  471. buffer[offset + 3] = (value >>> 24) & 255;
  472. }
  473. };
  474. }
  475. function ensureUint32ArrayViewProps(length) {
  476. while (uint32ArrayViewSetters < length) {
  477. Object.defineProperty(Uint32ArrayView.prototype,
  478. uint32ArrayViewSetters,
  479. createUint32ArrayProp(uint32ArrayViewSetters));
  480. uint32ArrayViewSetters++;
  481. }
  482. }
  483. return Uint32ArrayView;
  484. })();
  485. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  486. var Util = PDFJS.Util = (function UtilClosure() {
  487. function Util() {}
  488. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  489. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  490. };
  491. Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
  492. var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
  493. return Util.makeCssRgb(rgb);
  494. };
  495. // Concatenates two transformation matrices together and returns the result.
  496. Util.transform = function Util_transform(m1, m2) {
  497. return [
  498. m1[0] * m2[0] + m1[2] * m2[1],
  499. m1[1] * m2[0] + m1[3] * m2[1],
  500. m1[0] * m2[2] + m1[2] * m2[3],
  501. m1[1] * m2[2] + m1[3] * m2[3],
  502. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  503. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  504. ];
  505. };
  506. // For 2d affine transforms
  507. Util.applyTransform = function Util_applyTransform(p, m) {
  508. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  509. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  510. return [xt, yt];
  511. };
  512. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  513. var d = m[0] * m[3] - m[1] * m[2];
  514. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  515. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  516. return [xt, yt];
  517. };
  518. // Applies the transform to the rectangle and finds the minimum axially
  519. // aligned bounding box.
  520. Util.getAxialAlignedBoundingBox =
  521. function Util_getAxialAlignedBoundingBox(r, m) {
  522. var p1 = Util.applyTransform(r, m);
  523. var p2 = Util.applyTransform(r.slice(2, 4), m);
  524. var p3 = Util.applyTransform([r[0], r[3]], m);
  525. var p4 = Util.applyTransform([r[2], r[1]], m);
  526. return [
  527. Math.min(p1[0], p2[0], p3[0], p4[0]),
  528. Math.min(p1[1], p2[1], p3[1], p4[1]),
  529. Math.max(p1[0], p2[0], p3[0], p4[0]),
  530. Math.max(p1[1], p2[1], p3[1], p4[1])
  531. ];
  532. };
  533. Util.inverseTransform = function Util_inverseTransform(m) {
  534. var d = m[0] * m[3] - m[1] * m[2];
  535. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  536. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  537. };
  538. // Apply a generic 3d matrix M on a 3-vector v:
  539. // | a b c | | X |
  540. // | d e f | x | Y |
  541. // | g h i | | Z |
  542. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  543. // with v as [X,Y,Z]
  544. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  545. return [
  546. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  547. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  548. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  549. ];
  550. };
  551. // This calculation uses Singular Value Decomposition.
  552. // The SVD can be represented with formula A = USV. We are interested in the
  553. // matrix S here because it represents the scale values.
  554. Util.singularValueDecompose2dScale =
  555. function Util_singularValueDecompose2dScale(m) {
  556. var transpose = [m[0], m[2], m[1], m[3]];
  557. // Multiply matrix m with its transpose.
  558. var a = m[0] * transpose[0] + m[1] * transpose[2];
  559. var b = m[0] * transpose[1] + m[1] * transpose[3];
  560. var c = m[2] * transpose[0] + m[3] * transpose[2];
  561. var d = m[2] * transpose[1] + m[3] * transpose[3];
  562. // Solve the second degree polynomial to get roots.
  563. var first = (a + d) / 2;
  564. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  565. var sx = first + second || 1;
  566. var sy = first - second || 1;
  567. // Scale values are the square roots of the eigenvalues.
  568. return [Math.sqrt(sx), Math.sqrt(sy)];
  569. };
  570. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  571. // For coordinate systems whose origin lies in the bottom-left, this
  572. // means normalization to (BL,TR) ordering. For systems with origin in the
  573. // top-left, this means (TL,BR) ordering.
  574. Util.normalizeRect = function Util_normalizeRect(rect) {
  575. var r = rect.slice(0); // clone rect
  576. if (rect[0] > rect[2]) {
  577. r[0] = rect[2];
  578. r[2] = rect[0];
  579. }
  580. if (rect[1] > rect[3]) {
  581. r[1] = rect[3];
  582. r[3] = rect[1];
  583. }
  584. return r;
  585. };
  586. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  587. // intersection of rect1 and rect2. If no intersection, returns 'false'
  588. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  589. Util.intersect = function Util_intersect(rect1, rect2) {
  590. function compare(a, b) {
  591. return a - b;
  592. }
  593. // Order points along the axes
  594. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  595. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  596. result = [];
  597. rect1 = Util.normalizeRect(rect1);
  598. rect2 = Util.normalizeRect(rect2);
  599. // X: first and second points belong to different rectangles?
  600. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  601. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  602. // Intersection must be between second and third points
  603. result[0] = orderedX[1];
  604. result[2] = orderedX[2];
  605. } else {
  606. return false;
  607. }
  608. // Y: first and second points belong to different rectangles?
  609. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  610. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  611. // Intersection must be between second and third points
  612. result[1] = orderedY[1];
  613. result[3] = orderedY[2];
  614. } else {
  615. return false;
  616. }
  617. return result;
  618. };
  619. Util.sign = function Util_sign(num) {
  620. return num < 0 ? -1 : 1;
  621. };
  622. // TODO(mack): Rename appendToArray
  623. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  624. Array.prototype.push.apply(arr1, arr2);
  625. };
  626. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  627. Array.prototype.unshift.apply(arr1, arr2);
  628. };
  629. Util.extendObj = function extendObj(obj1, obj2) {
  630. for (var key in obj2) {
  631. obj1[key] = obj2[key];
  632. }
  633. };
  634. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  635. name) {
  636. while (dict && !dict.has(name)) {
  637. dict = dict.get('Parent');
  638. }
  639. if (!dict) {
  640. return null;
  641. }
  642. return dict.get(name);
  643. };
  644. Util.inherit = function Util_inherit(sub, base, prototype) {
  645. sub.prototype = Object.create(base.prototype);
  646. sub.prototype.constructor = sub;
  647. for (var prop in prototype) {
  648. sub.prototype[prop] = prototype[prop];
  649. }
  650. };
  651. Util.loadScript = function Util_loadScript(src, callback) {
  652. var script = document.createElement('script');
  653. var loaded = false;
  654. script.setAttribute('src', src);
  655. if (callback) {
  656. script.onload = function() {
  657. if (!loaded) {
  658. callback();
  659. }
  660. loaded = true;
  661. };
  662. }
  663. document.getElementsByTagName('head')[0].appendChild(script);
  664. };
  665. return Util;
  666. })();
  667. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  668. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  669. this.viewBox = viewBox;
  670. this.scale = scale;
  671. this.rotation = rotation;
  672. this.offsetX = offsetX;
  673. this.offsetY = offsetY;
  674. // creating transform to convert pdf coordinate system to the normal
  675. // canvas like coordinates taking in account scale and rotation
  676. var centerX = (viewBox[2] + viewBox[0]) / 2;
  677. var centerY = (viewBox[3] + viewBox[1]) / 2;
  678. var rotateA, rotateB, rotateC, rotateD;
  679. rotation = rotation % 360;
  680. rotation = rotation < 0 ? rotation + 360 : rotation;
  681. switch (rotation) {
  682. case 180:
  683. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  684. break;
  685. case 90:
  686. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  687. break;
  688. case 270:
  689. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  690. break;
  691. //case 0:
  692. default:
  693. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  694. break;
  695. }
  696. if (dontFlip) {
  697. rotateC = -rotateC; rotateD = -rotateD;
  698. }
  699. var offsetCanvasX, offsetCanvasY;
  700. var width, height;
  701. if (rotateA === 0) {
  702. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  703. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  704. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  705. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  706. } else {
  707. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  708. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  709. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  710. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  711. }
  712. // creating transform for the following operations:
  713. // translate(-centerX, -centerY), rotate and flip vertically,
  714. // scale, and translate(offsetCanvasX, offsetCanvasY)
  715. this.transform = [
  716. rotateA * scale,
  717. rotateB * scale,
  718. rotateC * scale,
  719. rotateD * scale,
  720. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  721. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  722. ];
  723. this.width = width;
  724. this.height = height;
  725. this.fontScale = scale;
  726. }
  727. PageViewport.prototype = {
  728. clone: function PageViewPort_clone(args) {
  729. args = args || {};
  730. var scale = 'scale' in args ? args.scale : this.scale;
  731. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  732. return new PageViewport(this.viewBox.slice(), scale, rotation,
  733. this.offsetX, this.offsetY, args.dontFlip);
  734. },
  735. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  736. return Util.applyTransform([x, y], this.transform);
  737. },
  738. convertToViewportRectangle:
  739. function PageViewport_convertToViewportRectangle(rect) {
  740. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  741. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  742. return [tl[0], tl[1], br[0], br[1]];
  743. },
  744. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  745. return Util.applyInverseTransform([x, y], this.transform);
  746. }
  747. };
  748. return PageViewport;
  749. })();
  750. var PDFStringTranslateTable = [
  751. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  752. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  753. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  754. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  755. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  756. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  757. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  758. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  759. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  760. ];
  761. function stringToPDFString(str) {
  762. var i, n = str.length, strBuf = [];
  763. if (str[0] === '\xFE' && str[1] === '\xFF') {
  764. // UTF16BE BOM
  765. for (i = 2; i < n; i += 2) {
  766. strBuf.push(String.fromCharCode(
  767. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  768. }
  769. } else {
  770. for (i = 0; i < n; ++i) {
  771. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  772. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  773. }
  774. }
  775. return strBuf.join('');
  776. }
  777. function stringToUTF8String(str) {
  778. return decodeURIComponent(escape(str));
  779. }
  780. function isEmptyObj(obj) {
  781. for (var key in obj) {
  782. return false;
  783. }
  784. return true;
  785. }
  786. function isBool(v) {
  787. return typeof v == 'boolean';
  788. }
  789. function isInt(v) {
  790. return typeof v == 'number' && ((v | 0) == v);
  791. }
  792. function isNum(v) {
  793. return typeof v == 'number';
  794. }
  795. function isString(v) {
  796. return typeof v == 'string';
  797. }
  798. function isNull(v) {
  799. return v === null;
  800. }
  801. function isName(v) {
  802. return v instanceof Name;
  803. }
  804. function isCmd(v, cmd) {
  805. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  806. }
  807. function isDict(v, type) {
  808. if (!(v instanceof Dict)) {
  809. return false;
  810. }
  811. if (!type) {
  812. return true;
  813. }
  814. var dictType = v.get('Type');
  815. return isName(dictType) && dictType.name == type;
  816. }
  817. function isArray(v) {
  818. return v instanceof Array;
  819. }
  820. function isStream(v) {
  821. return typeof v == 'object' && v !== null && v !== undefined &&
  822. ('getBytes' in v);
  823. }
  824. function isArrayBuffer(v) {
  825. return typeof v == 'object' && v !== null && v !== undefined &&
  826. ('byteLength' in v);
  827. }
  828. function isRef(v) {
  829. return v instanceof Ref;
  830. }
  831. function isPDFFunction(v) {
  832. var fnDict;
  833. if (typeof v != 'object') {
  834. return false;
  835. } else if (isDict(v)) {
  836. fnDict = v;
  837. } else if (isStream(v)) {
  838. fnDict = v.dict;
  839. } else {
  840. return false;
  841. }
  842. return fnDict.has('FunctionType');
  843. }
  844. /**
  845. * Legacy support for PDFJS Promise implementation.
  846. * TODO remove eventually
  847. * @ignore
  848. */
  849. var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
  850. return function LegacyPromise() {
  851. var resolve, reject;
  852. var promise = new Promise(function (resolve_, reject_) {
  853. resolve = resolve_;
  854. reject = reject_;
  855. });
  856. promise.resolve = resolve;
  857. promise.reject = reject;
  858. return promise;
  859. };
  860. })();
  861. /**
  862. * Promise Capability object.
  863. *
  864. * @typedef {Object} PromiseCapability
  865. * @property {Promise} promise - A promise object.
  866. * @property {function} resolve - Fullfills the promise.
  867. * @property {function} reject - Rejects the promise.
  868. */
  869. /**
  870. * Creates a promise capability object.
  871. * @return {PromiseCapability} A capability object contains:
  872. * - a Promise, resolve and reject methods.
  873. */
  874. function createPromiseCapability() {
  875. var capability = {};
  876. capability.promise = new Promise(function (resolve, reject) {
  877. capability.resolve = resolve;
  878. capability.reject = reject;
  879. });
  880. return capability;
  881. }
  882. PDFJS.createPromiseCapability = createPromiseCapability;
  883. /**
  884. * Polyfill for Promises:
  885. * The following promise implementation tries to generally implment the
  886. * Promise/A+ spec. Some notable differences from other promise libaries are:
  887. * - There currently isn't a seperate deferred and promise object.
  888. * - Unhandled rejections eventually show an error if they aren't handled.
  889. *
  890. * Based off of the work in:
  891. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  892. */
  893. (function PromiseClosure() {
  894. if (globalScope.Promise) {
  895. // Promises existing in the DOM/Worker, checking presence of all/resolve
  896. if (typeof globalScope.Promise.all !== 'function') {
  897. globalScope.Promise.all = function (iterable) {
  898. var count = 0, results = [], resolve, reject;
  899. var promise = new globalScope.Promise(function (resolve_, reject_) {
  900. resolve = resolve_;
  901. reject = reject_;
  902. });
  903. iterable.forEach(function (p, i) {
  904. count++;
  905. p.then(function (result) {
  906. results[i] = result;
  907. count--;
  908. if (count === 0) {
  909. resolve(results);
  910. }
  911. }, reject);
  912. });
  913. if (count === 0) {
  914. resolve(results);
  915. }
  916. return promise;
  917. };
  918. }
  919. if (typeof globalScope.Promise.resolve !== 'function') {
  920. globalScope.Promise.resolve = function (value) {
  921. return new globalScope.Promise(function (resolve) { resolve(value); });
  922. };
  923. }
  924. if (typeof globalScope.Promise.reject !== 'function') {
  925. globalScope.Promise.reject = function (reason) {
  926. return new globalScope.Promise(function (resolve, reject) {
  927. reject(reason);
  928. });
  929. };
  930. }
  931. return;
  932. }
  933. var STATUS_PENDING = 0;
  934. var STATUS_RESOLVED = 1;
  935. var STATUS_REJECTED = 2;
  936. // In an attempt to avoid silent exceptions, unhandled rejections are
  937. // tracked and if they aren't handled in a certain amount of time an
  938. // error is logged.
  939. var REJECTION_TIMEOUT = 500;
  940. var HandlerManager = {
  941. handlers: [],
  942. running: false,
  943. unhandledRejections: [],
  944. pendingRejectionCheck: false,
  945. scheduleHandlers: function scheduleHandlers(promise) {
  946. if (promise._status == STATUS_PENDING) {
  947. return;
  948. }
  949. this.handlers = this.handlers.concat(promise._handlers);
  950. promise._handlers = [];
  951. if (this.running) {
  952. return;
  953. }
  954. this.running = true;
  955. setTimeout(this.runHandlers.bind(this), 0);
  956. },
  957. runHandlers: function runHandlers() {
  958. var RUN_TIMEOUT = 1; // ms
  959. var timeoutAt = Date.now() + RUN_TIMEOUT;
  960. while (this.handlers.length > 0) {
  961. var handler = this.handlers.shift();
  962. var nextStatus = handler.thisPromise._status;
  963. var nextValue = handler.thisPromise._value;
  964. try {
  965. if (nextStatus === STATUS_RESOLVED) {
  966. if (typeof(handler.onResolve) == 'function') {
  967. nextValue = handler.onResolve(nextValue);
  968. }
  969. } else if (typeof(handler.onReject) === 'function') {
  970. nextValue = handler.onReject(nextValue);
  971. nextStatus = STATUS_RESOLVED;
  972. if (handler.thisPromise._unhandledRejection) {
  973. this.removeUnhandeledRejection(handler.thisPromise);
  974. }
  975. }
  976. } catch (ex) {
  977. nextStatus = STATUS_REJECTED;
  978. nextValue = ex;
  979. }
  980. handler.nextPromise._updateStatus(nextStatus, nextValue);
  981. if (Date.now() >= timeoutAt) {
  982. break;
  983. }
  984. }
  985. if (this.handlers.length > 0) {
  986. setTimeout(this.runHandlers.bind(this), 0);
  987. return;
  988. }
  989. this.running = false;
  990. },
  991. addUnhandledRejection: function addUnhandledRejection(promise) {
  992. this.unhandledRejections.push({
  993. promise: promise,
  994. time: Date.now()
  995. });
  996. this.scheduleRejectionCheck();
  997. },
  998. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  999. promise._unhandledRejection = false;
  1000. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1001. if (this.unhandledRejections[i].promise === promise) {
  1002. this.unhandledRejections.splice(i);
  1003. i--;
  1004. }
  1005. }
  1006. },
  1007. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1008. if (this.pendingRejectionCheck) {
  1009. return;
  1010. }
  1011. this.pendingRejectionCheck = true;
  1012. setTimeout(function rejectionCheck() {
  1013. this.pendingRejectionCheck = false;
  1014. var now = Date.now();
  1015. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1016. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1017. var unhandled = this.unhandledRejections[i].promise._value;
  1018. var msg = 'Unhandled rejection: ' + unhandled;
  1019. if (unhandled.stack) {
  1020. msg += '\n' + unhandled.stack;
  1021. }
  1022. warn(msg);
  1023. this.unhandledRejections.splice(i);
  1024. i--;
  1025. }
  1026. }
  1027. if (this.unhandledRejections.length) {
  1028. this.scheduleRejectionCheck();
  1029. }
  1030. }.bind(this), REJECTION_TIMEOUT);
  1031. }
  1032. };
  1033. function Promise(resolver) {
  1034. this._status = STATUS_PENDING;
  1035. this._handlers = [];
  1036. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1037. }
  1038. /**
  1039. * Builds a promise that is resolved when all the passed in promises are
  1040. * resolved.
  1041. * @param {array} array of data and/or promises to wait for.
  1042. * @return {Promise} New dependant promise.
  1043. */
  1044. Promise.all = function Promise_all(promises) {
  1045. var resolveAll, rejectAll;
  1046. var deferred = new Promise(function (resolve, reject) {
  1047. resolveAll = resolve;
  1048. rejectAll = reject;
  1049. });
  1050. var unresolved = promises.length;
  1051. var results = [];
  1052. if (unresolved === 0) {
  1053. resolveAll(results);
  1054. return deferred;
  1055. }
  1056. function reject(reason) {
  1057. if (deferred._status === STATUS_REJECTED) {
  1058. return;
  1059. }
  1060. results = [];
  1061. rejectAll(reason);
  1062. }
  1063. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1064. var promise = promises[i];
  1065. var resolve = (function(i) {
  1066. return function(value) {
  1067. if (deferred._status === STATUS_REJECTED) {
  1068. return;
  1069. }
  1070. results[i] = value;
  1071. unresolved--;
  1072. if (unresolved === 0) {
  1073. resolveAll(results);
  1074. }
  1075. };
  1076. })(i);
  1077. if (Promise.isPromise(promise)) {
  1078. promise.then(resolve, reject);
  1079. } else {
  1080. resolve(promise);
  1081. }
  1082. }
  1083. return deferred;
  1084. };
  1085. /**
  1086. * Checks if the value is likely a promise (has a 'then' function).
  1087. * @return {boolean} true if value is thenable
  1088. */
  1089. Promise.isPromise = function Promise_isPromise(value) {
  1090. return value && typeof value.then === 'function';
  1091. };
  1092. /**
  1093. * Creates resolved promise
  1094. * @param value resolve value
  1095. * @returns {Promise}
  1096. */
  1097. Promise.resolve = function Promise_resolve(value) {
  1098. return new Promise(function (resolve) { resolve(value); });
  1099. };
  1100. /**
  1101. * Creates rejected promise
  1102. * @param reason rejection value
  1103. * @returns {Promise}
  1104. */
  1105. Promise.reject = function Promise_reject(reason) {
  1106. return new Promise(function (resolve, reject) { reject(reason); });
  1107. };
  1108. Promise.prototype = {
  1109. _status: null,
  1110. _value: null,
  1111. _handlers: null,
  1112. _unhandledRejection: null,
  1113. _updateStatus: function Promise__updateStatus(status, value) {
  1114. if (this._status === STATUS_RESOLVED ||
  1115. this._status === STATUS_REJECTED) {
  1116. return;
  1117. }
  1118. if (status == STATUS_RESOLVED &&
  1119. Promise.isPromise(value)) {
  1120. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1121. this._updateStatus.bind(this, STATUS_REJECTED));
  1122. return;
  1123. }
  1124. this._status = status;
  1125. this._value = value;
  1126. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1127. this._unhandledRejection = true;
  1128. HandlerManager.addUnhandledRejection(this);
  1129. }
  1130. HandlerManager.scheduleHandlers(this);
  1131. },
  1132. _resolve: function Promise_resolve(value) {
  1133. this._updateStatus(STATUS_RESOLVED, value);
  1134. },
  1135. _reject: function Promise_reject(reason) {
  1136. this._updateStatus(STATUS_REJECTED, reason);
  1137. },
  1138. then: function Promise_then(onResolve, onReject) {
  1139. var nextPromise = new Promise(function (resolve, reject) {
  1140. this.resolve = reject;
  1141. this.reject = reject;
  1142. });
  1143. this._handlers.push({
  1144. thisPromise: this,
  1145. onResolve: onResolve,
  1146. onReject: onReject,
  1147. nextPromise: nextPromise
  1148. });
  1149. HandlerManager.scheduleHandlers(this);
  1150. return nextPromise;
  1151. }
  1152. };
  1153. globalScope.Promise = Promise;
  1154. })();
  1155. var StatTimer = (function StatTimerClosure() {
  1156. function rpad(str, pad, length) {
  1157. while (str.length < length) {
  1158. str += pad;
  1159. }
  1160. return str;
  1161. }
  1162. function StatTimer() {
  1163. this.started = {};
  1164. this.times = [];
  1165. this.enabled = true;
  1166. }
  1167. StatTimer.prototype = {
  1168. time: function StatTimer_time(name) {
  1169. if (!this.enabled) {
  1170. return;
  1171. }
  1172. if (name in this.started) {
  1173. warn('Timer is already running for ' + name);
  1174. }
  1175. this.started[name] = Date.now();
  1176. },
  1177. timeEnd: function StatTimer_timeEnd(name) {
  1178. if (!this.enabled) {
  1179. return;
  1180. }
  1181. if (!(name in this.started)) {
  1182. warn('Timer has not been started for ' + name);
  1183. }
  1184. this.times.push({
  1185. 'name': name,
  1186. 'start': this.started[name],
  1187. 'end': Date.now()
  1188. });
  1189. // Remove timer from started so it can be called again.
  1190. delete this.started[name];
  1191. },
  1192. toString: function StatTimer_toString() {
  1193. var i, ii;
  1194. var times = this.times;
  1195. var out = '';
  1196. // Find the longest name for padding purposes.
  1197. var longest = 0;
  1198. for (i = 0, ii = times.length; i < ii; ++i) {
  1199. var name = times[i]['name'];
  1200. if (name.length > longest) {
  1201. longest = name.length;
  1202. }
  1203. }
  1204. for (i = 0, ii = times.length; i < ii; ++i) {
  1205. var span = times[i];
  1206. var duration = span.end - span.start;
  1207. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1208. }
  1209. return out;
  1210. }
  1211. };
  1212. return StatTimer;
  1213. })();
  1214. PDFJS.createBlob = function createBlob(data, contentType) {
  1215. if (typeof Blob !== 'undefined') {
  1216. return new Blob([data], { type: contentType });
  1217. }
  1218. // Blob builder is deprecated in FF14 and removed in FF18.
  1219. var bb = new MozBlobBuilder();
  1220. bb.append(data);
  1221. return bb.getBlob(contentType);
  1222. };
  1223. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1224. // Blob/createObjectURL is not available, falling back to data schema.
  1225. var digits =
  1226. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1227. return function createObjectURL(data, contentType) {
  1228. if (!PDFJS.disableCreateObjectURL &&
  1229. typeof URL !== 'undefined' && URL.createObjectURL) {
  1230. var blob = PDFJS.createBlob(data, contentType);
  1231. return URL.createObjectURL(blob);
  1232. }
  1233. var buffer = 'data:' + contentType + ';base64,';
  1234. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1235. var b1 = data[i] & 0xFF;
  1236. var b2 = data[i + 1] & 0xFF;
  1237. var b3 = data[i + 2] & 0xFF;
  1238. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1239. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1240. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1241. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1242. }
  1243. return buffer;
  1244. };
  1245. })();
  1246. function MessageHandler(name, comObj) {
  1247. this.name = name;
  1248. this.comObj = comObj;
  1249. this.callbackIndex = 1;
  1250. this.postMessageTransfers = true;
  1251. var callbacks = this.callbacks = {};
  1252. var ah = this.actionHandler = {};
  1253. ah['console_log'] = [function ahConsoleLog(data) {
  1254. console.log.apply(console, data);
  1255. }];
  1256. ah['console_error'] = [function ahConsoleError(data) {
  1257. console.error.apply(console, data);
  1258. }];
  1259. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1260. UnsupportedManager.notify(data);
  1261. }];
  1262. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1263. var data = event.data;
  1264. if (data.isReply) {
  1265. var callbackId = data.callbackId;
  1266. if (data.callbackId in callbacks) {
  1267. var callback = callbacks[callbackId];
  1268. delete callbacks[callbackId];
  1269. callback(data.data);
  1270. } else {
  1271. error('Cannot resolve callback ' + callbackId);
  1272. }
  1273. } else if (data.action in ah) {
  1274. var action = ah[data.action];
  1275. if (data.callbackId) {
  1276. var deferred = {};
  1277. var promise = new Promise(function (resolve, reject) {
  1278. deferred.resolve = resolve;
  1279. deferred.reject = reject;
  1280. });
  1281. deferred.promise = promise;
  1282. promise.then(function(resolvedData) {
  1283. comObj.postMessage({
  1284. isReply: true,
  1285. callbackId: data.callbackId,
  1286. data: resolvedData
  1287. });
  1288. });
  1289. action[0].call(action[1], data.data, deferred);
  1290. } else {
  1291. action[0].call(action[1], data.data);
  1292. }
  1293. } else {
  1294. error('Unkown action from worker: ' + data.action);
  1295. }
  1296. };
  1297. }
  1298. MessageHandler.prototype = {
  1299. on: function messageHandlerOn(actionName, handler, scope) {
  1300. var ah = this.actionHandler;
  1301. if (ah[actionName]) {
  1302. error('There is already an actionName called "' + actionName + '"');
  1303. }
  1304. ah[actionName] = [handler, scope];
  1305. },
  1306. /**
  1307. * Sends a message to the comObj to invoke the action with the supplied data.
  1308. * @param {String} actionName Action to call.
  1309. * @param {JSON} data JSON data to send.
  1310. * @param {function} [callback] Optional callback that will handle a reply.
  1311. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1312. */
  1313. send: function messageHandlerSend(actionName, data, callback, transfers) {
  1314. var message = {
  1315. action: actionName,
  1316. data: data
  1317. };
  1318. if (callback) {
  1319. var callbackId = this.callbackIndex++;
  1320. this.callbacks[callbackId] = callback;
  1321. message.callbackId = callbackId;
  1322. }
  1323. if (transfers && this.postMessageTransfers) {
  1324. this.comObj.postMessage(message, transfers);
  1325. } else {
  1326. this.comObj.postMessage(message);
  1327. }
  1328. }
  1329. };
  1330. function loadJpegStream(id, imageUrl, objs) {
  1331. var img = new Image();
  1332. img.onload = (function loadJpegStream_onloadClosure() {
  1333. objs.resolve(id, img);
  1334. });
  1335. img.src = imageUrl;
  1336. }
  1337. var ColorSpace = (function ColorSpaceClosure() {
  1338. // Constructor should define this.numComps, this.defaultColor, this.name
  1339. function ColorSpace() {
  1340. error('should not call ColorSpace constructor');
  1341. }
  1342. ColorSpace.prototype = {
  1343. /**
  1344. * Converts the color value to the RGB color. The color components are
  1345. * located in the src array starting from the srcOffset. Returns the array
  1346. * of the rgb components, each value ranging from [0,255].
  1347. */
  1348. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  1349. var rgb = new Uint8Array(3);
  1350. this.getRgbItem(src, srcOffset, rgb, 0);
  1351. return rgb;
  1352. },
  1353. /**
  1354. * Converts the color value to the RGB color, similar to the getRgb method.
  1355. * The result placed into the dest array starting from the destOffset.
  1356. */
  1357. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  1358. dest, destOffset) {
  1359. error('Should not call ColorSpace.getRgbItem');
  1360. },
  1361. /**
  1362. * Converts the specified number of the color values to the RGB colors.
  1363. * The colors are located in the src array starting from the srcOffset.
  1364. * The result is placed into the dest array starting from the destOffset.
  1365. * The src array items shall be in [0,2^bits) range, the dest array items
  1366. * will be in [0,255] range. alpha01 indicates how many alpha components
  1367. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  1368. * array).
  1369. */
  1370. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  1371. dest, destOffset, bits,
  1372. alpha01) {
  1373. error('Should not call ColorSpace.getRgbBuffer');
  1374. },
  1375. /**
  1376. * Determines the number of bytes required to store the result of the
  1377. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  1378. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  1379. */
  1380. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  1381. alpha01) {
  1382. error('Should not call ColorSpace.getOutputLength');
  1383. },
  1384. /**
  1385. * Returns true if source data will be equal the result/output data.
  1386. */
  1387. isPassthrough: function ColorSpace_isPassthrough(bits) {
  1388. return false;
  1389. },
  1390. /**
  1391. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  1392. * how many alpha components there are in the dest array; it will be either
  1393. * 0 (RGB array) or 1 (RGBA array).
  1394. */
  1395. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  1396. originalHeight, width, height,
  1397. actualHeight, bpc, comps, alpha01) {
  1398. var count = originalWidth * originalHeight;
  1399. var rgbBuf = null;
  1400. var numComponentColors = 1 << bpc;
  1401. var needsResizing = originalHeight != height || originalWidth != width;
  1402. var i, ii;
  1403. if (this.isPassthrough(bpc)) {
  1404. rgbBuf = comps;
  1405. } else if (this.numComps === 1 && count > numComponentColors &&
  1406. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  1407. // Optimization: create a color map when there is just one component and
  1408. // we are converting more colors than the size of the color map. We
  1409. // don't build the map if the colorspace is gray or rgb since those
  1410. // methods are faster than building a map. This mainly offers big speed
  1411. // ups for indexed and alternate colorspaces.
  1412. //
  1413. // TODO it may be worth while to cache the color map. While running
  1414. // testing I never hit a cache so I will leave that out for now (perhaps
  1415. // we are reparsing colorspaces too much?).
  1416. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  1417. new Uint16Array(numComponentColors);
  1418. var key;
  1419. for (i = 0; i < numComponentColors; i++) {
  1420. allColors[i] = i;
  1421. }
  1422. var colorMap = new Uint8Array(numComponentColors * 3);
  1423. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  1424. /* alpha01 = */ 0);
  1425. var destPos, rgbPos;
  1426. if (!needsResizing) {
  1427. // Fill in the RGB values directly into |dest|.
  1428. destPos = 0;
  1429. for (i = 0; i < count; ++i) {
  1430. key = comps[i] * 3;
  1431. dest[destPos++] = colorMap[key];
  1432. dest[destPos++] = colorMap[key + 1];
  1433. dest[destPos++] = colorMap[key + 2];
  1434. destPos += alpha01;
  1435. }
  1436. } else {
  1437. rgbBuf = new Uint8Array(count * 3);
  1438. rgbPos = 0;
  1439. for (i = 0; i < count; ++i) {
  1440. key = comps[i] * 3;
  1441. rgbBuf[rgbPos++] = colorMap[key];
  1442. rgbBuf[rgbPos++] = colorMap[key + 1];
  1443. rgbBuf[rgbPos++] = colorMap[key + 2];
  1444. }
  1445. }
  1446. } else {
  1447. if (!needsResizing) {
  1448. // Fill in the RGB values directly into |dest|.
  1449. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  1450. alpha01);
  1451. } else {
  1452. rgbBuf = new Uint8Array(count * 3);
  1453. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  1454. /* alpha01 = */ 0);
  1455. }
  1456. }
  1457. if (rgbBuf) {
  1458. if (needsResizing) {
  1459. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  1460. height, dest, alpha01);
  1461. } else {
  1462. rgbPos = 0;
  1463. destPos = 0;
  1464. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  1465. dest[destPos++] = rgbBuf[rgbPos++];
  1466. dest[destPos++] = rgbBuf[rgbPos++];
  1467. dest[destPos++] = rgbBuf[rgbPos++];
  1468. destPos += alpha01;
  1469. }
  1470. }
  1471. }
  1472. },
  1473. /**
  1474. * True if the colorspace has components in the default range of [0, 1].
  1475. * This should be true for all colorspaces except for lab color spaces
  1476. * which are [0,100], [-128, 127], [-128, 127].
  1477. */
  1478. usesZeroToOneRange: true
  1479. };
  1480. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  1481. var IR = ColorSpace.parseToIR(cs, xref, res);
  1482. if (IR instanceof AlternateCS) {
  1483. return IR;
  1484. }
  1485. return ColorSpace.fromIR(IR);
  1486. };
  1487. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  1488. var name = isArray(IR) ? IR[0] : IR;
  1489. var whitePoint, blackPoint;
  1490. switch (name) {
  1491. case 'DeviceGrayCS':
  1492. return this.singletons.gray;
  1493. case 'DeviceRgbCS':
  1494. return this.singletons.rgb;
  1495. case 'DeviceCmykCS':
  1496. return this.singletons.cmyk;
  1497. case 'CalGrayCS':
  1498. whitePoint = IR[1].WhitePoint;
  1499. blackPoint = IR[1].BlackPoint;
  1500. var gamma = IR[1].Gamma;
  1501. return new CalGrayCS(whitePoint, blackPoint, gamma);
  1502. case 'PatternCS':
  1503. var basePatternCS = IR[1];
  1504. if (basePatternCS) {
  1505. basePatternCS = ColorSpace.fromIR(basePatternCS);
  1506. }
  1507. return new PatternCS(basePatternCS);
  1508. case 'IndexedCS':
  1509. var baseIndexedCS = IR[1];
  1510. var hiVal = IR[2];
  1511. var lookup = IR[3];
  1512. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  1513. case 'AlternateCS':
  1514. var numComps = IR[1];
  1515. var alt = IR[2];
  1516. var tintFnIR = IR[3];
  1517. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  1518. PDFFunction.fromIR(tintFnIR));
  1519. case 'LabCS':
  1520. whitePoint = IR[1].WhitePoint;
  1521. blackPoint = IR[1].BlackPoint;
  1522. var range = IR[1].Range;
  1523. return new LabCS(whitePoint, blackPoint, range);
  1524. default:
  1525. error('Unkown name ' + name);
  1526. }
  1527. return null;
  1528. };
  1529. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  1530. if (isName(cs)) {
  1531. var colorSpaces = res.get('ColorSpace');
  1532. if (isDict(colorSpaces)) {
  1533. var refcs = colorSpaces.get(cs.name);
  1534. if (refcs) {
  1535. cs = refcs;
  1536. }
  1537. }
  1538. }
  1539. cs = xref.fetchIfRef(cs);
  1540. var mode;
  1541. if (isName(cs)) {
  1542. mode = cs.name;
  1543. this.mode = mode;
  1544. switch (mode) {
  1545. case 'DeviceGray':
  1546. case 'G':
  1547. return 'DeviceGrayCS';
  1548. case 'DeviceRGB':
  1549. case 'RGB':
  1550. return 'DeviceRgbCS';
  1551. case 'DeviceCMYK':
  1552. case 'CMYK':
  1553. return 'DeviceCmykCS';
  1554. case 'Pattern':
  1555. return ['PatternCS', null];
  1556. default:
  1557. error('unrecognized colorspace ' + mode);
  1558. }
  1559. } else if (isArray(cs)) {
  1560. mode = cs[0].name;
  1561. this.mode = mode;
  1562. var numComps, params;
  1563. switch (mode) {
  1564. case 'DeviceGray':
  1565. case 'G':
  1566. return 'DeviceGrayCS';
  1567. case 'DeviceRGB':
  1568. case 'RGB':
  1569. return 'DeviceRgbCS';
  1570. case 'DeviceCMYK':
  1571. case 'CMYK':
  1572. return 'DeviceCmykCS';
  1573. case 'CalGray':
  1574. params = cs[1].getAll();
  1575. return ['CalGrayCS', params];
  1576. case 'CalRGB':
  1577. return 'DeviceRgbCS';
  1578. case 'ICCBased':
  1579. var stream = xref.fetchIfRef(cs[1]);
  1580. var dict = stream.dict;
  1581. numComps = dict.get('N');
  1582. if (numComps == 1) {
  1583. return 'DeviceGrayCS';
  1584. } else if (numComps == 3) {
  1585. return 'DeviceRgbCS';
  1586. } else if (numComps == 4) {
  1587. return 'DeviceCmykCS';
  1588. }
  1589. break;
  1590. case 'Pattern':
  1591. var basePatternCS = cs[1];
  1592. if (basePatternCS) {
  1593. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  1594. }
  1595. return ['PatternCS', basePatternCS];
  1596. case 'Indexed':
  1597. case 'I':
  1598. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  1599. var hiVal = cs[2] + 1;
  1600. var lookup = xref.fetchIfRef(cs[3]);
  1601. if (isStream(lookup)) {
  1602. lookup = lookup.getBytes();
  1603. }
  1604. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  1605. case 'Separation':
  1606. case 'DeviceN':
  1607. var name = cs[1];
  1608. numComps = 1;
  1609. if (isName(name)) {
  1610. numComps = 1;
  1611. } else if (isArray(name)) {
  1612. numComps = name.length;
  1613. }
  1614. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  1615. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  1616. return ['AlternateCS', numComps, alt, tintFnIR];
  1617. case 'Lab':
  1618. params = cs[1].getAll();
  1619. return ['LabCS', params];
  1620. default:
  1621. error('unimplemented color space object "' + mode + '"');
  1622. }
  1623. } else {
  1624. error('unrecognized color space object: "' + cs + '"');
  1625. }
  1626. return null;
  1627. };
  1628. /**
  1629. * Checks if a decode map matches the default decode map for a color space.
  1630. * This handles the general decode maps where there are two values per
  1631. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  1632. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  1633. * slightly different.
  1634. * @param {Array} decode Decode map (usually from an image).
  1635. * @param {Number} n Number of components the color space has.
  1636. */
  1637. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  1638. if (!decode) {
  1639. return true;
  1640. }
  1641. if (n * 2 !== decode.length) {
  1642. warn('The decode map is not the correct length');
  1643. return true;
  1644. }
  1645. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  1646. if (decode[i] !== 0 || decode[i + 1] != 1) {
  1647. return false;
  1648. }
  1649. }
  1650. return true;
  1651. };
  1652. ColorSpace.singletons = {
  1653. get gray() {
  1654. return shadow(this, 'gray', new DeviceGrayCS());
  1655. },
  1656. get rgb() {
  1657. return shadow(this, 'rgb', new DeviceRgbCS());
  1658. },
  1659. get cmyk() {
  1660. return shadow(this, 'cmyk', new DeviceCmykCS());
  1661. }
  1662. };
  1663. return ColorSpace;
  1664. })();
  1665. /**
  1666. * Alternate color space handles both Separation and DeviceN color spaces. A
  1667. * Separation color space is actually just a DeviceN with one color component.
  1668. * Both color spaces use a tinting function to convert colors to a base color
  1669. * space.
  1670. */
  1671. var AlternateCS = (function AlternateCSClosure() {
  1672. function AlternateCS(numComps, base, tintFn) {
  1673. this.name = 'Alternate';
  1674. this.numComps = numComps;
  1675. this.defaultColor = new Float32Array(numComps);
  1676. for (var i = 0; i < numComps; ++i) {
  1677. this.defaultColor[i] = 1;
  1678. }
  1679. this.base = base;
  1680. this.tintFn = tintFn;
  1681. }
  1682. AlternateCS.prototype = {
  1683. getRgb: ColorSpace.prototype.getRgb,
  1684. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  1685. dest, destOffset) {
  1686. var baseNumComps = this.base.numComps;
  1687. var input = 'subarray' in src ?
  1688. src.subarray(srcOffset, srcOffset + this.numComps) :
  1689. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  1690. var tinted = this.tintFn(input);
  1691. this.base.getRgbItem(tinted, 0, dest, destOffset);
  1692. },
  1693. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  1694. dest, destOffset, bits,
  1695. alpha01) {
  1696. var tintFn = this.tintFn;
  1697. var base = this.base;
  1698. var scale = 1 / ((1 << bits) - 1);
  1699. var baseNumComps = base.numComps;
  1700. var usesZeroToOneRange = base.usesZeroToOneRange;
  1701. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  1702. alpha01 === 0;
  1703. var pos = isPassthrough ? destOffset : 0;
  1704. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  1705. var numComps = this.numComps;
  1706. var scaled = new Float32Array(numComps);
  1707. var i, j;
  1708. for (i = 0; i < count; i++) {
  1709. for (j = 0; j < numComps; j++) {
  1710. scaled[j] = src[srcOffset++] * scale;
  1711. }
  1712. var tinted = tintFn(scaled);
  1713. if (usesZeroToOneRange) {
  1714. for (j = 0; j < baseNumComps; j++) {
  1715. baseBuf[pos++] = tinted[j] * 255;
  1716. }
  1717. } else {
  1718. base.getRgbItem(tinted, 0, baseBuf, pos);
  1719. pos += baseNumComps;
  1720. }
  1721. }
  1722. if (!isPassthrough) {
  1723. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  1724. }
  1725. },
  1726. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  1727. alpha01) {
  1728. return this.base.getOutputLength(inputLength *
  1729. this.base.numComps / this.numComps,
  1730. alpha01);
  1731. },
  1732. isPassthrough: ColorSpace.prototype.isPassthrough,
  1733. fillRgb: ColorSpace.prototype.fillRgb,
  1734. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  1735. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1736. },
  1737. usesZeroToOneRange: true
  1738. };
  1739. return AlternateCS;
  1740. })();
  1741. var PatternCS = (function PatternCSClosure() {
  1742. function PatternCS(baseCS) {
  1743. this.name = 'Pattern';
  1744. this.base = baseCS;
  1745. }
  1746. PatternCS.prototype = {};
  1747. return PatternCS;
  1748. })();
  1749. var IndexedCS = (function IndexedCSClosure() {
  1750. function IndexedCS(base, highVal, lookup) {
  1751. this.name = 'Indexed';
  1752. this.numComps = 1;
  1753. this.defaultColor = new Uint8Array([0]);
  1754. this.base = base;
  1755. this.highVal = highVal;
  1756. var baseNumComps = base.numComps;
  1757. var length = baseNumComps * highVal;
  1758. var lookupArray;
  1759. if (isStream(lookup)) {
  1760. lookupArray = new Uint8Array(length);
  1761. var bytes = lookup.getBytes(length);
  1762. lookupArray.set(bytes);
  1763. } else if (isString(lookup)) {
  1764. lookupArray = new Uint8Array(length);
  1765. for (var i = 0; i < length; ++i) {
  1766. lookupArray[i] = lookup.charCodeAt(i);
  1767. }
  1768. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  1769. lookupArray = lookup;
  1770. } else {
  1771. error('Unrecognized lookup table: ' + lookup);
  1772. }
  1773. this.lookup = lookupArray;
  1774. }
  1775. IndexedCS.prototype = {
  1776. getRgb: ColorSpace.prototype.getRgb,
  1777. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  1778. dest, destOffset) {
  1779. var numComps = this.base.numComps;
  1780. var start = src[srcOffset] * numComps;
  1781. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  1782. },
  1783. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  1784. dest, destOffset, bits,
  1785. alpha01) {
  1786. var base = this.base;
  1787. var numComps = base.numComps;
  1788. var outputDelta = base.getOutputLength(numComps, alpha01);
  1789. var lookup = this.lookup;
  1790. for (var i = 0; i < count; ++i) {
  1791. var lookupPos = src[srcOffset++] * numComps;
  1792. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  1793. destOffset += outputDelta;
  1794. }
  1795. },
  1796. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  1797. return this.base.getOutputLength(inputLength * this.base.numComps,
  1798. alpha01);
  1799. },
  1800. isPassthrough: ColorSpace.prototype.isPassthrough,
  1801. fillRgb: ColorSpace.prototype.fillRgb,
  1802. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  1803. // indexed color maps shouldn't be changed
  1804. return true;
  1805. },
  1806. usesZeroToOneRange: true
  1807. };
  1808. return IndexedCS;
  1809. })();
  1810. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  1811. function DeviceGrayCS() {
  1812. this.name = 'DeviceGray';
  1813. this.numComps = 1;
  1814. this.defaultColor = new Float32Array([0]);
  1815. }
  1816. DeviceGrayCS.prototype = {
  1817. getRgb: ColorSpace.prototype.getRgb,
  1818. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  1819. dest, destOffset) {
  1820. var c = (src[srcOffset] * 255) | 0;
  1821. c = c < 0 ? 0 : c > 255 ? 255 : c;
  1822. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  1823. },
  1824. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  1825. dest, destOffset, bits,
  1826. alpha01) {
  1827. var scale = 255 / ((1 << bits) - 1);
  1828. var j = srcOffset, q = destOffset;
  1829. for (var i = 0; i < count; ++i) {
  1830. var c = (scale * src[j++]) | 0;
  1831. dest[q++] = c;
  1832. dest[q++] = c;
  1833. dest[q++] = c;
  1834. q += alpha01;
  1835. }
  1836. },
  1837. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  1838. alpha01) {
  1839. return inputLength * (3 + alpha01);
  1840. },
  1841. isPassthrough: ColorSpace.prototype.isPassthrough,
  1842. fillRgb: ColorSpace.prototype.fillRgb,
  1843. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  1844. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1845. },
  1846. usesZeroToOneRange: true
  1847. };
  1848. return DeviceGrayCS;
  1849. })();
  1850. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  1851. function DeviceRgbCS() {
  1852. this.name = 'DeviceRGB';
  1853. this.numComps = 3;
  1854. this.defaultColor = new Float32Array([0, 0, 0]);
  1855. }
  1856. DeviceRgbCS.prototype = {
  1857. getRgb: ColorSpace.prototype.getRgb,
  1858. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  1859. dest, destOffset) {
  1860. var r = (src[srcOffset] * 255) | 0;
  1861. var g = (src[srcOffset + 1] * 255) | 0;
  1862. var b = (src[srcOffset + 2] * 255) | 0;
  1863. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  1864. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  1865. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  1866. },
  1867. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  1868. dest, destOffset, bits,
  1869. alpha01) {
  1870. if (bits === 8 && alpha01 === 0) {
  1871. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  1872. return;
  1873. }
  1874. var scale = 255 / ((1 << bits) - 1);
  1875. var j = srcOffset, q = destOffset;
  1876. for (var i = 0; i < count; ++i) {
  1877. dest[q++] = (scale * src[j++]) | 0;
  1878. dest[q++] = (scale * src[j++]) | 0;
  1879. dest[q++] = (scale * src[j++]) | 0;
  1880. q += alpha01;
  1881. }
  1882. },
  1883. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  1884. alpha01) {
  1885. return (inputLength * (3 + alpha01) / 3) | 0;
  1886. },
  1887. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  1888. return bits == 8;
  1889. },
  1890. fillRgb: ColorSpace.prototype.fillRgb,
  1891. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  1892. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1893. },
  1894. usesZeroToOneRange: true
  1895. };
  1896. return DeviceRgbCS;
  1897. })();
  1898. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  1899. // The coefficients below was found using numerical analysis: the method of
  1900. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  1901. // where color_value is the tabular value from the table of sampled RGB colors
  1902. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  1903. // CMYK color conversion using the estimation below:
  1904. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  1905. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  1906. var c = src[srcOffset + 0] * srcScale;
  1907. var m = src[srcOffset + 1] * srcScale;
  1908. var y = src[srcOffset + 2] * srcScale;
  1909. var k = src[srcOffset + 3] * srcScale;
  1910. var r =
  1911. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  1912. 18.82290502165302 * y + 212.25662451639585 * k +
  1913. -285.2331026137004) +
  1914. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  1915. -17.873870861415444 * k - 5.497006427196366) +
  1916. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  1917. 17.5119270841813) +
  1918. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  1919. var g =
  1920. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  1921. 6.871425592049007 * y + 31.159100130055922 * k +
  1922. -79.2970844816548) +
  1923. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  1924. 131.35250912493976 * k - 190.9453302588951) +
  1925. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  1926. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  1927. var b =
  1928. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  1929. 30.89978309703729 * y - 0.23883238689178934 * k +
  1930. -14.183576799673286) +
  1931. m * (10.49593273432072 * m + 63.02378494754052 * y +
  1932. 50.606957656360734 * k - 112.23884253719248) +
  1933. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  1934. -193.58209356861505) +
  1935. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  1936. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  1937. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  1938. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  1939. }
  1940. function DeviceCmykCS() {
  1941. this.name = 'DeviceCMYK';
  1942. this.numComps = 4;
  1943. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  1944. }
  1945. DeviceCmykCS.prototype = {
  1946. getRgb: ColorSpace.prototype.getRgb,
  1947. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  1948. dest, destOffset) {
  1949. convertToRgb(src, srcOffset, 1, dest, destOffset);
  1950. },
  1951. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  1952. dest, destOffset, bits,
  1953. alpha01) {
  1954. var scale = 1 / ((1 << bits) - 1);
  1955. for (var i = 0; i < count; i++) {
  1956. convertToRgb(src, srcOffset, scale, dest, destOffset);
  1957. srcOffset += 4;
  1958. destOffset += 3 + alpha01;
  1959. }
  1960. },
  1961. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  1962. alpha01) {
  1963. return (inputLength / 4 * (3 + alpha01)) | 0;
  1964. },
  1965. isPassthrough: ColorSpace.prototype.isPassthrough,
  1966. fillRgb: ColorSpace.prototype.fillRgb,
  1967. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  1968. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1969. },
  1970. usesZeroToOneRange: true
  1971. };
  1972. return DeviceCmykCS;
  1973. })();
  1974. //
  1975. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  1976. //
  1977. var CalGrayCS = (function CalGrayCSClosure() {
  1978. function CalGrayCS(whitePoint, blackPoint, gamma) {
  1979. this.name = 'CalGray';
  1980. this.numComps = 1;
  1981. this.defaultColor = new Float32Array([0]);
  1982. if (!whitePoint) {
  1983. error('WhitePoint missing - required for color space CalGray');
  1984. }
  1985. blackPoint = blackPoint || [0, 0, 0];
  1986. gamma = gamma || 1;
  1987. // Translate arguments to spec variables.
  1988. this.XW = whitePoint[0];
  1989. this.YW = whitePoint[1];
  1990. this.ZW = whitePoint[2];
  1991. this.XB = blackPoint[0];
  1992. this.YB = blackPoint[1];
  1993. this.ZB = blackPoint[2];
  1994. this.G = gamma;
  1995. // Validate variables as per spec.
  1996. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  1997. error('Invalid WhitePoint components for ' + this.name +
  1998. ', no fallback available');
  1999. }
  2000. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2001. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  2002. this.XB = this.YB = this.ZB = 0;
  2003. }
  2004. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  2005. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  2006. ', ZB: ' + this.ZB + ', only default values are supported.');
  2007. }
  2008. if (this.G < 1) {
  2009. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  2010. ', falling back to default');
  2011. this.G = 1;
  2012. }
  2013. }
  2014. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  2015. // A represents a gray component of a calibrated gray space.
  2016. // A <---> AG in the spec
  2017. var A = src[srcOffset] * scale;
  2018. var AG = Math.pow(A, cs.G);
  2019. // Computes intermediate variables M, L, N as per spec.
  2020. // Except if other than default BlackPoint values are used.
  2021. var M = cs.XW * AG;
  2022. var L = cs.YW * AG;
  2023. var N = cs.ZW * AG;
  2024. // Decode XYZ, as per spec.
  2025. var X = M;
  2026. var Y = L;
  2027. var Z = N;
  2028. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  2029. // This yields values in range [0, 100].
  2030. var Lstar = Math.max(116 * Math.pow(Y, 1 / 3) - 16, 0);
  2031. // Convert values to rgb range [0, 255].
  2032. dest[destOffset] = Lstar * 255 / 100;
  2033. dest[destOffset + 1] = Lstar * 255 / 100;
  2034. dest[destOffset + 2] = Lstar * 255 / 100;
  2035. }
  2036. CalGrayCS.prototype = {
  2037. getRgb: ColorSpace.prototype.getRgb,
  2038. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  2039. dest, destOffset) {
  2040. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  2041. },
  2042. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  2043. dest, destOffset, bits,
  2044. alpha01) {
  2045. var scale = 1 / ((1 << bits) - 1);
  2046. for (var i = 0; i < count; ++i) {
  2047. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  2048. srcOffset += 1;
  2049. destOffset += 3 + alpha01;
  2050. }
  2051. },
  2052. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  2053. return inputLength * (3 + alpha01);
  2054. },
  2055. isPassthrough: ColorSpace.prototype.isPassthrough,
  2056. fillRgb: ColorSpace.prototype.fillRgb,
  2057. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  2058. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2059. },
  2060. usesZeroToOneRange: true
  2061. };
  2062. return CalGrayCS;
  2063. })();
  2064. //
  2065. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  2066. //
  2067. var LabCS = (function LabCSClosure() {
  2068. function LabCS(whitePoint, blackPoint, range) {
  2069. this.name = 'Lab';
  2070. this.numComps = 3;
  2071. this.defaultColor = new Float32Array([0, 0, 0]);
  2072. if (!whitePoint) {
  2073. error('WhitePoint missing - required for color space Lab');
  2074. }
  2075. blackPoint = blackPoint || [0, 0, 0];
  2076. range = range || [-100, 100, -100, 100];
  2077. // Translate args to spec variables
  2078. this.XW = whitePoint[0];
  2079. this.YW = whitePoint[1];
  2080. this.ZW = whitePoint[2];
  2081. this.amin = range[0];
  2082. this.amax = range[1];
  2083. this.bmin = range[2];
  2084. this.bmax = range[3];
  2085. // These are here just for completeness - the spec doesn't offer any
  2086. // formulas that use BlackPoint in Lab
  2087. this.XB = blackPoint[0];
  2088. this.YB = blackPoint[1];
  2089. this.ZB = blackPoint[2];
  2090. // Validate vars as per spec
  2091. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2092. error('Invalid WhitePoint components, no fallback available');
  2093. }
  2094. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2095. info('Invalid BlackPoint, falling back to default');
  2096. this.XB = this.YB = this.ZB = 0;
  2097. }
  2098. if (this.amin > this.amax || this.bmin > this.bmax) {
  2099. info('Invalid Range, falling back to defaults');
  2100. this.amin = -100;
  2101. this.amax = 100;
  2102. this.bmin = -100;
  2103. this.bmax = 100;
  2104. }
  2105. }
  2106. // Function g(x) from spec
  2107. function fn_g(x) {
  2108. if (x >= 6 / 29) {
  2109. return x * x * x;
  2110. } else {
  2111. return (108 / 841) * (x - 4 / 29);
  2112. }
  2113. }
  2114. function decode(value, high1, low2, high2) {
  2115. return low2 + (value) * (high2 - low2) / (high1);
  2116. }
  2117. // If decoding is needed maxVal should be 2^bits per component - 1.
  2118. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  2119. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  2120. // not the usual [0, 1]. If a command like setFillColor is used the src
  2121. // values will already be within the correct range. However, if we are
  2122. // converting an image we have to map the values to the correct range given
  2123. // above.
  2124. // Ls,as,bs <---> L*,a*,b* in the spec
  2125. var Ls = src[srcOffset];
  2126. var as = src[srcOffset + 1];
  2127. var bs = src[srcOffset + 2];
  2128. if (maxVal !== false) {
  2129. Ls = decode(Ls, maxVal, 0, 100);
  2130. as = decode(as, maxVal, cs.amin, cs.amax);
  2131. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  2132. }
  2133. // Adjust limits of 'as' and 'bs'
  2134. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  2135. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  2136. // Computes intermediate variables X,Y,Z as per spec
  2137. var M = (Ls + 16) / 116;
  2138. var L = M + (as / 500);
  2139. var N = M - (bs / 200);
  2140. var X = cs.XW * fn_g(L);
  2141. var Y = cs.YW * fn_g(M);
  2142. var Z = cs.ZW * fn_g(N);
  2143. var r, g, b;
  2144. // Using different conversions for D50 and D65 white points,
  2145. // per http://www.color.org/srgb.pdf
  2146. if (cs.ZW < 1) {
  2147. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  2148. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  2149. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  2150. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  2151. } else {
  2152. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  2153. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  2154. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  2155. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  2156. }
  2157. // clamp color values to [0,1] range then convert to [0,255] range.
  2158. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  2159. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  2160. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  2161. }
  2162. LabCS.prototype = {
  2163. getRgb: ColorSpace.prototype.getRgb,
  2164. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  2165. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  2166. },
  2167. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  2168. dest, destOffset, bits,
  2169. alpha01) {
  2170. var maxVal = (1 << bits) - 1;
  2171. for (var i = 0; i < count; i++) {
  2172. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  2173. srcOffset += 3;
  2174. destOffset += 3 + alpha01;
  2175. }
  2176. },
  2177. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  2178. return (inputLength * (3 + alpha01) / 3) | 0;
  2179. },
  2180. isPassthrough: ColorSpace.prototype.isPassthrough,
  2181. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  2182. // XXX: Decoding is handled with the lab conversion because of the strange
  2183. // ranges that are used.
  2184. return true;
  2185. },
  2186. usesZeroToOneRange: false
  2187. };
  2188. return LabCS;
  2189. })();
  2190. var PDFFunction = (function PDFFunctionClosure() {
  2191. var CONSTRUCT_SAMPLED = 0;
  2192. var CONSTRUCT_INTERPOLATED = 2;
  2193. var CONSTRUCT_STICHED = 3;
  2194. var CONSTRUCT_POSTSCRIPT = 4;
  2195. return {
  2196. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  2197. str) {
  2198. var i, ii;
  2199. var length = 1;
  2200. for (i = 0, ii = size.length; i < ii; i++) {
  2201. length *= size[i];
  2202. }
  2203. length *= outputSize;
  2204. var array = [];
  2205. var codeSize = 0;
  2206. var codeBuf = 0;
  2207. // 32 is a valid bps so shifting won't work
  2208. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  2209. var strBytes = str.getBytes((length * bps + 7) / 8);
  2210. var strIdx = 0;
  2211. for (i = 0; i < length; i++) {
  2212. while (codeSize < bps) {
  2213. codeBuf <<= 8;
  2214. codeBuf |= strBytes[strIdx++];
  2215. codeSize += 8;
  2216. }
  2217. codeSize -= bps;
  2218. array.push((codeBuf >> codeSize) * sampleMul);
  2219. codeBuf &= (1 << codeSize) - 1;
  2220. }
  2221. return array;
  2222. },
  2223. getIR: function PDFFunction_getIR(xref, fn) {
  2224. var dict = fn.dict;
  2225. if (!dict) {
  2226. dict = fn;
  2227. }
  2228. var types = [this.constructSampled,
  2229. null,
  2230. this.constructInterpolated,
  2231. this.constructStiched,
  2232. this.constructPostScript];
  2233. var typeNum = dict.get('FunctionType');
  2234. var typeFn = types[typeNum];
  2235. if (!typeFn) {
  2236. error('Unknown type of function');
  2237. }
  2238. return typeFn.call(this, fn, dict, xref);
  2239. },
  2240. fromIR: function PDFFunction_fromIR(IR) {
  2241. var type = IR[0];
  2242. switch (type) {
  2243. case CONSTRUCT_SAMPLED:
  2244. return this.constructSampledFromIR(IR);
  2245. case CONSTRUCT_INTERPOLATED:
  2246. return this.constructInterpolatedFromIR(IR);
  2247. case CONSTRUCT_STICHED:
  2248. return this.constructStichedFromIR(IR);
  2249. //case CONSTRUCT_POSTSCRIPT:
  2250. default:
  2251. return this.constructPostScriptFromIR(IR);
  2252. }
  2253. },
  2254. parse: function PDFFunction_parse(xref, fn) {
  2255. var IR = this.getIR(xref, fn);
  2256. return this.fromIR(IR);
  2257. },
  2258. constructSampled: function PDFFunction_constructSampled(str, dict) {
  2259. function toMultiArray(arr) {
  2260. var inputLength = arr.length;
  2261. var out = [];
  2262. var index = 0;
  2263. for (var i = 0; i < inputLength; i += 2) {
  2264. out[index] = [arr[i], arr[i + 1]];
  2265. ++index;
  2266. }
  2267. return out;
  2268. }
  2269. var domain = dict.get('Domain');
  2270. var range = dict.get('Range');
  2271. if (!domain || !range) {
  2272. error('No domain or range');
  2273. }
  2274. var inputSize = domain.length / 2;
  2275. var outputSize = range.length / 2;
  2276. domain = toMultiArray(domain);
  2277. range = toMultiArray(range);
  2278. var size = dict.get('Size');
  2279. var bps = dict.get('BitsPerSample');
  2280. var order = dict.get('Order') || 1;
  2281. if (order !== 1) {
  2282. // No description how cubic spline interpolation works in PDF32000:2008
  2283. // As in poppler, ignoring order, linear interpolation may work as good
  2284. info('No support for cubic spline interpolation: ' + order);
  2285. }
  2286. var encode = dict.get('Encode');
  2287. if (!encode) {
  2288. encode = [];
  2289. for (var i = 0; i < inputSize; ++i) {
  2290. encode.push(0);
  2291. encode.push(size[i] - 1);
  2292. }
  2293. }
  2294. encode = toMultiArray(encode);
  2295. var decode = dict.get('Decode');
  2296. if (!decode) {
  2297. decode = range;
  2298. } else {
  2299. decode = toMultiArray(decode);
  2300. }
  2301. var samples = this.getSampleArray(size, outputSize, bps, str);
  2302. return [
  2303. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  2304. outputSize, Math.pow(2, bps) - 1, range
  2305. ];
  2306. },
  2307. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  2308. // See chapter 3, page 109 of the PDF reference
  2309. function interpolate(x, xmin, xmax, ymin, ymax) {
  2310. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  2311. }
  2312. return function constructSampledFromIRResult(args) {
  2313. // See chapter 3, page 110 of the PDF reference.
  2314. var m = IR[1];
  2315. var domain = IR[2];
  2316. var encode = IR[3];
  2317. var decode = IR[4];
  2318. var samples = IR[5];
  2319. var size = IR[6];
  2320. var n = IR[7];
  2321. //var mask = IR[8];
  2322. var range = IR[9];
  2323. if (m != args.length) {
  2324. error('Incorrect number of arguments: ' + m + ' != ' +
  2325. args.length);
  2326. }
  2327. var x = args;
  2328. // Building the cube vertices: its part and sample index
  2329. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  2330. var cubeVertices = 1 << m;
  2331. var cubeN = new Float64Array(cubeVertices);
  2332. var cubeVertex = new Uint32Array(cubeVertices);
  2333. var i, j;
  2334. for (j = 0; j < cubeVertices; j++) {
  2335. cubeN[j] = 1;
  2336. }
  2337. var k = n, pos = 1;
  2338. // Map x_i to y_j for 0 <= i < m using the sampled function.
  2339. for (i = 0; i < m; ++i) {
  2340. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  2341. var domain_2i = domain[i][0];
  2342. var domain_2i_1 = domain[i][1];
  2343. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  2344. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  2345. // Encode_2i, Encode_2i+1)
  2346. var e = interpolate(xi, domain_2i, domain_2i_1,
  2347. encode[i][0], encode[i][1]);
  2348. // e_i' = min(max(e_i, 0), Size_i - 1)
  2349. var size_i = size[i];
  2350. e = Math.min(Math.max(e, 0), size_i - 1);
  2351. // Adjusting the cube: N and vertex sample index
  2352. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  2353. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  2354. var n1 = e - e0; // (e - e0) / (e1 - e0);
  2355. var offset0 = e0 * k;
  2356. var offset1 = offset0 + k; // e1 * k
  2357. for (j = 0; j < cubeVertices; j++) {
  2358. if (j & pos) {
  2359. cubeN[j] *= n1;
  2360. cubeVertex[j] += offset1;
  2361. } else {
  2362. cubeN[j] *= n0;
  2363. cubeVertex[j] += offset0;
  2364. }
  2365. }
  2366. k *= size_i;
  2367. pos <<= 1;
  2368. }
  2369. var y = new Float64Array(n);
  2370. for (j = 0; j < n; ++j) {
  2371. // Sum all cube vertices' samples portions
  2372. var rj = 0;
  2373. for (i = 0; i < cubeVertices; i++) {
  2374. rj += samples[cubeVertex[i] + j] * cubeN[i];
  2375. }
  2376. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  2377. // Decode_2j, Decode_2j+1)
  2378. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  2379. // y_j = min(max(r_j, range_2j), range_2j+1)
  2380. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  2381. }
  2382. return y;
  2383. };
  2384. },
  2385. constructInterpolated: function PDFFunction_constructInterpolated(str,
  2386. dict) {
  2387. var c0 = dict.get('C0') || [0];
  2388. var c1 = dict.get('C1') || [1];
  2389. var n = dict.get('N');
  2390. if (!isArray(c0) || !isArray(c1)) {
  2391. error('Illegal dictionary for interpolated function');
  2392. }
  2393. var length = c0.length;
  2394. var diff = [];
  2395. for (var i = 0; i < length; ++i) {
  2396. diff.push(c1[i] - c0[i]);
  2397. }
  2398. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  2399. },
  2400. constructInterpolatedFromIR:
  2401. function PDFFunction_constructInterpolatedFromIR(IR) {
  2402. var c0 = IR[1];
  2403. var diff = IR[2];
  2404. var n = IR[3];
  2405. var length = diff.length;
  2406. return function constructInterpolatedFromIRResult(args) {
  2407. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  2408. var out = [];
  2409. for (var j = 0; j < length; ++j) {
  2410. out.push(c0[j] + (x * diff[j]));
  2411. }
  2412. return out;
  2413. };
  2414. },
  2415. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  2416. var domain = dict.get('Domain');
  2417. if (!domain) {
  2418. error('No domain');
  2419. }
  2420. var inputSize = domain.length / 2;
  2421. if (inputSize != 1) {
  2422. error('Bad domain for stiched function');
  2423. }
  2424. var fnRefs = dict.get('Functions');
  2425. var fns = [];
  2426. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  2427. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  2428. }
  2429. var bounds = dict.get('Bounds');
  2430. var encode = dict.get('Encode');
  2431. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  2432. },
  2433. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  2434. var domain = IR[1];
  2435. var bounds = IR[2];
  2436. var encode = IR[3];
  2437. var fnsIR = IR[4];
  2438. var fns = [];
  2439. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  2440. fns.push(PDFFunction.fromIR(fnsIR[i]));
  2441. }
  2442. return function constructStichedFromIRResult(args) {
  2443. var clip = function constructStichedFromIRClip(v, min, max) {
  2444. if (v > max) {
  2445. v = max;
  2446. } else if (v < min) {
  2447. v = min;
  2448. }
  2449. return v;
  2450. };
  2451. // clip to domain
  2452. var v = clip(args[0], domain[0], domain[1]);
  2453. // calulate which bound the value is in
  2454. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  2455. if (v < bounds[i]) {
  2456. break;
  2457. }
  2458. }
  2459. // encode value into domain of function
  2460. var dmin = domain[0];
  2461. if (i > 0) {
  2462. dmin = bounds[i - 1];
  2463. }
  2464. var dmax = domain[1];
  2465. if (i < bounds.length) {
  2466. dmax = bounds[i];
  2467. }
  2468. var rmin = encode[2 * i];
  2469. var rmax = encode[2 * i + 1];
  2470. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  2471. // call the appropriate function
  2472. return fns[i]([v2]);
  2473. };
  2474. },
  2475. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  2476. xref) {
  2477. var domain = dict.get('Domain');
  2478. var range = dict.get('Range');
  2479. if (!domain) {
  2480. error('No domain.');
  2481. }
  2482. if (!range) {
  2483. error('No range.');
  2484. }
  2485. var lexer = new PostScriptLexer(fn);
  2486. var parser = new PostScriptParser(lexer);
  2487. var code = parser.parse();
  2488. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  2489. },
  2490. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  2491. IR) {
  2492. var domain = IR[1];
  2493. var range = IR[2];
  2494. var code = IR[3];
  2495. var numOutputs = range.length / 2;
  2496. var evaluator = new PostScriptEvaluator(code);
  2497. // Cache the values for a big speed up, the cache size is limited though
  2498. // since the number of possible values can be huge from a PS function.
  2499. var cache = new FunctionCache();
  2500. return function constructPostScriptFromIRResult(args) {
  2501. var initialStack = [];
  2502. for (var i = 0, ii = (domain.length / 2); i < ii; ++i) {
  2503. initialStack.push(args[i]);
  2504. }
  2505. var key = initialStack.join('_');
  2506. if (cache.has(key)) {
  2507. return cache.get(key);
  2508. }
  2509. var stack = evaluator.execute(initialStack);
  2510. var transformed = [];
  2511. for (i = numOutputs - 1; i >= 0; --i) {
  2512. var out = stack.pop();
  2513. var rangeIndex = 2 * i;
  2514. if (out < range[rangeIndex]) {
  2515. out = range[rangeIndex];
  2516. } else if (out > range[rangeIndex + 1]) {
  2517. out = range[rangeIndex + 1];
  2518. }
  2519. transformed[i] = out;
  2520. }
  2521. cache.set(key, transformed);
  2522. return transformed;
  2523. };
  2524. }
  2525. };
  2526. })();
  2527. var FunctionCache = (function FunctionCacheClosure() {
  2528. // Of 10 PDF's with type4 functions the maxium number of distinct values seen
  2529. // was 256. This still may need some tweaking in the future though.
  2530. var MAX_CACHE_SIZE = 1024;
  2531. function FunctionCache() {
  2532. this.cache = {};
  2533. this.total = 0;
  2534. }
  2535. FunctionCache.prototype = {
  2536. has: function FunctionCache_has(key) {
  2537. return key in this.cache;
  2538. },
  2539. get: function FunctionCache_get(key) {
  2540. return this.cache[key];
  2541. },
  2542. set: function FunctionCache_set(key, value) {
  2543. if (this.total < MAX_CACHE_SIZE) {
  2544. this.cache[key] = value;
  2545. this.total++;
  2546. }
  2547. }
  2548. };
  2549. return FunctionCache;
  2550. })();
  2551. var PostScriptStack = (function PostScriptStackClosure() {
  2552. var MAX_STACK_SIZE = 100;
  2553. function PostScriptStack(initialStack) {
  2554. this.stack = initialStack || [];
  2555. }
  2556. PostScriptStack.prototype = {
  2557. push: function PostScriptStack_push(value) {
  2558. if (this.stack.length >= MAX_STACK_SIZE) {
  2559. error('PostScript function stack overflow.');
  2560. }
  2561. this.stack.push(value);
  2562. },
  2563. pop: function PostScriptStack_pop() {
  2564. if (this.stack.length <= 0) {
  2565. error('PostScript function stack underflow.');
  2566. }
  2567. return this.stack.pop();
  2568. },
  2569. copy: function PostScriptStack_copy(n) {
  2570. if (this.stack.length + n >= MAX_STACK_SIZE) {
  2571. error('PostScript function stack overflow.');
  2572. }
  2573. var stack = this.stack;
  2574. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  2575. stack.push(stack[i]);
  2576. }
  2577. },
  2578. index: function PostScriptStack_index(n) {
  2579. this.push(this.stack[this.stack.length - n - 1]);
  2580. },
  2581. // rotate the last n stack elements p times
  2582. roll: function PostScriptStack_roll(n, p) {
  2583. var stack = this.stack;
  2584. var l = stack.length - n;
  2585. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  2586. for (i = l, j = r; i < j; i++, j--) {
  2587. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2588. }
  2589. for (i = l, j = c - 1; i < j; i++, j--) {
  2590. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2591. }
  2592. for (i = c, j = r; i < j; i++, j--) {
  2593. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2594. }
  2595. }
  2596. };
  2597. return PostScriptStack;
  2598. })();
  2599. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  2600. function PostScriptEvaluator(operators) {
  2601. this.operators = operators;
  2602. }
  2603. PostScriptEvaluator.prototype = {
  2604. execute: function PostScriptEvaluator_execute(initialStack) {
  2605. var stack = new PostScriptStack(initialStack);
  2606. var counter = 0;
  2607. var operators = this.operators;
  2608. var length = operators.length;
  2609. var operator, a, b;
  2610. while (counter < length) {
  2611. operator = operators[counter++];
  2612. if (typeof operator == 'number') {
  2613. // Operator is really an operand and should be pushed to the stack.
  2614. stack.push(operator);
  2615. continue;
  2616. }
  2617. switch (operator) {
  2618. // non standard ps operators
  2619. case 'jz': // jump if false
  2620. b = stack.pop();
  2621. a = stack.pop();
  2622. if (!a) {
  2623. counter = b;
  2624. }
  2625. break;
  2626. case 'j': // jump
  2627. a = stack.pop();
  2628. counter = a;
  2629. break;
  2630. // all ps operators in alphabetical order (excluding if/ifelse)
  2631. case 'abs':
  2632. a = stack.pop();
  2633. stack.push(Math.abs(a));
  2634. break;
  2635. case 'add':
  2636. b = stack.pop();
  2637. a = stack.pop();
  2638. stack.push(a + b);
  2639. break;
  2640. case 'and':
  2641. b = stack.pop();
  2642. a = stack.pop();
  2643. if (isBool(a) && isBool(b)) {
  2644. stack.push(a && b);
  2645. } else {
  2646. stack.push(a & b);
  2647. }
  2648. break;
  2649. case 'atan':
  2650. a = stack.pop();
  2651. stack.push(Math.atan(a));
  2652. break;
  2653. case 'bitshift':
  2654. b = stack.pop();
  2655. a = stack.pop();
  2656. if (a > 0) {
  2657. stack.push(a << b);
  2658. } else {
  2659. stack.push(a >> b);
  2660. }
  2661. break;
  2662. case 'ceiling':
  2663. a = stack.pop();
  2664. stack.push(Math.ceil(a));
  2665. break;
  2666. case 'copy':
  2667. a = stack.pop();
  2668. stack.copy(a);
  2669. break;
  2670. case 'cos':
  2671. a = stack.pop();
  2672. stack.push(Math.cos(a));
  2673. break;
  2674. case 'cvi':
  2675. a = stack.pop() | 0;
  2676. stack.push(a);
  2677. break;
  2678. case 'cvr':
  2679. // noop
  2680. break;
  2681. case 'div':
  2682. b = stack.pop();
  2683. a = stack.pop();
  2684. stack.push(a / b);
  2685. break;
  2686. case 'dup':
  2687. stack.copy(1);
  2688. break;
  2689. case 'eq':
  2690. b = stack.pop();
  2691. a = stack.pop();
  2692. stack.push(a == b);
  2693. break;
  2694. case 'exch':
  2695. stack.roll(2, 1);
  2696. break;
  2697. case 'exp':
  2698. b = stack.pop();
  2699. a = stack.pop();
  2700. stack.push(Math.pow(a, b));
  2701. break;
  2702. case 'false':
  2703. stack.push(false);
  2704. break;
  2705. case 'floor':
  2706. a = stack.pop();
  2707. stack.push(Math.floor(a));
  2708. break;
  2709. case 'ge':
  2710. b = stack.pop();
  2711. a = stack.pop();
  2712. stack.push(a >= b);
  2713. break;
  2714. case 'gt':
  2715. b = stack.pop();
  2716. a = stack.pop();
  2717. stack.push(a > b);
  2718. break;
  2719. case 'idiv':
  2720. b = stack.pop();
  2721. a = stack.pop();
  2722. stack.push((a / b) | 0);
  2723. break;
  2724. case 'index':
  2725. a = stack.pop();
  2726. stack.index(a);
  2727. break;
  2728. case 'le':
  2729. b = stack.pop();
  2730. a = stack.pop();
  2731. stack.push(a <= b);
  2732. break;
  2733. case 'ln':
  2734. a = stack.pop();
  2735. stack.push(Math.log(a));
  2736. break;
  2737. case 'log':
  2738. a = stack.pop();
  2739. stack.push(Math.log(a) / Math.LN10);
  2740. break;
  2741. case 'lt':
  2742. b = stack.pop();
  2743. a = stack.pop();
  2744. stack.push(a < b);
  2745. break;
  2746. case 'mod':
  2747. b = stack.pop();
  2748. a = stack.pop();
  2749. stack.push(a % b);
  2750. break;
  2751. case 'mul':
  2752. b = stack.pop();
  2753. a = stack.pop();
  2754. stack.push(a * b);
  2755. break;
  2756. case 'ne':
  2757. b = stack.pop();
  2758. a = stack.pop();
  2759. stack.push(a != b);
  2760. break;
  2761. case 'neg':
  2762. a = stack.pop();
  2763. stack.push(-b);
  2764. break;
  2765. case 'not':
  2766. a = stack.pop();
  2767. if (isBool(a) && isBool(b)) {
  2768. stack.push(a && b);
  2769. } else {
  2770. stack.push(a & b);
  2771. }
  2772. break;
  2773. case 'or':
  2774. b = stack.pop();
  2775. a = stack.pop();
  2776. if (isBool(a) && isBool(b)) {
  2777. stack.push(a || b);
  2778. } else {
  2779. stack.push(a | b);
  2780. }
  2781. break;
  2782. case 'pop':
  2783. stack.pop();
  2784. break;
  2785. case 'roll':
  2786. b = stack.pop();
  2787. a = stack.pop();
  2788. stack.roll(a, b);
  2789. break;
  2790. case 'round':
  2791. a = stack.pop();
  2792. stack.push(Math.round(a));
  2793. break;
  2794. case 'sin':
  2795. a = stack.pop();
  2796. stack.push(Math.sin(a));
  2797. break;
  2798. case 'sqrt':
  2799. a = stack.pop();
  2800. stack.push(Math.sqrt(a));
  2801. break;
  2802. case 'sub':
  2803. b = stack.pop();
  2804. a = stack.pop();
  2805. stack.push(a - b);
  2806. break;
  2807. case 'true':
  2808. stack.push(true);
  2809. break;
  2810. case 'truncate':
  2811. a = stack.pop();
  2812. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  2813. stack.push(a);
  2814. break;
  2815. case 'xor':
  2816. b = stack.pop();
  2817. a = stack.pop();
  2818. if (isBool(a) && isBool(b)) {
  2819. stack.push(a != b);
  2820. } else {
  2821. stack.push(a ^ b);
  2822. }
  2823. break;
  2824. default:
  2825. error('Unknown operator ' + operator);
  2826. break;
  2827. }
  2828. }
  2829. return stack.stack;
  2830. }
  2831. };
  2832. return PostScriptEvaluator;
  2833. })();
  2834. var DEFAULT_ICON_SIZE = 22; // px
  2835. var HIGHLIGHT_OFFSET = 4; // px
  2836. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  2837. var Annotation = (function AnnotationClosure() {
  2838. // 12.5.5: Algorithm: Appearance streams
  2839. function getTransformMatrix(rect, bbox, matrix) {
  2840. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  2841. var minX = bounds[0];
  2842. var minY = bounds[1];
  2843. var maxX = bounds[2];
  2844. var maxY = bounds[3];
  2845. if (minX === maxX || minY === maxY) {
  2846. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  2847. // just apply the transform for rect
  2848. return [1, 0, 0, 1, rect[0], rect[1]];
  2849. }
  2850. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  2851. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  2852. return [
  2853. xRatio,
  2854. 0,
  2855. 0,
  2856. yRatio,
  2857. rect[0] - minX * xRatio,
  2858. rect[1] - minY * yRatio
  2859. ];
  2860. }
  2861. function getDefaultAppearance(dict) {
  2862. var appearanceState = dict.get('AP');
  2863. if (!isDict(appearanceState)) {
  2864. return;
  2865. }
  2866. var appearance;
  2867. var appearances = appearanceState.get('N');
  2868. if (isDict(appearances)) {
  2869. var as = dict.get('AS');
  2870. if (as && appearances.has(as.name)) {
  2871. appearance = appearances.get(as.name);
  2872. }
  2873. } else {
  2874. appearance = appearances;
  2875. }
  2876. return appearance;
  2877. }
  2878. function Annotation(params) {
  2879. if (params.data) {
  2880. this.data = params.data;
  2881. return;
  2882. }
  2883. var dict = params.dict;
  2884. var data = this.data = {};
  2885. data.subtype = dict.get('Subtype').name;
  2886. var rect = dict.get('Rect') || [0, 0, 0, 0];
  2887. data.rect = Util.normalizeRect(rect);
  2888. data.annotationFlags = dict.get('F');
  2889. var color = dict.get('C');
  2890. if (isArray(color) && color.length === 3) {
  2891. // TODO(mack): currently only supporting rgb; need support different
  2892. // colorspaces
  2893. data.color = color;
  2894. } else {
  2895. data.color = [0, 0, 0];
  2896. }
  2897. // Some types of annotations have border style dict which has more
  2898. // info than the border array
  2899. if (dict.has('BS')) {
  2900. var borderStyle = dict.get('BS');
  2901. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  2902. } else {
  2903. var borderArray = dict.get('Border') || [0, 0, 1];
  2904. data.borderWidth = borderArray[2] || 0;
  2905. // TODO: implement proper support for annotations with line dash patterns.
  2906. var dashArray = borderArray[3];
  2907. if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
  2908. var dashArrayLength = dashArray.length;
  2909. if (dashArrayLength > 0) {
  2910. // According to the PDF specification: the elements in a dashArray
  2911. // shall be numbers that are nonnegative and not all equal to zero.
  2912. var isInvalid = false;
  2913. var numPositive = 0;
  2914. for (var i = 0; i < dashArrayLength; i++) {
  2915. var validNumber = (+dashArray[i] >= 0);
  2916. if (!validNumber) {
  2917. isInvalid = true;
  2918. break;
  2919. } else if (dashArray[i] > 0) {
  2920. numPositive++;
  2921. }
  2922. }
  2923. if (isInvalid || numPositive === 0) {
  2924. data.borderWidth = 0;
  2925. }
  2926. }
  2927. }
  2928. }
  2929. this.appearance = getDefaultAppearance(dict);
  2930. data.hasAppearance = !!this.appearance;
  2931. data.id = params.ref.num;
  2932. }
  2933. Annotation.prototype = {
  2934. getData: function Annotation_getData() {
  2935. return this.data;
  2936. },
  2937. hasHtml: function Annotation_hasHtml() {
  2938. return false;
  2939. },
  2940. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  2941. throw new NotImplementedException(
  2942. 'getHtmlElement() should be implemented in subclass');
  2943. },
  2944. // TODO(mack): Remove this, it's not really that helpful.
  2945. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  2946. borderWidth) {
  2947. assert(!isWorker,
  2948. 'getEmptyContainer() should be called from main thread');
  2949. var bWidth = borderWidth || 0;
  2950. rect = rect || this.data.rect;
  2951. var element = document.createElement(tagName);
  2952. element.style.borderWidth = bWidth + 'px';
  2953. var width = rect[2] - rect[0] - 2 * bWidth;
  2954. var height = rect[3] - rect[1] - 2 * bWidth;
  2955. element.style.width = width + 'px';
  2956. element.style.height = height + 'px';
  2957. return element;
  2958. },
  2959. isInvisible: function Annotation_isInvisible() {
  2960. var data = this.data;
  2961. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  2962. return false;
  2963. } else {
  2964. return !!(data &&
  2965. data.annotationFlags && // Default: not invisible
  2966. data.annotationFlags & 0x1); // Invisible
  2967. }
  2968. },
  2969. isViewable: function Annotation_isViewable() {
  2970. var data = this.data;
  2971. return !!(!this.isInvisible() &&
  2972. data &&
  2973. (!data.annotationFlags ||
  2974. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  2975. data.rect); // rectangle is nessessary
  2976. },
  2977. isPrintable: function Annotation_isPrintable() {
  2978. var data = this.data;
  2979. return !!(!this.isInvisible() &&
  2980. data &&
  2981. data.annotationFlags && // Default: not printable
  2982. data.annotationFlags & 0x4 && // Print
  2983. data.rect); // rectangle is nessessary
  2984. },
  2985. loadResources: function(keys) {
  2986. var promise = new LegacyPromise();
  2987. this.appearance.dict.getAsync('Resources').then(function(resources) {
  2988. if (!resources) {
  2989. promise.resolve();
  2990. return;
  2991. }
  2992. var objectLoader = new ObjectLoader(resources.map,
  2993. keys,
  2994. resources.xref);
  2995. objectLoader.load().then(function() {
  2996. promise.resolve(resources);
  2997. });
  2998. }.bind(this));
  2999. return promise;
  3000. },
  3001. getOperatorList: function Annotation_getOperatorList(evaluator) {
  3002. var promise = new LegacyPromise();
  3003. if (!this.appearance) {
  3004. promise.resolve(new OperatorList());
  3005. return promise;
  3006. }
  3007. var data = this.data;
  3008. var appearanceDict = this.appearance.dict;
  3009. var resourcesPromise = this.loadResources([
  3010. 'ExtGState',
  3011. 'ColorSpace',
  3012. 'Pattern',
  3013. 'Shading',
  3014. 'XObject',
  3015. 'Font'
  3016. // ProcSet
  3017. // Properties
  3018. ]);
  3019. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  3020. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  3021. var transform = getTransformMatrix(data.rect, bbox, matrix);
  3022. resourcesPromise.then(function(resources) {
  3023. var opList = new OperatorList();
  3024. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  3025. evaluator.getOperatorList(this.appearance, resources, opList);
  3026. opList.addOp(OPS.endAnnotation, []);
  3027. promise.resolve(opList);
  3028. this.appearance.reset();
  3029. }.bind(this));
  3030. return promise;
  3031. }
  3032. };
  3033. Annotation.getConstructor =
  3034. function Annotation_getConstructor(subtype, fieldType) {
  3035. if (!subtype) {
  3036. return;
  3037. }
  3038. // TODO(mack): Implement FreeText annotations
  3039. if (subtype === 'Link') {
  3040. return LinkAnnotation;
  3041. } else if (subtype === 'Text') {
  3042. return TextAnnotation;
  3043. } else if (subtype === 'Widget') {
  3044. if (!fieldType) {
  3045. return;
  3046. }
  3047. if (fieldType === 'Tx') {
  3048. return TextWidgetAnnotation;
  3049. } else {
  3050. return WidgetAnnotation;
  3051. }
  3052. } else {
  3053. return Annotation;
  3054. }
  3055. };
  3056. // TODO(mack): Support loading annotation from data
  3057. Annotation.fromData = function Annotation_fromData(data) {
  3058. var subtype = data.subtype;
  3059. var fieldType = data.fieldType;
  3060. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3061. if (Constructor) {
  3062. return new Constructor({ data: data });
  3063. }
  3064. };
  3065. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  3066. var dict = xref.fetchIfRef(ref);
  3067. if (!isDict(dict)) {
  3068. return;
  3069. }
  3070. var subtype = dict.get('Subtype');
  3071. subtype = isName(subtype) ? subtype.name : '';
  3072. if (!subtype) {
  3073. return;
  3074. }
  3075. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3076. fieldType = isName(fieldType) ? fieldType.name : '';
  3077. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3078. if (!Constructor) {
  3079. return;
  3080. }
  3081. var params = {
  3082. dict: dict,
  3083. ref: ref,
  3084. };
  3085. var annotation = new Constructor(params);
  3086. if (annotation.isViewable() || annotation.isPrintable()) {
  3087. return annotation;
  3088. } else {
  3089. warn('unimplemented annotation type: ' + subtype);
  3090. }
  3091. };
  3092. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  3093. annotations, opList, pdfManager, partialEvaluator, intent) {
  3094. function reject(e) {
  3095. annotationsReadyPromise.reject(e);
  3096. }
  3097. var annotationsReadyPromise = new LegacyPromise();
  3098. var annotationPromises = [];
  3099. for (var i = 0, n = annotations.length; i < n; ++i) {
  3100. if (intent === 'display' && annotations[i].isViewable() ||
  3101. intent === 'print' && annotations[i].isPrintable()) {
  3102. annotationPromises.push(
  3103. annotations[i].getOperatorList(partialEvaluator));
  3104. }
  3105. }
  3106. Promise.all(annotationPromises).then(function(datas) {
  3107. opList.addOp(OPS.beginAnnotations, []);
  3108. for (var i = 0, n = datas.length; i < n; ++i) {
  3109. var annotOpList = datas[i];
  3110. opList.addOpList(annotOpList);
  3111. }
  3112. opList.addOp(OPS.endAnnotations, []);
  3113. annotationsReadyPromise.resolve();
  3114. }, reject);
  3115. return annotationsReadyPromise;
  3116. };
  3117. return Annotation;
  3118. })();
  3119. PDFJS.Annotation = Annotation;
  3120. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  3121. function WidgetAnnotation(params) {
  3122. Annotation.call(this, params);
  3123. if (params.data) {
  3124. return;
  3125. }
  3126. var dict = params.dict;
  3127. var data = this.data;
  3128. data.fieldValue = stringToPDFString(
  3129. Util.getInheritableProperty(dict, 'V') || '');
  3130. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  3131. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  3132. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3133. data.fieldType = isName(fieldType) ? fieldType.name : '';
  3134. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  3135. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  3136. // Building the full field name by collecting the field and
  3137. // its ancestors 'T' data and joining them using '.'.
  3138. var fieldName = [];
  3139. var namedItem = dict;
  3140. var ref = params.ref;
  3141. while (namedItem) {
  3142. var parent = namedItem.get('Parent');
  3143. var parentRef = namedItem.getRaw('Parent');
  3144. var name = namedItem.get('T');
  3145. if (name) {
  3146. fieldName.unshift(stringToPDFString(name));
  3147. } else {
  3148. // The field name is absent, that means more than one field
  3149. // with the same name may exist. Replacing the empty name
  3150. // with the '`' plus index in the parent's 'Kids' array.
  3151. // This is not in the PDF spec but necessary to id the
  3152. // the input controls.
  3153. var kids = parent.get('Kids');
  3154. var j, jj;
  3155. for (j = 0, jj = kids.length; j < jj; j++) {
  3156. var kidRef = kids[j];
  3157. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  3158. break;
  3159. }
  3160. }
  3161. fieldName.unshift('`' + j);
  3162. }
  3163. namedItem = parent;
  3164. ref = parentRef;
  3165. }
  3166. data.fullName = fieldName.join('.');
  3167. }
  3168. var parent = Annotation.prototype;
  3169. Util.inherit(WidgetAnnotation, Annotation, {
  3170. isViewable: function WidgetAnnotation_isViewable() {
  3171. if (this.data.fieldType === 'Sig') {
  3172. warn('unimplemented annotation type: Widget signature');
  3173. return false;
  3174. }
  3175. return parent.isViewable.call(this);
  3176. }
  3177. });
  3178. return WidgetAnnotation;
  3179. })();
  3180. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  3181. function TextWidgetAnnotation(params) {
  3182. WidgetAnnotation.call(this, params);
  3183. if (params.data) {
  3184. return;
  3185. }
  3186. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  3187. }
  3188. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  3189. function setTextStyles(element, item, fontObj) {
  3190. var style = element.style;
  3191. style.fontSize = item.fontSize + 'px';
  3192. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  3193. if (!fontObj) {
  3194. return;
  3195. }
  3196. style.fontWeight = fontObj.black ?
  3197. (fontObj.bold ? 'bolder' : 'bold') :
  3198. (fontObj.bold ? 'bold' : 'normal');
  3199. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  3200. var fontName = fontObj.loadedName;
  3201. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  3202. // Use a reasonable default font if the font doesn't specify a fallback
  3203. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  3204. style.fontFamily = fontFamily + fallbackName;
  3205. }
  3206. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  3207. hasHtml: function TextWidgetAnnotation_hasHtml() {
  3208. return !this.data.hasAppearance && !!this.data.fieldValue;
  3209. },
  3210. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  3211. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3212. var item = this.data;
  3213. var element = this.getEmptyContainer('div');
  3214. element.style.display = 'table';
  3215. var content = document.createElement('div');
  3216. content.textContent = item.fieldValue;
  3217. var textAlignment = item.textAlignment;
  3218. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  3219. content.style.verticalAlign = 'middle';
  3220. content.style.display = 'table-cell';
  3221. var fontObj = item.fontRefName ?
  3222. commonObjs.getData(item.fontRefName) : null;
  3223. setTextStyles(content, item, fontObj);
  3224. element.appendChild(content);
  3225. return element;
  3226. },
  3227. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  3228. if (this.appearance) {
  3229. return Annotation.prototype.getOperatorList.call(this, evaluator);
  3230. }
  3231. var promise = new LegacyPromise();
  3232. var opList = new OperatorList();
  3233. var data = this.data;
  3234. // Even if there is an appearance stream, ignore it. This is the
  3235. // behaviour used by Adobe Reader.
  3236. var defaultAppearance = data.defaultAppearance;
  3237. if (!defaultAppearance) {
  3238. promise.resolve(opList);
  3239. return promise;
  3240. }
  3241. // Include any font resources found in the default appearance
  3242. var stream = new Stream(stringToBytes(defaultAppearance));
  3243. evaluator.getOperatorList(stream, this.fieldResources, opList);
  3244. var appearanceFnArray = opList.fnArray;
  3245. var appearanceArgsArray = opList.argsArray;
  3246. var fnArray = [];
  3247. // TODO(mack): Add support for stroke color
  3248. data.rgb = [0, 0, 0];
  3249. // TODO THIS DOESN'T MAKE ANY SENSE SINCE THE fnArray IS EMPTY!
  3250. for (var i = 0, n = fnArray.length; i < n; ++i) {
  3251. var fnId = appearanceFnArray[i];
  3252. var args = appearanceArgsArray[i];
  3253. if (fnId === OPS.setFont) {
  3254. data.fontRefName = args[0];
  3255. var size = args[1];
  3256. if (size < 0) {
  3257. data.fontDirection = -1;
  3258. data.fontSize = -size;
  3259. } else {
  3260. data.fontDirection = 1;
  3261. data.fontSize = size;
  3262. }
  3263. } else if (fnId === OPS.setFillRGBColor) {
  3264. data.rgb = args;
  3265. } else if (fnId === OPS.setFillGray) {
  3266. var rgbValue = args[0] * 255;
  3267. data.rgb = [rgbValue, rgbValue, rgbValue];
  3268. }
  3269. }
  3270. promise.resolve(opList);
  3271. return promise;
  3272. }
  3273. });
  3274. return TextWidgetAnnotation;
  3275. })();
  3276. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  3277. function InteractiveAnnotation(params) {
  3278. Annotation.call(this, params);
  3279. }
  3280. Util.inherit(InteractiveAnnotation, Annotation, {
  3281. hasHtml: function InteractiveAnnotation_hasHtml() {
  3282. return true;
  3283. },
  3284. highlight: function InteractiveAnnotation_highlight() {
  3285. if (this.highlightElement &&
  3286. this.highlightElement.hasAttribute('hidden')) {
  3287. this.highlightElement.removeAttribute('hidden');
  3288. }
  3289. },
  3290. unhighlight: function InteractiveAnnotation_unhighlight() {
  3291. if (this.highlightElement &&
  3292. !this.highlightElement.hasAttribute('hidden')) {
  3293. this.highlightElement.setAttribute('hidden', true);
  3294. }
  3295. },
  3296. initContainer: function InteractiveAnnotation_initContainer() {
  3297. var item = this.data;
  3298. var rect = item.rect;
  3299. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  3300. container.style.backgroundColor = item.color;
  3301. var color = item.color;
  3302. var rgb = [];
  3303. for (var i = 0; i < 3; ++i) {
  3304. rgb[i] = Math.round(color[i] * 255);
  3305. }
  3306. item.colorCssRgb = Util.makeCssRgb(rgb);
  3307. var highlight = document.createElement('div');
  3308. highlight.className = 'annotationHighlight';
  3309. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  3310. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  3311. highlight.setAttribute('hidden', true);
  3312. this.highlightElement = highlight;
  3313. container.appendChild(this.highlightElement);
  3314. return container;
  3315. }
  3316. });
  3317. return InteractiveAnnotation;
  3318. })();
  3319. var TextAnnotation = (function TextAnnotationClosure() {
  3320. function TextAnnotation(params) {
  3321. InteractiveAnnotation.call(this, params);
  3322. if (params.data) {
  3323. return;
  3324. }
  3325. var dict = params.dict;
  3326. var data = this.data;
  3327. var content = dict.get('Contents');
  3328. var title = dict.get('T');
  3329. data.content = stringToPDFString(content || '');
  3330. data.title = stringToPDFString(title || '');
  3331. if (data.hasAppearance) {
  3332. data.name = 'NoIcon';
  3333. } else {
  3334. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  3335. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  3336. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  3337. }
  3338. if (dict.has('C')) {
  3339. data.hasBgColor = true;
  3340. }
  3341. }
  3342. var ANNOT_MIN_SIZE = 10;
  3343. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  3344. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  3345. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3346. var item = this.data;
  3347. var rect = item.rect;
  3348. // sanity check because of OOo-generated PDFs
  3349. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  3350. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  3351. }
  3352. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  3353. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  3354. }
  3355. var container = this.initContainer();
  3356. container.className = 'annotText';
  3357. var image = document.createElement('img');
  3358. image.style.height = container.style.height;
  3359. image.style.width = container.style.width;
  3360. var iconName = item.name;
  3361. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  3362. iconName.toLowerCase() + '.svg';
  3363. image.alt = '[{{type}} Annotation]';
  3364. image.dataset.l10nId = 'text_annotation_type';
  3365. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  3366. var contentWrapper = document.createElement('div');
  3367. contentWrapper.className = 'annotTextContentWrapper';
  3368. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  3369. contentWrapper.style.top = '-10px';
  3370. var content = document.createElement('div');
  3371. content.className = 'annotTextContent';
  3372. content.setAttribute('hidden', true);
  3373. var i, ii;
  3374. if (item.hasBgColor) {
  3375. var color = item.color;
  3376. var rgb = [];
  3377. for (i = 0; i < 3; ++i) {
  3378. // Enlighten the color (70%)
  3379. var c = Math.round(color[i] * 255);
  3380. rgb[i] = Math.round((255 - c) * 0.7) + c;
  3381. }
  3382. content.style.backgroundColor = Util.makeCssRgb(rgb);
  3383. }
  3384. var title = document.createElement('h1');
  3385. var text = document.createElement('p');
  3386. title.textContent = item.title;
  3387. if (!item.content && !item.title) {
  3388. content.setAttribute('hidden', true);
  3389. } else {
  3390. var e = document.createElement('span');
  3391. var lines = item.content.split(/(?:\r\n?|\n)/);
  3392. for (i = 0, ii = lines.length; i < ii; ++i) {
  3393. var line = lines[i];
  3394. e.appendChild(document.createTextNode(line));
  3395. if (i < (ii - 1)) {
  3396. e.appendChild(document.createElement('br'));
  3397. }
  3398. }
  3399. text.appendChild(e);
  3400. var pinned = false;
  3401. var showAnnotation = function showAnnotation(pin) {
  3402. if (pin) {
  3403. pinned = true;
  3404. }
  3405. if (content.hasAttribute('hidden')) {
  3406. container.style.zIndex += 1;
  3407. content.removeAttribute('hidden');
  3408. }
  3409. };
  3410. var hideAnnotation = function hideAnnotation(unpin) {
  3411. if (unpin) {
  3412. pinned = false;
  3413. }
  3414. if (!content.hasAttribute('hidden') && !pinned) {
  3415. container.style.zIndex -= 1;
  3416. content.setAttribute('hidden', true);
  3417. }
  3418. };
  3419. var toggleAnnotation = function toggleAnnotation() {
  3420. if (pinned) {
  3421. hideAnnotation(true);
  3422. } else {
  3423. showAnnotation(true);
  3424. }
  3425. };
  3426. image.addEventListener('click', function image_clickHandler() {
  3427. toggleAnnotation();
  3428. }, false);
  3429. image.addEventListener('mouseover', function image_mouseOverHandler() {
  3430. showAnnotation();
  3431. }, false);
  3432. image.addEventListener('mouseout', function image_mouseOutHandler() {
  3433. hideAnnotation();
  3434. }, false);
  3435. content.addEventListener('click', function content_clickHandler() {
  3436. hideAnnotation(true);
  3437. }, false);
  3438. }
  3439. content.appendChild(title);
  3440. content.appendChild(text);
  3441. contentWrapper.appendChild(content);
  3442. container.appendChild(image);
  3443. container.appendChild(contentWrapper);
  3444. return container;
  3445. }
  3446. });
  3447. return TextAnnotation;
  3448. })();
  3449. var LinkAnnotation = (function LinkAnnotationClosure() {
  3450. function LinkAnnotation(params) {
  3451. InteractiveAnnotation.call(this, params);
  3452. if (params.data) {
  3453. return;
  3454. }
  3455. var dict = params.dict;
  3456. var data = this.data;
  3457. var action = dict.get('A');
  3458. if (action) {
  3459. var linkType = action.get('S').name;
  3460. if (linkType === 'URI') {
  3461. var url = action.get('URI');
  3462. if (isName(url)) {
  3463. // Some bad PDFs do not put parentheses around relative URLs.
  3464. url = '/' + url.name;
  3465. } else if (url) {
  3466. url = addDefaultProtocolToUrl(url);
  3467. }
  3468. // TODO: pdf spec mentions urls can be relative to a Base
  3469. // entry in the dictionary.
  3470. if (!isValidUrl(url, false)) {
  3471. url = '';
  3472. }
  3473. data.url = url;
  3474. } else if (linkType === 'GoTo') {
  3475. data.dest = action.get('D');
  3476. } else if (linkType === 'GoToR') {
  3477. var urlDict = action.get('F');
  3478. if (isDict(urlDict)) {
  3479. // We assume that the 'url' is a Filspec dictionary
  3480. // and fetch the url without checking any further
  3481. url = urlDict.get('F') || '';
  3482. }
  3483. // TODO: pdf reference says that GoToR
  3484. // can also have 'NewWindow' attribute
  3485. if (!isValidUrl(url, false)) {
  3486. url = '';
  3487. }
  3488. data.url = url;
  3489. data.dest = action.get('D');
  3490. } else if (linkType === 'Named') {
  3491. data.action = action.get('N').name;
  3492. } else {
  3493. warn('unrecognized link type: ' + linkType);
  3494. }
  3495. } else if (dict.has('Dest')) {
  3496. // simple destination link
  3497. var dest = dict.get('Dest');
  3498. data.dest = isName(dest) ? dest.name : dest;
  3499. }
  3500. }
  3501. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  3502. function addDefaultProtocolToUrl(url) {
  3503. if (url && url.indexOf('www.') === 0) {
  3504. return ('http://' + url);
  3505. }
  3506. return url;
  3507. }
  3508. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  3509. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  3510. return false;
  3511. },
  3512. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  3513. var container = this.initContainer();
  3514. container.className = 'annotLink';
  3515. var item = this.data;
  3516. container.style.borderColor = item.colorCssRgb;
  3517. container.style.borderStyle = 'solid';
  3518. var link = document.createElement('a');
  3519. link.href = link.title = this.data.url || '';
  3520. container.appendChild(link);
  3521. return container;
  3522. }
  3523. });
  3524. return LinkAnnotation;
  3525. })();
  3526. var NetworkManager = (function NetworkManagerClosure() {
  3527. var OK_RESPONSE = 200;
  3528. var PARTIAL_CONTENT_RESPONSE = 206;
  3529. function NetworkManager(url, args) {
  3530. this.url = url;
  3531. args = args || {};
  3532. this.isHttp = /^https?:/i.test(url);
  3533. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  3534. this.withCredentials = args.withCredentials || false;
  3535. this.getXhr = args.getXhr ||
  3536. function NetworkManager_getXhr() {
  3537. return new XMLHttpRequest();
  3538. };
  3539. this.currXhrId = 0;
  3540. this.pendingRequests = {};
  3541. this.loadedRequests = {};
  3542. }
  3543. function getArrayBuffer(xhr) {
  3544. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  3545. xhr.responseArrayBuffer || xhr.response);
  3546. if (typeof data !== 'string') {
  3547. return data;
  3548. }
  3549. var length = data.length;
  3550. var buffer = new Uint8Array(length);
  3551. for (var i = 0; i < length; i++) {
  3552. buffer[i] = data.charCodeAt(i) & 0xFF;
  3553. }
  3554. return buffer;
  3555. }
  3556. NetworkManager.prototype = {
  3557. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  3558. var args = {
  3559. begin: begin,
  3560. end: end
  3561. };
  3562. for (var prop in listeners) {
  3563. args[prop] = listeners[prop];
  3564. }
  3565. return this.request(args);
  3566. },
  3567. requestFull: function NetworkManager_requestRange(listeners) {
  3568. return this.request(listeners);
  3569. },
  3570. request: function NetworkManager_requestRange(args) {
  3571. var xhr = this.getXhr();
  3572. var xhrId = this.currXhrId++;
  3573. var pendingRequest = this.pendingRequests[xhrId] = {
  3574. xhr: xhr
  3575. };
  3576. xhr.open('GET', this.url);
  3577. xhr.withCredentials = this.withCredentials;
  3578. for (var property in this.httpHeaders) {
  3579. var value = this.httpHeaders[property];
  3580. if (typeof value === 'undefined') {
  3581. continue;
  3582. }
  3583. xhr.setRequestHeader(property, value);
  3584. }
  3585. if (this.isHttp && 'begin' in args && 'end' in args) {
  3586. var rangeStr = args.begin + '-' + (args.end - 1);
  3587. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  3588. pendingRequest.expectedStatus = 206;
  3589. } else {
  3590. pendingRequest.expectedStatus = 200;
  3591. }
  3592. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  3593. if (args.onProgress) {
  3594. xhr.onprogress = args.onProgress;
  3595. }
  3596. if (args.onError) {
  3597. xhr.onerror = function(evt) {
  3598. args.onError(xhr.status);
  3599. };
  3600. }
  3601. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  3602. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  3603. pendingRequest.onDone = args.onDone;
  3604. pendingRequest.onError = args.onError;
  3605. xhr.send(null);
  3606. return xhrId;
  3607. },
  3608. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  3609. var pendingRequest = this.pendingRequests[xhrId];
  3610. if (!pendingRequest) {
  3611. // Maybe abortRequest was called...
  3612. return;
  3613. }
  3614. var xhr = pendingRequest.xhr;
  3615. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  3616. pendingRequest.onHeadersReceived();
  3617. delete pendingRequest.onHeadersReceived;
  3618. }
  3619. if (xhr.readyState !== 4) {
  3620. return;
  3621. }
  3622. if (!(xhrId in this.pendingRequests)) {
  3623. // The XHR request might have been aborted in onHeadersReceived()
  3624. // callback, in which case we should abort request
  3625. return;
  3626. }
  3627. delete this.pendingRequests[xhrId];
  3628. // success status == 0 can be on ftp, file and other protocols
  3629. if (xhr.status === 0 && this.isHttp) {
  3630. if (pendingRequest.onError) {
  3631. pendingRequest.onError(xhr.status);
  3632. }
  3633. return;
  3634. }
  3635. var xhrStatus = xhr.status || OK_RESPONSE;
  3636. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  3637. // "A server MAY ignore the Range header". This means it's possible to
  3638. // get a 200 rather than a 206 response from a range request.
  3639. var ok_response_on_range_request =
  3640. xhrStatus === OK_RESPONSE &&
  3641. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  3642. if (!ok_response_on_range_request &&
  3643. xhrStatus !== pendingRequest.expectedStatus) {
  3644. if (pendingRequest.onError) {
  3645. pendingRequest.onError(xhr.status);
  3646. }
  3647. return;
  3648. }
  3649. this.loadedRequests[xhrId] = true;
  3650. var chunk = getArrayBuffer(xhr);
  3651. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  3652. var rangeHeader = xhr.getResponseHeader('Content-Range');
  3653. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  3654. var begin = parseInt(matches[1], 10);
  3655. pendingRequest.onDone({
  3656. begin: begin,
  3657. chunk: chunk
  3658. });
  3659. } else {
  3660. pendingRequest.onDone({
  3661. begin: 0,
  3662. chunk: chunk
  3663. });
  3664. }
  3665. },
  3666. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  3667. for (var xhrId in this.pendingRequests) {
  3668. return true;
  3669. }
  3670. return false;
  3671. },
  3672. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  3673. return this.pendingRequests[xhrId].xhr;
  3674. },
  3675. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  3676. return xhrId in this.pendingRequests;
  3677. },
  3678. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  3679. return xhrId in this.loadedRequests;
  3680. },
  3681. abortAllRequests: function NetworkManager_abortAllRequests() {
  3682. for (var xhrId in this.pendingRequests) {
  3683. this.abortRequest(xhrId | 0);
  3684. }
  3685. },
  3686. abortRequest: function NetworkManager_abortRequest(xhrId) {
  3687. var xhr = this.pendingRequests[xhrId].xhr;
  3688. delete this.pendingRequests[xhrId];
  3689. xhr.abort();
  3690. }
  3691. };
  3692. return NetworkManager;
  3693. })();
  3694. var ChunkedStream = (function ChunkedStreamClosure() {
  3695. function ChunkedStream(length, chunkSize, manager) {
  3696. this.bytes = new Uint8Array(length);
  3697. this.start = 0;
  3698. this.pos = 0;
  3699. this.end = length;
  3700. this.chunkSize = chunkSize;
  3701. this.loadedChunks = [];
  3702. this.numChunksLoaded = 0;
  3703. this.numChunks = Math.ceil(length / chunkSize);
  3704. this.manager = manager;
  3705. this.initialDataLength = 0;
  3706. }
  3707. // required methods for a stream. if a particular stream does not
  3708. // implement these, an error should be thrown
  3709. ChunkedStream.prototype = {
  3710. getMissingChunks: function ChunkedStream_getMissingChunks() {
  3711. var chunks = [];
  3712. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  3713. if (!(chunk in this.loadedChunks)) {
  3714. chunks.push(chunk);
  3715. }
  3716. }
  3717. return chunks;
  3718. },
  3719. getBaseStreams: function ChunkedStream_getBaseStreams() {
  3720. return [this];
  3721. },
  3722. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  3723. return this.numChunksLoaded === this.numChunks;
  3724. },
  3725. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  3726. var end = begin + chunk.byteLength;
  3727. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  3728. // Using this.length is inaccurate here since this.start can be moved
  3729. // See ChunkedStream.moveStart()
  3730. var length = this.bytes.length;
  3731. assert(end % this.chunkSize === 0 || end === length,
  3732. 'Bad end offset: ' + end);
  3733. this.bytes.set(new Uint8Array(chunk), begin);
  3734. var chunkSize = this.chunkSize;
  3735. var beginChunk = Math.floor(begin / chunkSize);
  3736. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3737. var curChunk;
  3738. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  3739. if (!(curChunk in this.loadedChunks)) {
  3740. this.loadedChunks[curChunk] = true;
  3741. ++this.numChunksLoaded;
  3742. }
  3743. }
  3744. },
  3745. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  3746. this.bytes.set(data);
  3747. this.initialDataLength = data.length;
  3748. var endChunk = (this.end === data.length ?
  3749. this.numChunks : Math.floor(data.length / this.chunkSize));
  3750. for (var i = 0; i < endChunk; i++) {
  3751. this.loadedChunks[i] = true;
  3752. ++this.numChunksLoaded;
  3753. }
  3754. },
  3755. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  3756. if (begin >= end) {
  3757. return;
  3758. }
  3759. if (end <= this.initialDataLength) {
  3760. return;
  3761. }
  3762. var chunkSize = this.chunkSize;
  3763. var beginChunk = Math.floor(begin / chunkSize);
  3764. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3765. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3766. if (!(chunk in this.loadedChunks)) {
  3767. throw new MissingDataException(begin, end);
  3768. }
  3769. }
  3770. },
  3771. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  3772. var chunk, n;
  3773. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  3774. if (!(chunk in this.loadedChunks)) {
  3775. return chunk;
  3776. }
  3777. }
  3778. // Wrap around to beginning
  3779. for (chunk = 0; chunk < beginChunk; ++chunk) {
  3780. if (!(chunk in this.loadedChunks)) {
  3781. return chunk;
  3782. }
  3783. }
  3784. return null;
  3785. },
  3786. hasChunk: function ChunkedStream_hasChunk(chunk) {
  3787. return chunk in this.loadedChunks;
  3788. },
  3789. get length() {
  3790. return this.end - this.start;
  3791. },
  3792. getByte: function ChunkedStream_getByte() {
  3793. var pos = this.pos;
  3794. if (pos >= this.end) {
  3795. return -1;
  3796. }
  3797. this.ensureRange(pos, pos + 1);
  3798. return this.bytes[this.pos++];
  3799. },
  3800. getUint16: function ChunkedStream_getUint16() {
  3801. var b0 = this.getByte();
  3802. var b1 = this.getByte();
  3803. return (b0 << 8) + b1;
  3804. },
  3805. getInt32: function ChunkedStream_getInt32() {
  3806. var b0 = this.getByte();
  3807. var b1 = this.getByte();
  3808. var b2 = this.getByte();
  3809. var b3 = this.getByte();
  3810. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  3811. },
  3812. // returns subarray of original buffer
  3813. // should only be read
  3814. getBytes: function ChunkedStream_getBytes(length) {
  3815. var bytes = this.bytes;
  3816. var pos = this.pos;
  3817. var strEnd = this.end;
  3818. if (!length) {
  3819. this.ensureRange(pos, strEnd);
  3820. return bytes.subarray(pos, strEnd);
  3821. }
  3822. var end = pos + length;
  3823. if (end > strEnd) {
  3824. end = strEnd;
  3825. }
  3826. this.ensureRange(pos, end);
  3827. this.pos = end;
  3828. return bytes.subarray(pos, end);
  3829. },
  3830. peekBytes: function ChunkedStream_peekBytes(length) {
  3831. var bytes = this.getBytes(length);
  3832. this.pos -= bytes.length;
  3833. return bytes;
  3834. },
  3835. getByteRange: function ChunkedStream_getBytes(begin, end) {
  3836. this.ensureRange(begin, end);
  3837. return this.bytes.subarray(begin, end);
  3838. },
  3839. skip: function ChunkedStream_skip(n) {
  3840. if (!n) {
  3841. n = 1;
  3842. }
  3843. this.pos += n;
  3844. },
  3845. reset: function ChunkedStream_reset() {
  3846. this.pos = this.start;
  3847. },
  3848. moveStart: function ChunkedStream_moveStart() {
  3849. this.start = this.pos;
  3850. },
  3851. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  3852. this.ensureRange(start, start + length);
  3853. function ChunkedStreamSubstream() {}
  3854. ChunkedStreamSubstream.prototype = Object.create(this);
  3855. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  3856. var chunkSize = this.chunkSize;
  3857. var beginChunk = Math.floor(this.start / chunkSize);
  3858. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  3859. var missingChunks = [];
  3860. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3861. if (!(chunk in this.loadedChunks)) {
  3862. missingChunks.push(chunk);
  3863. }
  3864. }
  3865. return missingChunks;
  3866. };
  3867. var subStream = new ChunkedStreamSubstream();
  3868. subStream.pos = subStream.start = start;
  3869. subStream.end = start + length || this.end;
  3870. subStream.dict = dict;
  3871. return subStream;
  3872. },
  3873. isStream: true
  3874. };
  3875. return ChunkedStream;
  3876. })();
  3877. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  3878. function ChunkedStreamManager(length, chunkSize, url, args) {
  3879. this.stream = new ChunkedStream(length, chunkSize, this);
  3880. this.length = length;
  3881. this.chunkSize = chunkSize;
  3882. this.url = url;
  3883. this.disableAutoFetch = args.disableAutoFetch;
  3884. var msgHandler = this.msgHandler = args.msgHandler;
  3885. if (args.chunkedViewerLoading) {
  3886. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  3887. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  3888. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3889. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  3890. };
  3891. } else {
  3892. var getXhr = function getXhr() {
  3893. return new XMLHttpRequest();
  3894. };
  3895. this.networkManager = new NetworkManager(this.url, {
  3896. getXhr: getXhr,
  3897. httpHeaders: args.httpHeaders,
  3898. withCredentials: args.withCredentials
  3899. });
  3900. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3901. this.networkManager.requestRange(begin, end, {
  3902. onDone: this.onReceiveData.bind(this),
  3903. onProgress: this.onProgress.bind(this)
  3904. });
  3905. };
  3906. }
  3907. this.currRequestId = 0;
  3908. this.chunksNeededByRequest = {};
  3909. this.requestsByChunk = {};
  3910. this.callbacksByRequest = {};
  3911. this._loadedStreamCapability = createPromiseCapability();
  3912. if (args.initialData) {
  3913. this.setInitialData(args.initialData);
  3914. }
  3915. }
  3916. ChunkedStreamManager.prototype = {
  3917. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  3918. this.stream.onReceiveInitialData(data);
  3919. if (this.stream.allChunksLoaded()) {
  3920. this._loadedStreamCapability.resolve(this.stream);
  3921. } else if (this.msgHandler) {
  3922. this.msgHandler.send('DocProgress', {
  3923. loaded: data.length,
  3924. total: this.length
  3925. });
  3926. }
  3927. },
  3928. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  3929. return this._loadedStreamCapability.promise;
  3930. },
  3931. // Get all the chunks that are not yet loaded and groups them into
  3932. // contiguous ranges to load in as few requests as possible
  3933. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  3934. var missingChunks = this.stream.getMissingChunks();
  3935. this.requestChunks(missingChunks);
  3936. return this._loadedStreamCapability.promise;
  3937. },
  3938. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  3939. callback) {
  3940. var requestId = this.currRequestId++;
  3941. var chunksNeeded;
  3942. var i, ii;
  3943. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  3944. for (i = 0, ii = chunks.length; i < ii; i++) {
  3945. if (!this.stream.hasChunk(chunks[i])) {
  3946. chunksNeeded[chunks[i]] = true;
  3947. }
  3948. }
  3949. if (isEmptyObj(chunksNeeded)) {
  3950. if (callback) {
  3951. callback();
  3952. }
  3953. return;
  3954. }
  3955. this.callbacksByRequest[requestId] = callback;
  3956. var chunksToRequest = [];
  3957. for (var chunk in chunksNeeded) {
  3958. chunk = chunk | 0;
  3959. if (!(chunk in this.requestsByChunk)) {
  3960. this.requestsByChunk[chunk] = [];
  3961. chunksToRequest.push(chunk);
  3962. }
  3963. this.requestsByChunk[chunk].push(requestId);
  3964. }
  3965. if (!chunksToRequest.length) {
  3966. return;
  3967. }
  3968. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  3969. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  3970. var groupedChunk = groupedChunksToRequest[i];
  3971. var begin = groupedChunk.beginChunk * this.chunkSize;
  3972. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  3973. this.sendRequest(begin, end);
  3974. }
  3975. },
  3976. getStream: function ChunkedStreamManager_getStream() {
  3977. return this.stream;
  3978. },
  3979. // Loads any chunks in the requested range that are not yet loaded
  3980. requestRange: function ChunkedStreamManager_requestRange(
  3981. begin, end, callback) {
  3982. end = Math.min(end, this.length);
  3983. var beginChunk = this.getBeginChunk(begin);
  3984. var endChunk = this.getEndChunk(end);
  3985. var chunks = [];
  3986. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3987. chunks.push(chunk);
  3988. }
  3989. this.requestChunks(chunks, callback);
  3990. },
  3991. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  3992. callback) {
  3993. ranges = ranges || [];
  3994. var chunksToRequest = [];
  3995. for (var i = 0; i < ranges.length; i++) {
  3996. var beginChunk = this.getBeginChunk(ranges[i].begin);
  3997. var endChunk = this.getEndChunk(ranges[i].end);
  3998. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3999. if (chunksToRequest.indexOf(chunk) < 0) {
  4000. chunksToRequest.push(chunk);
  4001. }
  4002. }
  4003. }
  4004. chunksToRequest.sort(function(a, b) { return a - b; });
  4005. this.requestChunks(chunksToRequest, callback);
  4006. },
  4007. // Groups a sorted array of chunks into as few continguous larger
  4008. // chunks as possible
  4009. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  4010. var groupedChunks = [];
  4011. var beginChunk = -1;
  4012. var prevChunk = -1;
  4013. for (var i = 0; i < chunks.length; ++i) {
  4014. var chunk = chunks[i];
  4015. if (beginChunk < 0) {
  4016. beginChunk = chunk;
  4017. }
  4018. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  4019. groupedChunks.push({ beginChunk: beginChunk,
  4020. endChunk: prevChunk + 1 });
  4021. beginChunk = chunk;
  4022. }
  4023. if (i + 1 === chunks.length) {
  4024. groupedChunks.push({ beginChunk: beginChunk,
  4025. endChunk: chunk + 1 });
  4026. }
  4027. prevChunk = chunk;
  4028. }
  4029. return groupedChunks;
  4030. },
  4031. onProgress: function ChunkedStreamManager_onProgress(args) {
  4032. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  4033. args.loaded);
  4034. this.msgHandler.send('DocProgress', {
  4035. loaded: bytesLoaded,
  4036. total: this.length
  4037. });
  4038. },
  4039. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  4040. var chunk = args.chunk;
  4041. var begin = args.begin;
  4042. var end = begin + chunk.byteLength;
  4043. var beginChunk = this.getBeginChunk(begin);
  4044. var endChunk = this.getEndChunk(end);
  4045. this.stream.onReceiveData(begin, chunk);
  4046. if (this.stream.allChunksLoaded()) {
  4047. this._loadedStreamCapability.resolve(this.stream);
  4048. }
  4049. var loadedRequests = [];
  4050. var i, requestId;
  4051. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  4052. // The server might return more chunks than requested
  4053. var requestIds = this.requestsByChunk[chunk] || [];
  4054. delete this.requestsByChunk[chunk];
  4055. for (i = 0; i < requestIds.length; ++i) {
  4056. requestId = requestIds[i];
  4057. var chunksNeeded = this.chunksNeededByRequest[requestId];
  4058. if (chunk in chunksNeeded) {
  4059. delete chunksNeeded[chunk];
  4060. }
  4061. if (!isEmptyObj(chunksNeeded)) {
  4062. continue;
  4063. }
  4064. loadedRequests.push(requestId);
  4065. }
  4066. }
  4067. // If there are no pending requests, automatically fetch the next
  4068. // unfetched chunk of the PDF
  4069. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  4070. var nextEmptyChunk;
  4071. if (this.stream.numChunksLoaded === 1) {
  4072. // This is a special optimization so that after fetching the first
  4073. // chunk, rather than fetching the second chunk, we fetch the last
  4074. // chunk.
  4075. var lastChunk = this.stream.numChunks - 1;
  4076. if (!this.stream.hasChunk(lastChunk)) {
  4077. nextEmptyChunk = lastChunk;
  4078. }
  4079. } else {
  4080. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  4081. }
  4082. if (isInt(nextEmptyChunk)) {
  4083. this.requestChunks([nextEmptyChunk]);
  4084. }
  4085. }
  4086. for (i = 0; i < loadedRequests.length; ++i) {
  4087. requestId = loadedRequests[i];
  4088. var callback = this.callbacksByRequest[requestId];
  4089. delete this.callbacksByRequest[requestId];
  4090. if (callback) {
  4091. callback();
  4092. }
  4093. }
  4094. this.msgHandler.send('DocProgress', {
  4095. loaded: this.stream.numChunksLoaded * this.chunkSize,
  4096. total: this.length
  4097. });
  4098. },
  4099. onError: function ChunkedStreamManager_onError(err) {
  4100. this._loadedStreamCapability.reject(err);
  4101. },
  4102. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  4103. var chunk = Math.floor(begin / this.chunkSize);
  4104. return chunk;
  4105. },
  4106. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  4107. if (end % this.chunkSize === 0) {
  4108. return end / this.chunkSize;
  4109. }
  4110. // 0 -> 0
  4111. // 1 -> 1
  4112. // 99 -> 1
  4113. // 100 -> 1
  4114. // 101 -> 2
  4115. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  4116. return chunk;
  4117. }
  4118. };
  4119. return ChunkedStreamManager;
  4120. })();
  4121. // The maximum number of bytes fetched per range request
  4122. var RANGE_CHUNK_SIZE = 65536;
  4123. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  4124. var BasePdfManager = (function BasePdfManagerClosure() {
  4125. function BasePdfManager() {
  4126. throw new Error('Cannot initialize BaseManagerManager');
  4127. }
  4128. BasePdfManager.prototype = {
  4129. onLoadedStream: function BasePdfManager_onLoadedStream() {
  4130. throw new NotImplementedException();
  4131. },
  4132. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  4133. return this.ensure(this.pdfDocument, prop, args);
  4134. },
  4135. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  4136. return this.ensure(this.pdfDocument.xref, prop, args);
  4137. },
  4138. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  4139. return this.ensure(this.pdfDocument.catalog, prop, args);
  4140. },
  4141. getPage: function BasePdfManager_pagePage(pageIndex) {
  4142. return this.pdfDocument.getPage(pageIndex);
  4143. },
  4144. cleanup: function BasePdfManager_cleanup() {
  4145. return this.pdfDocument.cleanup();
  4146. },
  4147. ensure: function BasePdfManager_ensure(obj, prop, args) {
  4148. return new NotImplementedException();
  4149. },
  4150. requestRange: function BasePdfManager_ensure(begin, end) {
  4151. return new NotImplementedException();
  4152. },
  4153. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  4154. return new NotImplementedException();
  4155. },
  4156. updatePassword: function BasePdfManager_updatePassword(password) {
  4157. this.pdfDocument.xref.password = this.password = password;
  4158. if (this.passwordChangedPromise) {
  4159. this.passwordChangedPromise.resolve();
  4160. }
  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.loadedStream = new LegacyPromise();
  4173. this.loadedStream.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. var promise = new LegacyPromise();
  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. promise.resolve(result);
  4189. } catch (e) {
  4190. console.log(e.stack);
  4191. promise.reject(e);
  4192. }
  4193. return promise;
  4194. };
  4195. LocalPdfManager.prototype.requestRange =
  4196. function LocalPdfManager_requestRange(begin, end) {
  4197. var promise = new LegacyPromise();
  4198. promise.resolve();
  4199. return promise;
  4200. };
  4201. LocalPdfManager.prototype.requestLoadedStream =
  4202. function LocalPdfManager_requestLoadedStream() {
  4203. };
  4204. LocalPdfManager.prototype.onLoadedStream =
  4205. function LocalPdfManager_getLoadedStream() {
  4206. return this.loadedStream;
  4207. };
  4208. LocalPdfManager.prototype.terminate =
  4209. function LocalPdfManager_terminate() {
  4210. return;
  4211. };
  4212. return LocalPdfManager;
  4213. })();
  4214. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  4215. function NetworkPdfManager(args, msgHandler) {
  4216. this.msgHandler = msgHandler;
  4217. var params = {
  4218. msgHandler: msgHandler,
  4219. httpHeaders: args.httpHeaders,
  4220. withCredentials: args.withCredentials,
  4221. chunkedViewerLoading: args.chunkedViewerLoading,
  4222. disableAutoFetch: args.disableAutoFetch,
  4223. initialData: args.initialData
  4224. };
  4225. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  4226. args.url, params);
  4227. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  4228. args.password);
  4229. }
  4230. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4231. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  4232. NetworkPdfManager.prototype.ensure =
  4233. function NetworkPdfManager_ensure(obj, prop, args) {
  4234. var promise = new LegacyPromise();
  4235. this.ensureHelper(promise, obj, prop, args);
  4236. return promise;
  4237. };
  4238. NetworkPdfManager.prototype.ensureHelper =
  4239. function NetworkPdfManager_ensureHelper(promise, obj, prop, args) {
  4240. try {
  4241. var result;
  4242. var value = obj[prop];
  4243. if (typeof(value) === 'function') {
  4244. result = value.apply(obj, args);
  4245. } else {
  4246. result = value;
  4247. }
  4248. promise.resolve(result);
  4249. } catch(e) {
  4250. if (!(e instanceof MissingDataException)) {
  4251. console.log(e.stack);
  4252. promise.reject(e);
  4253. return;
  4254. }
  4255. this.streamManager.requestRange(e.begin, e.end, function() {
  4256. this.ensureHelper(promise, obj, prop, args);
  4257. }.bind(this));
  4258. }
  4259. };
  4260. NetworkPdfManager.prototype.requestRange =
  4261. function NetworkPdfManager_requestRange(begin, end) {
  4262. var promise = new LegacyPromise();
  4263. this.streamManager.requestRange(begin, end, function() {
  4264. promise.resolve();
  4265. });
  4266. return promise;
  4267. };
  4268. NetworkPdfManager.prototype.requestLoadedStream =
  4269. function NetworkPdfManager_requestLoadedStream() {
  4270. this.streamManager.requestAllChunks();
  4271. };
  4272. NetworkPdfManager.prototype.onLoadedStream =
  4273. function NetworkPdfManager_getLoadedStream() {
  4274. return this.streamManager.onLoadedStream();
  4275. };
  4276. NetworkPdfManager.prototype.terminate =
  4277. function NetworkPdfManager_terminate() {
  4278. this.streamManager.networkManager.abortAllRequests();
  4279. };
  4280. return NetworkPdfManager;
  4281. })();
  4282. var Page = (function PageClosure() {
  4283. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  4284. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  4285. this.pdfManager = pdfManager;
  4286. this.pageIndex = pageIndex;
  4287. this.pageDict = pageDict;
  4288. this.xref = xref;
  4289. this.ref = ref;
  4290. this.fontCache = fontCache;
  4291. this.idCounters = {
  4292. obj: 0
  4293. };
  4294. this.resourcesPromise = null;
  4295. }
  4296. Page.prototype = {
  4297. getPageProp: function Page_getPageProp(key) {
  4298. return this.pageDict.get(key);
  4299. },
  4300. getInheritedPageProp: function Page_inheritPageProp(key) {
  4301. var dict = this.pageDict;
  4302. var value = dict.get(key);
  4303. while (value === undefined) {
  4304. dict = dict.get('Parent');
  4305. if (!dict) {
  4306. break;
  4307. }
  4308. value = dict.get(key);
  4309. }
  4310. return value;
  4311. },
  4312. get content() {
  4313. return this.getPageProp('Contents');
  4314. },
  4315. get resources() {
  4316. var value = this.getInheritedPageProp('Resources');
  4317. // For robustness: The spec states that a \Resources entry has to be
  4318. // present, but can be empty. Some document omit it still. In this case
  4319. // return an empty dictionary:
  4320. if (value === undefined) {
  4321. value = Dict.empty;
  4322. }
  4323. return shadow(this, 'resources', value);
  4324. },
  4325. get mediaBox() {
  4326. var obj = this.getInheritedPageProp('MediaBox');
  4327. // Reset invalid media box to letter size.
  4328. if (!isArray(obj) || obj.length !== 4) {
  4329. obj = LETTER_SIZE_MEDIABOX;
  4330. }
  4331. return shadow(this, 'mediaBox', obj);
  4332. },
  4333. get view() {
  4334. var mediaBox = this.mediaBox;
  4335. var cropBox = this.getInheritedPageProp('CropBox');
  4336. if (!isArray(cropBox) || cropBox.length !== 4) {
  4337. return shadow(this, 'view', mediaBox);
  4338. }
  4339. // From the spec, 6th ed., p.963:
  4340. // "The crop, bleed, trim, and art boxes should not ordinarily
  4341. // extend beyond the boundaries of the media box. If they do, they are
  4342. // effectively reduced to their intersection with the media box."
  4343. cropBox = Util.intersect(cropBox, mediaBox);
  4344. if (!cropBox) {
  4345. return shadow(this, 'view', mediaBox);
  4346. }
  4347. return shadow(this, 'view', cropBox);
  4348. },
  4349. get annotationRefs() {
  4350. return shadow(this, 'annotationRefs',
  4351. this.getInheritedPageProp('Annots'));
  4352. },
  4353. get rotate() {
  4354. var rotate = this.getInheritedPageProp('Rotate') || 0;
  4355. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  4356. if (rotate % 90 !== 0) {
  4357. rotate = 0;
  4358. } else if (rotate >= 360) {
  4359. rotate = rotate % 360;
  4360. } else if (rotate < 0) {
  4361. // The spec doesn't cover negatives, assume its counterclockwise
  4362. // rotation. The following is the other implementation of modulo.
  4363. rotate = ((rotate % 360) + 360) % 360;
  4364. }
  4365. return shadow(this, 'rotate', rotate);
  4366. },
  4367. getContentStream: function Page_getContentStream() {
  4368. var content = this.content;
  4369. var stream;
  4370. if (isArray(content)) {
  4371. // fetching items
  4372. var xref = this.xref;
  4373. var i, n = content.length;
  4374. var streams = [];
  4375. for (i = 0; i < n; ++i) {
  4376. streams.push(xref.fetchIfRef(content[i]));
  4377. }
  4378. stream = new StreamsSequenceStream(streams);
  4379. } else if (isStream(content)) {
  4380. stream = content;
  4381. } else {
  4382. // replacing non-existent page content with empty one
  4383. stream = new NullStream();
  4384. }
  4385. return stream;
  4386. },
  4387. loadResources: function(keys) {
  4388. if (!this.resourcesPromise) {
  4389. // TODO: add async getInheritedPageProp and remove this.
  4390. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  4391. }
  4392. var promise = new LegacyPromise();
  4393. this.resourcesPromise.then(function resourceSuccess() {
  4394. var objectLoader = new ObjectLoader(this.resources.map,
  4395. keys,
  4396. this.xref);
  4397. objectLoader.load().then(function objectLoaderSuccess() {
  4398. promise.resolve();
  4399. });
  4400. }.bind(this));
  4401. return promise;
  4402. },
  4403. getOperatorList: function Page_getOperatorList(handler, intent) {
  4404. var self = this;
  4405. var promise = new LegacyPromise();
  4406. function reject(e) {
  4407. promise.reject(e);
  4408. }
  4409. var pageListPromise = new LegacyPromise();
  4410. var pdfManager = this.pdfManager;
  4411. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4412. []);
  4413. var resourcesPromise = this.loadResources([
  4414. 'ExtGState',
  4415. 'ColorSpace',
  4416. 'Pattern',
  4417. 'Shading',
  4418. 'XObject',
  4419. 'Font'
  4420. // ProcSet
  4421. // Properties
  4422. ]);
  4423. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  4424. handler, this.pageIndex,
  4425. 'p' + this.pageIndex + '_',
  4426. this.idCounters,
  4427. this.fontCache);
  4428. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise],
  4429. reject);
  4430. dataPromises.then(function(data) {
  4431. var contentStream = data[0];
  4432. var opList = new OperatorList(intent, handler, self.pageIndex);
  4433. handler.send('StartRenderPage', {
  4434. transparency: partialEvaluator.hasBlendModes(self.resources),
  4435. pageIndex: self.pageIndex,
  4436. intent: intent
  4437. });
  4438. partialEvaluator.getOperatorList(contentStream, self.resources, opList);
  4439. pageListPromise.resolve(opList);
  4440. });
  4441. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  4442. Promise.all([pageListPromise, annotationsPromise]).then(function(datas) {
  4443. var pageOpList = datas[0];
  4444. var annotations = datas[1];
  4445. if (annotations.length === 0) {
  4446. pageOpList.flush(true);
  4447. promise.resolve(pageOpList);
  4448. return;
  4449. }
  4450. var annotationsReadyPromise = Annotation.appendToOperatorList(
  4451. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  4452. annotationsReadyPromise.then(function () {
  4453. pageOpList.flush(true);
  4454. promise.resolve(pageOpList);
  4455. }, reject);
  4456. }, reject);
  4457. return promise;
  4458. },
  4459. extractTextContent: function Page_extractTextContent() {
  4460. var handler = {
  4461. on: function nullHandlerOn() {},
  4462. send: function nullHandlerSend() {}
  4463. };
  4464. var self = this;
  4465. var pdfManager = this.pdfManager;
  4466. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4467. []);
  4468. var resourcesPromise = this.loadResources([
  4469. 'ExtGState',
  4470. 'XObject',
  4471. 'Font'
  4472. ]);
  4473. var dataPromises = Promise.all([contentStreamPromise,
  4474. resourcesPromise]);
  4475. return dataPromises.then(function(data) {
  4476. var contentStream = data[0];
  4477. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  4478. handler, self.pageIndex,
  4479. 'p' + self.pageIndex + '_',
  4480. self.idCounters,
  4481. self.fontCache);
  4482. return partialEvaluator.getTextContent(contentStream,
  4483. self.resources);
  4484. });
  4485. },
  4486. getAnnotationsData: function Page_getAnnotationsData() {
  4487. var annotations = this.annotations;
  4488. var annotationsData = [];
  4489. for (var i = 0, n = annotations.length; i < n; ++i) {
  4490. annotationsData.push(annotations[i].getData());
  4491. }
  4492. return annotationsData;
  4493. },
  4494. get annotations() {
  4495. var annotations = [];
  4496. var annotationRefs = (this.annotationRefs || []);
  4497. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  4498. var annotationRef = annotationRefs[i];
  4499. var annotation = Annotation.fromRef(this.xref, annotationRef);
  4500. if (annotation) {
  4501. annotations.push(annotation);
  4502. }
  4503. }
  4504. return shadow(this, 'annotations', annotations);
  4505. }
  4506. };
  4507. return Page;
  4508. })();
  4509. /**
  4510. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  4511. * `PDFDoc`, this one doesn't have any job management code.
  4512. * Right now there exists one PDFDocument on the main thread + one object
  4513. * for each worker. If there is no worker support enabled, there are two
  4514. * `PDFDocument` objects on the main thread created.
  4515. */
  4516. var PDFDocument = (function PDFDocumentClosure() {
  4517. function PDFDocument(pdfManager, arg, password) {
  4518. if (isStream(arg)) {
  4519. init.call(this, pdfManager, arg, password);
  4520. } else if (isArrayBuffer(arg)) {
  4521. init.call(this, pdfManager, new Stream(arg), password);
  4522. } else {
  4523. error('PDFDocument: Unknown argument type');
  4524. }
  4525. }
  4526. function init(pdfManager, stream, password) {
  4527. assert(stream.length > 0, 'stream must have data');
  4528. this.pdfManager = pdfManager;
  4529. this.stream = stream;
  4530. var xref = new XRef(this.stream, password, pdfManager);
  4531. this.xref = xref;
  4532. }
  4533. function find(stream, needle, limit, backwards) {
  4534. var pos = stream.pos;
  4535. var end = stream.end;
  4536. var strBuf = [];
  4537. if (pos + limit > end) {
  4538. limit = end - pos;
  4539. }
  4540. for (var n = 0; n < limit; ++n) {
  4541. strBuf.push(String.fromCharCode(stream.getByte()));
  4542. }
  4543. var str = strBuf.join('');
  4544. stream.pos = pos;
  4545. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  4546. if (index == -1) {
  4547. return false; /* not found */
  4548. }
  4549. stream.pos += index;
  4550. return true; /* found */
  4551. }
  4552. var DocumentInfoValidators = {
  4553. get entries() {
  4554. // Lazily build this since all the validation functions below are not
  4555. // defined until after this file loads.
  4556. return shadow(this, 'entries', {
  4557. Title: isString,
  4558. Author: isString,
  4559. Subject: isString,
  4560. Keywords: isString,
  4561. Creator: isString,
  4562. Producer: isString,
  4563. CreationDate: isString,
  4564. ModDate: isString,
  4565. Trapped: isName
  4566. });
  4567. }
  4568. };
  4569. PDFDocument.prototype = {
  4570. parse: function PDFDocument_parse(recoveryMode) {
  4571. this.setup(recoveryMode);
  4572. try {
  4573. // checking if AcroForm is present
  4574. this.acroForm = this.catalog.catDict.get('AcroForm');
  4575. if (this.acroForm) {
  4576. this.xfa = this.acroForm.get('XFA');
  4577. var fields = this.acroForm.get('Fields');
  4578. if ((!fields || !isArray(fields) || fields.length === 0) &&
  4579. !this.xfa) {
  4580. // no fields and no XFA -- not a form (?)
  4581. this.acroForm = null;
  4582. }
  4583. }
  4584. } catch (ex) {
  4585. info('Something wrong with AcroForm entry');
  4586. this.acroForm = null;
  4587. }
  4588. },
  4589. get linearization() {
  4590. var length = this.stream.length;
  4591. var linearization = false;
  4592. if (length) {
  4593. try {
  4594. linearization = new Linearization(this.stream);
  4595. if (linearization.length != length) {
  4596. linearization = false;
  4597. }
  4598. } catch (err) {
  4599. if (err instanceof MissingDataException) {
  4600. throw err;
  4601. }
  4602. info('The linearization data is not available ' +
  4603. 'or unreadable PDF data is found');
  4604. linearization = false;
  4605. }
  4606. }
  4607. // shadow the prototype getter with a data property
  4608. return shadow(this, 'linearization', linearization);
  4609. },
  4610. get startXRef() {
  4611. var stream = this.stream;
  4612. var startXRef = 0;
  4613. var linearization = this.linearization;
  4614. if (linearization) {
  4615. // Find end of first obj.
  4616. stream.reset();
  4617. if (find(stream, 'endobj', 1024)) {
  4618. startXRef = stream.pos + 6;
  4619. }
  4620. } else {
  4621. // Find startxref by jumping backward from the end of the file.
  4622. var step = 1024;
  4623. var found = false, pos = stream.end;
  4624. while (!found && pos > 0) {
  4625. pos -= step - 'startxref'.length;
  4626. if (pos < 0) {
  4627. pos = 0;
  4628. }
  4629. stream.pos = pos;
  4630. found = find(stream, 'startxref', step, true);
  4631. }
  4632. if (found) {
  4633. stream.skip(9);
  4634. var ch;
  4635. do {
  4636. ch = stream.getByte();
  4637. } while (Lexer.isSpace(ch));
  4638. var str = '';
  4639. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  4640. str += String.fromCharCode(ch);
  4641. ch = stream.getByte();
  4642. }
  4643. startXRef = parseInt(str, 10);
  4644. if (isNaN(startXRef)) {
  4645. startXRef = 0;
  4646. }
  4647. }
  4648. }
  4649. // shadow the prototype getter with a data property
  4650. return shadow(this, 'startXRef', startXRef);
  4651. },
  4652. get mainXRefEntriesOffset() {
  4653. var mainXRefEntriesOffset = 0;
  4654. var linearization = this.linearization;
  4655. if (linearization) {
  4656. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  4657. }
  4658. // shadow the prototype getter with a data property
  4659. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  4660. },
  4661. // Find the header, remove leading garbage and setup the stream
  4662. // starting from the header.
  4663. checkHeader: function PDFDocument_checkHeader() {
  4664. var stream = this.stream;
  4665. stream.reset();
  4666. if (find(stream, '%PDF-', 1024)) {
  4667. // Found the header, trim off any garbage before it.
  4668. stream.moveStart();
  4669. // Reading file format version
  4670. var MAX_VERSION_LENGTH = 12;
  4671. var version = '', ch;
  4672. while ((ch = stream.getByte()) > 0x20) { // SPACE
  4673. if (version.length >= MAX_VERSION_LENGTH) {
  4674. break;
  4675. }
  4676. version += String.fromCharCode(ch);
  4677. }
  4678. // removing "%PDF-"-prefix
  4679. this.pdfFormatVersion = version.substring(5);
  4680. return;
  4681. }
  4682. // May not be a PDF file, continue anyway.
  4683. },
  4684. parseStartXRef: function PDFDocument_parseStartXRef() {
  4685. var startXRef = this.startXRef;
  4686. this.xref.setStartXRef(startXRef);
  4687. },
  4688. setup: function PDFDocument_setup(recoveryMode) {
  4689. this.xref.parse(recoveryMode);
  4690. this.catalog = new Catalog(this.pdfManager, this.xref);
  4691. },
  4692. get numPages() {
  4693. var linearization = this.linearization;
  4694. var num = linearization ? linearization.numPages : this.catalog.numPages;
  4695. // shadow the prototype getter
  4696. return shadow(this, 'numPages', num);
  4697. },
  4698. get documentInfo() {
  4699. var docInfo = {
  4700. PDFFormatVersion: this.pdfFormatVersion,
  4701. IsAcroFormPresent: !!this.acroForm,
  4702. IsXFAPresent: !!this.xfa
  4703. };
  4704. var infoDict;
  4705. try {
  4706. infoDict = this.xref.trailer.get('Info');
  4707. } catch (err) {
  4708. info('The document information dictionary is invalid.');
  4709. }
  4710. if (infoDict) {
  4711. var validEntries = DocumentInfoValidators.entries;
  4712. // Only fill the document info with valid entries from the spec.
  4713. for (var key in validEntries) {
  4714. if (infoDict.has(key)) {
  4715. var value = infoDict.get(key);
  4716. // Make sure the value conforms to the spec.
  4717. if (validEntries[key](value)) {
  4718. docInfo[key] = (typeof value !== 'string' ?
  4719. value : stringToPDFString(value));
  4720. } else {
  4721. info('Bad value in document info for "' + key + '"');
  4722. }
  4723. }
  4724. }
  4725. }
  4726. return shadow(this, 'documentInfo', docInfo);
  4727. },
  4728. get fingerprint() {
  4729. var xref = this.xref, hash, fileID = '';
  4730. if (xref.trailer.has('ID')) {
  4731. hash = stringToBytes(xref.trailer.get('ID')[0]);
  4732. } else {
  4733. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  4734. }
  4735. for (var i = 0, n = hash.length; i < n; i++) {
  4736. fileID += hash[i].toString(16);
  4737. }
  4738. return shadow(this, 'fingerprint', fileID);
  4739. },
  4740. getPage: function PDFDocument_getPage(pageIndex) {
  4741. return this.catalog.getPage(pageIndex);
  4742. },
  4743. cleanup: function PDFDocument_cleanup() {
  4744. return this.catalog.cleanup();
  4745. }
  4746. };
  4747. return PDFDocument;
  4748. })();
  4749. var Name = (function NameClosure() {
  4750. function Name(name) {
  4751. this.name = name;
  4752. }
  4753. Name.prototype = {};
  4754. var nameCache = {};
  4755. Name.get = function Name_get(name) {
  4756. var nameValue = nameCache[name];
  4757. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  4758. };
  4759. return Name;
  4760. })();
  4761. var Cmd = (function CmdClosure() {
  4762. function Cmd(cmd) {
  4763. this.cmd = cmd;
  4764. }
  4765. Cmd.prototype = {};
  4766. var cmdCache = {};
  4767. Cmd.get = function Cmd_get(cmd) {
  4768. var cmdValue = cmdCache[cmd];
  4769. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  4770. };
  4771. return Cmd;
  4772. })();
  4773. var Dict = (function DictClosure() {
  4774. var nonSerializable = function nonSerializableClosure() {
  4775. return nonSerializable; // creating closure on some variable
  4776. };
  4777. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  4778. 'Background': true,
  4779. 'ExtGState': true,
  4780. 'Halftone': true,
  4781. 'Layout': true,
  4782. 'Mask': true,
  4783. 'Pagination': true,
  4784. 'Printing': true
  4785. };
  4786. function isRecursionAllowedFor(dict) {
  4787. if (!isName(dict.Type)) {
  4788. return true;
  4789. }
  4790. var dictType = dict.Type.name;
  4791. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  4792. }
  4793. // xref is optional
  4794. function Dict(xref) {
  4795. // Map should only be used internally, use functions below to access.
  4796. this.map = Object.create(null);
  4797. this.xref = xref;
  4798. this.objId = null;
  4799. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  4800. }
  4801. Dict.prototype = {
  4802. assignXref: function Dict_assignXref(newXref) {
  4803. this.xref = newXref;
  4804. },
  4805. // automatically dereferences Ref objects
  4806. get: function Dict_get(key1, key2, key3) {
  4807. var value;
  4808. var xref = this.xref;
  4809. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  4810. typeof key2 == 'undefined') {
  4811. return xref ? xref.fetchIfRef(value) : value;
  4812. }
  4813. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  4814. typeof key3 == 'undefined') {
  4815. return xref ? xref.fetchIfRef(value) : value;
  4816. }
  4817. value = this.map[key3] || null;
  4818. return xref ? xref.fetchIfRef(value) : value;
  4819. },
  4820. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  4821. getAsync: function Dict_getAsync(key1, key2, key3) {
  4822. var value;
  4823. var xref = this.xref;
  4824. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  4825. typeof key2 === undefined) {
  4826. if (xref) {
  4827. return xref.fetchIfRefAsync(value);
  4828. }
  4829. return Promise.resolve(value);
  4830. }
  4831. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  4832. typeof key3 === undefined) {
  4833. if (xref) {
  4834. return xref.fetchIfRefAsync(value);
  4835. }
  4836. return Promise.resolve(value);
  4837. }
  4838. value = this.map[key3] || null;
  4839. if (xref) {
  4840. return xref.fetchIfRefAsync(value);
  4841. }
  4842. return Promise.resolve(value);
  4843. },
  4844. // no dereferencing
  4845. getRaw: function Dict_getRaw(key) {
  4846. return this.map[key];
  4847. },
  4848. // creates new map and dereferences all Refs
  4849. getAll: function Dict_getAll() {
  4850. var all = Object.create(null);
  4851. var queue = null;
  4852. var key, obj;
  4853. for (key in this.map) {
  4854. obj = this.get(key);
  4855. if (obj instanceof Dict) {
  4856. if (isRecursionAllowedFor(obj)) {
  4857. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  4858. } else {
  4859. all[key] = this.getRaw(key);
  4860. }
  4861. } else {
  4862. all[key] = obj;
  4863. }
  4864. }
  4865. if (!queue) {
  4866. return all;
  4867. }
  4868. // trying to take cyclic references into the account
  4869. var processed = Object.create(null);
  4870. while (queue.length > 0) {
  4871. var item = queue.shift();
  4872. var itemObj = item.obj;
  4873. var objId = itemObj.objId;
  4874. if (objId && objId in processed) {
  4875. item.target[item.key] = processed[objId];
  4876. continue;
  4877. }
  4878. var dereferenced = Object.create(null);
  4879. for (key in itemObj.map) {
  4880. obj = itemObj.get(key);
  4881. if (obj instanceof Dict) {
  4882. if (isRecursionAllowedFor(obj)) {
  4883. queue.push({target: dereferenced, key: key, obj: obj});
  4884. } else {
  4885. dereferenced[key] = itemObj.getRaw(key);
  4886. }
  4887. } else {
  4888. dereferenced[key] = obj;
  4889. }
  4890. }
  4891. if (objId) {
  4892. processed[objId] = dereferenced;
  4893. }
  4894. item.target[item.key] = dereferenced;
  4895. }
  4896. return all;
  4897. },
  4898. set: function Dict_set(key, value) {
  4899. this.map[key] = value;
  4900. },
  4901. has: function Dict_has(key) {
  4902. return key in this.map;
  4903. },
  4904. forEach: function Dict_forEach(callback) {
  4905. for (var key in this.map) {
  4906. callback(key, this.get(key));
  4907. }
  4908. }
  4909. };
  4910. Dict.empty = new Dict(null);
  4911. return Dict;
  4912. })();
  4913. var Ref = (function RefClosure() {
  4914. function Ref(num, gen) {
  4915. this.num = num;
  4916. this.gen = gen;
  4917. }
  4918. Ref.prototype = {};
  4919. return Ref;
  4920. })();
  4921. // The reference is identified by number and generation.
  4922. // This structure stores only one instance of the reference.
  4923. var RefSet = (function RefSetClosure() {
  4924. function RefSet() {
  4925. this.dict = {};
  4926. }
  4927. RefSet.prototype = {
  4928. has: function RefSet_has(ref) {
  4929. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4930. },
  4931. put: function RefSet_put(ref) {
  4932. this.dict['R' + ref.num + '.' + ref.gen] = true;
  4933. },
  4934. remove: function RefSet_remove(ref) {
  4935. delete this.dict['R' + ref.num + '.' + ref.gen];
  4936. }
  4937. };
  4938. return RefSet;
  4939. })();
  4940. var RefSetCache = (function RefSetCacheClosure() {
  4941. function RefSetCache() {
  4942. this.dict = Object.create(null);
  4943. }
  4944. RefSetCache.prototype = {
  4945. get: function RefSetCache_get(ref) {
  4946. return this.dict['R' + ref.num + '.' + ref.gen];
  4947. },
  4948. has: function RefSetCache_has(ref) {
  4949. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4950. },
  4951. put: function RefSetCache_put(ref, obj) {
  4952. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  4953. },
  4954. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  4955. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  4956. },
  4957. forEach: function RefSetCache_forEach(fn, thisArg) {
  4958. for (var i in this.dict) {
  4959. fn.call(thisArg, this.dict[i]);
  4960. }
  4961. },
  4962. clear: function RefSetCache_clear() {
  4963. this.dict = Object.create(null);
  4964. }
  4965. };
  4966. return RefSetCache;
  4967. })();
  4968. var Catalog = (function CatalogClosure() {
  4969. function Catalog(pdfManager, xref) {
  4970. this.pdfManager = pdfManager;
  4971. this.xref = xref;
  4972. this.catDict = xref.getCatalogObj();
  4973. this.fontCache = new RefSetCache();
  4974. assert(isDict(this.catDict),
  4975. 'catalog object is not a dictionary');
  4976. this.pagePromises = [];
  4977. }
  4978. Catalog.prototype = {
  4979. get metadata() {
  4980. var streamRef = this.catDict.getRaw('Metadata');
  4981. if (!isRef(streamRef)) {
  4982. return shadow(this, 'metadata', null);
  4983. }
  4984. var encryptMetadata = (!this.xref.encrypt ? false :
  4985. this.xref.encrypt.encryptMetadata);
  4986. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  4987. var metadata;
  4988. if (stream && isDict(stream.dict)) {
  4989. var type = stream.dict.get('Type');
  4990. var subtype = stream.dict.get('Subtype');
  4991. if (isName(type) && isName(subtype) &&
  4992. type.name === 'Metadata' && subtype.name === 'XML') {
  4993. // XXX: This should examine the charset the XML document defines,
  4994. // however since there are currently no real means to decode
  4995. // arbitrary charsets, let's just hope that the author of the PDF
  4996. // was reasonable enough to stick with the XML default charset,
  4997. // which is UTF-8.
  4998. try {
  4999. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  5000. } catch (e) {
  5001. info('Skipping invalid metadata.');
  5002. }
  5003. }
  5004. }
  5005. return shadow(this, 'metadata', metadata);
  5006. },
  5007. get toplevelPagesDict() {
  5008. var pagesObj = this.catDict.get('Pages');
  5009. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  5010. // shadow the prototype getter
  5011. return shadow(this, 'toplevelPagesDict', pagesObj);
  5012. },
  5013. get documentOutline() {
  5014. var obj = null;
  5015. try {
  5016. obj = this.readDocumentOutline();
  5017. } catch (ex) {
  5018. if (ex instanceof MissingDataException) {
  5019. throw ex;
  5020. }
  5021. warn('Unable to read document outline');
  5022. }
  5023. return shadow(this, 'documentOutline', obj);
  5024. },
  5025. readDocumentOutline: function Catalog_readDocumentOutline() {
  5026. var xref = this.xref;
  5027. var obj = this.catDict.get('Outlines');
  5028. var root = { items: [] };
  5029. if (isDict(obj)) {
  5030. obj = obj.getRaw('First');
  5031. var processed = new RefSet();
  5032. if (isRef(obj)) {
  5033. var queue = [{obj: obj, parent: root}];
  5034. // to avoid recursion keeping track of the items
  5035. // in the processed dictionary
  5036. processed.put(obj);
  5037. while (queue.length > 0) {
  5038. var i = queue.shift();
  5039. var outlineDict = xref.fetchIfRef(i.obj);
  5040. if (outlineDict === null) {
  5041. continue;
  5042. }
  5043. if (!outlineDict.has('Title')) {
  5044. error('Invalid outline item');
  5045. }
  5046. var dest = outlineDict.get('A');
  5047. if (dest) {
  5048. dest = dest.get('D');
  5049. } else if (outlineDict.has('Dest')) {
  5050. dest = outlineDict.getRaw('Dest');
  5051. if (isName(dest)) {
  5052. dest = dest.name;
  5053. }
  5054. }
  5055. var title = outlineDict.get('Title');
  5056. var outlineItem = {
  5057. dest: dest,
  5058. title: stringToPDFString(title),
  5059. color: outlineDict.get('C') || [0, 0, 0],
  5060. count: outlineDict.get('Count'),
  5061. bold: !!(outlineDict.get('F') & 2),
  5062. italic: !!(outlineDict.get('F') & 1),
  5063. items: []
  5064. };
  5065. i.parent.items.push(outlineItem);
  5066. obj = outlineDict.getRaw('First');
  5067. if (isRef(obj) && !processed.has(obj)) {
  5068. queue.push({obj: obj, parent: outlineItem});
  5069. processed.put(obj);
  5070. }
  5071. obj = outlineDict.getRaw('Next');
  5072. if (isRef(obj) && !processed.has(obj)) {
  5073. queue.push({obj: obj, parent: i.parent});
  5074. processed.put(obj);
  5075. }
  5076. }
  5077. }
  5078. }
  5079. return (root.items.length > 0 ? root.items : null);
  5080. },
  5081. get numPages() {
  5082. var obj = this.toplevelPagesDict.get('Count');
  5083. assert(
  5084. isInt(obj),
  5085. 'page count in top level pages object is not an integer'
  5086. );
  5087. // shadow the prototype getter
  5088. return shadow(this, 'num', obj);
  5089. },
  5090. get destinations() {
  5091. function fetchDestination(dest) {
  5092. return isDict(dest) ? dest.get('D') : dest;
  5093. }
  5094. var xref = this.xref;
  5095. var dests = {}, nameTreeRef, nameDictionaryRef;
  5096. var obj = this.catDict.get('Names');
  5097. if (obj) {
  5098. nameTreeRef = obj.getRaw('Dests');
  5099. } else if (this.catDict.has('Dests')) {
  5100. nameDictionaryRef = this.catDict.get('Dests');
  5101. }
  5102. if (nameDictionaryRef) {
  5103. // reading simple destination dictionary
  5104. obj = nameDictionaryRef;
  5105. obj.forEach(function catalogForEach(key, value) {
  5106. if (!value) {
  5107. return;
  5108. }
  5109. dests[key] = fetchDestination(value);
  5110. });
  5111. }
  5112. if (nameTreeRef) {
  5113. var nameTree = new NameTree(nameTreeRef, xref);
  5114. var names = nameTree.getAll();
  5115. for (var name in names) {
  5116. if (!names.hasOwnProperty(name)) {
  5117. continue;
  5118. }
  5119. dests[name] = fetchDestination(names[name]);
  5120. }
  5121. }
  5122. return shadow(this, 'destinations', dests);
  5123. },
  5124. get attachments() {
  5125. var xref = this.xref;
  5126. var attachments, nameTreeRef;
  5127. var obj = this.catDict.get('Names');
  5128. if (obj) {
  5129. nameTreeRef = obj.getRaw('EmbeddedFiles');
  5130. }
  5131. if (nameTreeRef) {
  5132. var nameTree = new NameTree(nameTreeRef, xref);
  5133. var names = nameTree.getAll();
  5134. for (var name in names) {
  5135. if (!names.hasOwnProperty(name)) {
  5136. continue;
  5137. }
  5138. var fs = new FileSpec(names[name], xref);
  5139. if (!attachments) {
  5140. attachments = {};
  5141. }
  5142. attachments[stringToPDFString(name)] = fs.serializable;
  5143. }
  5144. }
  5145. return shadow(this, 'attachments', attachments);
  5146. },
  5147. get javaScript() {
  5148. var xref = this.xref;
  5149. var obj = this.catDict.get('Names');
  5150. var javaScript = [];
  5151. if (obj && obj.has('JavaScript')) {
  5152. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  5153. var names = nameTree.getAll();
  5154. for (var name in names) {
  5155. if (!names.hasOwnProperty(name)) {
  5156. continue;
  5157. }
  5158. // We don't really use the JavaScript right now. This code is
  5159. // defensive so we don't cause errors on document load.
  5160. var jsDict = names[name];
  5161. if (!isDict(jsDict)) {
  5162. continue;
  5163. }
  5164. var type = jsDict.get('S');
  5165. if (!isName(type) || type.name !== 'JavaScript') {
  5166. continue;
  5167. }
  5168. var js = jsDict.get('JS');
  5169. if (!isString(js) && !isStream(js)) {
  5170. continue;
  5171. }
  5172. if (isStream(js)) {
  5173. js = bytesToString(js.getBytes());
  5174. }
  5175. javaScript.push(stringToPDFString(js));
  5176. }
  5177. }
  5178. return shadow(this, 'javaScript', javaScript);
  5179. },
  5180. cleanup: function Catalog_cleanup() {
  5181. this.fontCache.forEach(function (font) {
  5182. delete font.sent;
  5183. delete font.translated;
  5184. });
  5185. this.fontCache.clear();
  5186. },
  5187. getPage: function Catalog_getPage(pageIndex) {
  5188. if (!(pageIndex in this.pagePromises)) {
  5189. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  5190. function (a) {
  5191. var dict = a[0];
  5192. var ref = a[1];
  5193. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  5194. this.fontCache);
  5195. }.bind(this)
  5196. );
  5197. }
  5198. return this.pagePromises[pageIndex];
  5199. },
  5200. getPageDict: function Catalog_getPageDict(pageIndex) {
  5201. var capability = createPromiseCapability();
  5202. var nodesToVisit = [this.catDict.getRaw('Pages')];
  5203. var currentPageIndex = 0;
  5204. var xref = this.xref;
  5205. function next() {
  5206. while (nodesToVisit.length) {
  5207. var currentNode = nodesToVisit.pop();
  5208. if (isRef(currentNode)) {
  5209. xref.fetchAsync(currentNode).then(function (obj) {
  5210. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  5211. if (pageIndex === currentPageIndex) {
  5212. capability.resolve([obj, currentNode]);
  5213. } else {
  5214. currentPageIndex++;
  5215. next();
  5216. }
  5217. return;
  5218. }
  5219. nodesToVisit.push(obj);
  5220. next();
  5221. }.bind(this), capability.reject.bind(capability));
  5222. return;
  5223. }
  5224. // must be a child page dictionary
  5225. assert(
  5226. isDict(currentNode),
  5227. 'page dictionary kid reference points to wrong type of object'
  5228. );
  5229. var count = currentNode.get('Count');
  5230. // Skip nodes where the page can't be.
  5231. if (currentPageIndex + count <= pageIndex) {
  5232. currentPageIndex += count;
  5233. continue;
  5234. }
  5235. var kids = currentNode.get('Kids');
  5236. assert(isArray(kids), 'page dictionary kids object is not an array');
  5237. if (count === kids.length) {
  5238. // Nodes that don't have the page have been skipped and this is the
  5239. // bottom of the tree which means the page requested must be a
  5240. // descendant of this pages node. Ideally we would just resolve the
  5241. // promise with the page ref here, but there is the case where more
  5242. // pages nodes could link to single a page (see issue 3666 pdf). To
  5243. // handle this push it back on the queue so if it is a pages node it
  5244. // will be descended into.
  5245. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  5246. currentPageIndex = pageIndex;
  5247. continue;
  5248. } else {
  5249. for (var last = kids.length - 1; last >= 0; last--) {
  5250. nodesToVisit.push(kids[last]);
  5251. }
  5252. }
  5253. }
  5254. capability.reject('Page index ' + pageIndex + ' not found.');
  5255. }
  5256. next();
  5257. return capability.promise;
  5258. },
  5259. getPageIndex: function Catalog_getPageIndex(ref) {
  5260. // The page tree nodes have the count of all the leaves below them. To get
  5261. // how many pages are before we just have to walk up the tree and keep
  5262. // adding the count of siblings to the left of the node.
  5263. var xref = this.xref;
  5264. function pagesBeforeRef(kidRef) {
  5265. var total = 0;
  5266. var parentRef;
  5267. return xref.fetchAsync(kidRef).then(function (node) {
  5268. if (!node) {
  5269. return null;
  5270. }
  5271. parentRef = node.getRaw('Parent');
  5272. return node.getAsync('Parent');
  5273. }).then(function (parent) {
  5274. if (!parent) {
  5275. return null;
  5276. }
  5277. return parent.getAsync('Kids');
  5278. }).then(function (kids) {
  5279. if (!kids) {
  5280. return null;
  5281. }
  5282. var kidPromises = [];
  5283. var found = false;
  5284. for (var i = 0; i < kids.length; i++) {
  5285. var kid = kids[i];
  5286. assert(isRef(kid), 'kids must be a ref');
  5287. if (kid.num == kidRef.num) {
  5288. found = true;
  5289. break;
  5290. }
  5291. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  5292. if (kid.has('Count')) {
  5293. var count = kid.get('Count');
  5294. total += count;
  5295. } else { // page leaf node
  5296. total++;
  5297. }
  5298. }));
  5299. }
  5300. if (!found) {
  5301. error('kid ref not found in parents kids');
  5302. }
  5303. return Promise.all(kidPromises).then(function () {
  5304. return [total, parentRef];
  5305. });
  5306. });
  5307. }
  5308. var total = 0;
  5309. function next(ref) {
  5310. return pagesBeforeRef(ref).then(function (args) {
  5311. if (!args) {
  5312. return total;
  5313. }
  5314. var count = args[0];
  5315. var parentRef = args[1];
  5316. total += count;
  5317. return next(parentRef);
  5318. });
  5319. }
  5320. return next(ref);
  5321. }
  5322. };
  5323. return Catalog;
  5324. })();
  5325. var XRef = (function XRefClosure() {
  5326. function XRef(stream, password) {
  5327. this.stream = stream;
  5328. this.entries = [];
  5329. this.xrefstms = {};
  5330. // prepare the XRef cache
  5331. this.cache = [];
  5332. this.password = password;
  5333. }
  5334. XRef.prototype = {
  5335. setStartXRef: function XRef_setStartXRef(startXRef) {
  5336. // Store the starting positions of xref tables as we process them
  5337. // so we can recover from missing data errors
  5338. this.startXRefQueue = [startXRef];
  5339. },
  5340. parse: function XRef_parse(recoveryMode) {
  5341. var trailerDict;
  5342. if (!recoveryMode) {
  5343. trailerDict = this.readXRef();
  5344. } else {
  5345. warn('Indexing all PDF objects');
  5346. trailerDict = this.indexObjects();
  5347. }
  5348. trailerDict.assignXref(this);
  5349. this.trailer = trailerDict;
  5350. var encrypt = trailerDict.get('Encrypt');
  5351. if (encrypt) {
  5352. var ids = trailerDict.get('ID');
  5353. var fileId = (ids && ids.length) ? ids[0] : '';
  5354. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  5355. this.password);
  5356. }
  5357. // get the root dictionary (catalog) object
  5358. if (!(this.root = trailerDict.get('Root'))) {
  5359. error('Invalid root reference');
  5360. }
  5361. },
  5362. processXRefTable: function XRef_processXRefTable(parser) {
  5363. if (!('tableState' in this)) {
  5364. // Stores state of the table as we process it so we can resume
  5365. // from middle of table in case of missing data error
  5366. this.tableState = {
  5367. entryNum: 0,
  5368. streamPos: parser.lexer.stream.pos,
  5369. parserBuf1: parser.buf1,
  5370. parserBuf2: parser.buf2
  5371. };
  5372. }
  5373. var obj = this.readXRefTable(parser);
  5374. // Sanity check
  5375. if (!isCmd(obj, 'trailer')) {
  5376. error('Invalid XRef table: could not find trailer dictionary');
  5377. }
  5378. // Read trailer dictionary, e.g.
  5379. // trailer
  5380. // << /Size 22
  5381. // /Root 20R
  5382. // /Info 10R
  5383. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  5384. // >>
  5385. // The parser goes through the entire stream << ... >> and provides
  5386. // a getter interface for the key-value table
  5387. var dict = parser.getObj();
  5388. if (!isDict(dict)) {
  5389. error('Invalid XRef table: could not parse trailer dictionary');
  5390. }
  5391. delete this.tableState;
  5392. return dict;
  5393. },
  5394. readXRefTable: function XRef_readXRefTable(parser) {
  5395. // Example of cross-reference table:
  5396. // xref
  5397. // 0 1 <-- subsection header (first obj #, obj count)
  5398. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  5399. // 23 2 <-- subsection header ... and so on ...
  5400. // 0000025518 00002 n
  5401. // 0000025635 00000 n
  5402. // trailer
  5403. // ...
  5404. var stream = parser.lexer.stream;
  5405. var tableState = this.tableState;
  5406. stream.pos = tableState.streamPos;
  5407. parser.buf1 = tableState.parserBuf1;
  5408. parser.buf2 = tableState.parserBuf2;
  5409. // Outer loop is over subsection headers
  5410. var obj;
  5411. while (true) {
  5412. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  5413. if (isCmd(obj = parser.getObj(), 'trailer')) {
  5414. break;
  5415. }
  5416. tableState.firstEntryNum = obj;
  5417. tableState.entryCount = parser.getObj();
  5418. }
  5419. var first = tableState.firstEntryNum;
  5420. var count = tableState.entryCount;
  5421. if (!isInt(first) || !isInt(count)) {
  5422. error('Invalid XRef table: wrong types in subsection header');
  5423. }
  5424. // Inner loop is over objects themselves
  5425. for (var i = tableState.entryNum; i < count; i++) {
  5426. tableState.streamPos = stream.pos;
  5427. tableState.entryNum = i;
  5428. tableState.parserBuf1 = parser.buf1;
  5429. tableState.parserBuf2 = parser.buf2;
  5430. var entry = {};
  5431. entry.offset = parser.getObj();
  5432. entry.gen = parser.getObj();
  5433. var type = parser.getObj();
  5434. if (isCmd(type, 'f')) {
  5435. entry.free = true;
  5436. } else if (isCmd(type, 'n')) {
  5437. entry.uncompressed = true;
  5438. }
  5439. // Validate entry obj
  5440. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  5441. !(entry.free || entry.uncompressed)) {
  5442. console.log(entry.offset, entry.gen, entry.free,
  5443. entry.uncompressed);
  5444. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  5445. }
  5446. if (!this.entries[i + first]) {
  5447. this.entries[i + first] = entry;
  5448. }
  5449. }
  5450. tableState.entryNum = 0;
  5451. tableState.streamPos = stream.pos;
  5452. tableState.parserBuf1 = parser.buf1;
  5453. tableState.parserBuf2 = parser.buf2;
  5454. delete tableState.firstEntryNum;
  5455. delete tableState.entryCount;
  5456. }
  5457. // Per issue 3248: hp scanners generate bad XRef
  5458. if (first === 1 && this.entries[1] && this.entries[1].free) {
  5459. // shifting the entries
  5460. this.entries.shift();
  5461. }
  5462. // Sanity check: as per spec, first object must be free
  5463. if (this.entries[0] && !this.entries[0].free) {
  5464. error('Invalid XRef table: unexpected first object');
  5465. }
  5466. return obj;
  5467. },
  5468. processXRefStream: function XRef_processXRefStream(stream) {
  5469. if (!('streamState' in this)) {
  5470. // Stores state of the stream as we process it so we can resume
  5471. // from middle of stream in case of missing data error
  5472. var streamParameters = stream.dict;
  5473. var byteWidths = streamParameters.get('W');
  5474. var range = streamParameters.get('Index');
  5475. if (!range) {
  5476. range = [0, streamParameters.get('Size')];
  5477. }
  5478. this.streamState = {
  5479. entryRanges: range,
  5480. byteWidths: byteWidths,
  5481. entryNum: 0,
  5482. streamPos: stream.pos
  5483. };
  5484. }
  5485. this.readXRefStream(stream);
  5486. delete this.streamState;
  5487. return stream.dict;
  5488. },
  5489. readXRefStream: function XRef_readXRefStream(stream) {
  5490. var i, j;
  5491. var streamState = this.streamState;
  5492. stream.pos = streamState.streamPos;
  5493. var byteWidths = streamState.byteWidths;
  5494. var typeFieldWidth = byteWidths[0];
  5495. var offsetFieldWidth = byteWidths[1];
  5496. var generationFieldWidth = byteWidths[2];
  5497. var entryRanges = streamState.entryRanges;
  5498. while (entryRanges.length > 0) {
  5499. var first = entryRanges[0];
  5500. var n = entryRanges[1];
  5501. if (!isInt(first) || !isInt(n)) {
  5502. error('Invalid XRef range fields: ' + first + ', ' + n);
  5503. }
  5504. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  5505. !isInt(generationFieldWidth)) {
  5506. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  5507. }
  5508. for (i = streamState.entryNum; i < n; ++i) {
  5509. streamState.entryNum = i;
  5510. streamState.streamPos = stream.pos;
  5511. var type = 0, offset = 0, generation = 0;
  5512. for (j = 0; j < typeFieldWidth; ++j) {
  5513. type = (type << 8) | stream.getByte();
  5514. }
  5515. // if type field is absent, its default value is 1
  5516. if (typeFieldWidth === 0) {
  5517. type = 1;
  5518. }
  5519. for (j = 0; j < offsetFieldWidth; ++j) {
  5520. offset = (offset << 8) | stream.getByte();
  5521. }
  5522. for (j = 0; j < generationFieldWidth; ++j) {
  5523. generation = (generation << 8) | stream.getByte();
  5524. }
  5525. var entry = {};
  5526. entry.offset = offset;
  5527. entry.gen = generation;
  5528. switch (type) {
  5529. case 0:
  5530. entry.free = true;
  5531. break;
  5532. case 1:
  5533. entry.uncompressed = true;
  5534. break;
  5535. case 2:
  5536. break;
  5537. default:
  5538. error('Invalid XRef entry type: ' + type);
  5539. }
  5540. if (!this.entries[first + i]) {
  5541. this.entries[first + i] = entry;
  5542. }
  5543. }
  5544. streamState.entryNum = 0;
  5545. streamState.streamPos = stream.pos;
  5546. entryRanges.splice(0, 2);
  5547. }
  5548. },
  5549. indexObjects: function XRef_indexObjects() {
  5550. // Simple scan through the PDF content to find objects,
  5551. // trailers and XRef streams.
  5552. function readToken(data, offset) {
  5553. var token = '', ch = data[offset];
  5554. while (ch !== 13 && ch !== 10) {
  5555. if (++offset >= data.length) {
  5556. break;
  5557. }
  5558. token += String.fromCharCode(ch);
  5559. ch = data[offset];
  5560. }
  5561. return token;
  5562. }
  5563. function skipUntil(data, offset, what) {
  5564. var length = what.length, dataLength = data.length;
  5565. var skipped = 0;
  5566. // finding byte sequence
  5567. while (offset < dataLength) {
  5568. var i = 0;
  5569. while (i < length && data[offset + i] == what[i]) {
  5570. ++i;
  5571. }
  5572. if (i >= length) {
  5573. break; // sequence found
  5574. }
  5575. offset++;
  5576. skipped++;
  5577. }
  5578. return skipped;
  5579. }
  5580. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  5581. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  5582. 101, 102]);
  5583. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  5584. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  5585. var stream = this.stream;
  5586. stream.pos = 0;
  5587. var buffer = stream.getBytes();
  5588. var position = stream.start, length = buffer.length;
  5589. var trailers = [], xrefStms = [];
  5590. while (position < length) {
  5591. var ch = buffer[position];
  5592. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  5593. ++position;
  5594. continue;
  5595. }
  5596. if (ch === 37) { // %-comment
  5597. do {
  5598. ++position;
  5599. if (position >= length) {
  5600. break;
  5601. }
  5602. ch = buffer[position];
  5603. } while (ch !== 13 && ch !== 10);
  5604. continue;
  5605. }
  5606. var token = readToken(buffer, position);
  5607. var m;
  5608. if (token === 'xref') {
  5609. position += skipUntil(buffer, position, trailerBytes);
  5610. trailers.push(position);
  5611. position += skipUntil(buffer, position, startxrefBytes);
  5612. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  5613. this.entries[m[1]] = {
  5614. offset: position,
  5615. gen: m[2] | 0,
  5616. uncompressed: true
  5617. };
  5618. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  5619. var content = buffer.subarray(position, position + contentLength);
  5620. // checking XRef stream suspect
  5621. // (it shall have '/XRef' and next char is not a letter)
  5622. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  5623. if (xrefTagOffset < contentLength &&
  5624. content[xrefTagOffset + 5] < 64) {
  5625. xrefStms.push(position);
  5626. this.xrefstms[position] = 1; // don't read it recursively
  5627. }
  5628. position += contentLength;
  5629. } else {
  5630. position += token.length + 1;
  5631. }
  5632. }
  5633. // reading XRef streams
  5634. var i, ii;
  5635. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  5636. this.startXRefQueue.push(xrefStms[i]);
  5637. this.readXRef(/* recoveryMode */ true);
  5638. }
  5639. // finding main trailer
  5640. var dict;
  5641. for (i = 0, ii = trailers.length; i < ii; ++i) {
  5642. stream.pos = trailers[i];
  5643. var parser = new Parser(new Lexer(stream), true, null);
  5644. var obj = parser.getObj();
  5645. if (!isCmd(obj, 'trailer')) {
  5646. continue;
  5647. }
  5648. // read the trailer dictionary
  5649. if (!isDict(dict = parser.getObj())) {
  5650. continue;
  5651. }
  5652. // taking the first one with 'ID'
  5653. if (dict.has('ID')) {
  5654. return dict;
  5655. }
  5656. }
  5657. // no tailer with 'ID', taking last one (if exists)
  5658. if (dict) {
  5659. return dict;
  5660. }
  5661. // nothing helps
  5662. // calling error() would reject worker with an UnknownErrorException.
  5663. throw new InvalidPDFException('Invalid PDF structure');
  5664. },
  5665. readXRef: function XRef_readXRef(recoveryMode) {
  5666. var stream = this.stream;
  5667. try {
  5668. while (this.startXRefQueue.length) {
  5669. var startXRef = this.startXRefQueue[0];
  5670. stream.pos = startXRef + stream.start;
  5671. var parser = new Parser(new Lexer(stream), true, null);
  5672. var obj = parser.getObj();
  5673. var dict;
  5674. // Get dictionary
  5675. if (isCmd(obj, 'xref')) {
  5676. // Parse end-of-file XRef
  5677. dict = this.processXRefTable(parser);
  5678. if (!this.topDict) {
  5679. this.topDict = dict;
  5680. }
  5681. // Recursively get other XRefs 'XRefStm', if any
  5682. obj = dict.get('XRefStm');
  5683. if (isInt(obj)) {
  5684. var pos = obj;
  5685. // ignore previously loaded xref streams
  5686. // (possible infinite recursion)
  5687. if (!(pos in this.xrefstms)) {
  5688. this.xrefstms[pos] = 1;
  5689. this.startXRefQueue.push(pos);
  5690. }
  5691. }
  5692. } else if (isInt(obj)) {
  5693. // Parse in-stream XRef
  5694. if (!isInt(parser.getObj()) ||
  5695. !isCmd(parser.getObj(), 'obj') ||
  5696. !isStream(obj = parser.getObj())) {
  5697. error('Invalid XRef stream');
  5698. }
  5699. dict = this.processXRefStream(obj);
  5700. if (!this.topDict) {
  5701. this.topDict = dict;
  5702. }
  5703. if (!dict) {
  5704. error('Failed to read XRef stream');
  5705. }
  5706. } else {
  5707. error('Invalid XRef stream header');
  5708. }
  5709. // Recursively get previous dictionary, if any
  5710. obj = dict.get('Prev');
  5711. if (isInt(obj)) {
  5712. this.startXRefQueue.push(obj);
  5713. } else if (isRef(obj)) {
  5714. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  5715. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  5716. this.startXRefQueue.push(obj.num);
  5717. }
  5718. this.startXRefQueue.shift();
  5719. }
  5720. return this.topDict;
  5721. } catch (e) {
  5722. if (e instanceof MissingDataException) {
  5723. throw e;
  5724. }
  5725. info('(while reading XRef): ' + e);
  5726. }
  5727. if (recoveryMode) {
  5728. return;
  5729. }
  5730. throw new XRefParseException();
  5731. },
  5732. getEntry: function XRef_getEntry(i) {
  5733. var xrefEntry = this.entries[i];
  5734. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  5735. return xrefEntry;
  5736. }
  5737. return null;
  5738. },
  5739. fetchIfRef: function XRef_fetchIfRef(obj) {
  5740. if (!isRef(obj)) {
  5741. return obj;
  5742. }
  5743. return this.fetch(obj);
  5744. },
  5745. fetch: function XRef_fetch(ref, suppressEncryption) {
  5746. assert(isRef(ref), 'ref object is not a reference');
  5747. var num = ref.num;
  5748. if (num in this.cache) {
  5749. var cacheEntry = this.cache[num];
  5750. return cacheEntry;
  5751. }
  5752. var xrefEntry = this.getEntry(num);
  5753. // the referenced entry can be free
  5754. if (xrefEntry === null) {
  5755. return (this.cache[num] = null);
  5756. }
  5757. if (xrefEntry.uncompressed) {
  5758. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  5759. } else {
  5760. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  5761. }
  5762. if (isDict(xrefEntry)) {
  5763. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  5764. }
  5765. return xrefEntry;
  5766. },
  5767. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  5768. suppressEncryption) {
  5769. var gen = ref.gen;
  5770. var num = ref.num;
  5771. if (xrefEntry.gen !== gen) {
  5772. error('inconsistent generation in XRef');
  5773. }
  5774. var stream = this.stream.makeSubStream(xrefEntry.offset +
  5775. this.stream.start);
  5776. var parser = new Parser(new Lexer(stream), true, this);
  5777. var obj1 = parser.getObj();
  5778. var obj2 = parser.getObj();
  5779. var obj3 = parser.getObj();
  5780. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  5781. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  5782. !isCmd(obj3)) {
  5783. error('bad XRef entry');
  5784. }
  5785. if (!isCmd(obj3, 'obj')) {
  5786. // some bad PDFs use "obj1234" and really mean 1234
  5787. if (obj3.cmd.indexOf('obj') === 0) {
  5788. num = parseInt(obj3.cmd.substring(3), 10);
  5789. if (!isNaN(num)) {
  5790. return num;
  5791. }
  5792. }
  5793. error('bad XRef entry');
  5794. }
  5795. if (this.encrypt && !suppressEncryption) {
  5796. try {
  5797. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  5798. gen));
  5799. } catch (ex) {
  5800. // Almost all streams must be encrypted, but sometimes
  5801. // they are not, probably due to some broken generators.
  5802. // Retrying without encryption...
  5803. return this.fetch(ref, true);
  5804. }
  5805. } else {
  5806. xrefEntry = parser.getObj();
  5807. }
  5808. if (!isStream(xrefEntry)) {
  5809. this.cache[num] = xrefEntry;
  5810. }
  5811. return xrefEntry;
  5812. },
  5813. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  5814. suppressEncryption) {
  5815. var tableOffset = xrefEntry.offset;
  5816. var stream = this.fetch(new Ref(tableOffset, 0));
  5817. if (!isStream(stream)) {
  5818. error('bad ObjStm stream');
  5819. }
  5820. var first = stream.dict.get('First');
  5821. var n = stream.dict.get('N');
  5822. if (!isInt(first) || !isInt(n)) {
  5823. error('invalid first and n parameters for ObjStm stream');
  5824. }
  5825. var parser = new Parser(new Lexer(stream), false, this);
  5826. parser.allowStreams = true;
  5827. var i, entries = [], num, nums = [];
  5828. // read the object numbers to populate cache
  5829. for (i = 0; i < n; ++i) {
  5830. num = parser.getObj();
  5831. if (!isInt(num)) {
  5832. error('invalid object number in the ObjStm stream: ' + num);
  5833. }
  5834. nums.push(num);
  5835. var offset = parser.getObj();
  5836. if (!isInt(offset)) {
  5837. error('invalid object offset in the ObjStm stream: ' + offset);
  5838. }
  5839. }
  5840. // read stream objects for cache
  5841. for (i = 0; i < n; ++i) {
  5842. entries.push(parser.getObj());
  5843. num = nums[i];
  5844. var entry = this.entries[num];
  5845. if (entry && entry.offset === tableOffset && entry.gen === i) {
  5846. this.cache[num] = entries[i];
  5847. }
  5848. }
  5849. xrefEntry = entries[xrefEntry.gen];
  5850. if (xrefEntry === undefined) {
  5851. error('bad XRef entry for compressed object');
  5852. }
  5853. return xrefEntry;
  5854. },
  5855. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  5856. if (!isRef(obj)) {
  5857. return Promise.resolve(obj);
  5858. }
  5859. return this.fetchAsync(obj);
  5860. },
  5861. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  5862. return new Promise(function (resolve, reject) {
  5863. var tryFetch = function () {
  5864. try {
  5865. resolve(this.fetch(ref, suppressEncryption));
  5866. } catch (e) {
  5867. if (e instanceof MissingDataException) {
  5868. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  5869. return;
  5870. }
  5871. reject(e);
  5872. }
  5873. }.bind(this);
  5874. tryFetch();
  5875. }.bind(this));
  5876. },
  5877. getCatalogObj: function XRef_getCatalogObj() {
  5878. return this.root;
  5879. }
  5880. };
  5881. return XRef;
  5882. })();
  5883. /**
  5884. * A NameTree is like a Dict but has some advantageous properties, see the
  5885. * spec (7.9.6) for more details.
  5886. * TODO: implement all the Dict functions and make this more efficent.
  5887. */
  5888. var NameTree = (function NameTreeClosure() {
  5889. function NameTree(root, xref) {
  5890. this.root = root;
  5891. this.xref = xref;
  5892. }
  5893. NameTree.prototype = {
  5894. getAll: function NameTree_getAll() {
  5895. var dict = {};
  5896. if (!this.root) {
  5897. return dict;
  5898. }
  5899. var xref = this.xref;
  5900. // reading name tree
  5901. var processed = new RefSet();
  5902. processed.put(this.root);
  5903. var queue = [this.root];
  5904. while (queue.length > 0) {
  5905. var i, n;
  5906. var obj = xref.fetchIfRef(queue.shift());
  5907. if (!isDict(obj)) {
  5908. continue;
  5909. }
  5910. if (obj.has('Kids')) {
  5911. var kids = obj.get('Kids');
  5912. for (i = 0, n = kids.length; i < n; i++) {
  5913. var kid = kids[i];
  5914. if (processed.has(kid)) {
  5915. error('invalid destinations');
  5916. }
  5917. queue.push(kid);
  5918. processed.put(kid);
  5919. }
  5920. continue;
  5921. }
  5922. var names = obj.get('Names');
  5923. if (names) {
  5924. for (i = 0, n = names.length; i < n; i += 2) {
  5925. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  5926. }
  5927. }
  5928. }
  5929. return dict;
  5930. }
  5931. };
  5932. return NameTree;
  5933. })();
  5934. /**
  5935. * "A PDF file can refer to the contents of another file by using a File
  5936. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  5937. * NOTE: Only embedded files are supported (as part of the attachments support)
  5938. * TODO: support the 'URL' file system (with caching if !/V), portable
  5939. * collections attributes and related files (/RF)
  5940. */
  5941. var FileSpec = (function FileSpecClosure() {
  5942. function FileSpec(root, xref) {
  5943. if (!root || !isDict(root)) {
  5944. return;
  5945. }
  5946. this.xref = xref;
  5947. this.root = root;
  5948. if (root.has('FS')) {
  5949. this.fs = root.get('FS');
  5950. }
  5951. this.description = root.has('Desc') ?
  5952. stringToPDFString(root.get('Desc')) :
  5953. '';
  5954. if (root.has('RF')) {
  5955. warn('Related file specifications are not supported');
  5956. }
  5957. this.contentAvailable = true;
  5958. if (!root.has('EF')) {
  5959. this.contentAvailable = false;
  5960. warn('Non-embedded file specifications are not supported');
  5961. }
  5962. }
  5963. function pickPlatformItem(dict) {
  5964. // Look for the filename in this order:
  5965. // UF, F, Unix, Mac, DOS
  5966. if (dict.has('UF')) {
  5967. return dict.get('UF');
  5968. } else if (dict.has('F')) {
  5969. return dict.get('F');
  5970. } else if (dict.has('Unix')) {
  5971. return dict.get('Unix');
  5972. } else if (dict.has('Mac')) {
  5973. return dict.get('Mac');
  5974. } else if (dict.has('DOS')) {
  5975. return dict.get('DOS');
  5976. } else {
  5977. return null;
  5978. }
  5979. }
  5980. FileSpec.prototype = {
  5981. get filename() {
  5982. if (!this._filename && this.root) {
  5983. var filename = pickPlatformItem(this.root) || 'unnamed';
  5984. this._filename = stringToPDFString(filename).
  5985. replace(/\\\\/g, '\\').
  5986. replace(/\\\//g, '/').
  5987. replace(/\\/g, '/');
  5988. }
  5989. return this._filename;
  5990. },
  5991. get content() {
  5992. if (!this.contentAvailable) {
  5993. return null;
  5994. }
  5995. if (!this.contentRef && this.root) {
  5996. this.contentRef = pickPlatformItem(this.root.get('EF'));
  5997. }
  5998. var content = null;
  5999. if (this.contentRef) {
  6000. var xref = this.xref;
  6001. var fileObj = xref.fetchIfRef(this.contentRef);
  6002. if (fileObj && isStream(fileObj)) {
  6003. content = fileObj.getBytes();
  6004. } else {
  6005. warn('Embedded file specification points to non-existing/invalid ' +
  6006. 'content');
  6007. }
  6008. } else {
  6009. warn('Embedded file specification does not have a content');
  6010. }
  6011. return content;
  6012. },
  6013. get serializable() {
  6014. return {
  6015. filename: this.filename,
  6016. content: this.content
  6017. };
  6018. }
  6019. };
  6020. return FileSpec;
  6021. })();
  6022. /**
  6023. * A helper for loading missing data in object graphs. It traverses the graph
  6024. * depth first and queues up any objects that have missing data. Once it has
  6025. * has traversed as many objects that are available it attempts to bundle the
  6026. * missing data requests and then resume from the nodes that weren't ready.
  6027. *
  6028. * NOTE: It provides protection from circular references by keeping track of
  6029. * of loaded references. However, you must be careful not to load any graphs
  6030. * that have references to the catalog or other pages since that will cause the
  6031. * entire PDF document object graph to be traversed.
  6032. */
  6033. var ObjectLoader = (function() {
  6034. function mayHaveChildren(value) {
  6035. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  6036. }
  6037. function addChildren(node, nodesToVisit) {
  6038. var value;
  6039. if (isDict(node) || isStream(node)) {
  6040. var map;
  6041. if (isDict(node)) {
  6042. map = node.map;
  6043. } else {
  6044. map = node.dict.map;
  6045. }
  6046. for (var key in map) {
  6047. value = map[key];
  6048. if (mayHaveChildren(value)) {
  6049. nodesToVisit.push(value);
  6050. }
  6051. }
  6052. } else if (isArray(node)) {
  6053. for (var i = 0, ii = node.length; i < ii; i++) {
  6054. value = node[i];
  6055. if (mayHaveChildren(value)) {
  6056. nodesToVisit.push(value);
  6057. }
  6058. }
  6059. }
  6060. }
  6061. function ObjectLoader(obj, keys, xref) {
  6062. this.obj = obj;
  6063. this.keys = keys;
  6064. this.xref = xref;
  6065. this.refSet = null;
  6066. }
  6067. ObjectLoader.prototype = {
  6068. load: function ObjectLoader_load() {
  6069. var keys = this.keys;
  6070. this.capability = createPromiseCapability();
  6071. // Don't walk the graph if all the data is already loaded.
  6072. if (!(this.xref.stream instanceof ChunkedStream) ||
  6073. this.xref.stream.getMissingChunks().length === 0) {
  6074. this.capability.resolve();
  6075. return this.capability.promise;
  6076. }
  6077. this.refSet = new RefSet();
  6078. // Setup the initial nodes to visit.
  6079. var nodesToVisit = [];
  6080. for (var i = 0; i < keys.length; i++) {
  6081. nodesToVisit.push(this.obj[keys[i]]);
  6082. }
  6083. this.walk(nodesToVisit);
  6084. return this.capability.promise;
  6085. },
  6086. walk: function ObjectLoader_walk(nodesToVisit) {
  6087. var nodesToRevisit = [];
  6088. var pendingRequests = [];
  6089. // DFS walk of the object graph.
  6090. while (nodesToVisit.length) {
  6091. var currentNode = nodesToVisit.pop();
  6092. // Only references or chunked streams can cause missing data exceptions.
  6093. if (isRef(currentNode)) {
  6094. // Skip nodes that have already been visited.
  6095. if (this.refSet.has(currentNode)) {
  6096. continue;
  6097. }
  6098. try {
  6099. var ref = currentNode;
  6100. this.refSet.put(ref);
  6101. currentNode = this.xref.fetch(currentNode);
  6102. } catch (e) {
  6103. if (!(e instanceof MissingDataException)) {
  6104. throw e;
  6105. }
  6106. nodesToRevisit.push(currentNode);
  6107. pendingRequests.push({ begin: e.begin, end: e.end });
  6108. }
  6109. }
  6110. if (currentNode && currentNode.getBaseStreams) {
  6111. var baseStreams = currentNode.getBaseStreams();
  6112. var foundMissingData = false;
  6113. for (var i = 0; i < baseStreams.length; i++) {
  6114. var stream = baseStreams[i];
  6115. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  6116. foundMissingData = true;
  6117. pendingRequests.push({
  6118. begin: stream.start,
  6119. end: stream.end
  6120. });
  6121. }
  6122. }
  6123. if (foundMissingData) {
  6124. nodesToRevisit.push(currentNode);
  6125. }
  6126. }
  6127. addChildren(currentNode, nodesToVisit);
  6128. }
  6129. if (pendingRequests.length) {
  6130. this.xref.stream.manager.requestRanges(pendingRequests,
  6131. function pendingRequestCallback() {
  6132. nodesToVisit = nodesToRevisit;
  6133. for (var i = 0; i < nodesToRevisit.length; i++) {
  6134. var node = nodesToRevisit[i];
  6135. // Remove any reference nodes from the currrent refset so they
  6136. // aren't skipped when we revist them.
  6137. if (isRef(node)) {
  6138. this.refSet.remove(node);
  6139. }
  6140. }
  6141. this.walk(nodesToVisit);
  6142. }.bind(this));
  6143. return;
  6144. }
  6145. // Everything is loaded.
  6146. this.refSet = null;
  6147. this.capability.resolve();
  6148. }
  6149. };
  6150. return ObjectLoader;
  6151. })();
  6152. var ISOAdobeCharset = [
  6153. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  6154. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  6155. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  6156. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  6157. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  6158. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  6159. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  6160. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  6161. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  6162. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  6163. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  6164. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  6165. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  6166. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  6167. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  6168. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  6169. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  6170. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  6171. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  6172. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  6173. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  6174. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  6175. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  6176. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  6177. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  6178. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  6179. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  6180. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  6181. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  6182. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  6183. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  6184. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  6185. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  6186. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  6187. ];
  6188. var ExpertCharset = [
  6189. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  6190. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  6191. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  6192. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  6193. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  6194. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  6195. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  6196. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  6197. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6198. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6199. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6200. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  6201. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  6202. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  6203. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  6204. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  6205. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  6206. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  6207. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  6208. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  6209. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  6210. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  6211. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6212. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6213. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6214. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6215. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6216. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6217. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  6218. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  6219. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  6220. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  6221. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  6222. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  6223. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  6224. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  6225. 'Ydieresissmall'
  6226. ];
  6227. var ExpertSubsetCharset = [
  6228. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  6229. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  6230. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  6231. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  6232. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  6233. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  6234. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  6235. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6236. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6237. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6238. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  6239. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  6240. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  6241. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6242. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6243. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6244. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6245. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6246. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6247. 'periodinferior', 'commainferior'
  6248. ];
  6249. var CIDToUnicodeMaps = {
  6250. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  6251. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  6252. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  6253. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  6254. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  6255. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  6256. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  6257. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  6258. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  6259. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  6260. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  6261. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  6262. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  6263. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  6264. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  6265. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  6266. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  6267. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  6268. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  6269. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  6270. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  6271. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  6272. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  6273. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  6274. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  6275. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  6276. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  6277. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  6278. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  6279. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  6280. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  6281. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  6282. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  6283. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  6284. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  6285. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  6286. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  6287. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  6288. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  6289. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  6290. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  6291. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  6292. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  6293. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  6294. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  6295. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  6296. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  6297. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  6298. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  6299. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  6300. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  6301. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  6302. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  6303. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  6304. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  6305. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  6306. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  6307. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  6308. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  6309. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  6310. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  6311. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  6312. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  6313. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  6314. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  6315. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  6316. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  6317. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  6318. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  6319. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  6320. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  6321. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  6322. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  6323. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  6324. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  6325. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  6326. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  6327. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  6328. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  6329. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  6330. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  6331. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  6332. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  6333. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  6334. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  6335. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  6336. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  6337. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  6338. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  6339. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  6340. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  6341. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  6342. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  6343. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  6344. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  6345. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  6346. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  6347. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  6348. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  6349. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  6350. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  6351. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  6352. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  6353. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  6354. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  6355. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  6356. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  6357. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  6358. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  6359. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  6360. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  6361. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  6362. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  6363. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  6364. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  6365. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  6366. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  6367. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  6368. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  6369. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  6370. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  6371. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  6372. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  6373. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  6374. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  6375. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  6376. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  6377. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  6378. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  6379. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  6380. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  6381. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  6382. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  6383. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  6384. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  6385. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  6386. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  6387. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  6388. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  6389. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  6390. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  6391. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  6392. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  6393. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  6394. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  6395. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  6396. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  6397. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  6398. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  6399. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  6400. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  6401. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  6402. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  6403. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  6404. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  6405. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  6406. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  6407. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  6408. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  6409. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  6410. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  6411. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  6412. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  6413. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  6414. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  6415. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  6416. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  6417. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  6418. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  6419. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  6420. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  6421. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  6422. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  6423. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  6424. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  6425. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  6426. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  6427. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  6428. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  6429. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  6430. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  6431. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  6432. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  6433. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  6434. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  6435. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  6436. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  6437. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  6438. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  6439. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  6440. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  6441. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  6442. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  6443. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  6444. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  6445. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  6446. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  6447. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  6448. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  6449. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  6450. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  6451. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  6452. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  6453. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  6454. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  6455. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  6456. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  6457. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  6458. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  6459. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  6460. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  6461. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  6462. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  6463. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  6464. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  6465. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  6466. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  6467. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  6468. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  6469. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  6470. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  6471. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  6472. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  6473. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  6474. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  6475. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  6476. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  6477. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  6478. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  6479. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  6480. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  6481. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  6482. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  6483. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  6484. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  6485. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  6486. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  6487. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  6488. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  6489. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  6490. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  6491. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  6492. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  6493. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  6494. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  6495. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  6496. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  6497. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  6498. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  6499. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  6500. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  6501. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  6502. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  6503. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  6504. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  6505. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  6506. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  6507. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  6508. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  6509. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  6510. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  6511. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  6512. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  6513. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  6514. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  6515. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  6516. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  6517. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  6518. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  6519. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  6520. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  6521. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  6522. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  6523. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  6524. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  6525. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  6526. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  6527. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  6528. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  6529. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  6530. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  6531. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  6532. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  6533. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  6534. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  6535. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  6536. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  6537. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  6538. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  6539. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  6540. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  6541. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  6542. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  6543. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  6544. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  6545. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  6546. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  6547. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  6548. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  6549. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  6550. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  6551. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  6552. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  6553. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  6554. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  6555. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  6556. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  6557. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  6558. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  6559. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  6560. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  6561. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  6562. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  6563. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  6564. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  6565. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  6566. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  6567. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  6568. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  6569. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  6570. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  6571. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  6572. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  6573. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  6574. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  6575. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  6576. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  6577. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  6578. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  6579. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  6580. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  6581. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  6582. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  6583. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  6584. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  6585. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  6586. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  6587. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  6588. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  6589. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  6590. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  6591. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  6592. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  6593. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  6594. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  6595. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  6596. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  6597. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  6598. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  6599. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  6600. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  6601. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  6602. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  6603. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  6604. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  6605. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  6606. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  6607. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  6608. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  6609. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  6610. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  6611. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  6612. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  6613. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  6614. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  6615. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  6616. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  6617. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  6618. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  6619. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  6620. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  6621. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  6622. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  6623. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  6624. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  6625. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  6626. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  6627. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  6628. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  6629. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  6630. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  6631. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  6632. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  6633. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  6634. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  6635. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  6636. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  6637. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  6638. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  6639. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  6640. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  6641. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  6642. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  6643. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  6644. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  6645. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  6646. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  6647. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  6648. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  6649. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  6650. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  6651. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  6652. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  6653. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  6654. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  6655. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  6656. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  6657. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  6658. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  6659. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  6660. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  6661. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  6662. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  6663. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  6664. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  6665. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  6666. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  6667. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  6668. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  6669. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  6670. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  6671. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  6672. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  6673. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  6674. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  6675. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  6676. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  6677. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  6678. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  6679. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  6680. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  6681. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  6682. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  6683. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  6684. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  6685. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  6686. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  6687. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  6688. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  6689. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  6690. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  6691. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  6692. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  6693. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  6694. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  6695. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  6696. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  6697. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  6698. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  6699. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  6700. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  6701. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  6702. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  6703. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  6704. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  6705. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  6706. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  6707. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  6708. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  6709. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  6710. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  6711. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  6712. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  6713. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  6714. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  6715. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  6716. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  6717. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  6718. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  6719. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  6720. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  6721. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  6722. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  6723. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  6724. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  6725. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  6726. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  6727. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  6728. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  6729. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  6730. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  6731. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  6732. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  6733. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  6734. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  6735. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  6736. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  6737. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  6738. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  6739. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  6740. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  6741. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  6742. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  6743. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  6744. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  6745. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  6746. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  6747. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  6748. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  6749. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  6750. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  6751. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  6752. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  6753. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  6754. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  6755. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  6756. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  6757. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  6758. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  6759. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  6760. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  6761. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  6762. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  6763. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  6764. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  6765. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  6766. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  6767. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  6768. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  6769. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  6770. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  6771. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  6772. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  6773. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  6774. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  6775. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  6776. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  6777. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  6778. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  6779. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  6780. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  6781. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  6782. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  6783. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  6784. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  6785. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  6786. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  6787. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  6788. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  6789. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  6790. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  6791. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  6792. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  6793. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  6794. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  6795. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  6796. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  6797. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  6798. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  6799. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  6800. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  6801. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  6802. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  6803. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  6804. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  6805. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  6806. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  6807. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  6808. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  6809. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  6810. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  6811. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  6812. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  6813. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  6814. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  6815. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  6816. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  6817. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  6818. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  6819. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  6820. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  6821. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  6822. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  6823. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  6824. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  6825. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  6826. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  6827. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  6828. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  6829. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  6830. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  6831. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  6832. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  6833. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  6834. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  6835. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  6836. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  6837. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  6838. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  6839. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  6840. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  6841. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  6842. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  6843. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  6844. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  6845. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  6846. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  6847. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  6848. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  6849. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  6850. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  6851. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  6852. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  6853. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  6854. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  6855. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  6856. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  6857. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  6858. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  6859. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  6860. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  6861. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  6862. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  6863. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  6864. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  6865. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  6866. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  6867. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  6868. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  6869. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  6870. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  6871. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  6872. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  6873. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  6874. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  6875. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  6876. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  6877. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  6878. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  6879. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  6880. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  6881. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  6882. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  6883. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  6884. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  6885. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  6886. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  6887. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  6888. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  6889. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  6890. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  6891. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  6892. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  6893. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  6894. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  6895. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  6896. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  6897. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  6898. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  6899. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  6900. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  6901. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  6902. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  6903. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  6904. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  6905. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  6906. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  6907. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  6908. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  6909. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  6910. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  6911. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  6912. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  6913. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  6914. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  6915. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  6916. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  6917. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  6918. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  6919. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  6920. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  6921. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  6922. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  6923. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  6924. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  6925. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  6926. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  6927. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  6928. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  6929. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  6930. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  6931. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  6932. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  6933. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  6934. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  6935. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  6936. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  6937. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  6938. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  6939. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  6940. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  6941. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  6942. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  6943. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  6944. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  6945. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  6946. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  6947. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  6948. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  6949. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  6950. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  6951. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  6952. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  6953. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  6954. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  6955. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  6956. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  6957. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  6958. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  6959. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  6960. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  6961. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  6962. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  6963. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  6964. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  6965. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  6966. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  6967. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  6968. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  6969. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  6970. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  6971. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  6972. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  6973. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  6974. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  6975. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  6976. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  6977. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  6978. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  6979. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  6980. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  6981. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  6982. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  6983. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  6984. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  6985. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  6986. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  6987. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  6988. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  6989. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  6990. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  6991. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  6992. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  6993. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  6994. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  6995. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  6996. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  6997. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  6998. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  6999. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  7000. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  7001. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  7002. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  7003. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  7004. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  7005. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  7006. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  7007. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  7008. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  7009. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  7010. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  7011. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  7012. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  7013. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  7014. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  7015. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  7016. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  7017. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  7018. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  7019. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  7020. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  7021. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  7022. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  7023. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  7024. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  7025. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  7026. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  7027. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  7028. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  7029. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  7030. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  7031. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  7032. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  7033. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  7034. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  7035. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  7036. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  7037. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  7038. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  7039. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  7040. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  7041. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  7042. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  7043. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  7044. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  7045. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  7046. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  7047. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  7048. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  7049. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  7050. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  7051. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  7052. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  7053. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  7054. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  7055. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  7056. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  7057. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  7058. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  7059. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  7060. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  7061. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  7062. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  7063. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  7064. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  7065. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  7066. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  7067. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  7068. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  7069. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  7070. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  7071. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  7072. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  7073. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  7074. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  7075. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  7076. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  7077. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  7078. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  7079. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  7080. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  7081. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  7082. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  7083. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  7084. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  7085. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  7086. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  7087. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  7088. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  7089. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  7090. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  7091. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  7092. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  7093. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  7094. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  7095. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  7096. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  7097. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  7098. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  7099. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  7100. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  7101. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  7102. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  7103. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  7104. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  7105. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  7106. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  7107. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  7108. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  7109. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  7110. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  7111. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  7112. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  7113. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  7114. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  7115. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  7116. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  7117. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  7118. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  7119. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  7120. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  7121. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  7122. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  7123. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  7124. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  7125. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  7126. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  7127. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  7128. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  7129. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  7130. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  7131. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  7132. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  7133. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  7134. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  7135. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  7136. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  7137. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  7138. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  7139. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  7140. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  7141. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  7142. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  7143. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  7144. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  7145. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  7146. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  7147. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  7148. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  7149. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  7150. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  7151. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  7152. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  7153. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  7154. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  7155. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  7156. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  7157. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  7158. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  7159. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  7160. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  7161. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  7162. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  7163. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  7164. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  7165. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  7166. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  7167. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  7168. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  7169. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  7170. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  7171. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  7172. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  7173. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  7174. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  7175. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  7176. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  7177. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  7178. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  7179. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  7180. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  7181. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  7182. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  7183. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  7184. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  7185. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  7186. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  7187. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  7188. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  7189. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  7190. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  7191. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  7192. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  7193. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  7194. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  7195. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  7196. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  7197. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  7198. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  7199. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  7200. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  7201. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  7202. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  7203. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  7204. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  7205. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  7206. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  7207. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  7208. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  7209. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  7210. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  7211. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  7212. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  7213. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  7214. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  7215. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  7216. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  7217. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  7218. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  7219. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  7220. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  7221. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  7222. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  7223. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  7224. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  7225. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  7226. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  7227. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  7228. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  7229. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  7230. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  7231. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  7232. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  7233. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  7234. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  7235. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  7236. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  7237. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  7238. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  7239. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  7240. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  7241. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  7242. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  7243. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  7244. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  7245. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  7246. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  7247. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  7248. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  7249. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  7250. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  7251. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  7252. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  7253. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  7254. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  7255. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  7256. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  7257. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  7258. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  7259. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  7260. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  7261. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  7262. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  7263. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  7264. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  7265. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  7266. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  7267. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  7268. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  7269. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  7270. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  7271. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  7272. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  7273. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  7274. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  7275. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  7276. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  7277. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  7278. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  7279. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  7280. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  7281. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  7282. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  7283. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  7284. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  7285. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  7286. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  7287. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  7288. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  7289. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  7290. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  7291. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  7292. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  7293. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  7294. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  7295. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  7296. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  7297. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  7298. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  7299. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  7300. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  7301. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  7302. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  7303. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  7304. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  7305. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  7306. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  7307. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  7308. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  7309. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  7310. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  7311. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  7312. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  7313. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  7314. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  7315. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  7316. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  7317. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  7318. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  7319. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  7320. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  7321. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  7322. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  7323. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  7324. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  7325. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  7326. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  7327. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  7328. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  7329. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  7330. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  7331. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  7332. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  7333. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  7334. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  7335. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  7336. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  7337. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  7338. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  7339. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  7340. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  7341. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  7342. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  7343. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  7344. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  7345. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  7346. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  7347. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  7348. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  7349. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  7350. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  7351. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  7352. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  7353. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  7354. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  7355. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  7356. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  7357. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  7358. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  7359. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  7360. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  7361. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  7362. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  7363. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  7364. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  7365. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  7366. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  7367. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  7368. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  7369. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  7370. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  7371. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  7372. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  7373. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  7374. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  7375. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  7376. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  7377. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  7378. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  7379. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  7380. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  7381. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  7382. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  7383. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  7384. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  7385. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  7386. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  7387. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  7388. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  7389. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  7390. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  7391. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  7392. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  7393. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  7394. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  7395. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  7396. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  7397. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  7398. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  7399. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  7400. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  7401. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  7402. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  7403. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  7404. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  7405. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  7406. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  7407. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  7408. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  7409. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  7410. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  7411. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  7412. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  7413. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  7414. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  7415. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  7416. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  7417. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  7418. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  7419. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  7420. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  7421. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  7422. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  7423. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  7424. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  7425. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  7426. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  7427. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  7428. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  7429. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  7430. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  7431. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  7432. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  7433. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  7434. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  7435. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  7436. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  7437. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  7438. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  7439. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  7440. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  7441. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  7442. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  7443. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  7444. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  7445. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  7446. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  7447. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  7448. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  7449. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  7450. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  7451. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  7452. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  7453. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  7454. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  7455. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  7456. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  7457. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  7458. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  7459. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  7460. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  7461. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  7462. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  7463. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  7464. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  7465. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  7466. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  7467. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  7468. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  7469. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  7470. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  7471. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  7472. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  7473. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  7474. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  7475. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  7476. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  7477. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  7478. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  7479. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  7480. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  7481. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  7482. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  7483. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  7484. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  7485. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  7486. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  7487. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  7488. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  7489. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  7490. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  7491. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  7492. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  7493. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  7494. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  7495. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  7496. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  7497. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  7498. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  7499. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  7500. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  7501. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  7502. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  7503. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  7504. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  7505. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  7506. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  7507. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  7508. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  7509. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  7510. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  7511. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  7512. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  7513. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  7514. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  7515. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  7516. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  7517. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  7518. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  7519. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  7520. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  7521. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  7522. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  7523. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  7524. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  7525. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  7526. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  7527. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  7528. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  7529. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  7530. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  7531. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  7532. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  7533. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  7534. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  7535. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  7536. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  7537. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  7538. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  7539. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  7540. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  7541. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  7542. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  7543. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  7544. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  7545. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  7546. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  7547. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  7548. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  7549. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  7550. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  7551. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  7552. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  7553. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  7554. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  7555. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  7556. 38315, 38741, 171581, 173594],
  7557. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  7558. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  7559. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  7560. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  7561. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  7562. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  7563. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  7564. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  7565. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  7566. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  7567. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  7568. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  7569. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  7570. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  7571. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  7572. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  7573. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  7574. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  7575. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  7576. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  7577. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  7578. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  7579. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  7580. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  7581. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  7582. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  7583. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  7584. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  7585. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  7586. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  7587. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  7588. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  7589. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  7590. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  7591. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  7592. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  7593. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  7594. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  7595. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  7596. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  7597. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  7598. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  7599. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  7600. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  7601. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  7602. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  7603. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  7604. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  7605. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  7606. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  7607. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  7608. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  7609. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  7610. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  7611. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  7612. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  7613. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  7614. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  7615. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  7616. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  7617. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  7618. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  7619. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  7620. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  7621. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  7622. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  7623. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  7624. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  7625. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  7626. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  7627. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  7628. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  7629. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  7630. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  7631. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  7632. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  7633. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  7634. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  7635. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  7636. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  7637. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  7638. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  7639. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  7640. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  7641. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  7642. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  7643. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  7644. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  7645. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  7646. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  7647. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  7648. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  7649. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  7650. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  7651. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  7652. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  7653. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  7654. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  7655. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  7656. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  7657. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  7658. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  7659. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  7660. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  7661. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  7662. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  7663. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  7664. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  7665. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  7666. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  7667. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  7668. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  7669. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  7670. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  7671. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  7672. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  7673. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  7674. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  7675. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  7676. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  7677. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  7678. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  7679. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  7680. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  7681. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  7682. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  7683. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  7684. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  7685. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  7686. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  7687. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  7688. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  7689. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  7690. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  7691. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  7692. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  7693. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  7694. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  7695. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  7696. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  7697. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  7698. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  7699. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  7700. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  7701. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  7702. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  7703. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  7704. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  7705. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  7706. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  7707. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  7708. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  7709. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  7710. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  7711. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  7712. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  7713. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  7714. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  7715. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  7716. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  7717. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  7718. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  7719. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  7720. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  7721. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  7722. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  7723. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  7724. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  7725. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  7726. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  7727. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  7728. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  7729. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  7730. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  7731. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  7732. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  7733. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  7734. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  7735. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  7736. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  7737. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  7738. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  7739. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  7740. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  7741. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  7742. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  7743. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  7744. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  7745. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  7746. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  7747. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  7748. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  7749. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  7750. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  7751. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  7752. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  7753. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  7754. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  7755. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  7756. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  7757. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  7758. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  7759. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  7760. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  7761. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  7762. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  7763. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  7764. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  7765. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  7766. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  7767. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  7768. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  7769. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  7770. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  7771. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  7772. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  7773. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  7774. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  7775. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  7776. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  7777. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  7778. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  7779. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  7780. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  7781. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  7782. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  7783. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  7784. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  7785. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  7786. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  7787. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  7788. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  7789. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  7790. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  7791. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  7792. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  7793. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  7794. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  7795. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  7796. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  7797. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  7798. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  7799. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  7800. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  7801. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  7802. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  7803. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  7804. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  7805. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  7806. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  7807. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  7808. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  7809. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  7810. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  7811. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  7812. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  7813. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  7814. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  7815. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  7816. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  7817. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  7818. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  7819. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  7820. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  7821. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  7822. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  7823. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  7824. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  7825. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  7826. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  7827. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  7828. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  7829. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  7830. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  7831. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  7832. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  7833. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  7834. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  7835. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  7836. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  7837. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  7838. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  7839. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  7840. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  7841. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  7842. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  7843. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  7844. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  7845. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  7846. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  7847. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  7848. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  7849. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  7850. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  7851. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  7852. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  7853. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  7854. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  7855. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  7856. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  7857. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  7858. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  7859. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  7860. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  7861. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  7862. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  7863. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  7864. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  7865. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  7866. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  7867. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  7868. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  7869. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  7870. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  7871. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  7872. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  7873. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  7874. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  7875. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  7876. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  7877. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  7878. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  7879. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  7880. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  7881. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  7882. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  7883. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  7884. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  7885. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  7886. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  7887. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  7888. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  7889. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  7890. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  7891. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  7892. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  7893. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  7894. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  7895. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  7896. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  7897. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  7898. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  7899. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  7900. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  7901. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  7902. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  7903. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  7904. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  7905. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  7906. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  7907. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  7908. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  7909. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  7910. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  7911. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  7912. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  7913. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  7914. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  7915. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  7916. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  7917. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  7918. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  7919. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  7920. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  7921. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  7922. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  7923. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  7924. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  7925. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  7926. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  7927. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  7928. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  7929. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  7930. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  7931. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  7932. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  7933. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  7934. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  7935. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  7936. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  7937. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  7938. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  7939. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  7940. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  7941. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  7942. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  7943. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  7944. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  7945. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  7946. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  7947. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  7948. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  7949. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  7950. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  7951. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  7952. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  7953. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  7954. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  7955. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  7956. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  7957. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  7958. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  7959. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  7960. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  7961. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  7962. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  7963. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  7964. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  7965. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  7966. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  7967. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  7968. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  7969. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  7970. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  7971. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  7972. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  7973. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  7974. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  7975. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  7976. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  7977. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  7978. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  7979. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  7980. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  7981. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  7982. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  7983. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  7984. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  7985. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  7986. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  7987. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  7988. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  7989. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  7990. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  7991. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  7992. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  7993. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  7994. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  7995. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  7996. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  7997. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  7998. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  7999. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  8000. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  8001. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  8002. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  8003. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  8004. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  8005. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  8006. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  8007. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  8008. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  8009. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  8010. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  8011. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  8012. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  8013. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  8014. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  8015. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  8016. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  8017. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  8018. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  8019. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  8020. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  8021. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  8022. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  8023. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  8024. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  8025. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  8026. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  8027. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  8028. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  8029. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  8030. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  8031. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  8032. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  8033. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  8034. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  8035. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  8036. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  8037. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  8038. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  8039. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  8040. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  8041. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  8042. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  8043. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  8044. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  8045. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  8046. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  8047. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  8048. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  8049. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  8050. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  8051. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  8052. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  8053. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  8054. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  8055. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  8056. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  8057. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  8058. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  8059. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  8060. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  8061. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  8062. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  8063. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  8064. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  8065. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  8066. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  8067. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  8068. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  8069. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  8070. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  8071. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  8072. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  8073. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  8074. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  8075. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  8076. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  8077. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  8078. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  8079. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  8080. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  8081. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  8082. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  8083. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  8084. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  8085. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  8086. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  8087. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  8088. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  8089. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  8090. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  8091. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  8092. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  8093. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  8094. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  8095. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  8096. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  8097. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  8098. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  8099. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  8100. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  8101. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  8102. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  8103. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  8104. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  8105. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  8106. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  8107. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  8108. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  8109. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  8110. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  8111. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  8112. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  8113. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  8114. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  8115. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  8116. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  8117. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  8118. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  8119. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  8120. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  8121. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  8122. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  8123. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  8124. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  8125. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  8126. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  8127. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  8128. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  8129. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  8130. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  8131. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  8132. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  8133. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  8134. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  8135. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  8136. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  8137. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  8138. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  8139. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  8140. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  8141. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  8142. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  8143. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  8144. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  8145. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  8146. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  8147. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  8148. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  8149. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  8150. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  8151. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  8152. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  8153. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  8154. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  8155. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  8156. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  8157. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  8158. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  8159. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  8160. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  8161. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  8162. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  8163. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  8164. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  8165. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  8166. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  8167. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  8168. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  8169. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  8170. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  8171. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  8172. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  8173. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  8174. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  8175. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  8176. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  8177. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  8178. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  8179. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  8180. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  8181. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  8182. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  8183. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  8184. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  8185. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  8186. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  8187. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  8188. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  8189. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  8190. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  8191. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  8192. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  8193. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  8194. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  8195. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  8196. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  8197. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  8198. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  8199. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  8200. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  8201. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  8202. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  8203. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  8204. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  8205. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  8206. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  8207. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  8208. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  8209. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  8210. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  8211. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  8212. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  8213. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  8214. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  8215. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  8216. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  8217. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  8218. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  8219. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  8220. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  8221. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  8222. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  8223. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  8224. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  8225. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  8226. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  8227. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  8228. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  8229. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  8230. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  8231. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  8232. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  8233. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  8234. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  8235. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  8236. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  8237. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  8238. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  8239. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  8240. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  8241. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  8242. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  8243. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  8244. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  8245. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  8246. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  8247. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  8248. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  8249. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  8250. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  8251. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  8252. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  8253. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  8254. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  8255. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  8256. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  8257. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  8258. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  8259. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  8260. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  8261. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  8262. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  8263. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  8264. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  8265. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  8266. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  8267. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  8268. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  8269. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  8270. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  8271. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  8272. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  8273. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  8274. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  8275. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  8276. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  8277. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  8278. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  8279. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  8280. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  8281. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  8282. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  8283. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  8284. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  8285. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  8286. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  8287. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  8288. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  8289. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  8290. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  8291. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  8292. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  8293. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  8294. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  8295. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  8296. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  8297. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  8298. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  8299. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  8300. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  8301. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  8302. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  8303. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  8304. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  8305. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  8306. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  8307. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  8308. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  8309. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  8310. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  8311. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  8312. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  8313. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  8314. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  8315. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  8316. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  8317. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  8318. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  8319. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  8320. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  8321. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  8322. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  8323. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  8324. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  8325. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  8326. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  8327. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  8328. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  8329. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  8330. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  8331. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  8332. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  8333. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  8334. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  8335. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  8336. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  8337. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  8338. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  8339. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  8340. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  8341. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  8342. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  8343. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  8344. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  8345. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  8346. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  8347. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  8348. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  8349. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  8350. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  8351. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  8352. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  8353. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  8354. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  8355. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  8356. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  8357. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  8358. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  8359. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  8360. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  8361. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  8362. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  8363. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  8364. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  8365. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  8366. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  8367. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  8368. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  8369. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  8370. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  8371. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  8372. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  8373. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  8374. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  8375. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  8376. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  8377. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  8378. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  8379. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  8380. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  8381. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  8382. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  8383. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  8384. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  8385. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  8386. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  8387. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  8388. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  8389. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  8390. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  8391. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  8392. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  8393. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  8394. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  8395. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  8396. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  8397. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  8398. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  8399. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  8400. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  8401. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  8402. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  8403. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  8404. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  8405. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  8406. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  8407. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  8408. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  8409. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  8410. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  8411. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  8412. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  8413. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  8414. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  8415. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  8416. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  8417. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  8418. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  8419. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  8420. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  8421. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  8422. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  8423. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  8424. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  8425. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  8426. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  8427. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  8428. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  8429. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  8430. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  8431. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  8432. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  8433. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  8434. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  8435. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  8436. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  8437. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  8438. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  8439. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  8440. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  8441. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  8442. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  8443. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  8444. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  8445. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  8446. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  8447. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  8448. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  8449. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  8450. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  8451. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  8452. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  8453. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  8454. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  8455. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  8456. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  8457. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  8458. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  8459. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  8460. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  8461. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  8462. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  8463. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  8464. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  8465. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  8466. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  8467. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  8468. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  8469. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  8470. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  8471. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  8472. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  8473. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  8474. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  8475. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  8476. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  8477. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  8478. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  8479. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  8480. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  8481. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  8482. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  8483. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  8484. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  8485. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  8486. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  8487. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  8488. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  8489. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  8490. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  8491. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  8492. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  8493. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  8494. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  8495. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  8496. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  8497. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  8498. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  8499. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  8500. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  8501. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  8502. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  8503. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  8504. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  8505. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  8506. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  8507. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  8508. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  8509. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  8510. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  8511. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  8512. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  8513. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  8514. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  8515. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  8516. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  8517. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  8518. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  8519. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  8520. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  8521. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  8522. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  8523. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  8524. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  8525. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  8526. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  8527. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  8528. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  8529. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  8530. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  8531. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  8532. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  8533. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  8534. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  8535. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  8536. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  8537. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  8538. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  8539. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  8540. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  8541. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  8542. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  8543. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  8544. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  8545. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  8546. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  8547. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  8548. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  8549. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  8550. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  8551. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  8552. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  8553. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  8554. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  8555. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  8556. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  8557. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  8558. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  8559. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  8560. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  8561. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  8562. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  8563. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  8564. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  8565. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  8566. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  8567. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  8568. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  8569. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  8570. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  8571. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  8572. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  8573. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  8574. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  8575. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  8576. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  8577. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  8578. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  8579. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  8580. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  8581. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  8582. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  8583. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  8584. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  8585. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  8586. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  8587. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  8588. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  8589. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  8590. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  8591. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  8592. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  8593. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  8594. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  8595. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  8596. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  8597. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  8598. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  8599. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  8600. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  8601. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  8602. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  8603. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  8604. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  8605. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  8606. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  8607. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  8608. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  8609. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  8610. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  8611. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  8612. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  8613. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  8614. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  8615. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  8616. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  8617. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  8618. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  8619. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  8620. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  8621. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  8622. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  8623. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  8624. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  8625. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  8626. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  8627. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  8628. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  8629. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  8630. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  8631. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  8632. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  8633. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  8634. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  8635. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  8636. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  8637. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  8638. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  8639. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  8640. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  8641. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  8642. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  8643. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  8644. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  8645. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  8646. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  8647. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  8648. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  8649. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  8650. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  8651. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  8652. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  8653. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  8654. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  8655. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  8656. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  8657. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  8658. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  8659. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  8660. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  8661. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  8662. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  8663. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  8664. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  8665. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  8666. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  8667. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  8668. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  8669. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  8670. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  8671. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  8672. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  8673. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  8674. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  8675. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  8676. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  8677. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  8678. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  8679. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  8680. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  8681. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  8682. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  8683. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  8684. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  8685. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  8686. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  8687. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  8688. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  8689. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  8690. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  8691. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  8692. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  8693. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  8694. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  8695. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  8696. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  8697. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  8698. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  8699. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  8700. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  8701. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  8702. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  8703. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  8704. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  8705. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  8706. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  8707. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  8708. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  8709. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  8710. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  8711. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  8712. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  8713. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  8714. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  8715. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  8716. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  8717. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  8718. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  8719. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  8720. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  8721. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  8722. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  8723. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  8724. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  8725. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  8726. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  8727. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  8728. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  8729. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  8730. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  8731. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  8732. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  8733. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  8734. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  8735. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  8736. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  8737. {f: 6, c: 55198}],
  8738. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  8739. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  8740. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  8741. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  8742. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  8743. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  8744. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  8745. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  8746. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  8747. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  8748. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  8749. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  8750. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  8751. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  8752. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  8753. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  8754. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  8755. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  8756. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  8757. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  8758. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  8759. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  8760. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  8761. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  8762. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  8763. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  8764. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  8765. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  8766. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  8767. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  8768. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  8769. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  8770. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  8771. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  8772. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  8773. [12057, 21353, 63192], [12059, 21430, 63193],
  8774. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  8775. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  8776. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  8777. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  8778. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  8779. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  8780. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  8781. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  8782. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  8783. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  8784. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  8785. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  8786. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  8787. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  8788. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  8789. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  8790. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  8791. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  8792. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  8793. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  8794. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  8795. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  8796. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  8797. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  8798. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  8799. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  8800. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  8801. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  8802. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  8803. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  8804. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  8805. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  8806. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  8807. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  8808. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  8809. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  8810. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  8811. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  8812. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  8813. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  8814. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  8815. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  8816. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  8817. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  8818. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  8819. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  8820. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  8821. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  8822. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  8823. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  8824. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  8825. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  8826. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  8827. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  8828. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  8829. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  8830. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  8831. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  8832. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  8833. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  8834. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  8835. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  8836. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  8837. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  8838. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  8839. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  8840. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  8841. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  8842. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  8843. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  8844. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  8845. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  8846. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  8847. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  8848. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  8849. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  8850. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  8851. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  8852. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  8853. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  8854. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  8855. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  8856. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  8857. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  8858. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  8859. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  8860. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  8861. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  8862. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  8863. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  8864. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  8865. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  8866. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  8867. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  8868. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  8869. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  8870. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  8871. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  8872. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  8873. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  8874. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  8875. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  8876. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  8877. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  8878. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  8879. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  8880. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  8881. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  8882. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  8883. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  8884. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  8885. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  8886. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  8887. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  8888. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  8889. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  8890. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  8891. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  8892. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  8893. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  8894. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  8895. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  8896. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  8897. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  8898. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  8899. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  8900. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  8901. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  8902. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  8903. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  8904. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  8905. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  8906. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  8907. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  8908. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  8909. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  8910. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  8911. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  8912. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  8913. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  8914. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  8915. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  8916. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  8917. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  8918. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  8919. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  8920. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  8921. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  8922. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  8923. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  8924. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  8925. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  8926. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  8927. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  8928. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  8929. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  8930. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  8931. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  8932. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  8933. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  8934. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  8935. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  8936. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  8937. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  8938. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  8939. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  8940. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  8941. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  8942. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  8943. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  8944. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  8945. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  8946. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  8947. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  8948. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  8949. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  8950. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  8951. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  8952. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  8953. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  8954. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  8955. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  8956. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  8957. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  8958. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  8959. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  8960. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  8961. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  8962. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  8963. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  8964. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  8965. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  8966. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  8967. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  8968. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  8969. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  8970. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  8971. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  8972. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  8973. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  8974. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  8975. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  8976. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  8977. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  8978. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  8979. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  8980. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  8981. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  8982. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  8983. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  8984. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  8985. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  8986. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  8987. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  8988. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  8989. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  8990. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  8991. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  8992. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  8993. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  8994. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  8995. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  8996. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  8997. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  8998. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  8999. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  9000. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  9001. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  9002. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  9003. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  9004. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  9005. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  9006. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  9007. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  9008. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  9009. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  9010. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  9011. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  9012. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  9013. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  9014. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  9015. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  9016. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  9017. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  9018. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  9019. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  9020. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  9021. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  9022. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  9023. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  9024. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  9025. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  9026. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  9027. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  9028. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  9029. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  9030. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  9031. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  9032. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  9033. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  9034. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  9035. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  9036. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  9037. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  9038. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  9039. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  9040. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  9041. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  9042. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  9043. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  9044. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  9045. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  9046. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  9047. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  9048. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  9049. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  9050. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  9051. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  9052. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  9053. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  9054. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  9055. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  9056. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  9057. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  9058. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  9059. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  9060. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  9061. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  9062. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  9063. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  9064. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  9065. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  9066. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  9067. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  9068. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  9069. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  9070. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  9071. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  9072. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  9073. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  9074. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  9075. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  9076. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  9077. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  9078. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  9079. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  9080. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  9081. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  9082. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  9083. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  9084. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  9085. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  9086. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  9087. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  9088. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  9089. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  9090. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  9091. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  9092. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  9093. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  9094. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  9095. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  9096. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  9097. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  9098. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  9099. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  9100. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  9101. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  9102. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  9103. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  9104. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  9105. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  9106. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  9107. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  9108. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  9109. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  9110. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  9111. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  9112. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  9113. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  9114. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  9115. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  9116. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  9117. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  9118. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  9119. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  9120. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  9121. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  9122. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  9123. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  9124. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  9125. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  9126. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  9127. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  9128. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  9129. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  9130. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  9131. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  9132. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  9133. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  9134. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  9135. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  9136. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  9137. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  9138. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  9139. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  9140. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  9141. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  9142. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  9143. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  9144. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  9145. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  9146. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  9147. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  9148. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  9149. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  9150. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  9151. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  9152. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  9153. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  9154. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  9155. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  9156. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  9157. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  9158. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  9159. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  9160. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  9161. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  9162. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  9163. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  9164. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  9165. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  9166. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  9167. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  9168. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  9169. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  9170. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  9171. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  9172. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  9173. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  9174. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  9175. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  9176. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  9177. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  9178. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  9179. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  9180. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  9181. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  9182. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  9183. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  9184. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  9185. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  9186. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  9187. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  9188. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  9189. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  9190. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  9191. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  9192. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  9193. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  9194. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  9195. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  9196. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  9197. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  9198. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  9199. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  9200. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  9201. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  9202. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  9203. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  9204. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  9205. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  9206. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  9207. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  9208. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  9209. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  9210. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  9211. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  9212. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  9213. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  9214. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  9215. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  9216. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  9217. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  9218. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  9219. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  9220. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  9221. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  9222. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  9223. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  9224. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  9225. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  9226. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  9227. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  9228. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  9229. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  9230. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  9231. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  9232. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  9233. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  9234. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  9235. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  9236. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  9237. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  9238. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  9239. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  9240. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  9241. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  9242. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  9243. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  9244. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  9245. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  9246. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  9247. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  9248. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  9249. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  9250. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  9251. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  9252. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  9253. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  9254. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  9255. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  9256. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  9257. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  9258. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  9259. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  9260. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  9261. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  9262. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  9263. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  9264. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  9265. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  9266. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  9267. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  9268. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  9269. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  9270. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  9271. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  9272. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  9273. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  9274. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  9275. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  9276. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  9277. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  9278. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  9279. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  9280. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  9281. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  9282. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  9283. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  9284. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  9285. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  9286. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  9287. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  9288. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  9289. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  9290. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  9291. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  9292. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  9293. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  9294. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  9295. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  9296. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  9297. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  9298. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  9299. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  9300. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  9301. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  9302. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  9303. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  9304. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  9305. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  9306. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  9307. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  9308. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  9309. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  9310. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  9311. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  9312. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  9313. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  9314. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  9315. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  9316. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  9317. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  9318. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  9319. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  9320. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  9321. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  9322. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  9323. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  9324. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  9325. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  9326. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  9327. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  9328. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  9329. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  9330. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  9331. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  9332. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  9333. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  9334. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  9335. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  9336. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  9337. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  9338. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  9339. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  9340. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  9341. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  9342. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  9343. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  9344. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  9345. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  9346. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  9347. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  9348. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  9349. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  9350. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  9351. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  9352. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  9353. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  9354. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  9355. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  9356. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  9357. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  9358. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  9359. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  9360. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  9361. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  9362. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  9363. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  9364. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  9365. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  9366. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  9367. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  9368. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  9369. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  9370. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  9371. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  9372. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  9373. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  9374. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  9375. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  9376. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  9377. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  9378. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  9379. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  9380. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  9381. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  9382. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  9383. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  9384. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  9385. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  9386. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  9387. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  9388. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  9389. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  9390. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  9391. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  9392. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  9393. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  9394. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  9395. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  9396. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  9397. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  9398. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  9399. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  9400. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  9401. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  9402. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  9403. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  9404. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  9405. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  9406. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  9407. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  9408. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  9409. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  9410. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  9411. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  9412. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  9413. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  9414. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  9415. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  9416. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  9417. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  9418. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  9419. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  9420. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  9421. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  9422. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  9423. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  9424. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  9425. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  9426. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  9427. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  9428. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  9429. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  9430. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  9431. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  9432. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  9433. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  9434. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  9435. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  9436. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  9437. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  9438. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  9439. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  9440. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  9441. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  9442. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  9443. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  9444. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  9445. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  9446. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  9447. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  9448. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  9449. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  9450. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  9451. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  9452. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  9453. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  9454. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  9455. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  9456. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  9457. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  9458. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  9459. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  9460. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  9461. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  9462. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  9463. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  9464. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  9465. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  9466. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  9467. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  9468. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  9469. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  9470. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  9471. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  9472. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  9473. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  9474. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  9475. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  9476. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  9477. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  9478. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  9479. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  9480. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  9481. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  9482. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  9483. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  9484. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  9485. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  9486. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  9487. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  9488. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  9489. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  9490. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  9491. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  9492. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  9493. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  9494. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  9495. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  9496. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  9497. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  9498. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  9499. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  9500. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  9501. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  9502. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  9503. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  9504. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  9505. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  9506. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  9507. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  9508. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  9509. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  9510. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  9511. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  9512. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  9513. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  9514. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  9515. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  9516. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  9517. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  9518. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  9519. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  9520. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  9521. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  9522. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  9523. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  9524. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  9525. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  9526. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  9527. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  9528. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  9529. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  9530. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  9531. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  9532. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  9533. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  9534. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  9535. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  9536. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  9537. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  9538. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  9539. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  9540. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  9541. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  9542. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  9543. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  9544. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  9545. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  9546. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  9547. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  9548. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  9549. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  9550. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  9551. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  9552. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  9553. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  9554. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  9555. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  9556. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  9557. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  9558. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  9559. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  9560. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  9561. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  9562. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  9563. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  9564. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  9565. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  9566. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  9567. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  9568. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  9569. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  9570. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  9571. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  9572. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  9573. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  9574. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  9575. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  9576. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  9577. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  9578. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  9579. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  9580. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  9581. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  9582. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  9583. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  9584. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  9585. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  9586. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  9587. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  9588. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  9589. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  9590. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  9591. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  9592. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  9593. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  9594. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  9595. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  9596. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  9597. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  9598. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  9599. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  9600. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  9601. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  9602. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  9603. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  9604. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  9605. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  9606. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  9607. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  9608. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  9609. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  9610. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  9611. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  9612. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  9613. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  9614. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  9615. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  9616. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  9617. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  9618. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  9619. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  9620. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  9621. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  9622. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  9623. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  9624. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  9625. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  9626. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  9627. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  9628. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  9629. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  9630. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  9631. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  9632. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  9633. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  9634. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  9635. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  9636. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  9637. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  9638. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  9639. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  9640. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  9641. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  9642. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  9643. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  9644. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  9645. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  9646. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  9647. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  9648. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  9649. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  9650. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  9651. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  9652. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  9653. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  9654. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  9655. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  9656. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  9657. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  9658. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  9659. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  9660. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  9661. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  9662. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  9663. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  9664. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  9665. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  9666. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  9667. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  9668. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  9669. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  9670. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  9671. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  9672. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  9673. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  9674. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  9675. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  9676. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  9677. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  9678. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  9679. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  9680. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  9681. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  9682. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  9683. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  9684. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  9685. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  9686. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  9687. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  9688. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  9689. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  9690. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  9691. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  9692. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  9693. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  9694. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  9695. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  9696. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  9697. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  9698. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  9699. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  9700. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  9701. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  9702. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  9703. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  9704. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  9705. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  9706. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  9707. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  9708. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  9709. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  9710. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  9711. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  9712. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  9713. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  9714. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  9715. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  9716. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  9717. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  9718. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  9719. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  9720. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  9721. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  9722. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  9723. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  9724. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  9725. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  9726. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  9727. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  9728. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  9729. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  9730. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  9731. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  9732. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  9733. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  9734. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  9735. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  9736. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  9737. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  9738. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  9739. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  9740. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  9741. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  9742. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  9743. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  9744. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  9745. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  9746. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  9747. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  9748. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  9749. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  9750. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  9751. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  9752. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  9753. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  9754. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  9755. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  9756. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  9757. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  9758. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  9759. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  9760. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  9761. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  9762. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  9763. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  9764. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  9765. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  9766. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  9767. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  9768. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  9769. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  9770. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  9771. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  9772. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  9773. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  9774. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  9775. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  9776. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  9777. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  9778. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  9779. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  9780. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  9781. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  9782. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  9783. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  9784. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  9785. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  9786. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  9787. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  9788. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  9789. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  9790. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  9791. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  9792. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  9793. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  9794. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  9795. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  9796. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  9797. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  9798. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  9799. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  9800. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  9801. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  9802. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  9803. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  9804. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  9805. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  9806. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  9807. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  9808. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  9809. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  9810. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  9811. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  9812. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  9813. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  9814. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  9815. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  9816. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  9817. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  9818. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  9819. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  9820. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  9821. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  9822. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  9823. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  9824. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  9825. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  9826. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  9827. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  9828. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  9829. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  9830. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  9831. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  9832. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  9833. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  9834. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  9835. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  9836. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  9837. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  9838. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  9839. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  9840. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  9841. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  9842. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  9843. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  9844. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  9845. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  9846. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  9847. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  9848. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  9849. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  9850. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  9851. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  9852. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  9853. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  9854. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  9855. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  9856. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  9857. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  9858. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  9859. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  9860. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  9861. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  9862. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  9863. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  9864. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  9865. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  9866. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  9867. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  9868. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  9869. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  9870. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  9871. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  9872. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  9873. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  9874. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  9875. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  9876. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  9877. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  9878. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  9879. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  9880. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  9881. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  9882. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  9883. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  9884. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  9885. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  9886. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  9887. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  9888. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  9889. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  9890. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  9891. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  9892. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  9893. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  9894. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  9895. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  9896. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  9897. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  9898. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  9899. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  9900. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  9901. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  9902. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  9903. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  9904. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  9905. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  9906. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  9907. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  9908. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  9909. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  9910. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  9911. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  9912. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  9913. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  9914. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  9915. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  9916. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  9917. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  9918. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  9919. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  9920. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  9921. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  9922. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  9923. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  9924. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  9925. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  9926. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  9927. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  9928. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  9929. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  9930. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  9931. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  9932. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  9933. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  9934. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  9935. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  9936. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  9937. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  9938. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  9939. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  9940. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  9941. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  9942. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  9943. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  9944. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  9945. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  9946. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  9947. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  9948. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  9949. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  9950. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  9951. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  9952. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  9953. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  9954. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  9955. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  9956. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  9957. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  9958. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  9959. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  9960. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  9961. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  9962. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  9963. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  9964. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  9965. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  9966. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  9967. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  9968. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  9969. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  9970. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  9971. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  9972. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  9973. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  9974. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  9975. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  9976. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  9977. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  9978. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  9979. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  9980. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  9981. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  9982. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  9983. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  9984. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  9985. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  9986. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  9987. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  9988. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  9989. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  9990. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  9991. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  9992. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  9993. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  9994. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  9995. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  9996. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  9997. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  9998. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  9999. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  10000. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  10001. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  10002. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  10003. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  10004. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  10005. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  10006. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  10007. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  10008. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  10009. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  10010. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  10011. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  10012. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  10013. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  10014. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  10015. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  10016. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  10017. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  10018. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  10019. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  10020. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  10021. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  10022. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  10023. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  10024. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  10025. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  10026. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  10027. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  10028. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  10029. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  10030. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  10031. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  10032. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  10033. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  10034. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  10035. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  10036. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  10037. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  10038. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  10039. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  10040. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  10041. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  10042. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  10043. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  10044. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  10045. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  10046. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  10047. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  10048. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  10049. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  10050. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  10051. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  10052. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  10053. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  10054. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  10055. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  10056. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  10057. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  10058. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  10059. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  10060. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  10061. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  10062. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  10063. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  10064. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  10065. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  10066. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  10067. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  10068. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  10069. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  10070. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  10071. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  10072. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  10073. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  10074. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  10075. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  10076. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  10077. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  10078. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  10079. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  10080. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  10081. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  10082. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  10083. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  10084. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  10085. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  10086. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  10087. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  10088. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  10089. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  10090. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  10091. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  10092. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  10093. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  10094. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  10095. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  10096. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  10097. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  10098. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  10099. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  10100. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  10101. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  10102. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  10103. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  10104. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  10105. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  10106. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  10107. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  10108. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  10109. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  10110. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  10111. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  10112. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  10113. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  10114. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  10115. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  10116. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  10117. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  10118. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  10119. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  10120. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  10121. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  10122. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  10123. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  10124. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  10125. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  10126. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  10127. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  10128. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  10129. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  10130. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  10131. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  10132. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  10133. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  10134. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  10135. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  10136. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  10137. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  10138. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  10139. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  10140. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  10141. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  10142. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  10143. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  10144. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  10145. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  10146. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  10147. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  10148. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  10149. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  10150. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  10151. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  10152. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  10153. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  10154. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  10155. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  10156. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  10157. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  10158. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  10159. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  10160. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  10161. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  10162. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  10163. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  10164. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  10165. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  10166. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  10167. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  10168. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  10169. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  10170. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  10171. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  10172. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  10173. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  10174. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  10175. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  10176. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  10177. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  10178. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  10179. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  10180. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  10181. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  10182. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  10183. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  10184. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  10185. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  10186. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  10187. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  10188. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  10189. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  10190. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  10191. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  10192. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  10193. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  10194. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  10195. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  10196. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  10197. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  10198. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  10199. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  10200. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  10201. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  10202. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  10203. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  10204. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  10205. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  10206. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  10207. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  10208. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  10209. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  10210. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  10211. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  10212. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  10213. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  10214. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  10215. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  10216. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  10217. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  10218. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  10219. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  10220. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  10221. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  10222. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  10223. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  10224. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  10225. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  10226. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  10227. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  10228. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  10229. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  10230. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  10231. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  10232. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  10233. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  10234. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  10235. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  10236. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  10237. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  10238. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  10239. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  10240. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  10241. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  10242. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  10243. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  10244. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  10245. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  10246. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  10247. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  10248. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  10249. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  10250. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  10251. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  10252. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  10253. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  10254. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  10255. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  10256. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  10257. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  10258. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  10259. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  10260. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  10261. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  10262. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  10263. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  10264. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  10265. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  10266. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  10267. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  10268. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  10269. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  10270. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  10271. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  10272. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  10273. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  10274. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  10275. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  10276. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  10277. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  10278. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  10279. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  10280. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  10281. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  10282. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  10283. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  10284. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  10285. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  10286. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  10287. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  10288. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  10289. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  10290. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  10291. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  10292. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  10293. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  10294. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  10295. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  10296. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  10297. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  10298. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  10299. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  10300. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  10301. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  10302. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  10303. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  10304. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  10305. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  10306. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  10307. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  10308. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  10309. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  10310. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  10311. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  10312. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  10313. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  10314. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  10315. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  10316. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  10317. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  10318. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  10319. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  10320. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  10321. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  10322. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  10323. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  10324. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  10325. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  10326. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  10327. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  10328. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  10329. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  10330. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  10331. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  10332. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  10333. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  10334. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  10335. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  10336. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  10337. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  10338. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  10339. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  10340. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  10341. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  10342. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  10343. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  10344. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  10345. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  10346. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  10347. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  10348. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  10349. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  10350. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  10351. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  10352. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  10353. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  10354. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  10355. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  10356. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  10357. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  10358. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  10359. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  10360. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  10361. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  10362. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  10363. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  10364. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  10365. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  10366. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  10367. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  10368. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  10369. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  10370. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  10371. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  10372. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  10373. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  10374. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  10375. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  10376. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  10377. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  10378. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  10379. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  10380. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  10381. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  10382. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  10383. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  10384. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  10385. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  10386. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  10387. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  10388. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  10389. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  10390. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  10391. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  10392. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  10393. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  10394. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  10395. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  10396. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  10397. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  10398. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  10399. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  10400. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  10401. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  10402. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  10403. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  10404. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  10405. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  10406. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  10407. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  10408. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  10409. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  10410. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  10411. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  10412. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  10413. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  10414. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  10415. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  10416. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  10417. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  10418. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  10419. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  10420. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  10421. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  10422. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  10423. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  10424. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  10425. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  10426. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  10427. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  10428. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  10429. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  10430. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  10431. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  10432. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  10433. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  10434. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  10435. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  10436. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  10437. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  10438. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  10439. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  10440. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  10441. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  10442. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  10443. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  10444. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  10445. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  10446. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  10447. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  10448. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  10449. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  10450. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  10451. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  10452. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  10453. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  10454. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  10455. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  10456. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  10457. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  10458. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  10459. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  10460. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  10461. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  10462. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  10463. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  10464. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  10465. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  10466. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  10467. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  10468. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  10469. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  10470. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  10471. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  10472. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  10473. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  10474. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  10475. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  10476. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  10477. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  10478. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  10479. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  10480. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  10481. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  10482. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  10483. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  10484. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  10485. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  10486. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  10487. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  10488. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  10489. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  10490. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  10491. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  10492. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  10493. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  10494. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  10495. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  10496. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  10497. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  10498. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  10499. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  10500. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  10501. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  10502. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  10503. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  10504. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  10505. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  10506. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  10507. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  10508. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  10509. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  10510. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  10511. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  10512. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  10513. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  10514. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  10515. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  10516. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  10517. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  10518. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  10519. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  10520. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  10521. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  10522. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  10523. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  10524. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  10525. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  10526. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  10527. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  10528. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  10529. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  10530. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  10531. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  10532. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  10533. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  10534. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  10535. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  10536. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  10537. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  10538. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  10539. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  10540. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  10541. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  10542. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  10543. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  10544. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  10545. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  10546. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  10547. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  10548. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  10549. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  10550. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  10551. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  10552. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  10553. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  10554. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  10555. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  10556. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  10557. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  10558. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  10559. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  10560. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  10561. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  10562. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  10563. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  10564. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  10565. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  10566. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  10567. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  10568. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  10569. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  10570. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  10571. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  10572. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  10573. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  10574. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  10575. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  10576. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  10577. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  10578. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  10579. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  10580. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  10581. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  10582. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  10583. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  10584. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  10585. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  10586. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  10587. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  10588. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  10589. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  10590. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  10591. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  10592. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  10593. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  10594. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  10595. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  10596. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  10597. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  10598. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  10599. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  10600. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  10601. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  10602. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  10603. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  10604. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  10605. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  10606. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  10607. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  10608. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  10609. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  10610. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  10611. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  10612. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  10613. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  10614. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  10615. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  10616. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  10617. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  10618. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  10619. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  10620. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  10621. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  10622. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  10623. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  10624. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  10625. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  10626. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  10627. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  10628. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  10629. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  10630. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  10631. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  10632. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  10633. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  10634. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  10635. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  10636. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  10637. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  10638. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  10639. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  10640. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  10641. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  10642. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  10643. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  10644. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  10645. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  10646. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  10647. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  10648. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  10649. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  10650. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  10651. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  10652. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  10653. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  10654. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  10655. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  10656. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  10657. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  10658. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  10659. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  10660. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  10661. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  10662. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  10663. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  10664. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  10665. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  10666. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  10667. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  10668. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  10669. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  10670. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  10671. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  10672. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  10673. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  10674. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  10675. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  10676. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  10677. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  10678. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  10679. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  10680. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  10681. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  10682. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  10683. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  10684. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  10685. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  10686. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  10687. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  10688. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  10689. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  10690. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  10691. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  10692. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  10693. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  10694. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  10695. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  10696. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  10697. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  10698. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  10699. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  10700. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  10701. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  10702. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  10703. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  10704. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  10705. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  10706. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  10707. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  10708. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  10709. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  10710. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  10711. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  10712. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  10713. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  10714. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  10715. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  10716. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  10717. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  10718. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  10719. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  10720. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  10721. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  10722. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  10723. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  10724. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  10725. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  10726. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  10727. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  10728. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  10729. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  10730. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  10731. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  10732. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  10733. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  10734. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  10735. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  10736. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  10737. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  10738. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  10739. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  10740. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  10741. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  10742. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  10743. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  10744. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  10745. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  10746. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  10747. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  10748. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  10749. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  10750. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  10751. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  10752. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  10753. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  10754. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  10755. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  10756. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  10757. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  10758. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  10759. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  10760. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  10761. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  10762. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  10763. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  10764. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  10765. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  10766. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  10767. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  10768. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  10769. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  10770. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  10771. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  10772. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  10773. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  10774. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  10775. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  10776. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  10777. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  10778. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  10779. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  10780. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  10781. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  10782. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  10783. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  10784. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  10785. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  10786. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  10787. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  10788. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  10789. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  10790. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  10791. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  10792. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  10793. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  10794. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  10795. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  10796. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  10797. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  10798. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  10799. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  10800. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  10801. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  10802. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  10803. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  10804. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  10805. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  10806. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  10807. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  10808. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  10809. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  10810. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  10811. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  10812. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  10813. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  10814. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  10815. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  10816. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  10817. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  10818. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  10819. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  10820. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  10821. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  10822. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  10823. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  10824. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  10825. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  10826. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  10827. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  10828. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  10829. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  10830. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  10831. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  10832. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  10833. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  10834. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  10835. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  10836. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  10837. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  10838. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  10839. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  10840. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  10841. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  10842. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  10843. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  10844. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  10845. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  10846. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  10847. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  10848. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  10849. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  10850. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  10851. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  10852. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  10853. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  10854. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  10855. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  10856. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  10857. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  10858. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  10859. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  10860. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  10861. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  10862. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  10863. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  10864. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  10865. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  10866. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  10867. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  10868. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  10869. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  10870. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  10871. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  10872. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  10873. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  10874. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  10875. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  10876. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  10877. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  10878. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  10879. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  10880. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  10881. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  10882. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  10883. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  10884. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  10885. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  10886. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  10887. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  10888. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  10889. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  10890. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  10891. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  10892. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  10893. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  10894. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  10895. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  10896. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  10897. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  10898. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  10899. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  10900. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  10901. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  10902. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  10903. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  10904. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  10905. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  10906. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  10907. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  10908. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  10909. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  10910. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  10911. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  10912. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  10913. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  10914. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  10915. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  10916. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  10917. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  10918. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  10919. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  10920. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  10921. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  10922. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  10923. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  10924. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  10925. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  10926. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  10927. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  10928. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  10929. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  10930. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  10931. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  10932. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  10933. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  10934. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  10935. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  10936. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  10937. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  10938. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  10939. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  10940. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  10941. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  10942. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  10943. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  10944. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  10945. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  10946. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  10947. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  10948. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  10949. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  10950. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  10951. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  10952. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  10953. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  10954. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  10955. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  10956. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  10957. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  10958. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  10959. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  10960. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  10961. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  10962. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  10963. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  10964. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  10965. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  10966. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  10967. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  10968. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  10969. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  10970. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  10971. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  10972. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  10973. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  10974. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  10975. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  10976. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  10977. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  10978. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  10979. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  10980. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  10981. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  10982. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  10983. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  10984. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  10985. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  10986. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  10987. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  10988. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  10989. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  10990. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  10991. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  10992. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  10993. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  10994. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  10995. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  10996. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  10997. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  10998. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  10999. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  11000. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  11001. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  11002. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  11003. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  11004. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  11005. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  11006. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  11007. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  11008. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  11009. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  11010. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  11011. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  11012. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  11013. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  11014. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  11015. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  11016. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  11017. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  11018. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  11019. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  11020. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  11021. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  11022. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  11023. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  11024. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  11025. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  11026. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  11027. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  11028. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  11029. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  11030. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  11031. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  11032. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  11033. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  11034. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  11035. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  11036. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  11037. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  11038. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  11039. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  11040. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  11041. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  11042. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  11043. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  11044. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  11045. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  11046. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  11047. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  11048. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  11049. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  11050. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  11051. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  11052. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  11053. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  11054. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  11055. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  11056. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  11057. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  11058. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  11059. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  11060. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  11061. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  11062. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  11063. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  11064. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  11065. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  11066. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  11067. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  11068. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  11069. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  11070. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  11071. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  11072. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  11073. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  11074. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  11075. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  11076. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  11077. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  11078. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  11079. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  11080. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  11081. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  11082. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  11083. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  11084. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  11085. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  11086. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  11087. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  11088. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  11089. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  11090. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  11091. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  11092. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  11093. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  11094. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  11095. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  11096. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  11097. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  11098. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  11099. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  11100. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  11101. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  11102. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  11103. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  11104. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  11105. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  11106. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  11107. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  11108. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  11109. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  11110. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  11111. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  11112. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  11113. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  11114. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  11115. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  11116. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  11117. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  11118. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  11119. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  11120. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  11121. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  11122. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  11123. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  11124. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  11125. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  11126. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  11127. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  11128. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  11129. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  11130. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  11131. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  11132. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  11133. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  11134. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  11135. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  11136. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  11137. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  11138. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  11139. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  11140. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  11141. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  11142. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  11143. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  11144. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  11145. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  11146. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  11147. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  11148. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  11149. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  11150. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  11151. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  11152. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  11153. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  11154. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  11155. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  11156. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  11157. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  11158. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  11159. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  11160. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  11161. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  11162. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  11163. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  11164. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  11165. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  11166. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  11167. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  11168. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  11169. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  11170. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  11171. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  11172. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  11173. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  11174. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  11175. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  11176. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  11177. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  11178. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  11179. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  11180. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  11181. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  11182. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  11183. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  11184. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  11185. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  11186. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  11187. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  11188. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  11189. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  11190. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  11191. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  11192. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  11193. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  11194. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  11195. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  11196. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  11197. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  11198. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  11199. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  11200. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  11201. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  11202. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  11203. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  11204. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  11205. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  11206. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  11207. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  11208. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  11209. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  11210. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  11211. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  11212. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  11213. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  11214. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  11215. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  11216. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  11217. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  11218. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  11219. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  11220. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  11221. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  11222. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  11223. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  11224. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  11225. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  11226. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  11227. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  11228. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  11229. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  11230. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  11231. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  11232. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  11233. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  11234. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  11235. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  11236. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  11237. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  11238. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  11239. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  11240. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  11241. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  11242. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  11243. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  11244. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  11245. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  11246. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  11247. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  11248. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  11249. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  11250. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  11251. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  11252. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  11253. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  11254. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  11255. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  11256. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  11257. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  11258. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  11259. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  11260. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  11261. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  11262. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  11263. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  11264. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  11265. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  11266. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  11267. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  11268. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  11269. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  11270. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  11271. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  11272. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  11273. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  11274. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  11275. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  11276. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  11277. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  11278. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  11279. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  11280. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  11281. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  11282. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  11283. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  11284. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  11285. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  11286. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  11287. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  11288. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  11289. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  11290. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  11291. 23446, 62959, 32347],
  11292. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  11293. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  11294. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  11295. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  11296. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  11297. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  11298. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  11299. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  11300. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  11301. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  11302. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  11303. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  11304. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  11305. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  11306. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  11307. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  11308. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  11309. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  11310. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  11311. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  11312. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  11313. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  11314. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  11315. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  11316. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  11317. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  11318. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  11319. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  11320. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  11321. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  11322. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  11323. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  11324. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  11325. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  11326. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  11327. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  11328. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  11329. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  11330. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  11331. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  11332. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  11333. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  11334. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  11335. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  11336. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  11337. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  11338. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  11339. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  11340. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  11341. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  11342. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  11343. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  11344. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  11345. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  11346. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  11347. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  11348. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  11349. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  11350. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  11351. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  11352. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  11353. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  11354. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  11355. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  11356. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  11357. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  11358. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  11359. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  11360. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  11361. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  11362. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  11363. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  11364. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  11365. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  11366. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  11367. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  11368. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  11369. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  11370. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  11371. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  11372. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  11373. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  11374. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  11375. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  11376. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  11377. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  11378. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  11379. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  11380. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  11381. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  11382. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  11383. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  11384. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  11385. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  11386. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  11387. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  11388. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  11389. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  11390. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  11391. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  11392. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  11393. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  11394. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  11395. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  11396. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  11397. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  11398. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  11399. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  11400. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  11401. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  11402. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  11403. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  11404. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  11405. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  11406. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  11407. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  11408. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  11409. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  11410. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  11411. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  11412. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  11413. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  11414. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  11415. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  11416. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  11417. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  11418. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  11419. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  11420. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  11421. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  11422. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  11423. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  11424. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  11425. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  11426. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  11427. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  11428. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  11429. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  11430. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  11431. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  11432. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  11433. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  11434. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  11435. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  11436. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  11437. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  11438. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  11439. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  11440. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  11441. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  11442. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  11443. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  11444. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  11445. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  11446. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  11447. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  11448. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  11449. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  11450. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  11451. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  11452. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  11453. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  11454. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  11455. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  11456. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  11457. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  11458. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  11459. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  11460. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  11461. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  11462. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  11463. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  11464. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  11465. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  11466. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  11467. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  11468. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  11469. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  11470. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  11471. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  11472. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  11473. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  11474. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  11475. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  11476. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  11477. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  11478. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  11479. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  11480. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  11481. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  11482. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  11483. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  11484. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  11485. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  11486. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  11487. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  11488. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  11489. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  11490. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  11491. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  11492. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  11493. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  11494. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  11495. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  11496. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  11497. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  11498. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  11499. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  11500. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  11501. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  11502. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  11503. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  11504. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  11505. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  11506. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  11507. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  11508. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  11509. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  11510. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  11511. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  11512. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  11513. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  11514. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  11515. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  11516. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  11517. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  11518. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  11519. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  11520. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  11521. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  11522. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  11523. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  11524. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  11525. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  11526. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  11527. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  11528. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  11529. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  11530. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  11531. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  11532. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  11533. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  11534. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  11535. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  11536. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  11537. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  11538. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  11539. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  11540. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  11541. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  11542. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  11543. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  11544. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  11545. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  11546. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  11547. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  11548. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  11549. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  11550. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  11551. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  11552. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  11553. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  11554. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  11555. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  11556. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  11557. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  11558. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  11559. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  11560. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  11561. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  11562. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  11563. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  11564. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  11565. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  11566. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  11567. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  11568. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  11569. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  11570. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  11571. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  11572. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  11573. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  11574. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  11575. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  11576. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  11577. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  11578. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  11579. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  11580. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  11581. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  11582. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  11583. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  11584. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  11585. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  11586. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  11587. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  11588. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  11589. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  11590. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  11591. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  11592. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  11593. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  11594. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  11595. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  11596. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  11597. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  11598. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  11599. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  11600. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  11601. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  11602. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  11603. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  11604. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  11605. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  11606. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  11607. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  11608. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  11609. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  11610. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  11611. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  11612. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  11613. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  11614. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  11615. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  11616. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  11617. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  11618. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  11619. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  11620. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  11621. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  11622. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  11623. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  11624. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  11625. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  11626. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  11627. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  11628. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  11629. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  11630. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  11631. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  11632. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  11633. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  11634. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  11635. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  11636. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  11637. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  11638. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  11639. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  11640. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  11641. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  11642. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  11643. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  11644. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  11645. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  11646. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  11647. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  11648. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  11649. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  11650. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  11651. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  11652. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  11653. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  11654. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  11655. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  11656. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  11657. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  11658. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  11659. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  11660. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  11661. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  11662. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  11663. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  11664. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  11665. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  11666. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  11667. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  11668. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  11669. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  11670. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  11671. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  11672. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  11673. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  11674. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  11675. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  11676. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  11677. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  11678. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  11679. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  11680. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  11681. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  11682. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  11683. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  11684. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  11685. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  11686. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  11687. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  11688. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  11689. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  11690. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  11691. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  11692. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  11693. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  11694. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  11695. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  11696. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  11697. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  11698. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  11699. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  11700. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  11701. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  11702. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  11703. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  11704. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  11705. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  11706. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  11707. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  11708. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  11709. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  11710. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  11711. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  11712. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  11713. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  11714. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  11715. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  11716. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  11717. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  11718. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  11719. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  11720. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  11721. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  11722. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  11723. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  11724. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  11725. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  11726. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  11727. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  11728. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  11729. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  11730. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  11731. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  11732. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  11733. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  11734. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  11735. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  11736. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  11737. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  11738. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  11739. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  11740. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  11741. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  11742. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  11743. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  11744. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  11745. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  11746. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  11747. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  11748. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  11749. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  11750. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  11751. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  11752. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  11753. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  11754. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  11755. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  11756. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  11757. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  11758. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  11759. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  11760. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  11761. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  11762. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  11763. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  11764. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  11765. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  11766. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  11767. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  11768. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  11769. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  11770. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  11771. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  11772. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  11773. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  11774. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  11775. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  11776. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  11777. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  11778. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  11779. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  11780. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  11781. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  11782. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  11783. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  11784. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  11785. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  11786. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  11787. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  11788. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  11789. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  11790. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  11791. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  11792. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  11793. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  11794. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  11795. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  11796. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  11797. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  11798. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  11799. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  11800. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  11801. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  11802. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  11803. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  11804. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  11805. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  11806. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  11807. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  11808. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  11809. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  11810. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  11811. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  11812. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  11813. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  11814. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  11815. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  11816. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  11817. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  11818. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  11819. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  11820. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  11821. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  11822. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  11823. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  11824. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  11825. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  11826. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  11827. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  11828. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  11829. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  11830. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  11831. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  11832. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  11833. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  11834. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  11835. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  11836. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  11837. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  11838. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  11839. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  11840. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  11841. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  11842. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  11843. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  11844. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  11845. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  11846. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  11847. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  11848. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  11849. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  11850. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  11851. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  11852. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  11853. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  11854. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  11855. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  11856. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  11857. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  11858. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  11859. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  11860. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  11861. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  11862. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  11863. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  11864. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  11865. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  11866. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  11867. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  11868. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  11869. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  11870. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  11871. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  11872. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  11873. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  11874. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  11875. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  11876. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  11877. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  11878. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  11879. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  11880. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  11881. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  11882. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  11883. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  11884. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  11885. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  11886. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  11887. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  11888. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  11889. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  11890. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  11891. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  11892. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  11893. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  11894. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  11895. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  11896. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  11897. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  11898. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  11899. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  11900. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  11901. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  11902. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  11903. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  11904. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  11905. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  11906. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  11907. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  11908. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  11909. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  11910. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  11911. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  11912. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  11913. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  11914. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  11915. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  11916. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  11917. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  11918. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  11919. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  11920. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  11921. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  11922. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  11923. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  11924. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  11925. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  11926. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  11927. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  11928. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  11929. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  11930. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  11931. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  11932. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  11933. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  11934. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  11935. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  11936. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  11937. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  11938. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  11939. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  11940. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  11941. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  11942. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  11943. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  11944. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  11945. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  11946. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  11947. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  11948. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  11949. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  11950. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  11951. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  11952. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  11953. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  11954. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  11955. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  11956. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  11957. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  11958. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  11959. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  11960. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  11961. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  11962. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  11963. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  11964. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  11965. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  11966. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  11967. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  11968. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  11969. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  11970. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  11971. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  11972. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  11973. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  11974. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  11975. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  11976. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  11977. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  11978. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  11979. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  11980. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  11981. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  11982. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  11983. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  11984. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  11985. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  11986. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  11987. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  11988. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  11989. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  11990. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  11991. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  11992. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  11993. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  11994. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  11995. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  11996. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  11997. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  11998. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  11999. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  12000. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  12001. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  12002. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  12003. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  12004. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  12005. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  12006. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  12007. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  12008. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  12009. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  12010. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  12011. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  12012. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  12013. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  12014. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  12015. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  12016. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  12017. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  12018. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  12019. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  12020. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  12021. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  12022. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  12023. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  12024. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  12025. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  12026. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  12027. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  12028. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  12029. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  12030. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  12031. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  12032. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  12033. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  12034. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  12035. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  12036. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  12037. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  12038. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  12039. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  12040. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  12041. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  12042. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  12043. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  12044. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  12045. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  12046. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  12047. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  12048. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  12049. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  12050. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  12051. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  12052. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  12053. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  12054. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  12055. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  12056. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  12057. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  12058. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  12059. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  12060. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  12061. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  12062. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  12063. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  12064. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  12065. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  12066. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  12067. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  12068. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  12069. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  12070. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  12071. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  12072. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  12073. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  12074. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  12075. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  12076. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  12077. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  12078. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  12079. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  12080. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  12081. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  12082. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  12083. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  12084. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  12085. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  12086. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  12087. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  12088. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  12089. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  12090. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  12091. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  12092. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  12093. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  12094. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  12095. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  12096. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  12097. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  12098. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  12099. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  12100. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  12101. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  12102. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  12103. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  12104. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  12105. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  12106. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  12107. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  12108. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  12109. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  12110. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  12111. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  12112. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  12113. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  12114. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  12115. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  12116. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  12117. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  12118. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  12119. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  12120. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  12121. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  12122. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  12123. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  12124. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  12125. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  12126. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  12127. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  12128. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  12129. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  12130. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  12131. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  12132. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  12133. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  12134. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  12135. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  12136. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  12137. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  12138. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  12139. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  12140. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  12141. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  12142. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  12143. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  12144. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  12145. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  12146. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  12147. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  12148. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  12149. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  12150. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  12151. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  12152. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  12153. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  12154. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  12155. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  12156. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  12157. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  12158. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  12159. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  12160. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  12161. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  12162. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  12163. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  12164. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  12165. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  12166. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  12167. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  12168. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  12169. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  12170. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  12171. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  12172. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  12173. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  12174. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  12175. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  12176. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  12177. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  12178. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  12179. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  12180. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  12181. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  12182. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  12183. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  12184. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  12185. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  12186. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  12187. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  12188. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  12189. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  12190. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  12191. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  12192. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  12193. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  12194. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  12195. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  12196. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  12197. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  12198. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  12199. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  12200. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  12201. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  12202. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  12203. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  12204. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  12205. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  12206. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  12207. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  12208. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  12209. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  12210. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  12211. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  12212. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  12213. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  12214. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  12215. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  12216. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  12217. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  12218. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  12219. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  12220. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  12221. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  12222. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  12223. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  12224. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  12225. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  12226. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  12227. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  12228. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  12229. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  12230. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  12231. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  12232. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  12233. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  12234. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  12235. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  12236. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  12237. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  12238. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  12239. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  12240. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  12241. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  12242. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  12243. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  12244. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  12245. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  12246. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  12247. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  12248. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  12249. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  12250. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  12251. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  12252. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  12253. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  12254. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  12255. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  12256. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  12257. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  12258. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  12259. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  12260. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  12261. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  12262. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  12263. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  12264. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  12265. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  12266. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  12267. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  12268. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  12269. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  12270. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  12271. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  12272. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  12273. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  12274. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  12275. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  12276. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  12277. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  12278. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  12279. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  12280. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  12281. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  12282. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  12283. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  12284. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  12285. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  12286. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  12287. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  12288. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  12289. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  12290. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  12291. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  12292. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  12293. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  12294. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  12295. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  12296. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  12297. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  12298. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  12299. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  12300. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  12301. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  12302. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  12303. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  12304. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  12305. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  12306. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  12307. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  12308. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  12309. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  12310. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  12311. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  12312. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  12313. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  12314. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  12315. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  12316. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  12317. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  12318. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  12319. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  12320. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  12321. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  12322. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  12323. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  12324. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  12325. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  12326. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  12327. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  12328. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  12329. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  12330. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  12331. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  12332. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  12333. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  12334. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  12335. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  12336. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  12337. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  12338. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  12339. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  12340. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  12341. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  12342. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  12343. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  12344. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  12345. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  12346. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  12347. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  12348. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  12349. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  12350. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  12351. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  12352. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  12353. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  12354. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  12355. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  12356. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  12357. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  12358. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  12359. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  12360. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  12361. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  12362. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  12363. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  12364. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  12365. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  12366. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  12367. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  12368. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  12369. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  12370. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  12371. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  12372. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  12373. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  12374. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  12375. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  12376. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  12377. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  12378. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  12379. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  12380. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  12381. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  12382. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  12383. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  12384. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  12385. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  12386. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  12387. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  12388. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  12389. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  12390. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  12391. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  12392. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  12393. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  12394. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  12395. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  12396. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  12397. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  12398. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  12399. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  12400. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  12401. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  12402. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  12403. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  12404. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  12405. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  12406. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  12407. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  12408. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  12409. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  12410. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  12411. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  12412. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  12413. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  12414. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  12415. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  12416. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  12417. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  12418. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  12419. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  12420. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  12421. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  12422. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  12423. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  12424. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  12425. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  12426. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  12427. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  12428. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  12429. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  12430. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  12431. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  12432. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  12433. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  12434. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  12435. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  12436. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  12437. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  12438. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  12439. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  12440. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  12441. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  12442. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  12443. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  12444. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  12445. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  12446. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  12447. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  12448. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  12449. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  12450. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  12451. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  12452. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  12453. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  12454. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  12455. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  12456. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  12457. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  12458. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  12459. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  12460. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  12461. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  12462. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  12463. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  12464. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  12465. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  12466. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  12467. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  12468. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  12469. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  12470. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  12471. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  12472. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  12473. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  12474. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  12475. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  12476. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  12477. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  12478. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  12479. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  12480. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  12481. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  12482. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  12483. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  12484. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  12485. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  12486. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  12487. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  12488. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  12489. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  12490. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  12491. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  12492. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  12493. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  12494. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  12495. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  12496. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  12497. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  12498. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  12499. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  12500. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  12501. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  12502. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  12503. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  12504. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  12505. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  12506. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  12507. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  12508. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  12509. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  12510. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  12511. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  12512. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  12513. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  12514. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  12515. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  12516. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  12517. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  12518. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  12519. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  12520. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  12521. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  12522. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  12523. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  12524. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  12525. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  12526. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  12527. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  12528. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  12529. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  12530. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  12531. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  12532. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  12533. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  12534. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  12535. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  12536. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  12537. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  12538. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  12539. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  12540. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  12541. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  12542. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  12543. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  12544. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  12545. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  12546. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  12547. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  12548. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  12549. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  12550. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  12551. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  12552. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  12553. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  12554. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  12555. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  12556. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  12557. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  12558. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  12559. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  12560. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  12561. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  12562. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  12563. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  12564. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  12565. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  12566. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  12567. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  12568. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  12569. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  12570. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  12571. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  12572. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  12573. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  12574. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  12575. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  12576. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  12577. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  12578. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  12579. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  12580. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  12581. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  12582. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  12583. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  12584. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  12585. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  12586. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  12587. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  12588. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  12589. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  12590. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  12591. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  12592. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  12593. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  12594. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  12595. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  12596. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  12597. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  12598. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  12599. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  12600. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  12601. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  12602. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  12603. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  12604. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  12605. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  12606. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  12607. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  12608. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  12609. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  12610. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  12611. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  12612. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  12613. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  12614. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  12615. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  12616. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  12617. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  12618. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  12619. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  12620. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  12621. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  12622. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  12623. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  12624. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  12625. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  12626. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  12627. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  12628. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  12629. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  12630. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  12631. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  12632. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  12633. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  12634. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  12635. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  12636. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  12637. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  12638. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  12639. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  12640. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  12641. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  12642. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  12643. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  12644. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  12645. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  12646. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  12647. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  12648. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  12649. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  12650. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  12651. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  12652. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  12653. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  12654. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  12655. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  12656. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  12657. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  12658. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  12659. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  12660. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  12661. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  12662. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  12663. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  12664. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  12665. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  12666. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  12667. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  12668. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  12669. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  12670. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  12671. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  12672. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  12673. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  12674. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  12675. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  12676. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  12677. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  12678. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  12679. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  12680. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  12681. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  12682. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  12683. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  12684. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  12685. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  12686. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  12687. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  12688. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  12689. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  12690. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  12691. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  12692. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  12693. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  12694. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  12695. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  12696. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  12697. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  12698. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  12699. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  12700. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  12701. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  12702. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  12703. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  12704. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  12705. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  12706. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  12707. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  12708. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  12709. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  12710. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  12711. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  12712. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  12713. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  12714. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  12715. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  12716. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  12717. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  12718. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  12719. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  12720. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  12721. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  12722. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  12723. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  12724. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  12725. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  12726. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  12727. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  12728. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  12729. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  12730. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  12731. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  12732. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  12733. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  12734. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  12735. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  12736. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  12737. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  12738. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  12739. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  12740. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  12741. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  12742. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  12743. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  12744. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  12745. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  12746. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  12747. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  12748. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  12749. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  12750. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  12751. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  12752. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  12753. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  12754. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  12755. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  12756. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  12757. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  12758. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  12759. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  12760. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  12761. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  12762. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  12763. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  12764. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  12765. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  12766. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  12767. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  12768. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  12769. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  12770. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  12771. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  12772. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  12773. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  12774. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  12775. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  12776. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  12777. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  12778. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  12779. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  12780. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  12781. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  12782. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  12783. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  12784. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  12785. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  12786. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  12787. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  12788. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  12789. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  12790. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  12791. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  12792. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  12793. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  12794. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  12795. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  12796. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  12797. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  12798. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  12799. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  12800. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  12801. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  12802. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  12803. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  12804. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  12805. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  12806. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  12807. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  12808. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  12809. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  12810. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  12811. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  12812. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  12813. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  12814. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  12815. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  12816. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  12817. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  12818. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  12819. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  12820. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  12821. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  12822. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  12823. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  12824. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  12825. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  12826. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  12827. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  12828. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  12829. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  12830. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  12831. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  12832. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  12833. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  12834. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  12835. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  12836. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  12837. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  12838. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  12839. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  12840. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  12841. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  12842. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  12843. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  12844. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  12845. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  12846. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  12847. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  12848. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  12849. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  12850. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  12851. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  12852. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  12853. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  12854. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  12855. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  12856. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  12857. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  12858. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  12859. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  12860. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  12861. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  12862. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  12863. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  12864. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  12865. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  12866. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  12867. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  12868. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  12869. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  12870. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  12871. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  12872. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  12873. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  12874. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  12875. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  12876. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  12877. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  12878. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  12879. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  12880. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  12881. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  12882. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  12883. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  12884. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  12885. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  12886. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  12887. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  12888. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  12889. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  12890. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  12891. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  12892. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  12893. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  12894. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  12895. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  12896. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  12897. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  12898. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  12899. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  12900. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  12901. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  12902. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  12903. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  12904. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  12905. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  12906. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  12907. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  12908. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  12909. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  12910. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  12911. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  12912. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  12913. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  12914. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  12915. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  12916. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  12917. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  12918. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  12919. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  12920. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  12921. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  12922. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  12923. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  12924. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  12925. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  12926. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  12927. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  12928. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  12929. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  12930. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  12931. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  12932. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  12933. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  12934. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  12935. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  12936. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  12937. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  12938. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  12939. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  12940. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  12941. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  12942. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  12943. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  12944. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  12945. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  12946. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  12947. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  12948. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  12949. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  12950. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  12951. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  12952. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  12953. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  12954. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  12955. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  12956. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  12957. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  12958. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  12959. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  12960. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  12961. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  12962. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  12963. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  12964. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  12965. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  12966. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  12967. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  12968. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  12969. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  12970. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  12971. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  12972. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  12973. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  12974. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  12975. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  12976. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  12977. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  12978. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  12979. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  12980. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  12981. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  12982. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  12983. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  12984. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  12985. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  12986. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  12987. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  12988. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  12989. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  12990. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  12991. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  12992. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  12993. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  12994. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  12995. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  12996. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  12997. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  12998. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  12999. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  13000. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  13001. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  13002. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  13003. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  13004. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  13005. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  13006. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  13007. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  13008. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  13009. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  13010. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  13011. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  13012. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  13013. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  13014. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  13015. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  13016. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  13017. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  13018. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  13019. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  13020. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  13021. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  13022. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  13023. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  13024. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  13025. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  13026. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  13027. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  13028. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  13029. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  13030. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  13031. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  13032. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  13033. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  13034. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  13035. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  13036. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  13037. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  13038. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  13039. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  13040. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  13041. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  13042. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  13043. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  13044. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  13045. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  13046. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  13047. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  13048. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  13049. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  13050. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  13051. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  13052. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  13053. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  13054. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  13055. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  13056. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  13057. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  13058. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  13059. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  13060. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  13061. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  13062. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  13063. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  13064. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  13065. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  13066. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  13067. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  13068. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  13069. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  13070. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  13071. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  13072. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  13073. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  13074. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  13075. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  13076. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  13077. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  13078. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  13079. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  13080. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  13081. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  13082. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  13083. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  13084. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  13085. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  13086. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  13087. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  13088. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  13089. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  13090. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  13091. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  13092. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  13093. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  13094. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  13095. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  13096. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  13097. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  13098. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  13099. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  13100. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  13101. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  13102. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  13103. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  13104. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  13105. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  13106. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  13107. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  13108. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  13109. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  13110. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  13111. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  13112. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  13113. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  13114. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  13115. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  13116. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  13117. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  13118. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  13119. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  13120. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  13121. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  13122. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  13123. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  13124. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  13125. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  13126. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  13127. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  13128. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  13129. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  13130. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  13131. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  13132. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  13133. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  13134. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  13135. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  13136. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  13137. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  13138. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  13139. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  13140. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  13141. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  13142. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  13143. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  13144. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  13145. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  13146. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  13147. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  13148. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  13149. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  13150. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  13151. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  13152. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  13153. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  13154. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  13155. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  13156. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  13157. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  13158. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  13159. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  13160. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  13161. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  13162. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  13163. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  13164. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  13165. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  13166. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  13167. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  13168. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  13169. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  13170. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  13171. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  13172. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  13173. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  13174. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  13175. {f: 7, c: 19887}]
  13176. };
  13177. var ARCFourCipher = (function ARCFourCipherClosure() {
  13178. function ARCFourCipher(key) {
  13179. this.a = 0;
  13180. this.b = 0;
  13181. var s = new Uint8Array(256);
  13182. var i, j = 0, tmp, keyLength = key.length;
  13183. for (i = 0; i < 256; ++i) {
  13184. s[i] = i;
  13185. }
  13186. for (i = 0; i < 256; ++i) {
  13187. tmp = s[i];
  13188. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13189. s[i] = s[j];
  13190. s[j] = tmp;
  13191. }
  13192. this.s = s;
  13193. }
  13194. ARCFourCipher.prototype = {
  13195. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13196. var i, n = data.length, tmp, tmp2;
  13197. var a = this.a, b = this.b, s = this.s;
  13198. var output = new Uint8Array(n);
  13199. for (i = 0; i < n; ++i) {
  13200. a = (a + 1) & 0xFF;
  13201. tmp = s[a];
  13202. b = (b + tmp) & 0xFF;
  13203. tmp2 = s[b];
  13204. s[a] = tmp2;
  13205. s[b] = tmp;
  13206. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13207. }
  13208. this.a = a;
  13209. this.b = b;
  13210. return output;
  13211. }
  13212. };
  13213. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13214. return ARCFourCipher;
  13215. })();
  13216. var calculateMD5 = (function calculateMD5Closure() {
  13217. var r = new Uint8Array([
  13218. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13219. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13220. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13221. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13222. var k = new Int32Array([
  13223. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13224. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13225. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13226. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13227. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13228. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13229. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13230. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13231. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13232. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13233. -145523070, -1120210379, 718787259, -343485551]);
  13234. function hash(data, offset, length) {
  13235. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13236. // pre-processing
  13237. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13238. var padded = new Uint8Array(paddedLength);
  13239. var i, j, n;
  13240. for (i = 0; i < length; ++i) {
  13241. padded[i] = data[offset++];
  13242. }
  13243. padded[i++] = 0x80;
  13244. n = paddedLength - 8;
  13245. while (i < n) {
  13246. padded[i++] = 0;
  13247. }
  13248. padded[i++] = (length << 3) & 0xFF;
  13249. padded[i++] = (length >> 5) & 0xFF;
  13250. padded[i++] = (length >> 13) & 0xFF;
  13251. padded[i++] = (length >> 21) & 0xFF;
  13252. padded[i++] = (length >>> 29) & 0xFF;
  13253. padded[i++] = 0;
  13254. padded[i++] = 0;
  13255. padded[i++] = 0;
  13256. // chunking
  13257. // TODO ArrayBuffer ?
  13258. var w = new Int32Array(16);
  13259. for (i = 0; i < paddedLength;) {
  13260. for (j = 0; j < 16; ++j, i += 4) {
  13261. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13262. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13263. }
  13264. var a = h0, b = h1, c = h2, d = h3, f, g;
  13265. for (j = 0; j < 64; ++j) {
  13266. if (j < 16) {
  13267. f = (b & c) | ((~b) & d);
  13268. g = j;
  13269. } else if (j < 32) {
  13270. f = (d & b) | ((~d) & c);
  13271. g = (5 * j + 1) & 15;
  13272. } else if (j < 48) {
  13273. f = b ^ c ^ d;
  13274. g = (3 * j + 5) & 15;
  13275. } else {
  13276. f = c ^ (b | (~d));
  13277. g = (7 * j) & 15;
  13278. }
  13279. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13280. d = c;
  13281. c = b;
  13282. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13283. a = tmp;
  13284. }
  13285. h0 = (h0 + a) | 0;
  13286. h1 = (h1 + b) | 0;
  13287. h2 = (h2 + c) | 0;
  13288. h3 = (h3 + d) | 0;
  13289. }
  13290. return new Uint8Array([
  13291. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13292. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13293. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13294. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13295. ]);
  13296. }
  13297. return hash;
  13298. })();
  13299. var NullCipher = (function NullCipherClosure() {
  13300. function NullCipher() {}
  13301. NullCipher.prototype = {
  13302. decryptBlock: function NullCipher_decryptBlock(data) {
  13303. return data;
  13304. }
  13305. };
  13306. return NullCipher;
  13307. })();
  13308. var AES128Cipher = (function AES128CipherClosure() {
  13309. var rcon = new Uint8Array([
  13310. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13311. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13312. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13313. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13314. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13315. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13316. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13317. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13318. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13319. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13320. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13321. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13322. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13323. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13324. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13325. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13326. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13327. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13328. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13329. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13330. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13331. 0x74, 0xe8, 0xcb, 0x8d]);
  13332. var s = new Uint8Array([
  13333. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13334. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13335. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13336. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13337. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13338. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13339. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13340. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13341. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13342. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13343. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13344. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13345. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13346. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13347. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13348. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13349. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13350. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13351. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13352. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13353. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13354. 0xb0, 0x54, 0xbb, 0x16]);
  13355. var inv_s = new Uint8Array([
  13356. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13357. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13358. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13359. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13360. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13361. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13362. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13363. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13364. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13365. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13366. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13367. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13368. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13369. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13370. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13371. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13372. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13373. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13374. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13375. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13376. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13377. 0x55, 0x21, 0x0c, 0x7d]);
  13378. var mix = new Uint32Array([
  13379. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13380. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13381. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13382. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13383. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13384. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13385. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13386. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13387. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13388. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13389. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13390. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13391. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13392. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13393. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13394. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13395. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13396. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13397. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13398. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13399. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13400. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13401. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13402. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13403. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13404. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13405. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13406. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13407. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13408. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13409. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13410. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13411. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13412. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13413. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13414. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13415. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13416. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13417. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13418. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13419. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13420. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13421. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13422. function expandKey128(cipherKey) {
  13423. var b = 176, result = new Uint8Array(b);
  13424. result.set(cipherKey);
  13425. for (var j = 16, i = 1; j < b; ++i) {
  13426. // RotWord
  13427. var t1 = result[j - 3], t2 = result[j - 2],
  13428. t3 = result[j - 1], t4 = result[j - 4];
  13429. // SubWord
  13430. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13431. // Rcon
  13432. t1 = t1 ^ rcon[i];
  13433. for (var n = 0; n < 4; ++n) {
  13434. result[j] = (t1 ^= result[j - 16]); j++;
  13435. result[j] = (t2 ^= result[j - 16]); j++;
  13436. result[j] = (t3 ^= result[j - 16]); j++;
  13437. result[j] = (t4 ^= result[j - 16]); j++;
  13438. }
  13439. }
  13440. return result;
  13441. }
  13442. function decrypt128(input, key) {
  13443. var state = new Uint8Array(16);
  13444. state.set(input);
  13445. var i, j, k;
  13446. var t, u, v;
  13447. // AddRoundKey
  13448. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13449. state[j] ^= key[k];
  13450. }
  13451. for (i = 9; i >= 1; --i) {
  13452. // InvShiftRows
  13453. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13454. state[5] = state[1]; state[1] = t;
  13455. t = state[14]; u = state[10]; state[14] = state[6];
  13456. state[10] = state[2]; state[6] = t; state[2] = u;
  13457. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13458. state[11] = t; state[7] = u; state[3] = v;
  13459. // InvSubBytes
  13460. for (j = 0; j < 16; ++j) {
  13461. state[j] = inv_s[state[j]];
  13462. }
  13463. // AddRoundKey
  13464. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13465. state[j] ^= key[k];
  13466. }
  13467. // InvMixColumns
  13468. for (j = 0; j < 16; j += 4) {
  13469. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13470. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13471. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13472. (s3 >>> 24) ^ (s3 << 8));
  13473. state[j] = (t >>> 24) & 0xFF;
  13474. state[j + 1] = (t >> 16) & 0xFF;
  13475. state[j + 2] = (t >> 8) & 0xFF;
  13476. state[j + 3] = t & 0xFF;
  13477. }
  13478. }
  13479. // InvShiftRows
  13480. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13481. state[5] = state[1]; state[1] = t;
  13482. t = state[14]; u = state[10]; state[14] = state[6];
  13483. state[10] = state[2]; state[6] = t; state[2] = u;
  13484. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13485. state[11] = t; state[7] = u; state[3] = v;
  13486. for (j = 0; j < 16; ++j) {
  13487. // InvSubBytes
  13488. state[j] = inv_s[state[j]];
  13489. // AddRoundKey
  13490. state[j] ^= key[j];
  13491. }
  13492. return state;
  13493. }
  13494. function AES128Cipher(key) {
  13495. this.key = expandKey128(key);
  13496. this.buffer = new Uint8Array(16);
  13497. this.bufferPosition = 0;
  13498. }
  13499. function decryptBlock2(data, finalize) {
  13500. var i, j, ii, sourceLength = data.length,
  13501. buffer = this.buffer, bufferLength = this.bufferPosition,
  13502. result = [], iv = this.iv;
  13503. for (i = 0; i < sourceLength; ++i) {
  13504. buffer[bufferLength] = data[i];
  13505. ++bufferLength;
  13506. if (bufferLength < 16) {
  13507. continue;
  13508. }
  13509. // buffer is full, decrypting
  13510. var plain = decrypt128(buffer, this.key);
  13511. // xor-ing the IV vector to get plain text
  13512. for (j = 0; j < 16; ++j) {
  13513. plain[j] ^= iv[j];
  13514. }
  13515. iv = buffer;
  13516. result.push(plain);
  13517. buffer = new Uint8Array(16);
  13518. bufferLength = 0;
  13519. }
  13520. // saving incomplete buffer
  13521. this.buffer = buffer;
  13522. this.bufferLength = bufferLength;
  13523. this.iv = iv;
  13524. if (result.length === 0) {
  13525. return new Uint8Array([]);
  13526. }
  13527. // combining plain text blocks into one
  13528. var outputLength = 16 * result.length;
  13529. if (finalize) {
  13530. // undo a padding that is described in RFC 2898
  13531. var lastBlock = result[result.length - 1];
  13532. outputLength -= lastBlock[15];
  13533. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13534. }
  13535. var output = new Uint8Array(outputLength);
  13536. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13537. output.set(result[i], j);
  13538. }
  13539. return output;
  13540. }
  13541. AES128Cipher.prototype = {
  13542. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13543. var i, sourceLength = data.length;
  13544. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13545. // waiting for IV values -- they are at the start of the stream
  13546. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13547. buffer[bufferLength] = data[i];
  13548. }
  13549. if (bufferLength < 16) {
  13550. // need more data
  13551. this.bufferLength = bufferLength;
  13552. return new Uint8Array([]);
  13553. }
  13554. this.iv = buffer;
  13555. this.buffer = new Uint8Array(16);
  13556. this.bufferLength = 0;
  13557. // starting decryption
  13558. this.decryptBlock = decryptBlock2;
  13559. return this.decryptBlock(data.subarray(16), finalize);
  13560. }
  13561. };
  13562. return AES128Cipher;
  13563. })();
  13564. var CipherTransform = (function CipherTransformClosure() {
  13565. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13566. this.stringCipherConstructor = stringCipherConstructor;
  13567. this.streamCipherConstructor = streamCipherConstructor;
  13568. }
  13569. CipherTransform.prototype = {
  13570. createStream: function CipherTransform_createStream(stream, length) {
  13571. var cipher = new this.streamCipherConstructor();
  13572. return new DecryptStream(stream, length,
  13573. function cipherTransformDecryptStream(data, finalize) {
  13574. return cipher.decryptBlock(data, finalize);
  13575. }
  13576. );
  13577. },
  13578. decryptString: function CipherTransform_decryptString(s) {
  13579. var cipher = new this.stringCipherConstructor();
  13580. var data = stringToBytes(s);
  13581. data = cipher.decryptBlock(data, true);
  13582. return bytesToString(data);
  13583. }
  13584. };
  13585. return CipherTransform;
  13586. })();
  13587. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13588. var defaultPasswordBytes = new Uint8Array([
  13589. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13590. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13591. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13592. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13593. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13594. flags, revision, keyLength, encryptMetadata) {
  13595. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13596. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13597. if (password) {
  13598. n = Math.min(32, password.length);
  13599. for (; i < n; ++i) {
  13600. hashData[i] = password[i];
  13601. }
  13602. }
  13603. j = 0;
  13604. while (i < 32) {
  13605. hashData[i++] = defaultPasswordBytes[j++];
  13606. }
  13607. // as now the padded password in the hashData[0..i]
  13608. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  13609. hashData[i++] = ownerPassword[j];
  13610. }
  13611. hashData[i++] = flags & 0xFF;
  13612. hashData[i++] = (flags >> 8) & 0xFF;
  13613. hashData[i++] = (flags >> 16) & 0xFF;
  13614. hashData[i++] = (flags >>> 24) & 0xFF;
  13615. for (j = 0, n = fileId.length; j < n; ++j) {
  13616. hashData[i++] = fileId[j];
  13617. }
  13618. if (revision >= 4 && !encryptMetadata) {
  13619. hashData[i++] = 0xFF;
  13620. hashData[i++] = 0xFF;
  13621. hashData[i++] = 0xFF;
  13622. hashData[i++] = 0xFF;
  13623. }
  13624. var hash = calculateMD5(hashData, 0, i);
  13625. var keyLengthInBytes = keyLength >> 3;
  13626. if (revision >= 3) {
  13627. for (j = 0; j < 50; ++j) {
  13628. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13629. }
  13630. }
  13631. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13632. var cipher, checkData;
  13633. if (revision >= 3) {
  13634. for (i = 0; i < 32; ++i) {
  13635. hashData[i] = defaultPasswordBytes[i];
  13636. }
  13637. for (j = 0, n = fileId.length; j < n; ++j) {
  13638. hashData[i++] = fileId[j];
  13639. }
  13640. cipher = new ARCFourCipher(encryptionKey);
  13641. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13642. n = encryptionKey.length;
  13643. var derivedKey = new Uint8Array(n), k;
  13644. for (j = 1; j <= 19; ++j) {
  13645. for (k = 0; k < n; ++k) {
  13646. derivedKey[k] = encryptionKey[k] ^ j;
  13647. }
  13648. cipher = new ARCFourCipher(derivedKey);
  13649. checkData = cipher.encryptBlock(checkData);
  13650. }
  13651. for (j = 0, n = checkData.length; j < n; ++j) {
  13652. if (userPassword[j] != checkData[j]) {
  13653. return null;
  13654. }
  13655. }
  13656. } else {
  13657. cipher = new ARCFourCipher(encryptionKey);
  13658. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13659. for (j = 0, n = checkData.length; j < n; ++j) {
  13660. if (userPassword[j] != checkData[j]) {
  13661. return null;
  13662. }
  13663. }
  13664. }
  13665. return encryptionKey;
  13666. }
  13667. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13668. var hashData = new Uint8Array(32), i = 0, j, n;
  13669. n = Math.min(32, password.length);
  13670. for (; i < n; ++i) {
  13671. hashData[i] = password[i];
  13672. }
  13673. j = 0;
  13674. while (i < 32) {
  13675. hashData[i++] = defaultPasswordBytes[j++];
  13676. }
  13677. var hash = calculateMD5(hashData, 0, i);
  13678. var keyLengthInBytes = keyLength >> 3;
  13679. if (revision >= 3) {
  13680. for (j = 0; j < 50; ++j) {
  13681. hash = calculateMD5(hash, 0, hash.length);
  13682. }
  13683. }
  13684. var cipher, userPassword;
  13685. if (revision >= 3) {
  13686. userPassword = ownerPassword;
  13687. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13688. for (j = 19; j >= 0; j--) {
  13689. for (k = 0; k < keyLengthInBytes; ++k) {
  13690. derivedKey[k] = hash[k] ^ j;
  13691. }
  13692. cipher = new ARCFourCipher(derivedKey);
  13693. userPassword = cipher.encryptBlock(userPassword);
  13694. }
  13695. } else {
  13696. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13697. userPassword = cipher.encryptBlock(ownerPassword);
  13698. }
  13699. return userPassword;
  13700. }
  13701. var identityName = Name.get('Identity');
  13702. function CipherTransformFactory(dict, fileId, password) {
  13703. var filter = dict.get('Filter');
  13704. if (!isName(filter) || filter.name != 'Standard') {
  13705. error('unknown encryption method');
  13706. }
  13707. this.dict = dict;
  13708. var algorithm = dict.get('V');
  13709. if (!isInt(algorithm) ||
  13710. (algorithm != 1 && algorithm != 2 && algorithm != 4)) {
  13711. error('unsupported encryption algorithm');
  13712. }
  13713. this.algorithm = algorithm;
  13714. var keyLength = dict.get('Length') || 40;
  13715. if (!isInt(keyLength) ||
  13716. keyLength < 40 || (keyLength % 8) !== 0) {
  13717. error('invalid key length');
  13718. }
  13719. // prepare keys
  13720. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13721. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13722. var flags = dict.get('P');
  13723. var revision = dict.get('R');
  13724. var encryptMetadata = (algorithm == 4 && // meaningful when V is 4
  13725. dict.get('EncryptMetadata') !== false); // makes true as default value
  13726. this.encryptMetadata = encryptMetadata;
  13727. var fileIdBytes = stringToBytes(fileId);
  13728. var passwordBytes;
  13729. if (password) {
  13730. passwordBytes = stringToBytes(password);
  13731. }
  13732. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13733. ownerPassword, userPassword, flags,
  13734. revision, keyLength, encryptMetadata);
  13735. if (!encryptionKey && !password) {
  13736. throw new PasswordException('No password given',
  13737. PasswordResponses.NEED_PASSWORD);
  13738. } else if (!encryptionKey && password) {
  13739. // Attempting use the password as an owner password
  13740. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13741. revision, keyLength);
  13742. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13743. ownerPassword, userPassword, flags,
  13744. revision, keyLength, encryptMetadata);
  13745. }
  13746. if (!encryptionKey) {
  13747. throw new PasswordException('Incorrect Password',
  13748. PasswordResponses.INCORRECT_PASSWORD);
  13749. }
  13750. this.encryptionKey = encryptionKey;
  13751. if (algorithm == 4) {
  13752. this.cf = dict.get('CF');
  13753. this.stmf = dict.get('StmF') || identityName;
  13754. this.strf = dict.get('StrF') || identityName;
  13755. this.eff = dict.get('EFF') || this.strf;
  13756. }
  13757. }
  13758. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13759. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13760. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  13761. key[i] = encryptionKey[i];
  13762. }
  13763. key[i++] = num & 0xFF;
  13764. key[i++] = (num >> 8) & 0xFF;
  13765. key[i++] = (num >> 16) & 0xFF;
  13766. key[i++] = gen & 0xFF;
  13767. key[i++] = (gen >> 8) & 0xFF;
  13768. if (isAes) {
  13769. key[i++] = 0x73;
  13770. key[i++] = 0x41;
  13771. key[i++] = 0x6C;
  13772. key[i++] = 0x54;
  13773. }
  13774. var hash = calculateMD5(key, 0, i);
  13775. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13776. }
  13777. function buildCipherConstructor(cf, name, num, gen, key) {
  13778. var cryptFilter = cf.get(name.name);
  13779. var cfm;
  13780. if (cryptFilter !== null && cryptFilter !== undefined) {
  13781. cfm = cryptFilter.get('CFM');
  13782. }
  13783. if (!cfm || cfm.name == 'None') {
  13784. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13785. return new NullCipher();
  13786. };
  13787. }
  13788. if ('V2' == cfm.name) {
  13789. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13790. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  13791. };
  13792. }
  13793. if ('AESV2' == cfm.name) {
  13794. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13795. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  13796. };
  13797. }
  13798. error('Unknown crypto method');
  13799. }
  13800. CipherTransformFactory.prototype = {
  13801. createCipherTransform:
  13802. function CipherTransformFactory_createCipherTransform(num, gen) {
  13803. if (this.algorithm == 4) {
  13804. return new CipherTransform(
  13805. buildCipherConstructor(this.cf, this.stmf,
  13806. num, gen, this.encryptionKey),
  13807. buildCipherConstructor(this.cf, this.strf,
  13808. num, gen, this.encryptionKey));
  13809. }
  13810. // algorithms 1 and 2
  13811. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13812. var cipherConstructor = function buildCipherCipherConstructor() {
  13813. return new ARCFourCipher(key);
  13814. };
  13815. return new CipherTransform(cipherConstructor, cipherConstructor);
  13816. }
  13817. };
  13818. return CipherTransformFactory;
  13819. })();
  13820. var PatternType = {
  13821. FUNCTION_BASED: 1,
  13822. AXIAL: 2,
  13823. RADIAL: 3,
  13824. FREE_FORM_MESH: 4,
  13825. LATTICE_FORM_MESH: 5,
  13826. COONS_PATCH_MESH: 6,
  13827. TENSOR_PATCH_MESH: 7
  13828. };
  13829. var Pattern = (function PatternClosure() {
  13830. // Constructor should define this.getPattern
  13831. function Pattern() {
  13832. error('should not call Pattern constructor');
  13833. }
  13834. Pattern.prototype = {
  13835. // Input: current Canvas context
  13836. // Output: the appropriate fillStyle or strokeStyle
  13837. getPattern: function Pattern_getPattern(ctx) {
  13838. error('Should not call Pattern.getStyle: ' + ctx);
  13839. }
  13840. };
  13841. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13842. res) {
  13843. var dict = isStream(shading) ? shading.dict : shading;
  13844. var type = dict.get('ShadingType');
  13845. switch (type) {
  13846. case PatternType.AXIAL:
  13847. case PatternType.RADIAL:
  13848. // Both radial and axial shadings are handled by RadialAxial shading.
  13849. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13850. case PatternType.FREE_FORM_MESH:
  13851. case PatternType.LATTICE_FORM_MESH:
  13852. case PatternType.COONS_PATCH_MESH:
  13853. case PatternType.TENSOR_PATCH_MESH:
  13854. return new Shadings.Mesh(shading, matrix, xref, res);
  13855. default:
  13856. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13857. return new Shadings.Dummy();
  13858. }
  13859. };
  13860. return Pattern;
  13861. })();
  13862. var Shadings = {};
  13863. // A small number to offset the first/last color stops so we can insert ones to
  13864. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13865. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13866. // internally so we have to go bigger.
  13867. Shadings.SMALL_NUMBER = 1e-2;
  13868. // Radial and axial shading have very similar implementations
  13869. // If needed, the implementations can be broken into two classes
  13870. Shadings.RadialAxial = (function RadialAxialClosure() {
  13871. function RadialAxial(dict, matrix, xref, res) {
  13872. this.matrix = matrix;
  13873. this.coordsArr = dict.get('Coords');
  13874. this.shadingType = dict.get('ShadingType');
  13875. this.type = 'Pattern';
  13876. var cs = dict.get('ColorSpace', 'CS');
  13877. cs = ColorSpace.parse(cs, xref, res);
  13878. this.cs = cs;
  13879. var t0 = 0.0, t1 = 1.0;
  13880. if (dict.has('Domain')) {
  13881. var domainArr = dict.get('Domain');
  13882. t0 = domainArr[0];
  13883. t1 = domainArr[1];
  13884. }
  13885. var extendStart = false, extendEnd = false;
  13886. if (dict.has('Extend')) {
  13887. var extendArr = dict.get('Extend');
  13888. extendStart = extendArr[0];
  13889. extendEnd = extendArr[1];
  13890. }
  13891. if (this.shadingType === PatternType.RADIAL &&
  13892. (!extendStart || !extendEnd)) {
  13893. // Radial gradient only currently works if either circle is fully within
  13894. // the other circle.
  13895. var x1 = this.coordsArr[0];
  13896. var y1 = this.coordsArr[1];
  13897. var r1 = this.coordsArr[2];
  13898. var x2 = this.coordsArr[3];
  13899. var y2 = this.coordsArr[4];
  13900. var r2 = this.coordsArr[5];
  13901. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13902. if (r1 <= r2 + distance &&
  13903. r2 <= r1 + distance) {
  13904. warn('Unsupported radial gradient.');
  13905. }
  13906. }
  13907. this.extendStart = extendStart;
  13908. this.extendEnd = extendEnd;
  13909. var fnObj = dict.get('Function');
  13910. var fn;
  13911. if (isArray(fnObj)) {
  13912. var fnArray = [];
  13913. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13914. var obj = xref.fetchIfRef(fnObj[j]);
  13915. if (!isPDFFunction(obj)) {
  13916. error('Invalid function');
  13917. }
  13918. fnArray.push(PDFFunction.parse(xref, obj));
  13919. }
  13920. fn = function radialAxialColorFunction(arg) {
  13921. var out = [];
  13922. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13923. out.push(fnArray[i](arg)[0]);
  13924. }
  13925. return out;
  13926. };
  13927. } else {
  13928. if (!isPDFFunction(fnObj)) {
  13929. error('Invalid function');
  13930. }
  13931. fn = PDFFunction.parse(xref, fnObj);
  13932. }
  13933. // 10 samples seems good enough for now, but probably won't work
  13934. // if there are sharp color changes. Ideally, we would implement
  13935. // the spec faithfully and add lossless optimizations.
  13936. var diff = t1 - t0;
  13937. var step = diff / 10;
  13938. var colorStops = this.colorStops = [];
  13939. // Protect against bad domains so we don't end up in an infinte loop below.
  13940. if (t0 >= t1 || step <= 0) {
  13941. // Acrobat doesn't seem to handle these cases so we'll ignore for
  13942. // now.
  13943. info('Bad shading domain.');
  13944. return;
  13945. }
  13946. var rgbColor;
  13947. for (var i = t0; i <= t1; i += step) {
  13948. rgbColor = cs.getRgb(fn([i]), 0);
  13949. var cssColor = Util.makeCssRgb(rgbColor);
  13950. colorStops.push([(i - t0) / diff, cssColor]);
  13951. }
  13952. var background = 'transparent';
  13953. if (dict.has('Background')) {
  13954. rgbColor = cs.getRgb(dict.get('Background'), 0);
  13955. background = Util.makeCssRgb(rgbColor);
  13956. }
  13957. if (!extendStart) {
  13958. // Insert a color stop at the front and offset the first real color stop
  13959. // so it doesn't conflict with the one we insert.
  13960. colorStops.unshift([0, background]);
  13961. colorStops[1][0] += Shadings.SMALL_NUMBER;
  13962. }
  13963. if (!extendEnd) {
  13964. // Same idea as above in extendStart but for the end.
  13965. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  13966. colorStops.push([1, background]);
  13967. }
  13968. this.colorStops = colorStops;
  13969. }
  13970. RadialAxial.prototype = {
  13971. getIR: function RadialAxial_getIR() {
  13972. var coordsArr = this.coordsArr;
  13973. var shadingType = this.shadingType;
  13974. var type, p0, p1, r0, r1;
  13975. if (shadingType == PatternType.AXIAL) {
  13976. p0 = [coordsArr[0], coordsArr[1]];
  13977. p1 = [coordsArr[2], coordsArr[3]];
  13978. r0 = null;
  13979. r1 = null;
  13980. type = 'axial';
  13981. } else if (shadingType == PatternType.RADIAL) {
  13982. p0 = [coordsArr[0], coordsArr[1]];
  13983. p1 = [coordsArr[3], coordsArr[4]];
  13984. r0 = coordsArr[2];
  13985. r1 = coordsArr[5];
  13986. type = 'radial';
  13987. } else {
  13988. error('getPattern type unknown: ' + shadingType);
  13989. }
  13990. var matrix = this.matrix;
  13991. if (matrix) {
  13992. p0 = Util.applyTransform(p0, matrix);
  13993. p1 = Util.applyTransform(p1, matrix);
  13994. }
  13995. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  13996. }
  13997. };
  13998. return RadialAxial;
  13999. })();
  14000. // All mesh shading. For now, they will be presented as set of the triangles
  14001. // to be drawn on the canvas and rgb color for each vertex.
  14002. Shadings.Mesh = (function MeshClosure() {
  14003. function MeshStreamReader(stream, context) {
  14004. this.stream = stream;
  14005. this.context = context;
  14006. this.buffer = 0;
  14007. this.bufferLength = 0;
  14008. }
  14009. MeshStreamReader.prototype = {
  14010. get hasData() {
  14011. if (this.stream.end) {
  14012. return this.stream.pos < this.stream.end;
  14013. }
  14014. if (this.bufferLength > 0) {
  14015. return true;
  14016. }
  14017. var nextByte = this.stream.getByte();
  14018. if (nextByte < 0) {
  14019. return false;
  14020. }
  14021. this.buffer = nextByte;
  14022. this.bufferLength = 8;
  14023. return true;
  14024. },
  14025. readBits: function MeshStreamReader_readBits(n) {
  14026. var buffer = this.buffer;
  14027. var bufferLength = this.bufferLength;
  14028. if (n === 32) {
  14029. if (bufferLength === 0) {
  14030. return ((this.stream.getByte() << 24) |
  14031. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  14032. this.stream.getByte()) >>> 0;
  14033. }
  14034. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  14035. (this.stream.getByte() << 8) | this.stream.getByte();
  14036. var nextByte = this.stream.getByte();
  14037. this.buffer = nextByte & ((1 << bufferLength) - 1);
  14038. return ((buffer << (8 - bufferLength)) |
  14039. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  14040. }
  14041. if (n === 8 && bufferLength === 0) {
  14042. return this.stream.getByte();
  14043. }
  14044. while (bufferLength < n) {
  14045. buffer = (buffer << 8) | this.stream.getByte();
  14046. bufferLength += 8;
  14047. }
  14048. bufferLength -= n;
  14049. this.bufferLength = bufferLength;
  14050. this.buffer = buffer & ((1 << bufferLength) - 1);
  14051. return buffer >> bufferLength;
  14052. },
  14053. align: function MeshStreamReader_align() {
  14054. this.buffer = 0;
  14055. this.bufferLength = 0;
  14056. },
  14057. readFlag: function MeshStreamReader_readFlag() {
  14058. return this.readBits(this.context.bitsPerFlag);
  14059. },
  14060. readCoordinate: function MeshStreamReader_readCoordinate() {
  14061. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  14062. var xi = this.readBits(bitsPerCoordinate);
  14063. var yi = this.readBits(bitsPerCoordinate);
  14064. var decode = this.context.decode;
  14065. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  14066. 2.3283064365386963e-10; // 2 ^ -32
  14067. return [
  14068. xi * scale * (decode[1] - decode[0]) + decode[0],
  14069. yi * scale * (decode[3] - decode[2]) + decode[2]
  14070. ];
  14071. },
  14072. readComponents: function MeshStreamReader_readComponents() {
  14073. var numComps = this.context.numComps;
  14074. var bitsPerComponent = this.context.bitsPerComponent;
  14075. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  14076. 2.3283064365386963e-10; // 2 ^ -32
  14077. var decode = this.context.decode;
  14078. var components = [];
  14079. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  14080. var ci = this.readBits(bitsPerComponent);
  14081. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  14082. }
  14083. if (this.context.colorFn) {
  14084. components = this.context.colorFn(components);
  14085. }
  14086. return this.context.colorSpace.getRgb(components, 0);
  14087. }
  14088. };
  14089. function decodeType4Shading(mesh, reader) {
  14090. var coords = mesh.coords;
  14091. var colors = mesh.colors;
  14092. var operators = [];
  14093. var ps = []; // not maintaining cs since that will match ps
  14094. var verticesLeft = 0; // assuming we have all data to start a new triangle
  14095. while (reader.hasData) {
  14096. var f = reader.readFlag();
  14097. var coord = reader.readCoordinate();
  14098. var color = reader.readComponents();
  14099. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  14100. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  14101. switch (f) {
  14102. case 0:
  14103. verticesLeft = 3;
  14104. break;
  14105. case 1:
  14106. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  14107. verticesLeft = 1;
  14108. break;
  14109. case 2:
  14110. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  14111. verticesLeft = 1;
  14112. break;
  14113. }
  14114. operators.push(f);
  14115. }
  14116. ps.push(coords.length);
  14117. coords.push(coord);
  14118. colors.push(color);
  14119. verticesLeft--;
  14120. reader.align();
  14121. }
  14122. var psPacked = new Int32Array(ps);
  14123. mesh.figures.push({
  14124. type: 'triangles',
  14125. coords: psPacked,
  14126. colors: psPacked
  14127. });
  14128. }
  14129. function decodeType5Shading(mesh, reader, verticesPerRow) {
  14130. var coords = mesh.coords;
  14131. var colors = mesh.colors;
  14132. var ps = []; // not maintaining cs since that will match ps
  14133. while (reader.hasData) {
  14134. var coord = reader.readCoordinate();
  14135. var color = reader.readComponents();
  14136. ps.push(coords.length);
  14137. coords.push(coord);
  14138. colors.push(color);
  14139. }
  14140. var psPacked = new Int32Array(ps);
  14141. mesh.figures.push({
  14142. type: 'lattice',
  14143. coords: psPacked,
  14144. colors: psPacked,
  14145. verticesPerRow: verticesPerRow
  14146. });
  14147. }
  14148. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  14149. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  14150. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  14151. var getB = (function getBClosure() {
  14152. function buildB(count) {
  14153. var lut = [];
  14154. for (var i = 0; i <= count; i++) {
  14155. var t = i / count, t_ = 1 - t;
  14156. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  14157. 3 * t * t * t_, t * t * t]));
  14158. }
  14159. return lut;
  14160. }
  14161. var cache = [];
  14162. return function getB(count) {
  14163. if (!cache[count]) {
  14164. cache[count] = buildB(count);
  14165. }
  14166. return cache[count];
  14167. };
  14168. })();
  14169. function buildFigureFromPatch(mesh, index) {
  14170. var figure = mesh.figures[index];
  14171. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  14172. var coords = mesh.coords, colors = mesh.colors;
  14173. var pi = figure.coords;
  14174. var ci = figure.colors;
  14175. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  14176. coords[pi[12]][0], coords[pi[15]][0]);
  14177. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  14178. coords[pi[12]][1], coords[pi[15]][1]);
  14179. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  14180. coords[pi[12]][0], coords[pi[15]][0]);
  14181. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  14182. coords[pi[12]][1], coords[pi[15]][1]);
  14183. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  14184. (mesh.bounds[2] - mesh.bounds[0]));
  14185. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14186. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  14187. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  14188. (mesh.bounds[3] - mesh.bounds[1]));
  14189. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14190. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  14191. var verticesPerRow = splitXBy + 1;
  14192. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  14193. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  14194. var k = 0;
  14195. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  14196. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  14197. c2 = colors[ci[2]], c3 = colors[ci[3]];
  14198. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  14199. for (var row = 0; row <= splitYBy; row++) {
  14200. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  14201. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  14202. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  14203. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  14204. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  14205. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  14206. for (var col = 0; col <= splitXBy; col++, k++) {
  14207. if ((row === 0 || row === splitYBy) &&
  14208. (col === 0 || col === splitXBy)) {
  14209. continue;
  14210. }
  14211. var x = 0, y = 0;
  14212. var q = 0;
  14213. for (var i = 0; i <= 3; i++) {
  14214. for (var j = 0; j <= 3; j++, q++) {
  14215. var m = bRow[row][i] * bCol[col][j];
  14216. x += coords[pi[q]][0] * m;
  14217. y += coords[pi[q]][1] * m;
  14218. }
  14219. }
  14220. figureCoords[k] = coords.length;
  14221. coords.push([x, y]);
  14222. figureColors[k] = colors.length;
  14223. var newColor = new Uint8Array(3);
  14224. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  14225. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  14226. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  14227. colors.push(newColor);
  14228. }
  14229. }
  14230. figureCoords[0] = pi[0];
  14231. figureColors[0] = ci[0];
  14232. figureCoords[splitXBy] = pi[3];
  14233. figureColors[splitXBy] = ci[1];
  14234. figureCoords[verticesPerRow * splitYBy] = pi[12];
  14235. figureColors[verticesPerRow * splitYBy] = ci[2];
  14236. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  14237. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  14238. mesh.figures[index] = {
  14239. type: 'lattice',
  14240. coords: figureCoords,
  14241. colors: figureColors,
  14242. verticesPerRow: verticesPerRow
  14243. };
  14244. }
  14245. function decodeType6Shading(mesh, reader) {
  14246. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  14247. var coords = mesh.coords;
  14248. var colors = mesh.colors;
  14249. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14250. var cs = new Int32Array(4); // c00, c30, c03, c33
  14251. while (reader.hasData) {
  14252. var f = reader.readFlag();
  14253. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  14254. var i, ii;
  14255. var pi = coords.length;
  14256. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  14257. coords.push(reader.readCoordinate());
  14258. }
  14259. var ci = colors.length;
  14260. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14261. colors.push(reader.readComponents());
  14262. }
  14263. var tmp1, tmp2, tmp3, tmp4;
  14264. switch (f) {
  14265. case 0:
  14266. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14267. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14268. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  14269. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14270. cs[2] = ci + 1; cs[3] = ci + 2;
  14271. cs[0] = ci; cs[1] = ci + 3;
  14272. break;
  14273. case 1:
  14274. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14275. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14276. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  14277. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  14278. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14279. tmp1 = cs[2]; tmp2 = cs[3];
  14280. cs[2] = ci + 1; cs[3] = ci;
  14281. cs[0] = tmp1; cs[1] = tmp2;
  14282. break;
  14283. case 2:
  14284. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14285. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  14286. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  14287. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14288. cs[2] = cs[3]; cs[3] = ci + 1;
  14289. cs[0] = cs[1]; cs[1] = ci;
  14290. break;
  14291. case 3:
  14292. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14293. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14294. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  14295. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14296. cs[2] = cs[0]; cs[3] = cs[1];
  14297. cs[0] = ci; cs[1] = ci + 1;
  14298. break;
  14299. }
  14300. // set p11, p12, p21, p22
  14301. ps[5] = coords.length;
  14302. coords.push([
  14303. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  14304. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  14305. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14306. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  14307. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  14308. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  14309. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14310. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  14311. ]);
  14312. ps[6] = coords.length;
  14313. coords.push([
  14314. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  14315. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  14316. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14317. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  14318. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  14319. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  14320. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14321. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  14322. ]);
  14323. ps[9] = coords.length;
  14324. coords.push([
  14325. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  14326. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  14327. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14328. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  14329. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  14330. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  14331. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14332. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  14333. ]);
  14334. ps[10] = coords.length;
  14335. coords.push([
  14336. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  14337. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  14338. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14339. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  14340. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  14341. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  14342. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14343. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  14344. ]);
  14345. mesh.figures.push({
  14346. type: 'patch',
  14347. coords: new Int32Array(ps), // making copies of ps and cs
  14348. colors: new Int32Array(cs)
  14349. });
  14350. }
  14351. }
  14352. function decodeType7Shading(mesh, reader) {
  14353. var coords = mesh.coords;
  14354. var colors = mesh.colors;
  14355. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14356. var cs = new Int32Array(4); // c00, c30, c03, c33
  14357. while (reader.hasData) {
  14358. var f = reader.readFlag();
  14359. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  14360. var i, ii;
  14361. var pi = coords.length;
  14362. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  14363. coords.push(reader.readCoordinate());
  14364. }
  14365. var ci = colors.length;
  14366. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14367. colors.push(reader.readComponents());
  14368. }
  14369. var tmp1, tmp2, tmp3, tmp4;
  14370. switch (f) {
  14371. case 0:
  14372. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14373. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  14374. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  14375. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14376. cs[2] = ci + 1; cs[3] = ci + 2;
  14377. cs[0] = ci; cs[1] = ci + 3;
  14378. break;
  14379. case 1:
  14380. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14381. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14382. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  14383. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  14384. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14385. tmp1 = cs[2]; tmp2 = cs[3];
  14386. cs[2] = ci + 1; cs[3] = ci;
  14387. cs[0] = tmp1; cs[1] = tmp2;
  14388. break;
  14389. case 2:
  14390. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14391. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  14392. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  14393. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14394. cs[2] = cs[3]; cs[3] = ci + 1;
  14395. cs[0] = cs[1]; cs[1] = ci;
  14396. break;
  14397. case 3:
  14398. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14399. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  14400. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  14401. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14402. cs[2] = cs[0]; cs[3] = cs[1];
  14403. cs[0] = ci; cs[1] = ci + 1;
  14404. break;
  14405. }
  14406. mesh.figures.push({
  14407. type: 'patch',
  14408. coords: new Int32Array(ps), // making copies of ps and cs
  14409. colors: new Int32Array(cs)
  14410. });
  14411. }
  14412. }
  14413. function updateBounds(mesh) {
  14414. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  14415. maxX = minX, maxY = minY;
  14416. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  14417. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  14418. minX = minX > x ? x : minX;
  14419. minY = minY > y ? y : minY;
  14420. maxX = maxX < x ? x : maxX;
  14421. maxY = maxY < y ? y : maxY;
  14422. }
  14423. mesh.bounds = [minX, minY, maxX, maxY];
  14424. }
  14425. function packData(mesh) {
  14426. var i, ii, j, jj;
  14427. var coords = mesh.coords;
  14428. var coordsPacked = new Float32Array(coords.length * 2);
  14429. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  14430. var xy = coords[i];
  14431. coordsPacked[j++] = xy[0];
  14432. coordsPacked[j++] = xy[1];
  14433. }
  14434. mesh.coords = coordsPacked;
  14435. var colors = mesh.colors;
  14436. var colorsPacked = new Uint8Array(colors.length * 3);
  14437. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  14438. var c = colors[i];
  14439. colorsPacked[j++] = c[0];
  14440. colorsPacked[j++] = c[1];
  14441. colorsPacked[j++] = c[2];
  14442. }
  14443. mesh.colors = colorsPacked;
  14444. var figures = mesh.figures;
  14445. for (i = 0, ii = figures.length; i < ii; i++) {
  14446. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  14447. for (j = 0, jj = ps.length; j < jj; j++) {
  14448. ps[j] *= 2;
  14449. cs[j] *= 3;
  14450. }
  14451. }
  14452. }
  14453. function Mesh(stream, matrix, xref, res) {
  14454. assert(isStream(stream), 'Mesh data is not a stream');
  14455. var dict = stream.dict;
  14456. this.matrix = matrix;
  14457. this.shadingType = dict.get('ShadingType');
  14458. this.type = 'Pattern';
  14459. this.bbox = dict.get('BBox');
  14460. var cs = dict.get('ColorSpace', 'CS');
  14461. cs = ColorSpace.parse(cs, xref, res);
  14462. this.cs = cs;
  14463. this.background = dict.has('Background') ?
  14464. cs.getRgb(dict.get('Background'), 0) : null;
  14465. var fnObj = dict.get('Function');
  14466. var fn;
  14467. if (!fnObj) {
  14468. fn = null;
  14469. } else if (isArray(fnObj)) {
  14470. var fnArray = [];
  14471. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  14472. var obj = xref.fetchIfRef(fnObj[j]);
  14473. if (!isPDFFunction(obj)) {
  14474. error('Invalid function');
  14475. }
  14476. fnArray.push(PDFFunction.parse(xref, obj));
  14477. }
  14478. fn = function radialAxialColorFunction(arg) {
  14479. var out = [];
  14480. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  14481. out.push(fnArray[i](arg)[0]);
  14482. }
  14483. return out;
  14484. };
  14485. } else {
  14486. if (!isPDFFunction(fnObj)) {
  14487. error('Invalid function');
  14488. }
  14489. fn = PDFFunction.parse(xref, fnObj);
  14490. }
  14491. this.coords = [];
  14492. this.colors = [];
  14493. this.figures = [];
  14494. var decodeContext = {
  14495. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  14496. bitsPerComponent: dict.get('BitsPerComponent'),
  14497. bitsPerFlag: dict.get('BitsPerFlag'),
  14498. decode: dict.get('Decode'),
  14499. colorFn: fn,
  14500. colorSpace: cs,
  14501. numComps: fn ? 1 : cs.numComps
  14502. };
  14503. var reader = new MeshStreamReader(stream, decodeContext);
  14504. var patchMesh = false;
  14505. switch (this.shadingType) {
  14506. case PatternType.FREE_FORM_MESH:
  14507. decodeType4Shading(this, reader);
  14508. break;
  14509. case PatternType.LATTICE_FORM_MESH:
  14510. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  14511. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  14512. decodeType5Shading(this, reader, verticesPerRow);
  14513. break;
  14514. case PatternType.COONS_PATCH_MESH:
  14515. decodeType6Shading(this, reader);
  14516. patchMesh = true;
  14517. break;
  14518. case PatternType.TENSOR_PATCH_MESH:
  14519. decodeType7Shading(this, reader);
  14520. patchMesh = true;
  14521. break;
  14522. default:
  14523. error('Unsupported mesh type.');
  14524. break;
  14525. }
  14526. if (patchMesh) {
  14527. // dirty bounds calculation for determining, how dense shall be triangles
  14528. updateBounds(this);
  14529. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  14530. buildFigureFromPatch(this, i);
  14531. }
  14532. }
  14533. // calculate bounds
  14534. updateBounds(this);
  14535. packData(this);
  14536. }
  14537. Mesh.prototype = {
  14538. getIR: function Mesh_getIR() {
  14539. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  14540. this.bounds, this.matrix, this.bbox, this.background];
  14541. }
  14542. };
  14543. return Mesh;
  14544. })();
  14545. Shadings.Dummy = (function DummyClosure() {
  14546. function Dummy() {
  14547. this.type = 'Pattern';
  14548. }
  14549. Dummy.prototype = {
  14550. getIR: function Dummy_getIR() {
  14551. return ['Dummy'];
  14552. }
  14553. };
  14554. return Dummy;
  14555. })();
  14556. function getTilingPatternIR(operatorList, dict, args) {
  14557. var matrix = dict.get('Matrix');
  14558. var bbox = dict.get('BBox');
  14559. var xstep = dict.get('XStep');
  14560. var ystep = dict.get('YStep');
  14561. var paintType = dict.get('PaintType');
  14562. var tilingType = dict.get('TilingType');
  14563. return [
  14564. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  14565. paintType, tilingType
  14566. ];
  14567. }
  14568. var PartialEvaluator = (function PartialEvaluatorClosure() {
  14569. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  14570. uniquePrefix, idCounters, fontCache) {
  14571. this.pdfManager = pdfManager;
  14572. this.xref = xref;
  14573. this.handler = handler;
  14574. this.pageIndex = pageIndex;
  14575. this.uniquePrefix = uniquePrefix;
  14576. this.idCounters = idCounters;
  14577. this.fontCache = fontCache;
  14578. }
  14579. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  14580. PartialEvaluator.prototype = {
  14581. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  14582. if (!isDict(resources)) {
  14583. return false;
  14584. }
  14585. var processed = Object.create(null);
  14586. if (resources.objId) {
  14587. processed[resources.objId] = true;
  14588. }
  14589. var nodes = [resources];
  14590. while (nodes.length) {
  14591. var key;
  14592. var node = nodes.shift();
  14593. // First check the current resources for blend modes.
  14594. var graphicStates = node.get('ExtGState');
  14595. if (isDict(graphicStates)) {
  14596. graphicStates = graphicStates.getAll();
  14597. for (key in graphicStates) {
  14598. var graphicState = graphicStates[key];
  14599. var bm = graphicState['BM'];
  14600. if (isName(bm) && bm.name !== 'Normal') {
  14601. return true;
  14602. }
  14603. }
  14604. }
  14605. // Descend into the XObjects to look for more resources and blend modes.
  14606. var xObjects = node.get('XObject');
  14607. if (!isDict(xObjects)) {
  14608. continue;
  14609. }
  14610. xObjects = xObjects.getAll();
  14611. for (key in xObjects) {
  14612. var xObject = xObjects[key];
  14613. if (!isStream(xObject)) {
  14614. continue;
  14615. }
  14616. var xResources = xObject.dict.get('Resources');
  14617. // Checking objId to detect an infinite loop.
  14618. if (isDict(xResources) &&
  14619. (!xResources.objId || !processed[xResources.objId])) {
  14620. nodes.push(xResources);
  14621. if (xResources.objId) {
  14622. processed[xResources.objId] = true;
  14623. }
  14624. }
  14625. }
  14626. }
  14627. return false;
  14628. },
  14629. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  14630. xobj, smask,
  14631. operatorList,
  14632. initialState) {
  14633. var matrix = xobj.dict.get('Matrix');
  14634. var bbox = xobj.dict.get('BBox');
  14635. var group = xobj.dict.get('Group');
  14636. if (group) {
  14637. var groupOptions = {
  14638. matrix: matrix,
  14639. bbox: bbox,
  14640. smask: smask,
  14641. isolated: false,
  14642. knockout: false
  14643. };
  14644. var groupSubtype = group.get('S');
  14645. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  14646. groupOptions.isolated = (group.get('I') || false);
  14647. groupOptions.knockout = (group.get('K') || false);
  14648. var colorSpace = group.get('CS');
  14649. groupOptions.colorSpace = (colorSpace ?
  14650. ColorSpace.parseToIR(colorSpace, this.xref, resources) : null);
  14651. }
  14652. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  14653. }
  14654. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  14655. this.getOperatorList(xobj, (xobj.dict.get('Resources') || resources),
  14656. operatorList, initialState);
  14657. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  14658. if (group) {
  14659. operatorList.addOp(OPS.endGroup, [groupOptions]);
  14660. }
  14661. },
  14662. buildPaintImageXObject:
  14663. function PartialEvaluator_buildPaintImageXObject(resources, image,
  14664. inline, operatorList,
  14665. cacheKey, cache) {
  14666. var self = this;
  14667. var dict = image.dict;
  14668. var w = dict.get('Width', 'W');
  14669. var h = dict.get('Height', 'H');
  14670. if (!(w && isNum(w)) || !(h && isNum(h))) {
  14671. warn('Image dimensions are missing, or not numbers.');
  14672. return;
  14673. }
  14674. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  14675. warn('Image exceeded maximum allowed size and was removed.');
  14676. return;
  14677. }
  14678. var imageMask = (dict.get('ImageMask', 'IM') || false);
  14679. var imgData, args;
  14680. if (imageMask) {
  14681. // This depends on a tmpCanvas being filled with the
  14682. // current fillStyle, such that processing the pixel
  14683. // data can't be done here. Instead of creating a
  14684. // complete PDFImage, only read the information needed
  14685. // for later.
  14686. var width = dict.get('Width', 'W');
  14687. var height = dict.get('Height', 'H');
  14688. var bitStrideLength = (width + 7) >> 3;
  14689. var imgArray = image.getBytes(bitStrideLength * height);
  14690. var decode = dict.get('Decode', 'D');
  14691. var canTransfer = image instanceof DecodeStream;
  14692. var inverseDecode = (!!decode && decode[0] > 0);
  14693. imgData = PDFImage.createMask(imgArray, width, height,
  14694. canTransfer, inverseDecode);
  14695. imgData.cached = true;
  14696. args = [imgData];
  14697. operatorList.addOp(OPS.paintImageMaskXObject, args);
  14698. if (cacheKey) {
  14699. cache.key = cacheKey;
  14700. cache.fn = OPS.paintImageMaskXObject;
  14701. cache.args = args;
  14702. }
  14703. return;
  14704. }
  14705. var softMask = (dict.get('SMask', 'SM') || false);
  14706. var mask = (dict.get('Mask') || false);
  14707. var SMALL_IMAGE_DIMENSIONS = 200;
  14708. // Inlining small images into the queue as RGB data
  14709. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  14710. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  14711. var imageObj = new PDFImage(this.xref, resources, image,
  14712. inline, null, null);
  14713. // We force the use of RGBA_32BPP images here, because we can't handle
  14714. // any other kind.
  14715. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  14716. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  14717. return;
  14718. }
  14719. // If there is no imageMask, create the PDFImage and a lot
  14720. // of image processing can be done here.
  14721. var uniquePrefix = (this.uniquePrefix || '');
  14722. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  14723. operatorList.addDependency(objId);
  14724. args = [objId, w, h];
  14725. if (!softMask && !mask && image instanceof JpegStream &&
  14726. image.isNativelySupported(this.xref, resources)) {
  14727. // These JPEGs don't need any more processing so we can just send it.
  14728. operatorList.addOp(OPS.paintJpegXObject, args);
  14729. this.handler.send('obj',
  14730. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  14731. return;
  14732. }
  14733. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  14734. then(function(imageObj) {
  14735. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  14736. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  14737. null, [imgData.data.buffer]);
  14738. }).then(null, function (reason) {
  14739. warn('Unable to decode image: ' + reason);
  14740. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  14741. });
  14742. operatorList.addOp(OPS.paintImageXObject, args);
  14743. if (cacheKey) {
  14744. cache.key = cacheKey;
  14745. cache.fn = OPS.paintImageXObject;
  14746. cache.args = args;
  14747. }
  14748. },
  14749. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  14750. operatorList,
  14751. stateManager) {
  14752. var smaskContent = smask.get('G');
  14753. var smaskOptions = {
  14754. subtype: smask.get('S').name,
  14755. backdrop: smask.get('BC')
  14756. };
  14757. this.buildFormXObject(resources, smaskContent, smaskOptions,
  14758. operatorList, stateManager.state.clone());
  14759. },
  14760. handleTilingType:
  14761. function PartialEvaluator_handleTilingType(fn, args, resources,
  14762. pattern, patternDict,
  14763. operatorList) {
  14764. // Create an IR of the pattern code.
  14765. var tilingOpList = this.getOperatorList(pattern,
  14766. (patternDict.get('Resources') || resources));
  14767. // Add the dependencies to the parent operator list so they are resolved
  14768. // before sub operator list is executed synchronously.
  14769. operatorList.addDependencies(tilingOpList.dependencies);
  14770. operatorList.addOp(fn, getTilingPatternIR({
  14771. fnArray: tilingOpList.fnArray,
  14772. argsArray: tilingOpList.argsArray
  14773. }, patternDict, args));
  14774. },
  14775. handleSetFont:
  14776. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  14777. operatorList, state) {
  14778. // TODO(mack): Not needed?
  14779. var fontName;
  14780. if (fontArgs) {
  14781. fontArgs = fontArgs.slice();
  14782. fontName = fontArgs[0].name;
  14783. }
  14784. var self = this;
  14785. var font = this.loadFont(fontName, fontRef, this.xref, resources,
  14786. operatorList);
  14787. state.font = font;
  14788. var loadedName = font.loadedName;
  14789. if (!font.sent) {
  14790. var fontData = font.translated.exportData();
  14791. self.handler.send('commonobj', [
  14792. loadedName,
  14793. 'Font',
  14794. fontData
  14795. ]);
  14796. font.sent = true;
  14797. }
  14798. return loadedName;
  14799. },
  14800. handleText: function PartialEvaluator_handleText(chars, state) {
  14801. var font = state.font.translated;
  14802. var glyphs = font.charsToGlyphs(chars);
  14803. var isAddToPathSet = !!(state.textRenderingMode &
  14804. TextRenderingMode.ADD_TO_PATH_FLAG);
  14805. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  14806. for (var i = 0; i < glyphs.length; i++) {
  14807. if (glyphs[i] === null) {
  14808. continue;
  14809. }
  14810. var fontChar = glyphs[i].fontChar;
  14811. if (!font.renderer.hasBuiltPath(fontChar)) {
  14812. var path = font.renderer.getPathJs(fontChar);
  14813. this.handler.send('commonobj', [
  14814. font.loadedName + '_path_' + fontChar,
  14815. 'FontPath',
  14816. path
  14817. ]);
  14818. }
  14819. }
  14820. }
  14821. return glyphs;
  14822. },
  14823. setGState: function PartialEvaluator_setGState(resources, gState,
  14824. operatorList, xref,
  14825. stateManager) {
  14826. var self = this;
  14827. // TODO(mack): This should be rewritten so that this function returns
  14828. // what should be added to the queue during each iteration
  14829. function setGStateForKey(gStateObj, key, value) {
  14830. switch (key) {
  14831. case 'Type':
  14832. break;
  14833. case 'LW':
  14834. case 'LC':
  14835. case 'LJ':
  14836. case 'ML':
  14837. case 'D':
  14838. case 'RI':
  14839. case 'FL':
  14840. case 'CA':
  14841. case 'ca':
  14842. gStateObj.push([key, value]);
  14843. break;
  14844. case 'Font':
  14845. var loadedName = self.handleSetFont(resources, null, value[0],
  14846. operatorList,
  14847. stateManager.state);
  14848. operatorList.addDependency(loadedName);
  14849. gStateObj.push([key, [loadedName, value[1]]]);
  14850. break;
  14851. case 'BM':
  14852. gStateObj.push([key, value]);
  14853. break;
  14854. case 'SMask':
  14855. if (isName(value) && value.name === 'None') {
  14856. gStateObj.push([key, false]);
  14857. break;
  14858. }
  14859. var dict = xref.fetchIfRef(value);
  14860. if (isDict(dict)) {
  14861. self.handleSMask(dict, resources, operatorList, stateManager);
  14862. gStateObj.push([key, true]);
  14863. } else {
  14864. warn('Unsupported SMask type');
  14865. }
  14866. break;
  14867. // Only generate info log messages for the following since
  14868. // they are unlikey to have a big impact on the rendering.
  14869. case 'OP':
  14870. case 'op':
  14871. case 'OPM':
  14872. case 'BG':
  14873. case 'BG2':
  14874. case 'UCR':
  14875. case 'UCR2':
  14876. case 'TR':
  14877. case 'TR2':
  14878. case 'HT':
  14879. case 'SM':
  14880. case 'SA':
  14881. case 'AIS':
  14882. case 'TK':
  14883. // TODO implement these operators.
  14884. info('graphic state operator ' + key);
  14885. break;
  14886. default:
  14887. info('Unknown graphic state operator ' + key);
  14888. break;
  14889. }
  14890. }
  14891. // This array holds the converted/processed state data.
  14892. var gStateObj = [];
  14893. var gStateMap = gState.map;
  14894. for (var key in gStateMap) {
  14895. var value = gStateMap[key];
  14896. setGStateForKey(gStateObj, key, value);
  14897. }
  14898. operatorList.addOp(OPS.setGState, [gStateObj]);
  14899. },
  14900. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  14901. resources,
  14902. parentOperatorList) {
  14903. function errorFont() {
  14904. return {
  14905. translated: new ErrorFont('Font ' + fontName + ' is not available'),
  14906. loadedName: 'g_font_error'
  14907. };
  14908. }
  14909. var fontRef;
  14910. if (font) { // Loading by ref.
  14911. assert(isRef(font));
  14912. fontRef = font;
  14913. } else { // Loading by name.
  14914. var fontRes = resources.get('Font');
  14915. if (fontRes) {
  14916. fontRef = fontRes.getRaw(fontName);
  14917. } else {
  14918. warn('fontRes not available');
  14919. return errorFont();
  14920. }
  14921. }
  14922. if (this.fontCache.has(fontRef)) {
  14923. return this.fontCache.get(fontRef);
  14924. }
  14925. font = xref.fetchIfRef(fontRef);
  14926. if (!isDict(font)) {
  14927. return errorFont();
  14928. }
  14929. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  14930. var descriptor = preEvaluatedFont.descriptor;
  14931. var fontID = fontRef.num + '_' + fontRef.gen;
  14932. if (isDict(descriptor)) {
  14933. if (!descriptor.fontAliases) {
  14934. descriptor.fontAliases = Object.create(null);
  14935. }
  14936. var fontAliases = descriptor.fontAliases;
  14937. var hash = preEvaluatedFont.hash;
  14938. if (fontAliases[hash]) {
  14939. var aliasFontRef = fontAliases[hash].aliasRef;
  14940. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  14941. this.fontCache.putAlias(fontRef, aliasFontRef);
  14942. var cachedFont = this.fontCache.get(fontRef);
  14943. return cachedFont;
  14944. }
  14945. }
  14946. if (!fontAliases[hash]) {
  14947. fontAliases[hash] = {
  14948. fontID: Font.getFontID()
  14949. };
  14950. }
  14951. fontAliases[hash].aliasRef = fontRef;
  14952. fontID = fontAliases[hash].fontID;
  14953. }
  14954. // Workaround for bad PDF generators that don't reference fonts
  14955. // properly, i.e. by not using an object identifier.
  14956. // Check if the fontRef is a Dict (as opposed to a standard object),
  14957. // in which case we don't cache the font and instead reference it by
  14958. // fontName in font.loadedName below.
  14959. var fontRefIsDict = isDict(fontRef);
  14960. if (!fontRefIsDict) {
  14961. this.fontCache.put(fontRef, font);
  14962. }
  14963. // Keep track of each font we translated so the caller can
  14964. // load them asynchronously before calling display on a page.
  14965. font.loadedName = 'g_font_' + (fontRefIsDict ?
  14966. fontName.replace(/\W/g, '') : fontID);
  14967. if (!font.translated) {
  14968. var translated;
  14969. try {
  14970. translated = this.translateFont(preEvaluatedFont, xref);
  14971. } catch (e) {
  14972. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  14973. translated = new ErrorFont(e instanceof Error ? e.message : e);
  14974. }
  14975. font.translated = translated;
  14976. }
  14977. if (font.translated.loadCharProcs) {
  14978. var charProcs = font.get('CharProcs').getAll();
  14979. var fontResources = (font.get('Resources') || resources);
  14980. var charProcKeys = Object.keys(charProcs);
  14981. var charProcOperatorList = {};
  14982. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  14983. var key = charProcKeys[i];
  14984. var glyphStream = charProcs[key];
  14985. var operatorList = this.getOperatorList(glyphStream, fontResources);
  14986. charProcOperatorList[key] = operatorList.getIR();
  14987. if (!parentOperatorList) {
  14988. continue;
  14989. }
  14990. // Add the dependencies to the parent operator list so they are
  14991. // resolved before sub operator list is executed synchronously.
  14992. parentOperatorList.addDependencies(charProcOperatorList.dependencies);
  14993. }
  14994. font.translated.charProcOperatorList = charProcOperatorList;
  14995. }
  14996. font.loaded = true;
  14997. return font;
  14998. },
  14999. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  15000. resources,
  15001. operatorList,
  15002. initialState) {
  15003. var self = this;
  15004. var xref = this.xref;
  15005. var imageCache = {};
  15006. operatorList = (operatorList || new OperatorList());
  15007. resources = (resources || Dict.empty);
  15008. var xobjs = (resources.get('XObject') || Dict.empty);
  15009. var patterns = (resources.get('Pattern') || Dict.empty);
  15010. var stateManager = new StateManager(initialState || new EvalState());
  15011. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15012. var operation, i, ii;
  15013. while ((operation = preprocessor.read())) {
  15014. var args = operation.args;
  15015. var fn = operation.fn;
  15016. var shading;
  15017. switch (fn) {
  15018. case OPS.setStrokeColorN:
  15019. case OPS.setFillColorN:
  15020. if (args[args.length - 1].code) {
  15021. break;
  15022. }
  15023. // compile tiling patterns
  15024. var patternName = args[args.length - 1];
  15025. // SCN/scn applies patterns along with normal colors
  15026. var pattern;
  15027. if (isName(patternName) &&
  15028. (pattern = patterns.get(patternName.name))) {
  15029. var dict = (isStream(pattern) ? pattern.dict : pattern);
  15030. var typeNum = dict.get('PatternType');
  15031. if (typeNum == TILING_PATTERN) {
  15032. self.handleTilingType(fn, args, resources, pattern, dict,
  15033. operatorList);
  15034. args = [];
  15035. continue;
  15036. } else if (typeNum == SHADING_PATTERN) {
  15037. shading = dict.get('Shading');
  15038. var matrix = dict.get('Matrix');
  15039. pattern = Pattern.parseShading(shading, matrix, xref,
  15040. resources);
  15041. args = pattern.getIR();
  15042. } else {
  15043. error('Unkown PatternType ' + typeNum);
  15044. }
  15045. }
  15046. break;
  15047. case OPS.paintXObject:
  15048. if (args[0].code) {
  15049. break;
  15050. }
  15051. // eagerly compile XForm objects
  15052. var name = args[0].name;
  15053. if (imageCache.key === name) {
  15054. operatorList.addOp(imageCache.fn, imageCache.args);
  15055. args = [];
  15056. continue;
  15057. }
  15058. var xobj = xobjs.get(name);
  15059. if (xobj) {
  15060. assert(isStream(xobj), 'XObject should be a stream');
  15061. var type = xobj.dict.get('Subtype');
  15062. assert(isName(type),
  15063. 'XObject should have a Name subtype');
  15064. if ('Form' == type.name) {
  15065. stateManager.save();
  15066. self.buildFormXObject(resources, xobj, null, operatorList,
  15067. stateManager.state.clone());
  15068. args = [];
  15069. stateManager.restore();
  15070. continue;
  15071. } else if ('Image' == type.name) {
  15072. self.buildPaintImageXObject(resources, xobj, false,
  15073. operatorList, name, imageCache);
  15074. args = [];
  15075. continue;
  15076. } else {
  15077. error('Unhandled XObject subtype ' + type.name);
  15078. }
  15079. }
  15080. break;
  15081. case OPS.setFont:
  15082. // eagerly collect all fonts
  15083. var loadedName = self.handleSetFont(resources, args, null,
  15084. operatorList,
  15085. stateManager.state);
  15086. operatorList.addDependency(loadedName);
  15087. args[0] = loadedName;
  15088. break;
  15089. case OPS.endInlineImage:
  15090. var cacheKey = args[0].cacheKey;
  15091. if (cacheKey && imageCache.key === cacheKey) {
  15092. operatorList.addOp(imageCache.fn, imageCache.args);
  15093. args = [];
  15094. continue;
  15095. }
  15096. self.buildPaintImageXObject(resources, args[0], true,
  15097. operatorList, cacheKey, imageCache);
  15098. args = [];
  15099. continue;
  15100. case OPS.showText:
  15101. args[0] = this.handleText(args[0], stateManager.state);
  15102. break;
  15103. case OPS.showSpacedText:
  15104. var arr = args[0];
  15105. var arrLength = arr.length;
  15106. for (i = 0; i < arrLength; ++i) {
  15107. if (isString(arr[i])) {
  15108. arr[i] = this.handleText(arr[i], stateManager.state);
  15109. }
  15110. }
  15111. break;
  15112. case OPS.nextLineShowText:
  15113. args[0] = this.handleText(args[0], stateManager.state);
  15114. break;
  15115. case OPS.nextLineSetSpacingShowText:
  15116. args[2] = this.handleText(args[2], stateManager.state);
  15117. break;
  15118. case OPS.setTextRenderingMode:
  15119. stateManager.state.textRenderingMode = args[0];
  15120. break;
  15121. // Parse the ColorSpace data to a raw format.
  15122. case OPS.setFillColorSpace:
  15123. case OPS.setStrokeColorSpace:
  15124. args = [ColorSpace.parseToIR(args[0], xref, resources)];
  15125. break;
  15126. case OPS.shadingFill:
  15127. var shadingRes = resources.get('Shading');
  15128. if (!shadingRes) {
  15129. error('No shading resource found');
  15130. }
  15131. shading = shadingRes.get(args[0].name);
  15132. if (!shading) {
  15133. error('No shading object found');
  15134. }
  15135. var shadingFill = Pattern.parseShading(shading, null, xref,
  15136. resources);
  15137. var patternIR = shadingFill.getIR();
  15138. args = [patternIR];
  15139. fn = OPS.shadingFill;
  15140. break;
  15141. case OPS.setGState:
  15142. var dictName = args[0];
  15143. var extGState = resources.get('ExtGState');
  15144. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15145. break;
  15146. }
  15147. var gState = extGState.get(dictName.name);
  15148. self.setGState(resources, gState, operatorList, xref,
  15149. stateManager);
  15150. args = [];
  15151. continue;
  15152. }
  15153. operatorList.addOp(fn, args);
  15154. }
  15155. // Some PDFs don't close all restores inside object/form.
  15156. // Closing those for them.
  15157. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  15158. operatorList.addOp(OPS.restore, []);
  15159. }
  15160. return operatorList;
  15161. },
  15162. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  15163. stateManager) {
  15164. stateManager = (stateManager || new StateManager(new TextState()));
  15165. var textContent = {
  15166. items: [],
  15167. styles: Object.create(null)
  15168. };
  15169. var bidiTexts = textContent.items;
  15170. var SPACE_FACTOR = 0.35;
  15171. var MULTI_SPACE_FACTOR = 1.5;
  15172. var self = this;
  15173. var xref = this.xref;
  15174. resources = (xref.fetchIfRef(resources) || Dict.empty);
  15175. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  15176. var xobjs = null;
  15177. var xobjsCache = {};
  15178. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15179. var operation;
  15180. var textState;
  15181. function newTextChunk() {
  15182. var font = textState.font;
  15183. if (!(font.loadedName in textContent.styles)) {
  15184. textContent.styles[font.loadedName] = {
  15185. fontFamily: font.fallbackName,
  15186. ascent: font.ascent,
  15187. descent: font.descent,
  15188. vertical: font.vertical
  15189. };
  15190. }
  15191. return {
  15192. str: '',
  15193. dir: null,
  15194. width: 0,
  15195. height: 0,
  15196. transform: null,
  15197. fontName: font.loadedName
  15198. };
  15199. }
  15200. function runBidi(textChunk) {
  15201. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  15202. textChunk.str = bidiResult.str;
  15203. textChunk.dir = bidiResult.dir;
  15204. return textChunk;
  15205. }
  15206. function handleSetFont(fontName, fontRef) {
  15207. var font = textState.font = self.loadFont(fontName, fontRef, xref,
  15208. resources, null).translated;
  15209. textState.fontMatrix = font.fontMatrix ? font.fontMatrix :
  15210. FONT_IDENTITY_MATRIX;
  15211. }
  15212. function buildTextGeometry(chars, textChunk) {
  15213. var font = textState.font;
  15214. textChunk = textChunk || newTextChunk();
  15215. if (!textChunk.transform) {
  15216. // 9.4.4 Text Space Details
  15217. var tsm = [textState.fontSize * textState.textHScale, 0,
  15218. 0, textState.fontSize,
  15219. 0, textState.textRise];
  15220. var trm = textChunk.transform = Util.transform(textState.ctm,
  15221. Util.transform(textState.textMatrix, tsm));
  15222. if (!font.vertical) {
  15223. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  15224. } else {
  15225. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  15226. }
  15227. }
  15228. var width = 0;
  15229. var height = 0;
  15230. var glyphs = font.charsToGlyphs(chars);
  15231. var defaultVMetrics = font.defaultVMetrics;
  15232. for (var i = 0; i < glyphs.length; i++) {
  15233. var glyph = glyphs[i];
  15234. if (!glyph) { // Previous glyph was a space.
  15235. width += textState.wordSpacing * textState.textHScale;
  15236. continue;
  15237. }
  15238. var vMetricX = null;
  15239. var vMetricY = null;
  15240. var glyphWidth = null;
  15241. if (font.vertical) {
  15242. if (glyph.vmetric) {
  15243. glyphWidth = glyph.vmetric[0];
  15244. vMetricX = glyph.vmetric[1];
  15245. vMetricY = glyph.vmetric[2];
  15246. } else {
  15247. glyphWidth = glyph.width;
  15248. vMetricX = glyph.width * 0.5;
  15249. vMetricY = defaultVMetrics[2];
  15250. }
  15251. } else {
  15252. glyphWidth = glyph.width;
  15253. }
  15254. var glyphUnicode = glyph.unicode;
  15255. if (glyphUnicode in NormalizedUnicodes) {
  15256. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  15257. }
  15258. glyphUnicode = reverseIfRtl(glyphUnicode);
  15259. // The following will calculate the x and y of the individual glyphs.
  15260. // if (font.vertical) {
  15261. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  15262. // textState.fontMatrix[0];
  15263. // tsm[5] -= vMetricY * textState.fontSize *
  15264. // textState.fontMatrix[0];
  15265. // }
  15266. // var trm = Util.transform(textState.textMatrix, tsm);
  15267. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  15268. // var x = pt[0];
  15269. // var y = pt[1];
  15270. var tx = 0;
  15271. var ty = 0;
  15272. if (!font.vertical) {
  15273. var w0 = glyphWidth * textState.fontMatrix[0];
  15274. tx = (w0 * textState.fontSize + textState.charSpacing) *
  15275. textState.textHScale;
  15276. width += tx;
  15277. } else {
  15278. var w1 = glyphWidth * textState.fontMatrix[0];
  15279. ty = w1 * textState.fontSize + textState.charSpacing;
  15280. height += ty;
  15281. }
  15282. textState.translateTextMatrix(tx, ty);
  15283. textChunk.str += glyphUnicode;
  15284. }
  15285. var a = textState.textLineMatrix[0];
  15286. var b = textState.textLineMatrix[1];
  15287. var scaleLineX = Math.sqrt(a * a + b * b);
  15288. a = textState.ctm[0];
  15289. b = textState.ctm[1];
  15290. var scaleCtmX = Math.sqrt(a * a + b * b);
  15291. if (!font.vertical) {
  15292. textChunk.width += width * scaleCtmX * scaleLineX;
  15293. } else {
  15294. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  15295. }
  15296. return textChunk;
  15297. }
  15298. while ((operation = preprocessor.read())) {
  15299. textState = stateManager.state;
  15300. var fn = operation.fn;
  15301. var args = operation.args;
  15302. switch (fn) {
  15303. case OPS.setFont:
  15304. handleSetFont(args[0].name);
  15305. textState.fontSize = args[1];
  15306. break;
  15307. case OPS.setTextRise:
  15308. textState.textRise = args[0];
  15309. break;
  15310. case OPS.setHScale:
  15311. textState.textHScale = args[0] / 100;
  15312. break;
  15313. case OPS.setLeading:
  15314. textState.leading = args[0];
  15315. break;
  15316. case OPS.moveText:
  15317. textState.translateTextLineMatrix(args[0], args[1]);
  15318. textState.textMatrix = textState.textLineMatrix.slice();
  15319. break;
  15320. case OPS.setLeadingMoveText:
  15321. textState.leading = -args[1];
  15322. textState.translateTextLineMatrix(args[0], args[1]);
  15323. textState.textMatrix = textState.textLineMatrix.slice();
  15324. break;
  15325. case OPS.nextLine:
  15326. textState.carriageReturn();
  15327. break;
  15328. case OPS.setTextMatrix:
  15329. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  15330. args[4], args[5]);
  15331. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  15332. args[4], args[5]);
  15333. break;
  15334. case OPS.setCharSpacing:
  15335. textState.charSpacing = args[0];
  15336. break;
  15337. case OPS.setWordSpacing:
  15338. textState.wordSpacing = args[0];
  15339. break;
  15340. case OPS.beginText:
  15341. textState.textMatrix = IDENTITY_MATRIX.slice();
  15342. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  15343. break;
  15344. case OPS.showSpacedText:
  15345. var items = args[0];
  15346. var textChunk = newTextChunk();
  15347. var offset;
  15348. for (var j = 0, jj = items.length; j < jj; j++) {
  15349. if (typeof items[j] === 'string') {
  15350. buildTextGeometry(items[j], textChunk);
  15351. } else {
  15352. var val = items[j] / 1000;
  15353. if (!textState.font.vertical) {
  15354. offset = -val * textState.fontSize * textState.textHScale *
  15355. textState.textMatrix[0];
  15356. textState.translateTextMatrix(offset, 0);
  15357. textChunk.width += offset;
  15358. } else {
  15359. offset = -val * textState.fontSize * textState.textMatrix[3];
  15360. textState.translateTextMatrix(0, offset);
  15361. textChunk.height += offset;
  15362. }
  15363. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  15364. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  15365. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  15366. fakeSpaces = Math.round(fakeSpaces);
  15367. while (fakeSpaces--) {
  15368. textChunk.str += ' ';
  15369. }
  15370. } else if (fakeSpaces > SPACE_FACTOR) {
  15371. textChunk.str += ' ';
  15372. }
  15373. }
  15374. }
  15375. }
  15376. bidiTexts.push(runBidi(textChunk));
  15377. break;
  15378. case OPS.showText:
  15379. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15380. break;
  15381. case OPS.nextLineShowText:
  15382. textState.carriageReturn();
  15383. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15384. break;
  15385. case OPS.nextLineSetSpacingShowText:
  15386. textState.wordSpacing = args[0];
  15387. textState.charSpacing = args[1];
  15388. textState.carriageReturn();
  15389. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  15390. break;
  15391. case OPS.paintXObject:
  15392. if (args[0].code) {
  15393. break;
  15394. }
  15395. if (!xobjs) {
  15396. xobjs = (resources.get('XObject') || Dict.empty);
  15397. }
  15398. var name = args[0].name;
  15399. if (xobjsCache.key === name) {
  15400. if (xobjsCache.texts) {
  15401. Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
  15402. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  15403. }
  15404. break;
  15405. }
  15406. var xobj = xobjs.get(name);
  15407. if (!xobj) {
  15408. break;
  15409. }
  15410. assert(isStream(xobj), 'XObject should be a stream');
  15411. var type = xobj.dict.get('Subtype');
  15412. assert(isName(type),
  15413. 'XObject should have a Name subtype');
  15414. if ('Form' !== type.name) {
  15415. xobjsCache.key = name;
  15416. xobjsCache.texts = null;
  15417. break;
  15418. }
  15419. stateManager.save();
  15420. var matrix = xobj.dict.get('Matrix');
  15421. if (isArray(matrix) && matrix.length === 6) {
  15422. stateManager.transform(matrix);
  15423. }
  15424. var formTextContent = this.getTextContent(
  15425. xobj,
  15426. xobj.dict.get('Resources') || resources,
  15427. stateManager
  15428. );
  15429. Util.concatenateToArray(bidiTexts, formTextContent.items);
  15430. Util.extendObj(textContent.styles, formTextContent.styles);
  15431. stateManager.restore();
  15432. xobjsCache.key = name;
  15433. xobjsCache.texts = formTextContent;
  15434. break;
  15435. case OPS.setGState:
  15436. var dictName = args[0];
  15437. var extGState = resources.get('ExtGState');
  15438. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15439. break;
  15440. }
  15441. var gsState = extGState.get(dictName.name);
  15442. for (var i = 0; i < gsState.length; i++) {
  15443. if (gsState[i] === 'Font') {
  15444. handleSetFont(args[0].name);
  15445. }
  15446. }
  15447. break;
  15448. } // switch
  15449. } // while
  15450. return textContent;
  15451. },
  15452. extractDataStructures: function
  15453. partialEvaluatorExtractDataStructures(dict, baseDict,
  15454. xref, properties) {
  15455. // 9.10.2
  15456. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  15457. if (toUnicode) {
  15458. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  15459. }
  15460. if (properties.composite) {
  15461. // CIDSystemInfo helps to match CID to glyphs
  15462. var cidSystemInfo = dict.get('CIDSystemInfo');
  15463. if (isDict(cidSystemInfo)) {
  15464. properties.cidSystemInfo = {
  15465. registry: cidSystemInfo.get('Registry'),
  15466. ordering: cidSystemInfo.get('Ordering'),
  15467. supplement: cidSystemInfo.get('Supplement')
  15468. };
  15469. }
  15470. var cidToGidMap = dict.get('CIDToGIDMap');
  15471. if (isStream(cidToGidMap)) {
  15472. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  15473. }
  15474. }
  15475. // Based on 9.6.6 of the spec the encoding can come from multiple places
  15476. // and depends on the font type. The base encoding and differences are
  15477. // read here, but the encoding that is actually used is chosen during
  15478. // glyph mapping in the font.
  15479. // TODO: Loading the built in encoding in the font would allow the
  15480. // differences to be merged in here not require us to hold on to it.
  15481. var differences = [];
  15482. var baseEncodingName = null;
  15483. var encoding;
  15484. if (dict.has('Encoding')) {
  15485. encoding = dict.get('Encoding');
  15486. if (isDict(encoding)) {
  15487. baseEncodingName = encoding.get('BaseEncoding');
  15488. baseEncodingName = (isName(baseEncodingName) ?
  15489. baseEncodingName.name : null);
  15490. // Load the differences between the base and original
  15491. if (encoding.has('Differences')) {
  15492. var diffEncoding = encoding.get('Differences');
  15493. var index = 0;
  15494. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  15495. var data = diffEncoding[j];
  15496. if (isNum(data)) {
  15497. index = data;
  15498. } else {
  15499. differences[index++] = data.name;
  15500. }
  15501. }
  15502. }
  15503. } else if (isName(encoding)) {
  15504. baseEncodingName = encoding.name;
  15505. } else {
  15506. error('Encoding is not a Name nor a Dict');
  15507. }
  15508. // According to table 114 if the encoding is a named encoding it must be
  15509. // one of these predefined encodings.
  15510. if ((baseEncodingName !== 'MacRomanEncoding' &&
  15511. baseEncodingName !== 'MacExpertEncoding' &&
  15512. baseEncodingName !== 'WinAnsiEncoding')) {
  15513. baseEncodingName = null;
  15514. }
  15515. }
  15516. if (baseEncodingName) {
  15517. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  15518. } else {
  15519. encoding = (properties.type === 'TrueType' ?
  15520. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  15521. // The Symbolic attribute can be misused for regular fonts
  15522. // Heuristic: we have to check if the font is a standard one also
  15523. if (!!(properties.flags & FontFlags.Symbolic)) {
  15524. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  15525. Encodings.SymbolSetEncoding :
  15526. Encodings.MacRomanEncoding);
  15527. }
  15528. properties.defaultEncoding = encoding;
  15529. }
  15530. properties.differences = differences;
  15531. properties.baseEncodingName = baseEncodingName;
  15532. properties.dict = dict;
  15533. },
  15534. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  15535. var cmapObj = toUnicode;
  15536. if (isName(cmapObj)) {
  15537. return CMapFactory.create(cmapObj).map;
  15538. } else if (isStream(cmapObj)) {
  15539. var cmap = CMapFactory.create(cmapObj).map;
  15540. // Convert UTF-16BE
  15541. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  15542. // to iterate over all keys.
  15543. cmap.forEach(function(token, i) {
  15544. var str = [];
  15545. for (var k = 0; k < token.length; k += 2) {
  15546. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15547. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  15548. str.push(w1);
  15549. continue;
  15550. }
  15551. k += 2;
  15552. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15553. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  15554. }
  15555. cmap[i] = String.fromCharCode.apply(String, str);
  15556. });
  15557. return cmap;
  15558. }
  15559. return null;
  15560. },
  15561. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  15562. // Extract the encoding from the CIDToGIDMap
  15563. var glyphsData = cidToGidStream.getBytes();
  15564. // Set encoding 0 to later verify the font has an encoding
  15565. var result = [];
  15566. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  15567. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  15568. if (glyphID === 0) {
  15569. continue;
  15570. }
  15571. var code = j >> 1;
  15572. result[code] = glyphID;
  15573. }
  15574. return result;
  15575. },
  15576. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  15577. descriptor,
  15578. properties) {
  15579. var glyphsWidths = [];
  15580. var defaultWidth = 0;
  15581. var glyphsVMetrics = [];
  15582. var defaultVMetrics;
  15583. var i, ii, j, jj, start, code, widths;
  15584. if (properties.composite) {
  15585. defaultWidth = dict.get('DW') || 1000;
  15586. widths = dict.get('W');
  15587. if (widths) {
  15588. for (i = 0, ii = widths.length; i < ii; i++) {
  15589. start = widths[i++];
  15590. code = xref.fetchIfRef(widths[i]);
  15591. if (isArray(code)) {
  15592. for (j = 0, jj = code.length; j < jj; j++) {
  15593. glyphsWidths[start++] = code[j];
  15594. }
  15595. } else {
  15596. var width = widths[++i];
  15597. for (j = start; j <= code; j++) {
  15598. glyphsWidths[j] = width;
  15599. }
  15600. }
  15601. }
  15602. }
  15603. if (properties.vertical) {
  15604. var vmetrics = (dict.get('DW2') || [880, -1000]);
  15605. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  15606. vmetrics = dict.get('W2');
  15607. if (vmetrics) {
  15608. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  15609. start = vmetrics[i++];
  15610. code = xref.fetchIfRef(vmetrics[i]);
  15611. if (isArray(code)) {
  15612. for (j = 0, jj = code.length; j < jj; j++) {
  15613. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  15614. }
  15615. } else {
  15616. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  15617. for (j = start; j <= code; j++) {
  15618. glyphsVMetrics[j] = vmetric;
  15619. }
  15620. }
  15621. }
  15622. }
  15623. }
  15624. } else {
  15625. var firstChar = properties.firstChar;
  15626. widths = dict.get('Widths');
  15627. if (widths) {
  15628. j = firstChar;
  15629. for (i = 0, ii = widths.length; i < ii; i++) {
  15630. glyphsWidths[j++] = widths[i];
  15631. }
  15632. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  15633. } else {
  15634. // Trying get the BaseFont metrics (see comment above).
  15635. var baseFontName = dict.get('BaseFont');
  15636. if (isName(baseFontName)) {
  15637. var metrics = this.getBaseFontMetrics(baseFontName.name);
  15638. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  15639. properties);
  15640. defaultWidth = metrics.defaultWidth;
  15641. }
  15642. }
  15643. }
  15644. // Heuristic: detection of monospace font by checking all non-zero widths
  15645. var isMonospace = true;
  15646. var firstWidth = defaultWidth;
  15647. for (var glyph in glyphsWidths) {
  15648. var glyphWidth = glyphsWidths[glyph];
  15649. if (!glyphWidth) {
  15650. continue;
  15651. }
  15652. if (!firstWidth) {
  15653. firstWidth = glyphWidth;
  15654. continue;
  15655. }
  15656. if (firstWidth != glyphWidth) {
  15657. isMonospace = false;
  15658. break;
  15659. }
  15660. }
  15661. if (isMonospace) {
  15662. properties.flags |= FontFlags.FixedPitch;
  15663. }
  15664. properties.defaultWidth = defaultWidth;
  15665. properties.widths = glyphsWidths;
  15666. properties.defaultVMetrics = defaultVMetrics;
  15667. properties.vmetrics = glyphsVMetrics;
  15668. },
  15669. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  15670. // Simulating descriptor flags attribute
  15671. var fontNameWoStyle = baseFontName.split('-')[0];
  15672. return (fontNameWoStyle in serifFonts) ||
  15673. (fontNameWoStyle.search(/serif/gi) !== -1);
  15674. },
  15675. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  15676. var defaultWidth = 0;
  15677. var widths = [];
  15678. var monospace = false;
  15679. var lookupName = (stdFontMap[name] || name);
  15680. if (!(lookupName in Metrics)) {
  15681. // Use default fonts for looking up font metrics if the passed
  15682. // font is not a base font
  15683. if (this.isSerifFont(name)) {
  15684. lookupName = 'Times-Roman';
  15685. } else {
  15686. lookupName = 'Helvetica';
  15687. }
  15688. }
  15689. var glyphWidths = Metrics[lookupName];
  15690. if (isNum(glyphWidths)) {
  15691. defaultWidth = glyphWidths;
  15692. monospace = true;
  15693. } else {
  15694. widths = glyphWidths;
  15695. }
  15696. return {
  15697. defaultWidth: defaultWidth,
  15698. monospace: monospace,
  15699. widths: widths
  15700. };
  15701. },
  15702. buildCharCodeToWidth:
  15703. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  15704. properties) {
  15705. var widths = Object.create(null);
  15706. var differences = properties.differences;
  15707. var encoding = properties.defaultEncoding;
  15708. for (var charCode = 0; charCode < 256; charCode++) {
  15709. if (charCode in differences &&
  15710. widthsByGlyphName[differences[charCode]]) {
  15711. widths[charCode] = widthsByGlyphName[differences[charCode]];
  15712. continue;
  15713. }
  15714. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  15715. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  15716. continue;
  15717. }
  15718. }
  15719. return widths;
  15720. },
  15721. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  15722. var baseDict = dict;
  15723. var type = dict.get('Subtype');
  15724. assert(isName(type), 'invalid font Subtype');
  15725. var composite = false;
  15726. var uint8array;
  15727. if (type.name == 'Type0') {
  15728. // If font is a composite
  15729. // - get the descendant font
  15730. // - set the type according to the descendant font
  15731. // - get the FontDescriptor from the descendant font
  15732. var df = dict.get('DescendantFonts');
  15733. if (!df) {
  15734. error('Descendant fonts are not specified');
  15735. }
  15736. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  15737. type = dict.get('Subtype');
  15738. assert(isName(type), 'invalid font Subtype');
  15739. composite = true;
  15740. }
  15741. var descriptor = dict.get('FontDescriptor');
  15742. if (descriptor) {
  15743. var hash = new MurmurHash3_64();
  15744. var encoding = baseDict.getRaw('Encoding');
  15745. if (isName(encoding)) {
  15746. hash.update(encoding.name);
  15747. } else if (isRef(encoding)) {
  15748. hash.update(encoding.num + '_' + encoding.gen);
  15749. }
  15750. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  15751. if (isStream(toUnicode)) {
  15752. var stream = toUnicode.str || toUnicode;
  15753. uint8array = stream.buffer ?
  15754. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  15755. new Uint8Array(stream.bytes.buffer,
  15756. stream.start, stream.end - stream.start);
  15757. hash.update(uint8array);
  15758. } else if (isName(toUnicode)) {
  15759. hash.update(toUnicode.name);
  15760. }
  15761. var widths = dict.get('Widths') || baseDict.get('Widths');
  15762. if (widths) {
  15763. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  15764. hash.update(uint8array);
  15765. }
  15766. }
  15767. return {
  15768. descriptor: descriptor,
  15769. dict: dict,
  15770. baseDict: baseDict,
  15771. composite: composite,
  15772. hash: hash ? hash.hexdigest() : ''
  15773. };
  15774. },
  15775. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  15776. xref) {
  15777. var baseDict = preEvaluatedFont.baseDict;
  15778. var dict = preEvaluatedFont.dict;
  15779. var composite = preEvaluatedFont.composite;
  15780. var descriptor = preEvaluatedFont.descriptor;
  15781. var type = dict.get('Subtype');
  15782. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  15783. var properties;
  15784. if (!descriptor) {
  15785. if (type.name == 'Type3') {
  15786. // FontDescriptor is only required for Type3 fonts when the document
  15787. // is a tagged pdf. Create a barbebones one to get by.
  15788. descriptor = new Dict(null);
  15789. descriptor.set('FontName', Name.get(type.name));
  15790. } else {
  15791. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  15792. // FontDescriptor was not required.
  15793. // This case is here for compatibility.
  15794. var baseFontName = dict.get('BaseFont');
  15795. if (!isName(baseFontName)) {
  15796. error('Base font is not specified');
  15797. }
  15798. // Using base font name as a font name.
  15799. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  15800. var metrics = this.getBaseFontMetrics(baseFontName);
  15801. // Simulating descriptor flags attribute
  15802. var fontNameWoStyle = baseFontName.split('-')[0];
  15803. var flags =
  15804. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  15805. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  15806. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  15807. FontFlags.Nonsymbolic);
  15808. properties = {
  15809. type: type.name,
  15810. name: baseFontName,
  15811. widths: metrics.widths,
  15812. defaultWidth: metrics.defaultWidth,
  15813. flags: flags,
  15814. firstChar: 0,
  15815. lastChar: maxCharIndex
  15816. };
  15817. this.extractDataStructures(dict, dict, xref, properties);
  15818. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  15819. properties);
  15820. return new Font(baseFontName, null, properties);
  15821. }
  15822. }
  15823. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  15824. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  15825. // to ignore this rule when a variant of a standart font is used.
  15826. // TODO Fill the width array depending on which of the base font this is
  15827. // a variant.
  15828. var firstChar = (dict.get('FirstChar') || 0);
  15829. var lastChar = (dict.get('LastChar') || maxCharIndex);
  15830. var fontName = descriptor.get('FontName');
  15831. var baseFont = dict.get('BaseFont');
  15832. // Some bad PDFs have a string as the font name.
  15833. if (isString(fontName)) {
  15834. fontName = Name.get(fontName);
  15835. }
  15836. if (isString(baseFont)) {
  15837. baseFont = Name.get(baseFont);
  15838. }
  15839. if (type.name !== 'Type3') {
  15840. var fontNameStr = fontName && fontName.name;
  15841. var baseFontStr = baseFont && baseFont.name;
  15842. if (fontNameStr !== baseFontStr) {
  15843. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  15844. '" but should be the same as the Font\'s BaseFont "' +
  15845. baseFontStr + '"');
  15846. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  15847. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  15848. if (fontNameStr && baseFontStr &&
  15849. baseFontStr.search(fontNameStr) === 0) {
  15850. fontName = baseFont;
  15851. }
  15852. }
  15853. }
  15854. fontName = (fontName || baseFont);
  15855. assert(isName(fontName), 'invalid font name');
  15856. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  15857. if (fontFile) {
  15858. if (fontFile.dict) {
  15859. var subtype = fontFile.dict.get('Subtype');
  15860. if (subtype) {
  15861. subtype = subtype.name;
  15862. }
  15863. var length1 = fontFile.dict.get('Length1');
  15864. var length2 = fontFile.dict.get('Length2');
  15865. }
  15866. }
  15867. properties = {
  15868. type: type.name,
  15869. name: fontName.name,
  15870. subtype: subtype,
  15871. file: fontFile,
  15872. length1: length1,
  15873. length2: length2,
  15874. loadedName: baseDict.loadedName,
  15875. composite: composite,
  15876. wideChars: composite,
  15877. fixedPitch: false,
  15878. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  15879. firstChar: firstChar || 0,
  15880. lastChar: (lastChar || maxCharIndex),
  15881. bbox: descriptor.get('FontBBox'),
  15882. ascent: descriptor.get('Ascent'),
  15883. descent: descriptor.get('Descent'),
  15884. xHeight: descriptor.get('XHeight'),
  15885. capHeight: descriptor.get('CapHeight'),
  15886. flags: descriptor.get('Flags'),
  15887. italicAngle: descriptor.get('ItalicAngle'),
  15888. coded: false
  15889. };
  15890. if (composite) {
  15891. var cidEncoding = baseDict.get('Encoding');
  15892. if (isName(cidEncoding)) {
  15893. properties.cidEncoding = cidEncoding.name;
  15894. }
  15895. properties.cMap = CMapFactory.create(cidEncoding,
  15896. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  15897. properties.vertical = properties.cMap.vertical;
  15898. }
  15899. this.extractDataStructures(dict, baseDict, xref, properties);
  15900. this.extractWidths(dict, xref, descriptor, properties);
  15901. if (type.name === 'Type3') {
  15902. properties.coded = true;
  15903. }
  15904. return new Font(fontName.name, fontFile, properties);
  15905. }
  15906. };
  15907. return PartialEvaluator;
  15908. })();
  15909. var OperatorList = (function OperatorListClosure() {
  15910. var CHUNK_SIZE = 1000;
  15911. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  15912. function getTransfers(queue) {
  15913. var transfers = [];
  15914. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  15915. for (var i = 0, ii = queue.length; i < ii; i++) {
  15916. switch (fnArray[i]) {
  15917. case OPS.paintInlineImageXObject:
  15918. case OPS.paintInlineImageXObjectGroup:
  15919. case OPS.paintImageMaskXObject:
  15920. var arg = argsArray[i][0]; // first param in imgData
  15921. if (!arg.cached) {
  15922. transfers.push(arg.data.buffer);
  15923. }
  15924. break;
  15925. }
  15926. }
  15927. return transfers;
  15928. }
  15929. function OperatorList(intent, messageHandler, pageIndex) {
  15930. this.messageHandler = messageHandler;
  15931. this.fnArray = [];
  15932. this.argsArray = [];
  15933. this.dependencies = {};
  15934. this.pageIndex = pageIndex;
  15935. this.intent = intent;
  15936. }
  15937. OperatorList.prototype = {
  15938. get length() {
  15939. return this.argsArray.length;
  15940. },
  15941. addOp: function(fn, args) {
  15942. this.fnArray.push(fn);
  15943. this.argsArray.push(args);
  15944. if (this.messageHandler) {
  15945. if (this.fnArray.length >= CHUNK_SIZE) {
  15946. this.flush();
  15947. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  15948. (fn === OPS.restore || fn === OPS.endText)) {
  15949. // heuristic to flush on boundary of restore or endText
  15950. this.flush();
  15951. }
  15952. }
  15953. },
  15954. addDependency: function(dependency) {
  15955. if (dependency in this.dependencies) {
  15956. return;
  15957. }
  15958. this.dependencies[dependency] = true;
  15959. this.addOp(OPS.dependency, [dependency]);
  15960. },
  15961. addDependencies: function(dependencies) {
  15962. for (var key in dependencies) {
  15963. this.addDependency(key);
  15964. }
  15965. },
  15966. addOpList: function(opList) {
  15967. Util.extendObj(this.dependencies, opList.dependencies);
  15968. for (var i = 0, ii = opList.length; i < ii; i++) {
  15969. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  15970. }
  15971. },
  15972. getIR: function() {
  15973. return {
  15974. fnArray: this.fnArray,
  15975. argsArray: this.argsArray,
  15976. length: this.length
  15977. };
  15978. },
  15979. flush: function(lastChunk) {
  15980. new QueueOptimizer().optimize(this);
  15981. var transfers = getTransfers(this);
  15982. this.messageHandler.send('RenderPageChunk', {
  15983. operatorList: {
  15984. fnArray: this.fnArray,
  15985. argsArray: this.argsArray,
  15986. lastChunk: lastChunk,
  15987. length: this.length
  15988. },
  15989. pageIndex: this.pageIndex,
  15990. intent: this.intent
  15991. }, null, transfers);
  15992. this.dependencies = {};
  15993. this.fnArray.length = 0;
  15994. this.argsArray.length = 0;
  15995. }
  15996. };
  15997. return OperatorList;
  15998. })();
  15999. var StateManager = (function StateManagerClosure() {
  16000. function StateManager(initialState) {
  16001. this.state = initialState;
  16002. this.stateStack = [];
  16003. }
  16004. StateManager.prototype = {
  16005. save: function () {
  16006. var old = this.state;
  16007. this.stateStack.push(this.state);
  16008. this.state = old.clone();
  16009. },
  16010. restore: function () {
  16011. var prev = this.stateStack.pop();
  16012. if (prev) {
  16013. this.state = prev;
  16014. }
  16015. },
  16016. transform: function (args) {
  16017. this.state.ctm = Util.transform(this.state.ctm, args);
  16018. }
  16019. };
  16020. return StateManager;
  16021. })();
  16022. var TextState = (function TextStateClosure() {
  16023. function TextState() {
  16024. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16025. this.fontSize = 0;
  16026. this.font = null;
  16027. this.fontMatrix = FONT_IDENTITY_MATRIX;
  16028. this.textMatrix = IDENTITY_MATRIX.slice();
  16029. this.textLineMatrix = IDENTITY_MATRIX.slice();
  16030. this.charSpacing = 0;
  16031. this.wordSpacing = 0;
  16032. this.leading = 0;
  16033. this.textHScale = 1;
  16034. this.textRise = 0;
  16035. }
  16036. TextState.prototype = {
  16037. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16038. var m = this.textMatrix;
  16039. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16040. },
  16041. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16042. var m = this.textLineMatrix;
  16043. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16044. },
  16045. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  16046. var m = this.textMatrix;
  16047. m[4] = m[0] * x + m[2] * y + m[4];
  16048. m[5] = m[1] * x + m[3] * y + m[5];
  16049. },
  16050. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  16051. var m = this.textLineMatrix;
  16052. m[4] = m[0] * x + m[2] * y + m[4];
  16053. m[5] = m[1] * x + m[3] * y + m[5];
  16054. },
  16055. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  16056. // 9.4.4 Text Space Details
  16057. var tsm = [this.fontSize * this.textHScale, 0,
  16058. 0, this.fontSize,
  16059. 0, this.textRise];
  16060. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  16061. },
  16062. carriageReturn: function TextState_carriageReturn() {
  16063. this.translateTextLineMatrix(0, -this.leading);
  16064. this.textMatrix = this.textLineMatrix.slice();
  16065. },
  16066. clone: function TextState_clone() {
  16067. var clone = Object.create(this);
  16068. clone.textMatrix = this.textMatrix.slice();
  16069. clone.textLineMatrix = this.textLineMatrix.slice();
  16070. clone.fontMatrix = this.fontMatrix.slice();
  16071. return clone;
  16072. }
  16073. };
  16074. return TextState;
  16075. })();
  16076. var EvalState = (function EvalStateClosure() {
  16077. function EvalState() {
  16078. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16079. this.font = null;
  16080. this.textRenderingMode = TextRenderingMode.FILL;
  16081. }
  16082. EvalState.prototype = {
  16083. clone: function CanvasExtraState_clone() {
  16084. return Object.create(this);
  16085. },
  16086. };
  16087. return EvalState;
  16088. })();
  16089. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  16090. // Specifies properties for each command
  16091. //
  16092. // If variableArgs === true: [0, `numArgs`] expected
  16093. // If variableArgs === false: exactly `numArgs` expected
  16094. var OP_MAP = {
  16095. // Graphic state
  16096. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  16097. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  16098. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  16099. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  16100. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  16101. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  16102. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  16103. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  16104. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  16105. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  16106. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  16107. // Path
  16108. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  16109. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  16110. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  16111. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  16112. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  16113. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  16114. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  16115. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  16116. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  16117. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16118. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16119. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  16120. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  16121. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  16122. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  16123. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  16124. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  16125. // Clipping
  16126. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  16127. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  16128. // Text
  16129. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  16130. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  16131. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  16132. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  16133. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  16134. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  16135. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  16136. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  16137. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  16138. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  16139. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  16140. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  16141. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  16142. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  16143. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  16144. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  16145. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  16146. variableArgs: false },
  16147. // Type3 fonts
  16148. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  16149. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  16150. // Color
  16151. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  16152. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  16153. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  16154. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  16155. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  16156. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  16157. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  16158. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  16159. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  16160. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  16161. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  16162. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  16163. // Shading
  16164. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  16165. // Images
  16166. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  16167. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  16168. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  16169. // XObjects
  16170. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  16171. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  16172. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  16173. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  16174. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  16175. variableArgs: false },
  16176. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  16177. // Compatibility
  16178. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  16179. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  16180. // (reserved partial commands for the lexer)
  16181. BM: null,
  16182. BD: null,
  16183. 'true': null,
  16184. fa: null,
  16185. fal: null,
  16186. fals: null,
  16187. 'false': null,
  16188. nu: null,
  16189. nul: null,
  16190. 'null': null
  16191. };
  16192. function EvaluatorPreprocessor(stream, xref, stateManager) {
  16193. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  16194. // dictionary
  16195. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  16196. this.stateManager = stateManager;
  16197. }
  16198. EvaluatorPreprocessor.prototype = {
  16199. get savedStatesDepth() {
  16200. return this.stateManager.stateStack.length;
  16201. },
  16202. read: function EvaluatorPreprocessor_read() {
  16203. var args = [];
  16204. while (true) {
  16205. var obj = this.parser.getObj();
  16206. if (isEOF(obj)) {
  16207. return null; // no more commands
  16208. }
  16209. if (!isCmd(obj)) {
  16210. // argument
  16211. if (obj !== null && obj !== undefined) {
  16212. args.push((obj instanceof Dict ? obj.getAll() : obj));
  16213. assert(args.length <= 33, 'Too many arguments');
  16214. }
  16215. continue;
  16216. }
  16217. var cmd = obj.cmd;
  16218. // Check that the command is valid
  16219. var opSpec = OP_MAP[cmd];
  16220. if (!opSpec) {
  16221. warn('Unknown command "' + cmd + '"');
  16222. continue;
  16223. }
  16224. var fn = opSpec.id;
  16225. // Validate the number of arguments for the command
  16226. if (opSpec.variableArgs) {
  16227. if (args.length > opSpec.numArgs) {
  16228. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  16229. '] args, but received ' + args.length + ' args');
  16230. }
  16231. } else {
  16232. if (args.length < opSpec.numArgs) {
  16233. // If we receive too few args, it's not possible to possible
  16234. // to execute the command, so skip the command
  16235. info('Command ' + fn + ': because expected ' +
  16236. opSpec.numArgs + ' args, but received ' + args.length +
  16237. ' args; skipping');
  16238. args = [];
  16239. continue;
  16240. } else if (args.length > opSpec.numArgs) {
  16241. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  16242. ' args, but received ' + args.length + ' args');
  16243. }
  16244. }
  16245. // TODO figure out how to type-check vararg functions
  16246. this.preprocessCommand(fn, args);
  16247. return { fn: fn, args: args };
  16248. }
  16249. },
  16250. preprocessCommand:
  16251. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  16252. switch (fn | 0) {
  16253. case OPS.save:
  16254. this.stateManager.save();
  16255. break;
  16256. case OPS.restore:
  16257. this.stateManager.restore();
  16258. break;
  16259. case OPS.transform:
  16260. this.stateManager.transform(args);
  16261. break;
  16262. }
  16263. }
  16264. };
  16265. return EvaluatorPreprocessor;
  16266. })();
  16267. var QueueOptimizer = (function QueueOptimizerClosure() {
  16268. function addState(parentState, pattern, fn) {
  16269. var state = parentState;
  16270. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  16271. var item = pattern[i];
  16272. state = (state[item] || (state[item] = []));
  16273. }
  16274. state[pattern[pattern.length - 1]] = fn;
  16275. }
  16276. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  16277. // Handles special case of mainly LaTeX documents which
  16278. // use image masks to draw lines with the current fill style.
  16279. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  16280. // have been found at index.
  16281. for (var i = 0; i < count; i++) {
  16282. var arg = argsArray[index + 4 * i + 2];
  16283. var imageMask = arg.length == 1 && arg[0];
  16284. if (imageMask && imageMask.width == 1 && imageMask.height == 1 &&
  16285. (!imageMask.data.length || (imageMask.data.length == 1 &&
  16286. imageMask.data[0] === 0))) {
  16287. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  16288. continue;
  16289. }
  16290. break;
  16291. }
  16292. return count - i;
  16293. }
  16294. var InitialState = [];
  16295. addState(InitialState,
  16296. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  16297. function foundInlineImageGroup(context) {
  16298. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  16299. // searching for (save, transform, paintInlineImageXObject, restore)+
  16300. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  16301. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  16302. var MAX_WIDTH = 1000;
  16303. var IMAGE_PADDING = 1;
  16304. var fnArray = context.fnArray, argsArray = context.argsArray;
  16305. var j = context.currentOperation - 3, i = j + 4;
  16306. var ii = fnArray.length;
  16307. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16308. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  16309. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  16310. context.currentOperation = i - 1;
  16311. return;
  16312. }
  16313. // assuming that heights of those image is too small (~1 pixel)
  16314. // packing as much as possible by lines
  16315. var maxX = 0;
  16316. var map = [], maxLineHeight = 0;
  16317. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  16318. var q;
  16319. for (q = 0; q < count; q++) {
  16320. var transform = argsArray[j + (q << 2) + 1];
  16321. var img = argsArray[j + (q << 2) + 2][0];
  16322. if (currentX + img.width > MAX_WIDTH) {
  16323. // starting new line
  16324. maxX = Math.max(maxX, currentX);
  16325. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  16326. currentX = 0;
  16327. maxLineHeight = 0;
  16328. }
  16329. map.push({
  16330. transform: transform,
  16331. x: currentX, y: currentY,
  16332. w: img.width, h: img.height
  16333. });
  16334. currentX += img.width + 2 * IMAGE_PADDING;
  16335. maxLineHeight = Math.max(maxLineHeight, img.height);
  16336. }
  16337. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  16338. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  16339. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  16340. var imgRowSize = imgWidth << 2;
  16341. for (q = 0; q < count; q++) {
  16342. var data = argsArray[j + (q << 2) + 2][0].data;
  16343. // copy image by lines and extends pixels into padding
  16344. var rowSize = map[q].w << 2;
  16345. var dataOffset = 0;
  16346. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  16347. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  16348. for (var k = 0, kk = map[q].h; k < kk; k++) {
  16349. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  16350. dataOffset += rowSize;
  16351. offset += imgRowSize;
  16352. }
  16353. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  16354. while (offset >= 0) {
  16355. data[offset - 4] = data[offset];
  16356. data[offset - 3] = data[offset + 1];
  16357. data[offset - 2] = data[offset + 2];
  16358. data[offset - 1] = data[offset + 3];
  16359. data[offset + rowSize] = data[offset + rowSize - 4];
  16360. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  16361. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  16362. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  16363. offset -= imgRowSize;
  16364. }
  16365. }
  16366. // replacing queue items
  16367. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  16368. argsArray.splice(j, count * 4,
  16369. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  16370. data: imgData }, map]);
  16371. context.currentOperation = j;
  16372. });
  16373. addState(InitialState,
  16374. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  16375. function foundImageMaskGroup(context) {
  16376. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  16377. // searching for (save, transform, paintImageMaskXObject, restore)+
  16378. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  16379. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  16380. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  16381. var fnArray = context.fnArray, argsArray = context.argsArray;
  16382. var j = context.currentOperation - 3, i = j + 4;
  16383. var ii = fnArray.length, q;
  16384. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16385. var count = (i - j) >> 2;
  16386. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  16387. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  16388. context.currentOperation = i - 1;
  16389. return;
  16390. }
  16391. var isSameImage = false;
  16392. var transformArgs;
  16393. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  16394. i = j + 4;
  16395. isSameImage = true;
  16396. for (q = 1; q < count; q++, i += 4) {
  16397. var prevTransformArgs = argsArray[i - 3];
  16398. transformArgs = argsArray[i + 1];
  16399. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  16400. prevTransformArgs[0] !== transformArgs[0] ||
  16401. prevTransformArgs[1] !== transformArgs[1] ||
  16402. prevTransformArgs[2] !== transformArgs[2] ||
  16403. prevTransformArgs[3] !== transformArgs[3]) {
  16404. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  16405. isSameImage = false;
  16406. } else {
  16407. count = q;
  16408. }
  16409. break; // different image or transform
  16410. }
  16411. }
  16412. }
  16413. if (isSameImage) {
  16414. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  16415. var positions = new Float32Array(count * 2);
  16416. i = j + 1;
  16417. for (q = 0; q < count; q++) {
  16418. transformArgs = argsArray[i];
  16419. positions[(q << 1)] = transformArgs[4];
  16420. positions[(q << 1) + 1] = transformArgs[5];
  16421. i += 4;
  16422. }
  16423. // replacing queue items
  16424. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  16425. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  16426. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  16427. context.currentOperation = j;
  16428. } else {
  16429. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  16430. var images = [];
  16431. for (q = 0; q < count; q++) {
  16432. transformArgs = argsArray[j + (q << 2) + 1];
  16433. var maskParams = argsArray[j + (q << 2) + 2][0];
  16434. images.push({ data: maskParams.data, width: maskParams.width,
  16435. height: maskParams.height,
  16436. transform: transformArgs });
  16437. }
  16438. // replacing queue items
  16439. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  16440. argsArray.splice(j, count * 4, [images]);
  16441. context.currentOperation = j;
  16442. }
  16443. });
  16444. addState(InitialState,
  16445. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  16446. function (context) {
  16447. var MIN_IMAGES_IN_BLOCK = 3;
  16448. var MAX_IMAGES_IN_BLOCK = 1000;
  16449. var fnArray = context.fnArray, argsArray = context.argsArray;
  16450. var j = context.currentOperation - 3, i = j + 4;
  16451. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  16452. return;
  16453. }
  16454. var ii = fnArray.length;
  16455. var transformArgs;
  16456. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  16457. if (fnArray[i - 3] !== fnArray[i + 1] ||
  16458. fnArray[i - 2] !== fnArray[i + 2] ||
  16459. fnArray[i - 1] !== fnArray[i + 3]) {
  16460. break;
  16461. }
  16462. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  16463. break; // different image
  16464. }
  16465. var prevTransformArgs = argsArray[i - 3];
  16466. transformArgs = argsArray[i + 1];
  16467. if (prevTransformArgs[0] !== transformArgs[0] ||
  16468. prevTransformArgs[1] !== transformArgs[1] ||
  16469. prevTransformArgs[2] !== transformArgs[2] ||
  16470. prevTransformArgs[3] !== transformArgs[3]) {
  16471. break; // different transform
  16472. }
  16473. }
  16474. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  16475. if (count < MIN_IMAGES_IN_BLOCK) {
  16476. context.currentOperation = i - 1;
  16477. return;
  16478. }
  16479. var positions = new Float32Array(count * 2);
  16480. i = j + 1;
  16481. for (var q = 0; q < count; q++) {
  16482. transformArgs = argsArray[i];
  16483. positions[(q << 1)] = transformArgs[4];
  16484. positions[(q << 1) + 1] = transformArgs[5];
  16485. i += 4;
  16486. }
  16487. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  16488. argsArray[j + 1][3], positions];
  16489. // replacing queue items
  16490. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  16491. argsArray.splice(j, count * 4, args);
  16492. context.currentOperation = j;
  16493. });
  16494. addState(InitialState,
  16495. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  16496. function (context) {
  16497. // moving single chars with same font into beginText/endText groups
  16498. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  16499. var MIN_CHARS_IN_BLOCK = 3;
  16500. var MAX_CHARS_IN_BLOCK = 1000;
  16501. var fnArray = context.fnArray, argsArray = context.argsArray;
  16502. var j = context.currentOperation - 4, i = j + 5;
  16503. var ii = fnArray.length;
  16504. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  16505. if (fnArray[i] === OPS.setFont) {
  16506. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  16507. argsArray[i - 5][1] !== argsArray[i][1]) {
  16508. break;
  16509. }
  16510. }
  16511. }
  16512. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  16513. if (count < MIN_CHARS_IN_BLOCK) {
  16514. context.currentOperation = i - 1;
  16515. return;
  16516. }
  16517. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  16518. fnArray[j - 3] === fnArray[j + 2] &&
  16519. fnArray[j - 2] === fnArray[j + 3] &&
  16520. fnArray[j - 1] === fnArray[j + 4] &&
  16521. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  16522. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  16523. // extending one block ahead (very first block might have 'dependency')
  16524. count++;
  16525. j -= 5;
  16526. }
  16527. var k = j + 7;
  16528. i = j + 4;
  16529. for (var q = 1; q < count; q++) {
  16530. fnArray[i] = fnArray[k];
  16531. argsArray[i] = argsArray[k];
  16532. fnArray[i + 1] = fnArray[k + 1];
  16533. argsArray[i + 1] = argsArray[k + 1];
  16534. i += 2;
  16535. k += 5;
  16536. }
  16537. var removed = (count - 1) * 3;
  16538. fnArray.splice(i, removed);
  16539. argsArray.splice(i, removed);
  16540. context.currentOperation = i;
  16541. });
  16542. function QueueOptimizer() {}
  16543. QueueOptimizer.prototype = {
  16544. optimize: function QueueOptimizer_optimize(queue) {
  16545. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16546. var context = {
  16547. currentOperation: 0,
  16548. fnArray: fnArray,
  16549. argsArray: argsArray
  16550. };
  16551. var i, ii = argsArray.length;
  16552. var state;
  16553. for (i = 0; i < ii; i++) {
  16554. state = (state || InitialState)[fnArray[i]];
  16555. if (typeof state === 'function') { // we found some handler
  16556. context.currentOperation = i;
  16557. state = state(context);
  16558. i = context.currentOperation;
  16559. ii = context.fnArray.length;
  16560. }
  16561. }
  16562. }
  16563. };
  16564. return QueueOptimizer;
  16565. })();
  16566. var BUILT_IN_CMAPS = [
  16567. // << Start unicode maps.
  16568. 'Adobe-GB1-UCS2',
  16569. 'Adobe-CNS1-UCS2',
  16570. 'Adobe-Japan1-UCS2',
  16571. 'Adobe-Korea1-UCS2',
  16572. // >> End unicode maps.
  16573. '78-EUC-H',
  16574. '78-EUC-V',
  16575. '78-H',
  16576. '78-RKSJ-H',
  16577. '78-RKSJ-V',
  16578. '78-V',
  16579. '78ms-RKSJ-H',
  16580. '78ms-RKSJ-V',
  16581. '83pv-RKSJ-H',
  16582. '90ms-RKSJ-H',
  16583. '90ms-RKSJ-V',
  16584. '90msp-RKSJ-H',
  16585. '90msp-RKSJ-V',
  16586. '90pv-RKSJ-H',
  16587. '90pv-RKSJ-V',
  16588. 'Add-H',
  16589. 'Add-RKSJ-H',
  16590. 'Add-RKSJ-V',
  16591. 'Add-V',
  16592. 'Adobe-CNS1-0',
  16593. 'Adobe-CNS1-1',
  16594. 'Adobe-CNS1-2',
  16595. 'Adobe-CNS1-3',
  16596. 'Adobe-CNS1-4',
  16597. 'Adobe-CNS1-5',
  16598. 'Adobe-CNS1-6',
  16599. 'Adobe-GB1-0',
  16600. 'Adobe-GB1-1',
  16601. 'Adobe-GB1-2',
  16602. 'Adobe-GB1-3',
  16603. 'Adobe-GB1-4',
  16604. 'Adobe-GB1-5',
  16605. 'Adobe-Japan1-0',
  16606. 'Adobe-Japan1-1',
  16607. 'Adobe-Japan1-2',
  16608. 'Adobe-Japan1-3',
  16609. 'Adobe-Japan1-4',
  16610. 'Adobe-Japan1-5',
  16611. 'Adobe-Japan1-6',
  16612. 'Adobe-Korea1-0',
  16613. 'Adobe-Korea1-1',
  16614. 'Adobe-Korea1-2',
  16615. 'B5-H',
  16616. 'B5-V',
  16617. 'B5pc-H',
  16618. 'B5pc-V',
  16619. 'CNS-EUC-H',
  16620. 'CNS-EUC-V',
  16621. 'CNS1-H',
  16622. 'CNS1-V',
  16623. 'CNS2-H',
  16624. 'CNS2-V',
  16625. 'ETHK-B5-H',
  16626. 'ETHK-B5-V',
  16627. 'ETen-B5-H',
  16628. 'ETen-B5-V',
  16629. 'ETenms-B5-H',
  16630. 'ETenms-B5-V',
  16631. 'EUC-H',
  16632. 'EUC-V',
  16633. 'Ext-H',
  16634. 'Ext-RKSJ-H',
  16635. 'Ext-RKSJ-V',
  16636. 'Ext-V',
  16637. 'GB-EUC-H',
  16638. 'GB-EUC-V',
  16639. 'GB-H',
  16640. 'GB-V',
  16641. 'GBK-EUC-H',
  16642. 'GBK-EUC-V',
  16643. 'GBK2K-H',
  16644. 'GBK2K-V',
  16645. 'GBKp-EUC-H',
  16646. 'GBKp-EUC-V',
  16647. 'GBT-EUC-H',
  16648. 'GBT-EUC-V',
  16649. 'GBT-H',
  16650. 'GBT-V',
  16651. 'GBTpc-EUC-H',
  16652. 'GBTpc-EUC-V',
  16653. 'GBpc-EUC-H',
  16654. 'GBpc-EUC-V',
  16655. 'H',
  16656. 'HKdla-B5-H',
  16657. 'HKdla-B5-V',
  16658. 'HKdlb-B5-H',
  16659. 'HKdlb-B5-V',
  16660. 'HKgccs-B5-H',
  16661. 'HKgccs-B5-V',
  16662. 'HKm314-B5-H',
  16663. 'HKm314-B5-V',
  16664. 'HKm471-B5-H',
  16665. 'HKm471-B5-V',
  16666. 'HKscs-B5-H',
  16667. 'HKscs-B5-V',
  16668. 'Hankaku',
  16669. 'Hiragana',
  16670. 'KSC-EUC-H',
  16671. 'KSC-EUC-V',
  16672. 'KSC-H',
  16673. 'KSC-Johab-H',
  16674. 'KSC-Johab-V',
  16675. 'KSC-V',
  16676. 'KSCms-UHC-H',
  16677. 'KSCms-UHC-HW-H',
  16678. 'KSCms-UHC-HW-V',
  16679. 'KSCms-UHC-V',
  16680. 'KSCpc-EUC-H',
  16681. 'KSCpc-EUC-V',
  16682. 'Katakana',
  16683. 'NWP-H',
  16684. 'NWP-V',
  16685. 'RKSJ-H',
  16686. 'RKSJ-V',
  16687. 'Roman',
  16688. 'UniCNS-UCS2-H',
  16689. 'UniCNS-UCS2-V',
  16690. 'UniCNS-UTF16-H',
  16691. 'UniCNS-UTF16-V',
  16692. 'UniCNS-UTF32-H',
  16693. 'UniCNS-UTF32-V',
  16694. 'UniCNS-UTF8-H',
  16695. 'UniCNS-UTF8-V',
  16696. 'UniGB-UCS2-H',
  16697. 'UniGB-UCS2-V',
  16698. 'UniGB-UTF16-H',
  16699. 'UniGB-UTF16-V',
  16700. 'UniGB-UTF32-H',
  16701. 'UniGB-UTF32-V',
  16702. 'UniGB-UTF8-H',
  16703. 'UniGB-UTF8-V',
  16704. 'UniJIS-UCS2-H',
  16705. 'UniJIS-UCS2-HW-H',
  16706. 'UniJIS-UCS2-HW-V',
  16707. 'UniJIS-UCS2-V',
  16708. 'UniJIS-UTF16-H',
  16709. 'UniJIS-UTF16-V',
  16710. 'UniJIS-UTF32-H',
  16711. 'UniJIS-UTF32-V',
  16712. 'UniJIS-UTF8-H',
  16713. 'UniJIS-UTF8-V',
  16714. 'UniJIS2004-UTF16-H',
  16715. 'UniJIS2004-UTF16-V',
  16716. 'UniJIS2004-UTF32-H',
  16717. 'UniJIS2004-UTF32-V',
  16718. 'UniJIS2004-UTF8-H',
  16719. 'UniJIS2004-UTF8-V',
  16720. 'UniJISPro-UCS2-HW-V',
  16721. 'UniJISPro-UCS2-V',
  16722. 'UniJISPro-UTF8-V',
  16723. 'UniJISX0213-UTF32-H',
  16724. 'UniJISX0213-UTF32-V',
  16725. 'UniJISX02132004-UTF32-H',
  16726. 'UniJISX02132004-UTF32-V',
  16727. 'UniKS-UCS2-H',
  16728. 'UniKS-UCS2-V',
  16729. 'UniKS-UTF16-H',
  16730. 'UniKS-UTF16-V',
  16731. 'UniKS-UTF32-H',
  16732. 'UniKS-UTF32-V',
  16733. 'UniKS-UTF8-H',
  16734. 'UniKS-UTF8-V',
  16735. 'V',
  16736. 'WP-Symbol'];
  16737. // CMap, not to be confused with TrueType's cmap.
  16738. var CMap = (function CMapClosure() {
  16739. function CMap(builtInCMap) {
  16740. // Codespace ranges are stored as follows:
  16741. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  16742. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  16743. this.codespaceRanges = [[], [], [], []];
  16744. this.numCodespaceRanges = 0;
  16745. this.map = [];
  16746. this.vertical = false;
  16747. this.useCMap = null;
  16748. this.builtInCMap = builtInCMap;
  16749. }
  16750. CMap.prototype = {
  16751. addCodespaceRange: function(n, low, high) {
  16752. this.codespaceRanges[n - 1].push(low, high);
  16753. this.numCodespaceRanges++;
  16754. },
  16755. mapRange: function(low, high, dstLow) {
  16756. var lastByte = dstLow.length - 1;
  16757. while (low <= high) {
  16758. this.map[low] = dstLow;
  16759. // Only the last byte has to be incremented.
  16760. dstLow = dstLow.substr(0, lastByte) +
  16761. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  16762. ++low;
  16763. }
  16764. },
  16765. mapRangeToArray: function(low, high, array) {
  16766. var i = 0;
  16767. while (low <= high) {
  16768. this.map[low] = array[i++];
  16769. ++low;
  16770. }
  16771. },
  16772. mapOne: function(src, dst) {
  16773. this.map[src] = dst;
  16774. },
  16775. lookup: function(code) {
  16776. return this.map[code];
  16777. },
  16778. readCharCode: function(str, offset) {
  16779. var c = 0;
  16780. var codespaceRanges = this.codespaceRanges;
  16781. var codespaceRangesLen = this.codespaceRanges.length;
  16782. // 9.7.6.2 CMap Mapping
  16783. // The code length is at most 4.
  16784. for (var n = 0; n < codespaceRangesLen; n++) {
  16785. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  16786. // Check each codespace range to see if it falls within.
  16787. var codespaceRange = codespaceRanges[n];
  16788. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  16789. var low = codespaceRange[k++];
  16790. var high = codespaceRange[k++];
  16791. if (c >= low && c <= high) {
  16792. return [c, n + 1];
  16793. }
  16794. }
  16795. }
  16796. return [0, 1];
  16797. }
  16798. };
  16799. return CMap;
  16800. })();
  16801. var IdentityCMap = (function IdentityCMapClosure() {
  16802. function IdentityCMap(vertical, n) {
  16803. CMap.call(this);
  16804. this.vertical = vertical;
  16805. this.addCodespaceRange(n, 0, 0xffff);
  16806. this.mapRange(0, 0xffff, '\u0000');
  16807. }
  16808. Util.inherit(IdentityCMap, CMap, {});
  16809. return IdentityCMap;
  16810. })();
  16811. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  16812. function fetchBinaryData(url) {
  16813. var nonBinaryRequest = PDFJS.disableWorker;
  16814. var request = new XMLHttpRequest();
  16815. request.open('GET', url, false);
  16816. if (!nonBinaryRequest) {
  16817. try {
  16818. request.responseType = 'arraybuffer';
  16819. nonBinaryRequest = request.responseType !== 'arraybuffer';
  16820. } catch (e) {
  16821. nonBinaryRequest = true;
  16822. }
  16823. }
  16824. if (nonBinaryRequest && request.overrideMimeType) {
  16825. request.overrideMimeType('text/plain; charset=x-user-defined');
  16826. }
  16827. request.send(null);
  16828. if (request.status === 0 && /^https?:/i.test(url)) {
  16829. error('Unable to get binary cMap at: ' + url);
  16830. }
  16831. if (nonBinaryRequest) {
  16832. var data = Array.prototype.map.call(request.responseText, function (ch) {
  16833. return ch.charCodeAt(0) & 255;
  16834. });
  16835. return new Uint8Array(data);
  16836. }
  16837. return new Uint8Array(request.response);
  16838. }
  16839. function hexToInt(a, size) {
  16840. var n = 0;
  16841. for (var i = 0; i <= size; i++) {
  16842. n = (n << 8) | a[i];
  16843. }
  16844. return n >>> 0;
  16845. }
  16846. function hexToStr(a, size) {
  16847. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  16848. }
  16849. function addHex(a, b, size) {
  16850. var c = 0;
  16851. for (var i = size; i >= 0; i--) {
  16852. c += a[i] + b[i];
  16853. a[i] = c & 255;
  16854. c >>= 8;
  16855. }
  16856. }
  16857. function incHex(a, size) {
  16858. var c = 1;
  16859. for (var i = size; i >= 0 && c > 0; i--) {
  16860. c += a[i];
  16861. a[i] = c & 255;
  16862. c >>= 8;
  16863. }
  16864. }
  16865. var MAX_NUM_SIZE = 16;
  16866. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  16867. function BinaryCMapStream(data) {
  16868. this.buffer = data;
  16869. this.pos = 0;
  16870. this.end = data.length;
  16871. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  16872. }
  16873. BinaryCMapStream.prototype = {
  16874. readByte: function () {
  16875. if (this.pos >= this.end) {
  16876. return -1;
  16877. }
  16878. return this.buffer[this.pos++];
  16879. },
  16880. readNumber: function () {
  16881. var n = 0;
  16882. var last;
  16883. do {
  16884. var b = this.readByte();
  16885. if (b < 0) {
  16886. error('unexpected EOF in bcmap');
  16887. }
  16888. last = !(b & 0x80);
  16889. n = (n << 7) | (b & 0x7F);
  16890. } while (!last);
  16891. return n;
  16892. },
  16893. readSigned: function () {
  16894. var n = this.readNumber();
  16895. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  16896. },
  16897. readHex: function (num, size) {
  16898. num.set(this.buffer.subarray(this.pos,
  16899. this.pos + size + 1));
  16900. this.pos += size + 1;
  16901. },
  16902. readHexNumber: function (num, size) {
  16903. var last;
  16904. var stack = this.tmpBuf, sp = 0;
  16905. do {
  16906. var b = this.readByte();
  16907. if (b < 0) {
  16908. error('unexpected EOF in bcmap');
  16909. }
  16910. last = !(b & 0x80);
  16911. stack[sp++] = b & 0x7F;
  16912. } while (!last);
  16913. var i = size, buffer = 0, bufferSize = 0;
  16914. while (i >= 0) {
  16915. while (bufferSize < 8 && stack.length > 0) {
  16916. buffer = (stack[--sp] << bufferSize) | buffer;
  16917. bufferSize += 7;
  16918. }
  16919. num[i] = buffer & 255;
  16920. i--;
  16921. buffer >>= 8;
  16922. bufferSize -= 8;
  16923. }
  16924. },
  16925. readHexSigned: function (num, size) {
  16926. this.readHexNumber(num, size);
  16927. var sign = num[size] & 1 ? 255 : 0;
  16928. var c = 0;
  16929. for (var i = 0; i <= size; i++) {
  16930. c = ((c & 1) << 8) | num[i];
  16931. num[i] = (c >> 1) ^ sign;
  16932. }
  16933. },
  16934. readString: function () {
  16935. var len = this.readNumber();
  16936. var s = '';
  16937. for (var i = 0; i < len; i++) {
  16938. s += String.fromCharCode(this.readNumber());
  16939. }
  16940. return s;
  16941. }
  16942. };
  16943. function processBinaryCMap(url, cMap, extend) {
  16944. var data = fetchBinaryData(url);
  16945. var stream = new BinaryCMapStream(data);
  16946. var header = stream.readByte();
  16947. cMap.vertical = !!(header & 1);
  16948. var useCMap = null;
  16949. var start = new Uint8Array(MAX_NUM_SIZE);
  16950. var end = new Uint8Array(MAX_NUM_SIZE);
  16951. var char = new Uint8Array(MAX_NUM_SIZE);
  16952. var charCode = new Uint8Array(MAX_NUM_SIZE);
  16953. var tmp = new Uint8Array(MAX_NUM_SIZE);
  16954. var code;
  16955. var b;
  16956. while ((b = stream.readByte()) >= 0) {
  16957. var type = b >> 5;
  16958. if (type === 7) { // metadata, e.g. comment or usecmap
  16959. switch (b & 0x1F) {
  16960. case 0:
  16961. stream.readString(); // skipping comment
  16962. break;
  16963. case 1:
  16964. useCMap = stream.readString();
  16965. break;
  16966. }
  16967. continue;
  16968. }
  16969. var sequence = !!(b & 0x10);
  16970. var dataSize = b & 15;
  16971. assert(dataSize + 1 <= MAX_NUM_SIZE);
  16972. var ucs2DataSize = 1;
  16973. var subitemsCount = stream.readNumber();
  16974. var i;
  16975. switch (type) {
  16976. case 0: // codespacerange
  16977. stream.readHex(start, dataSize);
  16978. stream.readHexNumber(end, dataSize);
  16979. addHex(end, start, dataSize);
  16980. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  16981. hexToInt(end, dataSize));
  16982. for (i = 1; i < subitemsCount; i++) {
  16983. incHex(end, dataSize);
  16984. stream.readHexNumber(start, dataSize);
  16985. addHex(start, end, dataSize);
  16986. stream.readHexNumber(end, dataSize);
  16987. addHex(end, start, dataSize);
  16988. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  16989. hexToInt(end, dataSize));
  16990. }
  16991. break;
  16992. case 1: // notdefrange
  16993. stream.readHex(start, dataSize);
  16994. stream.readHexNumber(end, dataSize);
  16995. addHex(end, start, dataSize);
  16996. code = stream.readNumber();
  16997. // undefined range, skipping
  16998. for (i = 1; i < subitemsCount; i++) {
  16999. incHex(end, dataSize);
  17000. stream.readHexNumber(start, dataSize);
  17001. addHex(start, end, dataSize);
  17002. stream.readHexNumber(end, dataSize);
  17003. addHex(end, start, dataSize);
  17004. code = stream.readNumber();
  17005. // nop
  17006. }
  17007. break;
  17008. case 2: // cidchar
  17009. stream.readHex(char, dataSize);
  17010. code = stream.readNumber();
  17011. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17012. for (i = 1; i < subitemsCount; i++) {
  17013. incHex(char, dataSize);
  17014. if (!sequence) {
  17015. stream.readHexNumber(tmp, dataSize);
  17016. addHex(char, tmp, dataSize);
  17017. }
  17018. code = stream.readSigned() + (code + 1);
  17019. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17020. }
  17021. break;
  17022. case 3: // cidrange
  17023. stream.readHex(start, dataSize);
  17024. stream.readHexNumber(end, dataSize);
  17025. addHex(end, start, dataSize);
  17026. code = stream.readNumber();
  17027. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17028. String.fromCharCode(code));
  17029. for (i = 1; i < subitemsCount; i++) {
  17030. incHex(end, dataSize);
  17031. if (!sequence) {
  17032. stream.readHexNumber(start, dataSize);
  17033. addHex(start, end, dataSize);
  17034. } else {
  17035. start.set(end);
  17036. }
  17037. stream.readHexNumber(end, dataSize);
  17038. addHex(end, start, dataSize);
  17039. code = stream.readNumber();
  17040. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17041. String.fromCharCode(code));
  17042. }
  17043. break;
  17044. case 4: // bfchar
  17045. stream.readHex(char, ucs2DataSize);
  17046. stream.readHex(charCode, dataSize);
  17047. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17048. hexToStr(charCode, dataSize));
  17049. for (i = 1; i < subitemsCount; i++) {
  17050. incHex(char, ucs2DataSize);
  17051. if (!sequence) {
  17052. stream.readHexNumber(tmp, ucs2DataSize);
  17053. addHex(char, tmp, ucs2DataSize);
  17054. }
  17055. incHex(charCode, dataSize);
  17056. stream.readHexSigned(tmp, dataSize);
  17057. addHex(charCode, tmp, dataSize);
  17058. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17059. hexToStr(charCode, dataSize));
  17060. }
  17061. break;
  17062. case 5: // bfrange
  17063. stream.readHex(start, ucs2DataSize);
  17064. stream.readHexNumber(end, ucs2DataSize);
  17065. addHex(end, start, ucs2DataSize);
  17066. stream.readHex(charCode, dataSize);
  17067. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17068. hexToInt(end, ucs2DataSize),
  17069. hexToStr(charCode, dataSize));
  17070. for (i = 1; i < subitemsCount; i++) {
  17071. incHex(end, ucs2DataSize);
  17072. if (!sequence) {
  17073. stream.readHexNumber(start, ucs2DataSize);
  17074. addHex(start, end, ucs2DataSize);
  17075. } else {
  17076. start.set(end);
  17077. }
  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. }
  17085. break;
  17086. default:
  17087. error('Unknown type: ' + type);
  17088. break;
  17089. }
  17090. }
  17091. if (useCMap) {
  17092. extend(useCMap);
  17093. }
  17094. return cMap;
  17095. }
  17096. function BinaryCMapReader() {}
  17097. BinaryCMapReader.prototype = {
  17098. read: processBinaryCMap
  17099. };
  17100. return BinaryCMapReader;
  17101. })();
  17102. var CMapFactory = (function CMapFactoryClosure() {
  17103. function strToInt(str) {
  17104. var a = 0;
  17105. for (var i = 0; i < str.length; i++) {
  17106. a = (a << 8) | str.charCodeAt(i);
  17107. }
  17108. return a >>> 0;
  17109. }
  17110. function expectString(obj) {
  17111. if (!isString(obj)) {
  17112. error('Malformed CMap: expected string.');
  17113. }
  17114. }
  17115. function expectInt(obj) {
  17116. if (!isInt(obj)) {
  17117. error('Malformed CMap: expected int.');
  17118. }
  17119. }
  17120. function parseBfChar(cMap, lexer) {
  17121. while (true) {
  17122. var obj = lexer.getObj();
  17123. if (isEOF(obj)) {
  17124. break;
  17125. }
  17126. if (isCmd(obj, 'endbfchar')) {
  17127. return;
  17128. }
  17129. expectString(obj);
  17130. var src = strToInt(obj);
  17131. obj = lexer.getObj();
  17132. // TODO are /dstName used?
  17133. expectString(obj);
  17134. var dst = obj;
  17135. cMap.mapOne(src, dst);
  17136. }
  17137. }
  17138. function parseBfRange(cMap, lexer) {
  17139. while (true) {
  17140. var obj = lexer.getObj();
  17141. if (isEOF(obj)) {
  17142. break;
  17143. }
  17144. if (isCmd(obj, 'endbfrange')) {
  17145. return;
  17146. }
  17147. expectString(obj);
  17148. var low = strToInt(obj);
  17149. obj = lexer.getObj();
  17150. expectString(obj);
  17151. var high = strToInt(obj);
  17152. obj = lexer.getObj();
  17153. if (isInt(obj) || isString(obj)) {
  17154. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  17155. cMap.mapRange(low, high, dstLow);
  17156. } else if (isCmd(obj, '[')) {
  17157. obj = lexer.getObj();
  17158. var array = [];
  17159. while (!isCmd(obj, ']') && !isEOF(obj)) {
  17160. array.push(obj);
  17161. obj = lexer.getObj();
  17162. }
  17163. cMap.mapRangeToArray(low, high, array);
  17164. } else {
  17165. break;
  17166. }
  17167. }
  17168. error('Invalid bf range.');
  17169. }
  17170. function parseCidChar(cMap, lexer) {
  17171. while (true) {
  17172. var obj = lexer.getObj();
  17173. if (isEOF(obj)) {
  17174. break;
  17175. }
  17176. if (isCmd(obj, 'endcidchar')) {
  17177. return;
  17178. }
  17179. expectString(obj);
  17180. var src = strToInt(obj);
  17181. obj = lexer.getObj();
  17182. expectInt(obj);
  17183. var dst = String.fromCharCode(obj);
  17184. cMap.mapOne(src, dst);
  17185. }
  17186. }
  17187. function parseCidRange(cMap, lexer) {
  17188. while (true) {
  17189. var obj = lexer.getObj();
  17190. if (isEOF(obj)) {
  17191. break;
  17192. }
  17193. if (isCmd(obj, 'endcidrange')) {
  17194. return;
  17195. }
  17196. expectString(obj);
  17197. var low = strToInt(obj);
  17198. obj = lexer.getObj();
  17199. expectString(obj);
  17200. var high = strToInt(obj);
  17201. obj = lexer.getObj();
  17202. expectInt(obj);
  17203. var dstLow = String.fromCharCode(obj);
  17204. cMap.mapRange(low, high, dstLow);
  17205. }
  17206. }
  17207. function parseCodespaceRange(cMap, lexer) {
  17208. while (true) {
  17209. var obj = lexer.getObj();
  17210. if (isEOF(obj)) {
  17211. break;
  17212. }
  17213. if (isCmd(obj, 'endcodespacerange')) {
  17214. return;
  17215. }
  17216. if (!isString(obj)) {
  17217. break;
  17218. }
  17219. var low = strToInt(obj);
  17220. obj = lexer.getObj();
  17221. if (!isString(obj)) {
  17222. break;
  17223. }
  17224. var high = strToInt(obj);
  17225. cMap.addCodespaceRange(obj.length, low, high);
  17226. }
  17227. error('Invalid codespace range.');
  17228. }
  17229. function parseWMode(cMap, lexer) {
  17230. var obj = lexer.getObj();
  17231. if (isInt(obj)) {
  17232. cMap.vertical = !!obj;
  17233. }
  17234. }
  17235. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  17236. var previous;
  17237. var embededUseCMap;
  17238. objLoop: while (true) {
  17239. var obj = lexer.getObj();
  17240. if (isEOF(obj)) {
  17241. break;
  17242. } else if (isName(obj)) {
  17243. if (obj.name === 'WMode') {
  17244. parseWMode(cMap, lexer);
  17245. }
  17246. previous = obj;
  17247. } else if (isCmd(obj)) {
  17248. switch (obj.cmd) {
  17249. case 'endcmap':
  17250. break objLoop;
  17251. case 'usecmap':
  17252. if (isName(previous)) {
  17253. embededUseCMap = previous.name;
  17254. }
  17255. break;
  17256. case 'begincodespacerange':
  17257. parseCodespaceRange(cMap, lexer);
  17258. break;
  17259. case 'beginbfchar':
  17260. parseBfChar(cMap, lexer);
  17261. break;
  17262. case 'begincidchar':
  17263. parseCidChar(cMap, lexer);
  17264. break;
  17265. case 'beginbfrange':
  17266. parseBfRange(cMap, lexer);
  17267. break;
  17268. case 'begincidrange':
  17269. parseCidRange(cMap, lexer);
  17270. break;
  17271. }
  17272. }
  17273. }
  17274. if (!useCMap && embededUseCMap) {
  17275. // Load the usecmap definition from the file only if there wasn't one
  17276. // specified.
  17277. useCMap = embededUseCMap;
  17278. }
  17279. if (useCMap) {
  17280. extendCMap(cMap, builtInCMapParams, useCMap);
  17281. }
  17282. }
  17283. function extendCMap(cMap, builtInCMapParams, useCMap) {
  17284. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  17285. // If there aren't any code space ranges defined clone all the parent ones
  17286. // into this cMap.
  17287. if (cMap.numCodespaceRanges === 0) {
  17288. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  17289. for (var i = 0; i < useCodespaceRanges.length; i++) {
  17290. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  17291. }
  17292. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  17293. }
  17294. // Merge the map into the current one, making sure not to override
  17295. // any previously defined entries.
  17296. for (var key in cMap.useCMap.map) {
  17297. if (key in cMap.map) {
  17298. continue;
  17299. }
  17300. cMap.map[key] = cMap.useCMap.map[key];
  17301. }
  17302. }
  17303. function parseBinaryCMap(name, builtInCMapParams) {
  17304. var url = builtInCMapParams.url + name + '.bcmap';
  17305. var cMap = new CMap(true);
  17306. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  17307. extendCMap(cMap, builtInCMapParams, useCMap);
  17308. });
  17309. return cMap;
  17310. }
  17311. function createBuiltInCMap(name, builtInCMapParams) {
  17312. if (name === 'Identity-H') {
  17313. return new IdentityCMap(false, 2);
  17314. } else if (name === 'Identity-V') {
  17315. return new IdentityCMap(true, 2);
  17316. }
  17317. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  17318. error('Unknown cMap name: ' + name);
  17319. }
  17320. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  17321. if (builtInCMapParams.packed) {
  17322. return parseBinaryCMap(name, builtInCMapParams);
  17323. }
  17324. var request = new XMLHttpRequest();
  17325. var url = builtInCMapParams.url + name;
  17326. request.open('GET', url, false);
  17327. request.send(null);
  17328. if (request.status === 0 && /^https?:/i.test(url)) {
  17329. error('Unable to get cMap at: ' + url);
  17330. }
  17331. var cMap = new CMap(true);
  17332. var lexer = new Lexer(new StringStream(request.responseText));
  17333. parseCMap(cMap, lexer, builtInCMapParams, null);
  17334. return cMap;
  17335. }
  17336. return {
  17337. create: function (encoding, builtInCMapParams, useCMap) {
  17338. if (isName(encoding)) {
  17339. return createBuiltInCMap(encoding.name, builtInCMapParams);
  17340. } else if (isStream(encoding)) {
  17341. var cMap = new CMap();
  17342. var lexer = new Lexer(encoding);
  17343. try {
  17344. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  17345. } catch (e) {
  17346. warn('Invalid CMap data. ' + e);
  17347. }
  17348. return cMap;
  17349. }
  17350. error('Encoding required.');
  17351. }
  17352. };
  17353. })();
  17354. // Unicode Private Use Area
  17355. var PRIVATE_USE_OFFSET_START = 0xE000;
  17356. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  17357. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  17358. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  17359. // except for Type 3 fonts
  17360. var PDF_GLYPH_SPACE_UNITS = 1000;
  17361. // Hinting is currently disabled due to unknown problems on windows
  17362. // in tracemonkey and various other pdfs with type1 fonts.
  17363. var HINTING_ENABLED = false;
  17364. // Accented charactars are not displayed properly on windows, using this flag
  17365. // to control analysis of seac charstrings.
  17366. var SEAC_ANALYSIS_ENABLED = false;
  17367. var FontFlags = {
  17368. FixedPitch: 1,
  17369. Serif: 2,
  17370. Symbolic: 4,
  17371. Script: 8,
  17372. Nonsymbolic: 32,
  17373. Italic: 64,
  17374. AllCap: 65536,
  17375. SmallCap: 131072,
  17376. ForceBold: 262144
  17377. };
  17378. var Encodings = {
  17379. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17380. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17381. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  17382. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  17383. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  17384. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  17385. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  17386. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  17387. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  17388. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  17389. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  17390. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  17391. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  17392. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  17393. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  17394. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  17395. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  17396. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  17397. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  17398. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17399. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  17400. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  17401. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  17402. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  17403. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  17404. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  17405. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  17406. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  17407. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  17408. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  17409. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  17410. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  17411. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  17412. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  17413. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  17414. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  17415. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  17416. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  17417. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  17418. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  17419. 'Ydieresissmall'],
  17420. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17421. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17422. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  17423. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  17424. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  17425. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  17426. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  17427. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  17428. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  17429. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  17430. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  17431. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  17432. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  17433. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  17434. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  17435. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  17436. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  17437. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  17438. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  17439. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  17440. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  17441. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  17442. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  17443. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  17444. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  17445. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  17446. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  17447. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  17448. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  17449. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  17450. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  17451. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  17452. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  17453. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  17454. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  17455. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  17456. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  17457. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  17458. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  17459. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  17460. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17461. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17462. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17463. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17464. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17465. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17466. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17467. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17468. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17469. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17470. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17471. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  17472. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  17473. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  17474. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17475. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  17476. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  17477. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  17478. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  17479. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  17480. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  17481. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  17482. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  17483. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  17484. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  17485. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  17486. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  17487. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  17488. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  17489. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  17490. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  17491. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  17492. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  17493. 'ogonek', 'caron'],
  17494. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17495. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17496. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17497. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  17498. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17499. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17500. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17501. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17502. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17503. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  17504. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  17505. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17506. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17507. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  17508. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  17509. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  17510. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  17511. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  17512. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  17513. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  17514. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  17515. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  17516. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  17517. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  17518. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  17519. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17520. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17521. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17522. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17523. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17524. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17525. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17526. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17527. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17528. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17529. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17530. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17531. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  17532. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  17533. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  17534. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  17535. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  17536. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  17537. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  17538. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  17539. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  17540. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  17541. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  17542. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  17543. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  17544. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  17545. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  17546. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  17547. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  17548. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  17549. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  17550. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  17551. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  17552. 'ydieresis'],
  17553. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17554. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17555. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  17556. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  17557. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  17558. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  17559. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  17560. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  17561. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  17562. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  17563. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  17564. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  17565. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  17566. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  17567. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  17568. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17569. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  17570. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  17571. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  17572. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  17573. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  17574. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  17575. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  17576. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  17577. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  17578. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  17579. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  17580. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  17581. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  17582. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  17583. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  17584. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  17585. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  17586. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  17587. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  17588. 'bracerightbt'],
  17589. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17590. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17591. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  17592. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  17593. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  17594. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  17595. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  17596. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  17597. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  17598. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  17599. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  17600. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17601. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17602. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  17603. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  17604. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  17605. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  17606. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  17607. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  17608. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  17609. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  17610. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  17611. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  17612. 'a188', 'a189', 'a190', 'a191']
  17613. };
  17614. /**
  17615. * Hold a map of decoded fonts and of the standard fourteen Type1
  17616. * fonts and their acronyms.
  17617. */
  17618. var stdFontMap = {
  17619. 'ArialNarrow': 'Helvetica',
  17620. 'ArialNarrow-Bold': 'Helvetica-Bold',
  17621. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  17622. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  17623. 'ArialBlack': 'Helvetica',
  17624. 'ArialBlack-Bold': 'Helvetica-Bold',
  17625. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  17626. 'ArialBlack-Italic': 'Helvetica-Oblique',
  17627. 'Arial': 'Helvetica',
  17628. 'Arial-Bold': 'Helvetica-Bold',
  17629. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  17630. 'Arial-Italic': 'Helvetica-Oblique',
  17631. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  17632. 'Arial-BoldMT': 'Helvetica-Bold',
  17633. 'Arial-ItalicMT': 'Helvetica-Oblique',
  17634. 'ArialMT': 'Helvetica',
  17635. 'Courier-Bold': 'Courier-Bold',
  17636. 'Courier-BoldItalic': 'Courier-BoldOblique',
  17637. 'Courier-Italic': 'Courier-Oblique',
  17638. 'CourierNew': 'Courier',
  17639. 'CourierNew-Bold': 'Courier-Bold',
  17640. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  17641. 'CourierNew-Italic': 'Courier-Oblique',
  17642. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  17643. 'CourierNewPS-BoldMT': 'Courier-Bold',
  17644. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  17645. 'CourierNewPSMT': 'Courier',
  17646. 'Helvetica-Bold': 'Helvetica-Bold',
  17647. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  17648. 'Helvetica-Italic': 'Helvetica-Oblique',
  17649. 'Symbol-Bold': 'Symbol',
  17650. 'Symbol-BoldItalic': 'Symbol',
  17651. 'Symbol-Italic': 'Symbol',
  17652. 'TimesNewRoman': 'Times-Roman',
  17653. 'TimesNewRoman-Bold': 'Times-Bold',
  17654. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  17655. 'TimesNewRoman-Italic': 'Times-Italic',
  17656. 'TimesNewRomanPS': 'Times-Roman',
  17657. 'TimesNewRomanPS-Bold': 'Times-Bold',
  17658. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  17659. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  17660. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  17661. 'TimesNewRomanPS-Italic': 'Times-Italic',
  17662. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  17663. 'TimesNewRomanPSMT': 'Times-Roman',
  17664. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  17665. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  17666. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  17667. };
  17668. /**
  17669. * Holds the map of the non-standard fonts that might be included as a standard
  17670. * fonts without glyph data.
  17671. */
  17672. var nonStdFontMap = {
  17673. 'ComicSansMS': 'Comic Sans MS',
  17674. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  17675. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  17676. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  17677. 'LucidaConsole': 'Courier',
  17678. 'LucidaConsole-Bold': 'Courier-Bold',
  17679. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  17680. 'LucidaConsole-Italic': 'Courier-Oblique',
  17681. 'MS-Gothic': 'MS Gothic',
  17682. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  17683. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  17684. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  17685. 'MS-Mincho': 'MS Mincho',
  17686. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  17687. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  17688. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  17689. 'MS-PGothic': 'MS PGothic',
  17690. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  17691. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  17692. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  17693. 'MS-PMincho': 'MS PMincho',
  17694. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  17695. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  17696. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  17697. };
  17698. var serifFonts = {
  17699. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  17700. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  17701. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  17702. 'Arno': true, 'Aster': true, 'Aurora': true,
  17703. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  17704. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  17705. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  17706. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  17707. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  17708. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  17709. 'Cartier': true, 'Caslon': true, 'Catull': true,
  17710. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  17711. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  17712. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  17713. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  17714. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  17715. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  17716. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  17717. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  17718. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  17719. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  17720. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  17721. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  17722. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  17723. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  17724. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  17725. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  17726. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  17727. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  17728. 'Miller': true, 'Minion': true, 'Modern': true,
  17729. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  17730. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  17731. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  17732. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  17733. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  17734. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  17735. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  17736. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  17737. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  17738. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  17739. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  17740. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  17741. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  17742. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  17743. };
  17744. var symbolsFonts = {
  17745. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  17746. };
  17747. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  17748. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  17749. // glyphs, but common for some set of the standard fonts.
  17750. var GlyphMapForStandardFonts = {
  17751. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  17752. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  17753. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  17754. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  17755. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  17756. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  17757. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  17758. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  17759. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  17760. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  17761. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  17762. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  17763. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  17764. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  17765. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  17766. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  17767. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  17768. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  17769. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  17770. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  17771. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  17772. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  17773. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  17774. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  17775. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  17776. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  17777. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  17778. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  17779. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  17780. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  17781. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  17782. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  17783. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  17784. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  17785. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  17786. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  17787. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  17788. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  17789. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  17790. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  17791. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  17792. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  17793. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  17794. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  17795. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  17796. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  17797. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  17798. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  17799. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  17800. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  17801. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  17802. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  17803. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  17804. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  17805. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  17806. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  17807. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  17808. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  17809. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  17810. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  17811. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  17812. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  17813. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  17814. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  17815. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  17816. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  17817. };
  17818. // Some characters, e.g. copyrightserif, mapped to the private use area and
  17819. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  17820. // to the similar equivalents in the normal characters range.
  17821. function mapSpecialUnicodeValues(code) {
  17822. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  17823. return 0;
  17824. }
  17825. switch (code) {
  17826. case 0xF8E9: // copyrightsans
  17827. case 0xF6D9: // copyrightserif
  17828. return 0x00A9; // copyright
  17829. case 0xF8E8: // registersans
  17830. case 0xF6DA: // registerserif
  17831. return 0x00AE; // registered
  17832. case 0xF8EA: // trademarksans
  17833. case 0xF6DB: // trademarkserif
  17834. return 0x2122; // trademark
  17835. default:
  17836. return code;
  17837. }
  17838. }
  17839. var UnicodeRanges = [
  17840. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  17841. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  17842. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  17843. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  17844. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  17845. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  17846. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  17847. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  17848. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  17849. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  17850. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  17851. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  17852. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  17853. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  17854. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  17855. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  17856. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  17857. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  17858. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  17859. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  17860. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  17861. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  17862. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  17863. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  17864. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  17865. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  17866. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  17867. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  17868. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  17869. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  17870. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  17871. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  17872. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  17873. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  17874. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  17875. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  17876. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  17877. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  17878. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  17879. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  17880. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  17881. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  17882. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  17883. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  17884. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  17885. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  17886. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  17887. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  17888. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  17889. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  17890. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  17891. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  17892. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  17893. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  17894. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  17895. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  17896. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  17897. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  17898. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  17899. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  17900. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  17901. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  17902. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  17903. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  17904. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  17905. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  17906. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  17907. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  17908. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  17909. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  17910. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  17911. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  17912. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  17913. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  17914. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  17915. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  17916. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  17917. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  17918. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  17919. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  17920. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  17921. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  17922. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  17923. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  17924. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  17925. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  17926. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  17927. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  17928. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  17929. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  17930. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  17931. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  17932. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  17933. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  17934. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  17935. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  17936. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  17937. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  17938. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  17939. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  17940. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  17941. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  17942. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  17943. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  17944. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  17945. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  17946. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  17947. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  17948. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  17949. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  17950. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  17951. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  17952. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  17953. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  17954. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  17955. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  17956. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  17957. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  17958. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  17959. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  17960. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  17961. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  17962. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  17963. ];
  17964. var MacStandardGlyphOrdering = [
  17965. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  17966. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  17967. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  17968. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  17969. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  17970. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  17971. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  17972. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  17973. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  17974. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  17975. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  17976. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  17977. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17978. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  17979. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  17980. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  17981. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  17982. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  17983. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  17984. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  17985. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  17986. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  17987. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  17988. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  17989. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  17990. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  17991. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  17992. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  17993. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  17994. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  17995. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  17996. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  17997. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  17998. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  17999. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  18000. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  18001. function getUnicodeRangeFor(value) {
  18002. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  18003. var range = UnicodeRanges[i];
  18004. if (value >= range.begin && value < range.end) {
  18005. return i;
  18006. }
  18007. }
  18008. return -1;
  18009. }
  18010. function isRTLRangeFor(value) {
  18011. var range = UnicodeRanges[13];
  18012. if (value >= range.begin && value < range.end) {
  18013. return true;
  18014. }
  18015. range = UnicodeRanges[11];
  18016. if (value >= range.begin && value < range.end) {
  18017. return true;
  18018. }
  18019. return false;
  18020. }
  18021. // The normalization table is obtained by filtering the Unicode characters
  18022. // database with <compat> entries.
  18023. var NormalizedUnicodes = {
  18024. '\u00A8': '\u0020\u0308',
  18025. '\u00AF': '\u0020\u0304',
  18026. '\u00B4': '\u0020\u0301',
  18027. '\u00B5': '\u03BC',
  18028. '\u00B8': '\u0020\u0327',
  18029. '\u0132': '\u0049\u004A',
  18030. '\u0133': '\u0069\u006A',
  18031. '\u013F': '\u004C\u00B7',
  18032. '\u0140': '\u006C\u00B7',
  18033. '\u0149': '\u02BC\u006E',
  18034. '\u017F': '\u0073',
  18035. '\u01C4': '\u0044\u017D',
  18036. '\u01C5': '\u0044\u017E',
  18037. '\u01C6': '\u0064\u017E',
  18038. '\u01C7': '\u004C\u004A',
  18039. '\u01C8': '\u004C\u006A',
  18040. '\u01C9': '\u006C\u006A',
  18041. '\u01CA': '\u004E\u004A',
  18042. '\u01CB': '\u004E\u006A',
  18043. '\u01CC': '\u006E\u006A',
  18044. '\u01F1': '\u0044\u005A',
  18045. '\u01F2': '\u0044\u007A',
  18046. '\u01F3': '\u0064\u007A',
  18047. '\u02D8': '\u0020\u0306',
  18048. '\u02D9': '\u0020\u0307',
  18049. '\u02DA': '\u0020\u030A',
  18050. '\u02DB': '\u0020\u0328',
  18051. '\u02DC': '\u0020\u0303',
  18052. '\u02DD': '\u0020\u030B',
  18053. '\u037A': '\u0020\u0345',
  18054. '\u0384': '\u0020\u0301',
  18055. '\u03D0': '\u03B2',
  18056. '\u03D1': '\u03B8',
  18057. '\u03D2': '\u03A5',
  18058. '\u03D5': '\u03C6',
  18059. '\u03D6': '\u03C0',
  18060. '\u03F0': '\u03BA',
  18061. '\u03F1': '\u03C1',
  18062. '\u03F2': '\u03C2',
  18063. '\u03F4': '\u0398',
  18064. '\u03F5': '\u03B5',
  18065. '\u03F9': '\u03A3',
  18066. '\u0587': '\u0565\u0582',
  18067. '\u0675': '\u0627\u0674',
  18068. '\u0676': '\u0648\u0674',
  18069. '\u0677': '\u06C7\u0674',
  18070. '\u0678': '\u064A\u0674',
  18071. '\u0E33': '\u0E4D\u0E32',
  18072. '\u0EB3': '\u0ECD\u0EB2',
  18073. '\u0EDC': '\u0EAB\u0E99',
  18074. '\u0EDD': '\u0EAB\u0EA1',
  18075. '\u0F77': '\u0FB2\u0F81',
  18076. '\u0F79': '\u0FB3\u0F81',
  18077. '\u1E9A': '\u0061\u02BE',
  18078. '\u1FBD': '\u0020\u0313',
  18079. '\u1FBF': '\u0020\u0313',
  18080. '\u1FC0': '\u0020\u0342',
  18081. '\u1FFE': '\u0020\u0314',
  18082. '\u2002': '\u0020',
  18083. '\u2003': '\u0020',
  18084. '\u2004': '\u0020',
  18085. '\u2005': '\u0020',
  18086. '\u2006': '\u0020',
  18087. '\u2008': '\u0020',
  18088. '\u2009': '\u0020',
  18089. '\u200A': '\u0020',
  18090. '\u2017': '\u0020\u0333',
  18091. '\u2024': '\u002E',
  18092. '\u2025': '\u002E\u002E',
  18093. '\u2026': '\u002E\u002E\u002E',
  18094. '\u2033': '\u2032\u2032',
  18095. '\u2034': '\u2032\u2032\u2032',
  18096. '\u2036': '\u2035\u2035',
  18097. '\u2037': '\u2035\u2035\u2035',
  18098. '\u203C': '\u0021\u0021',
  18099. '\u203E': '\u0020\u0305',
  18100. '\u2047': '\u003F\u003F',
  18101. '\u2048': '\u003F\u0021',
  18102. '\u2049': '\u0021\u003F',
  18103. '\u2057': '\u2032\u2032\u2032\u2032',
  18104. '\u205F': '\u0020',
  18105. '\u20A8': '\u0052\u0073',
  18106. '\u2100': '\u0061\u002F\u0063',
  18107. '\u2101': '\u0061\u002F\u0073',
  18108. '\u2103': '\u00B0\u0043',
  18109. '\u2105': '\u0063\u002F\u006F',
  18110. '\u2106': '\u0063\u002F\u0075',
  18111. '\u2107': '\u0190',
  18112. '\u2109': '\u00B0\u0046',
  18113. '\u2116': '\u004E\u006F',
  18114. '\u2121': '\u0054\u0045\u004C',
  18115. '\u2135': '\u05D0',
  18116. '\u2136': '\u05D1',
  18117. '\u2137': '\u05D2',
  18118. '\u2138': '\u05D3',
  18119. '\u213B': '\u0046\u0041\u0058',
  18120. '\u2160': '\u0049',
  18121. '\u2161': '\u0049\u0049',
  18122. '\u2162': '\u0049\u0049\u0049',
  18123. '\u2163': '\u0049\u0056',
  18124. '\u2164': '\u0056',
  18125. '\u2165': '\u0056\u0049',
  18126. '\u2166': '\u0056\u0049\u0049',
  18127. '\u2167': '\u0056\u0049\u0049\u0049',
  18128. '\u2168': '\u0049\u0058',
  18129. '\u2169': '\u0058',
  18130. '\u216A': '\u0058\u0049',
  18131. '\u216B': '\u0058\u0049\u0049',
  18132. '\u216C': '\u004C',
  18133. '\u216D': '\u0043',
  18134. '\u216E': '\u0044',
  18135. '\u216F': '\u004D',
  18136. '\u2170': '\u0069',
  18137. '\u2171': '\u0069\u0069',
  18138. '\u2172': '\u0069\u0069\u0069',
  18139. '\u2173': '\u0069\u0076',
  18140. '\u2174': '\u0076',
  18141. '\u2175': '\u0076\u0069',
  18142. '\u2176': '\u0076\u0069\u0069',
  18143. '\u2177': '\u0076\u0069\u0069\u0069',
  18144. '\u2178': '\u0069\u0078',
  18145. '\u2179': '\u0078',
  18146. '\u217A': '\u0078\u0069',
  18147. '\u217B': '\u0078\u0069\u0069',
  18148. '\u217C': '\u006C',
  18149. '\u217D': '\u0063',
  18150. '\u217E': '\u0064',
  18151. '\u217F': '\u006D',
  18152. '\u222C': '\u222B\u222B',
  18153. '\u222D': '\u222B\u222B\u222B',
  18154. '\u222F': '\u222E\u222E',
  18155. '\u2230': '\u222E\u222E\u222E',
  18156. '\u2474': '\u0028\u0031\u0029',
  18157. '\u2475': '\u0028\u0032\u0029',
  18158. '\u2476': '\u0028\u0033\u0029',
  18159. '\u2477': '\u0028\u0034\u0029',
  18160. '\u2478': '\u0028\u0035\u0029',
  18161. '\u2479': '\u0028\u0036\u0029',
  18162. '\u247A': '\u0028\u0037\u0029',
  18163. '\u247B': '\u0028\u0038\u0029',
  18164. '\u247C': '\u0028\u0039\u0029',
  18165. '\u247D': '\u0028\u0031\u0030\u0029',
  18166. '\u247E': '\u0028\u0031\u0031\u0029',
  18167. '\u247F': '\u0028\u0031\u0032\u0029',
  18168. '\u2480': '\u0028\u0031\u0033\u0029',
  18169. '\u2481': '\u0028\u0031\u0034\u0029',
  18170. '\u2482': '\u0028\u0031\u0035\u0029',
  18171. '\u2483': '\u0028\u0031\u0036\u0029',
  18172. '\u2484': '\u0028\u0031\u0037\u0029',
  18173. '\u2485': '\u0028\u0031\u0038\u0029',
  18174. '\u2486': '\u0028\u0031\u0039\u0029',
  18175. '\u2487': '\u0028\u0032\u0030\u0029',
  18176. '\u2488': '\u0031\u002E',
  18177. '\u2489': '\u0032\u002E',
  18178. '\u248A': '\u0033\u002E',
  18179. '\u248B': '\u0034\u002E',
  18180. '\u248C': '\u0035\u002E',
  18181. '\u248D': '\u0036\u002E',
  18182. '\u248E': '\u0037\u002E',
  18183. '\u248F': '\u0038\u002E',
  18184. '\u2490': '\u0039\u002E',
  18185. '\u2491': '\u0031\u0030\u002E',
  18186. '\u2492': '\u0031\u0031\u002E',
  18187. '\u2493': '\u0031\u0032\u002E',
  18188. '\u2494': '\u0031\u0033\u002E',
  18189. '\u2495': '\u0031\u0034\u002E',
  18190. '\u2496': '\u0031\u0035\u002E',
  18191. '\u2497': '\u0031\u0036\u002E',
  18192. '\u2498': '\u0031\u0037\u002E',
  18193. '\u2499': '\u0031\u0038\u002E',
  18194. '\u249A': '\u0031\u0039\u002E',
  18195. '\u249B': '\u0032\u0030\u002E',
  18196. '\u249C': '\u0028\u0061\u0029',
  18197. '\u249D': '\u0028\u0062\u0029',
  18198. '\u249E': '\u0028\u0063\u0029',
  18199. '\u249F': '\u0028\u0064\u0029',
  18200. '\u24A0': '\u0028\u0065\u0029',
  18201. '\u24A1': '\u0028\u0066\u0029',
  18202. '\u24A2': '\u0028\u0067\u0029',
  18203. '\u24A3': '\u0028\u0068\u0029',
  18204. '\u24A4': '\u0028\u0069\u0029',
  18205. '\u24A5': '\u0028\u006A\u0029',
  18206. '\u24A6': '\u0028\u006B\u0029',
  18207. '\u24A7': '\u0028\u006C\u0029',
  18208. '\u24A8': '\u0028\u006D\u0029',
  18209. '\u24A9': '\u0028\u006E\u0029',
  18210. '\u24AA': '\u0028\u006F\u0029',
  18211. '\u24AB': '\u0028\u0070\u0029',
  18212. '\u24AC': '\u0028\u0071\u0029',
  18213. '\u24AD': '\u0028\u0072\u0029',
  18214. '\u24AE': '\u0028\u0073\u0029',
  18215. '\u24AF': '\u0028\u0074\u0029',
  18216. '\u24B0': '\u0028\u0075\u0029',
  18217. '\u24B1': '\u0028\u0076\u0029',
  18218. '\u24B2': '\u0028\u0077\u0029',
  18219. '\u24B3': '\u0028\u0078\u0029',
  18220. '\u24B4': '\u0028\u0079\u0029',
  18221. '\u24B5': '\u0028\u007A\u0029',
  18222. '\u2A0C': '\u222B\u222B\u222B\u222B',
  18223. '\u2A74': '\u003A\u003A\u003D',
  18224. '\u2A75': '\u003D\u003D',
  18225. '\u2A76': '\u003D\u003D\u003D',
  18226. '\u2E9F': '\u6BCD',
  18227. '\u2EF3': '\u9F9F',
  18228. '\u2F00': '\u4E00',
  18229. '\u2F01': '\u4E28',
  18230. '\u2F02': '\u4E36',
  18231. '\u2F03': '\u4E3F',
  18232. '\u2F04': '\u4E59',
  18233. '\u2F05': '\u4E85',
  18234. '\u2F06': '\u4E8C',
  18235. '\u2F07': '\u4EA0',
  18236. '\u2F08': '\u4EBA',
  18237. '\u2F09': '\u513F',
  18238. '\u2F0A': '\u5165',
  18239. '\u2F0B': '\u516B',
  18240. '\u2F0C': '\u5182',
  18241. '\u2F0D': '\u5196',
  18242. '\u2F0E': '\u51AB',
  18243. '\u2F0F': '\u51E0',
  18244. '\u2F10': '\u51F5',
  18245. '\u2F11': '\u5200',
  18246. '\u2F12': '\u529B',
  18247. '\u2F13': '\u52F9',
  18248. '\u2F14': '\u5315',
  18249. '\u2F15': '\u531A',
  18250. '\u2F16': '\u5338',
  18251. '\u2F17': '\u5341',
  18252. '\u2F18': '\u535C',
  18253. '\u2F19': '\u5369',
  18254. '\u2F1A': '\u5382',
  18255. '\u2F1B': '\u53B6',
  18256. '\u2F1C': '\u53C8',
  18257. '\u2F1D': '\u53E3',
  18258. '\u2F1E': '\u56D7',
  18259. '\u2F1F': '\u571F',
  18260. '\u2F20': '\u58EB',
  18261. '\u2F21': '\u5902',
  18262. '\u2F22': '\u590A',
  18263. '\u2F23': '\u5915',
  18264. '\u2F24': '\u5927',
  18265. '\u2F25': '\u5973',
  18266. '\u2F26': '\u5B50',
  18267. '\u2F27': '\u5B80',
  18268. '\u2F28': '\u5BF8',
  18269. '\u2F29': '\u5C0F',
  18270. '\u2F2A': '\u5C22',
  18271. '\u2F2B': '\u5C38',
  18272. '\u2F2C': '\u5C6E',
  18273. '\u2F2D': '\u5C71',
  18274. '\u2F2E': '\u5DDB',
  18275. '\u2F2F': '\u5DE5',
  18276. '\u2F30': '\u5DF1',
  18277. '\u2F31': '\u5DFE',
  18278. '\u2F32': '\u5E72',
  18279. '\u2F33': '\u5E7A',
  18280. '\u2F34': '\u5E7F',
  18281. '\u2F35': '\u5EF4',
  18282. '\u2F36': '\u5EFE',
  18283. '\u2F37': '\u5F0B',
  18284. '\u2F38': '\u5F13',
  18285. '\u2F39': '\u5F50',
  18286. '\u2F3A': '\u5F61',
  18287. '\u2F3B': '\u5F73',
  18288. '\u2F3C': '\u5FC3',
  18289. '\u2F3D': '\u6208',
  18290. '\u2F3E': '\u6236',
  18291. '\u2F3F': '\u624B',
  18292. '\u2F40': '\u652F',
  18293. '\u2F41': '\u6534',
  18294. '\u2F42': '\u6587',
  18295. '\u2F43': '\u6597',
  18296. '\u2F44': '\u65A4',
  18297. '\u2F45': '\u65B9',
  18298. '\u2F46': '\u65E0',
  18299. '\u2F47': '\u65E5',
  18300. '\u2F48': '\u66F0',
  18301. '\u2F49': '\u6708',
  18302. '\u2F4A': '\u6728',
  18303. '\u2F4B': '\u6B20',
  18304. '\u2F4C': '\u6B62',
  18305. '\u2F4D': '\u6B79',
  18306. '\u2F4E': '\u6BB3',
  18307. '\u2F4F': '\u6BCB',
  18308. '\u2F50': '\u6BD4',
  18309. '\u2F51': '\u6BDB',
  18310. '\u2F52': '\u6C0F',
  18311. '\u2F53': '\u6C14',
  18312. '\u2F54': '\u6C34',
  18313. '\u2F55': '\u706B',
  18314. '\u2F56': '\u722A',
  18315. '\u2F57': '\u7236',
  18316. '\u2F58': '\u723B',
  18317. '\u2F59': '\u723F',
  18318. '\u2F5A': '\u7247',
  18319. '\u2F5B': '\u7259',
  18320. '\u2F5C': '\u725B',
  18321. '\u2F5D': '\u72AC',
  18322. '\u2F5E': '\u7384',
  18323. '\u2F5F': '\u7389',
  18324. '\u2F60': '\u74DC',
  18325. '\u2F61': '\u74E6',
  18326. '\u2F62': '\u7518',
  18327. '\u2F63': '\u751F',
  18328. '\u2F64': '\u7528',
  18329. '\u2F65': '\u7530',
  18330. '\u2F66': '\u758B',
  18331. '\u2F67': '\u7592',
  18332. '\u2F68': '\u7676',
  18333. '\u2F69': '\u767D',
  18334. '\u2F6A': '\u76AE',
  18335. '\u2F6B': '\u76BF',
  18336. '\u2F6C': '\u76EE',
  18337. '\u2F6D': '\u77DB',
  18338. '\u2F6E': '\u77E2',
  18339. '\u2F6F': '\u77F3',
  18340. '\u2F70': '\u793A',
  18341. '\u2F71': '\u79B8',
  18342. '\u2F72': '\u79BE',
  18343. '\u2F73': '\u7A74',
  18344. '\u2F74': '\u7ACB',
  18345. '\u2F75': '\u7AF9',
  18346. '\u2F76': '\u7C73',
  18347. '\u2F77': '\u7CF8',
  18348. '\u2F78': '\u7F36',
  18349. '\u2F79': '\u7F51',
  18350. '\u2F7A': '\u7F8A',
  18351. '\u2F7B': '\u7FBD',
  18352. '\u2F7C': '\u8001',
  18353. '\u2F7D': '\u800C',
  18354. '\u2F7E': '\u8012',
  18355. '\u2F7F': '\u8033',
  18356. '\u2F80': '\u807F',
  18357. '\u2F81': '\u8089',
  18358. '\u2F82': '\u81E3',
  18359. '\u2F83': '\u81EA',
  18360. '\u2F84': '\u81F3',
  18361. '\u2F85': '\u81FC',
  18362. '\u2F86': '\u820C',
  18363. '\u2F87': '\u821B',
  18364. '\u2F88': '\u821F',
  18365. '\u2F89': '\u826E',
  18366. '\u2F8A': '\u8272',
  18367. '\u2F8B': '\u8278',
  18368. '\u2F8C': '\u864D',
  18369. '\u2F8D': '\u866B',
  18370. '\u2F8E': '\u8840',
  18371. '\u2F8F': '\u884C',
  18372. '\u2F90': '\u8863',
  18373. '\u2F91': '\u897E',
  18374. '\u2F92': '\u898B',
  18375. '\u2F93': '\u89D2',
  18376. '\u2F94': '\u8A00',
  18377. '\u2F95': '\u8C37',
  18378. '\u2F96': '\u8C46',
  18379. '\u2F97': '\u8C55',
  18380. '\u2F98': '\u8C78',
  18381. '\u2F99': '\u8C9D',
  18382. '\u2F9A': '\u8D64',
  18383. '\u2F9B': '\u8D70',
  18384. '\u2F9C': '\u8DB3',
  18385. '\u2F9D': '\u8EAB',
  18386. '\u2F9E': '\u8ECA',
  18387. '\u2F9F': '\u8F9B',
  18388. '\u2FA0': '\u8FB0',
  18389. '\u2FA1': '\u8FB5',
  18390. '\u2FA2': '\u9091',
  18391. '\u2FA3': '\u9149',
  18392. '\u2FA4': '\u91C6',
  18393. '\u2FA5': '\u91CC',
  18394. '\u2FA6': '\u91D1',
  18395. '\u2FA7': '\u9577',
  18396. '\u2FA8': '\u9580',
  18397. '\u2FA9': '\u961C',
  18398. '\u2FAA': '\u96B6',
  18399. '\u2FAB': '\u96B9',
  18400. '\u2FAC': '\u96E8',
  18401. '\u2FAD': '\u9751',
  18402. '\u2FAE': '\u975E',
  18403. '\u2FAF': '\u9762',
  18404. '\u2FB0': '\u9769',
  18405. '\u2FB1': '\u97CB',
  18406. '\u2FB2': '\u97ED',
  18407. '\u2FB3': '\u97F3',
  18408. '\u2FB4': '\u9801',
  18409. '\u2FB5': '\u98A8',
  18410. '\u2FB6': '\u98DB',
  18411. '\u2FB7': '\u98DF',
  18412. '\u2FB8': '\u9996',
  18413. '\u2FB9': '\u9999',
  18414. '\u2FBA': '\u99AC',
  18415. '\u2FBB': '\u9AA8',
  18416. '\u2FBC': '\u9AD8',
  18417. '\u2FBD': '\u9ADF',
  18418. '\u2FBE': '\u9B25',
  18419. '\u2FBF': '\u9B2F',
  18420. '\u2FC0': '\u9B32',
  18421. '\u2FC1': '\u9B3C',
  18422. '\u2FC2': '\u9B5A',
  18423. '\u2FC3': '\u9CE5',
  18424. '\u2FC4': '\u9E75',
  18425. '\u2FC5': '\u9E7F',
  18426. '\u2FC6': '\u9EA5',
  18427. '\u2FC7': '\u9EBB',
  18428. '\u2FC8': '\u9EC3',
  18429. '\u2FC9': '\u9ECD',
  18430. '\u2FCA': '\u9ED1',
  18431. '\u2FCB': '\u9EF9',
  18432. '\u2FCC': '\u9EFD',
  18433. '\u2FCD': '\u9F0E',
  18434. '\u2FCE': '\u9F13',
  18435. '\u2FCF': '\u9F20',
  18436. '\u2FD0': '\u9F3B',
  18437. '\u2FD1': '\u9F4A',
  18438. '\u2FD2': '\u9F52',
  18439. '\u2FD3': '\u9F8D',
  18440. '\u2FD4': '\u9F9C',
  18441. '\u2FD5': '\u9FA0',
  18442. '\u3036': '\u3012',
  18443. '\u3038': '\u5341',
  18444. '\u3039': '\u5344',
  18445. '\u303A': '\u5345',
  18446. '\u309B': '\u0020\u3099',
  18447. '\u309C': '\u0020\u309A',
  18448. '\u3131': '\u1100',
  18449. '\u3132': '\u1101',
  18450. '\u3133': '\u11AA',
  18451. '\u3134': '\u1102',
  18452. '\u3135': '\u11AC',
  18453. '\u3136': '\u11AD',
  18454. '\u3137': '\u1103',
  18455. '\u3138': '\u1104',
  18456. '\u3139': '\u1105',
  18457. '\u313A': '\u11B0',
  18458. '\u313B': '\u11B1',
  18459. '\u313C': '\u11B2',
  18460. '\u313D': '\u11B3',
  18461. '\u313E': '\u11B4',
  18462. '\u313F': '\u11B5',
  18463. '\u3140': '\u111A',
  18464. '\u3141': '\u1106',
  18465. '\u3142': '\u1107',
  18466. '\u3143': '\u1108',
  18467. '\u3144': '\u1121',
  18468. '\u3145': '\u1109',
  18469. '\u3146': '\u110A',
  18470. '\u3147': '\u110B',
  18471. '\u3148': '\u110C',
  18472. '\u3149': '\u110D',
  18473. '\u314A': '\u110E',
  18474. '\u314B': '\u110F',
  18475. '\u314C': '\u1110',
  18476. '\u314D': '\u1111',
  18477. '\u314E': '\u1112',
  18478. '\u314F': '\u1161',
  18479. '\u3150': '\u1162',
  18480. '\u3151': '\u1163',
  18481. '\u3152': '\u1164',
  18482. '\u3153': '\u1165',
  18483. '\u3154': '\u1166',
  18484. '\u3155': '\u1167',
  18485. '\u3156': '\u1168',
  18486. '\u3157': '\u1169',
  18487. '\u3158': '\u116A',
  18488. '\u3159': '\u116B',
  18489. '\u315A': '\u116C',
  18490. '\u315B': '\u116D',
  18491. '\u315C': '\u116E',
  18492. '\u315D': '\u116F',
  18493. '\u315E': '\u1170',
  18494. '\u315F': '\u1171',
  18495. '\u3160': '\u1172',
  18496. '\u3161': '\u1173',
  18497. '\u3162': '\u1174',
  18498. '\u3163': '\u1175',
  18499. '\u3164': '\u1160',
  18500. '\u3165': '\u1114',
  18501. '\u3166': '\u1115',
  18502. '\u3167': '\u11C7',
  18503. '\u3168': '\u11C8',
  18504. '\u3169': '\u11CC',
  18505. '\u316A': '\u11CE',
  18506. '\u316B': '\u11D3',
  18507. '\u316C': '\u11D7',
  18508. '\u316D': '\u11D9',
  18509. '\u316E': '\u111C',
  18510. '\u316F': '\u11DD',
  18511. '\u3170': '\u11DF',
  18512. '\u3171': '\u111D',
  18513. '\u3172': '\u111E',
  18514. '\u3173': '\u1120',
  18515. '\u3174': '\u1122',
  18516. '\u3175': '\u1123',
  18517. '\u3176': '\u1127',
  18518. '\u3177': '\u1129',
  18519. '\u3178': '\u112B',
  18520. '\u3179': '\u112C',
  18521. '\u317A': '\u112D',
  18522. '\u317B': '\u112E',
  18523. '\u317C': '\u112F',
  18524. '\u317D': '\u1132',
  18525. '\u317E': '\u1136',
  18526. '\u317F': '\u1140',
  18527. '\u3180': '\u1147',
  18528. '\u3181': '\u114C',
  18529. '\u3182': '\u11F1',
  18530. '\u3183': '\u11F2',
  18531. '\u3184': '\u1157',
  18532. '\u3185': '\u1158',
  18533. '\u3186': '\u1159',
  18534. '\u3187': '\u1184',
  18535. '\u3188': '\u1185',
  18536. '\u3189': '\u1188',
  18537. '\u318A': '\u1191',
  18538. '\u318B': '\u1192',
  18539. '\u318C': '\u1194',
  18540. '\u318D': '\u119E',
  18541. '\u318E': '\u11A1',
  18542. '\u3200': '\u0028\u1100\u0029',
  18543. '\u3201': '\u0028\u1102\u0029',
  18544. '\u3202': '\u0028\u1103\u0029',
  18545. '\u3203': '\u0028\u1105\u0029',
  18546. '\u3204': '\u0028\u1106\u0029',
  18547. '\u3205': '\u0028\u1107\u0029',
  18548. '\u3206': '\u0028\u1109\u0029',
  18549. '\u3207': '\u0028\u110B\u0029',
  18550. '\u3208': '\u0028\u110C\u0029',
  18551. '\u3209': '\u0028\u110E\u0029',
  18552. '\u320A': '\u0028\u110F\u0029',
  18553. '\u320B': '\u0028\u1110\u0029',
  18554. '\u320C': '\u0028\u1111\u0029',
  18555. '\u320D': '\u0028\u1112\u0029',
  18556. '\u320E': '\u0028\u1100\u1161\u0029',
  18557. '\u320F': '\u0028\u1102\u1161\u0029',
  18558. '\u3210': '\u0028\u1103\u1161\u0029',
  18559. '\u3211': '\u0028\u1105\u1161\u0029',
  18560. '\u3212': '\u0028\u1106\u1161\u0029',
  18561. '\u3213': '\u0028\u1107\u1161\u0029',
  18562. '\u3214': '\u0028\u1109\u1161\u0029',
  18563. '\u3215': '\u0028\u110B\u1161\u0029',
  18564. '\u3216': '\u0028\u110C\u1161\u0029',
  18565. '\u3217': '\u0028\u110E\u1161\u0029',
  18566. '\u3218': '\u0028\u110F\u1161\u0029',
  18567. '\u3219': '\u0028\u1110\u1161\u0029',
  18568. '\u321A': '\u0028\u1111\u1161\u0029',
  18569. '\u321B': '\u0028\u1112\u1161\u0029',
  18570. '\u321C': '\u0028\u110C\u116E\u0029',
  18571. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  18572. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  18573. '\u3220': '\u0028\u4E00\u0029',
  18574. '\u3221': '\u0028\u4E8C\u0029',
  18575. '\u3222': '\u0028\u4E09\u0029',
  18576. '\u3223': '\u0028\u56DB\u0029',
  18577. '\u3224': '\u0028\u4E94\u0029',
  18578. '\u3225': '\u0028\u516D\u0029',
  18579. '\u3226': '\u0028\u4E03\u0029',
  18580. '\u3227': '\u0028\u516B\u0029',
  18581. '\u3228': '\u0028\u4E5D\u0029',
  18582. '\u3229': '\u0028\u5341\u0029',
  18583. '\u322A': '\u0028\u6708\u0029',
  18584. '\u322B': '\u0028\u706B\u0029',
  18585. '\u322C': '\u0028\u6C34\u0029',
  18586. '\u322D': '\u0028\u6728\u0029',
  18587. '\u322E': '\u0028\u91D1\u0029',
  18588. '\u322F': '\u0028\u571F\u0029',
  18589. '\u3230': '\u0028\u65E5\u0029',
  18590. '\u3231': '\u0028\u682A\u0029',
  18591. '\u3232': '\u0028\u6709\u0029',
  18592. '\u3233': '\u0028\u793E\u0029',
  18593. '\u3234': '\u0028\u540D\u0029',
  18594. '\u3235': '\u0028\u7279\u0029',
  18595. '\u3236': '\u0028\u8CA1\u0029',
  18596. '\u3237': '\u0028\u795D\u0029',
  18597. '\u3238': '\u0028\u52B4\u0029',
  18598. '\u3239': '\u0028\u4EE3\u0029',
  18599. '\u323A': '\u0028\u547C\u0029',
  18600. '\u323B': '\u0028\u5B66\u0029',
  18601. '\u323C': '\u0028\u76E3\u0029',
  18602. '\u323D': '\u0028\u4F01\u0029',
  18603. '\u323E': '\u0028\u8CC7\u0029',
  18604. '\u323F': '\u0028\u5354\u0029',
  18605. '\u3240': '\u0028\u796D\u0029',
  18606. '\u3241': '\u0028\u4F11\u0029',
  18607. '\u3242': '\u0028\u81EA\u0029',
  18608. '\u3243': '\u0028\u81F3\u0029',
  18609. '\u32C0': '\u0031\u6708',
  18610. '\u32C1': '\u0032\u6708',
  18611. '\u32C2': '\u0033\u6708',
  18612. '\u32C3': '\u0034\u6708',
  18613. '\u32C4': '\u0035\u6708',
  18614. '\u32C5': '\u0036\u6708',
  18615. '\u32C6': '\u0037\u6708',
  18616. '\u32C7': '\u0038\u6708',
  18617. '\u32C8': '\u0039\u6708',
  18618. '\u32C9': '\u0031\u0030\u6708',
  18619. '\u32CA': '\u0031\u0031\u6708',
  18620. '\u32CB': '\u0031\u0032\u6708',
  18621. '\u3358': '\u0030\u70B9',
  18622. '\u3359': '\u0031\u70B9',
  18623. '\u335A': '\u0032\u70B9',
  18624. '\u335B': '\u0033\u70B9',
  18625. '\u335C': '\u0034\u70B9',
  18626. '\u335D': '\u0035\u70B9',
  18627. '\u335E': '\u0036\u70B9',
  18628. '\u335F': '\u0037\u70B9',
  18629. '\u3360': '\u0038\u70B9',
  18630. '\u3361': '\u0039\u70B9',
  18631. '\u3362': '\u0031\u0030\u70B9',
  18632. '\u3363': '\u0031\u0031\u70B9',
  18633. '\u3364': '\u0031\u0032\u70B9',
  18634. '\u3365': '\u0031\u0033\u70B9',
  18635. '\u3366': '\u0031\u0034\u70B9',
  18636. '\u3367': '\u0031\u0035\u70B9',
  18637. '\u3368': '\u0031\u0036\u70B9',
  18638. '\u3369': '\u0031\u0037\u70B9',
  18639. '\u336A': '\u0031\u0038\u70B9',
  18640. '\u336B': '\u0031\u0039\u70B9',
  18641. '\u336C': '\u0032\u0030\u70B9',
  18642. '\u336D': '\u0032\u0031\u70B9',
  18643. '\u336E': '\u0032\u0032\u70B9',
  18644. '\u336F': '\u0032\u0033\u70B9',
  18645. '\u3370': '\u0032\u0034\u70B9',
  18646. '\u33E0': '\u0031\u65E5',
  18647. '\u33E1': '\u0032\u65E5',
  18648. '\u33E2': '\u0033\u65E5',
  18649. '\u33E3': '\u0034\u65E5',
  18650. '\u33E4': '\u0035\u65E5',
  18651. '\u33E5': '\u0036\u65E5',
  18652. '\u33E6': '\u0037\u65E5',
  18653. '\u33E7': '\u0038\u65E5',
  18654. '\u33E8': '\u0039\u65E5',
  18655. '\u33E9': '\u0031\u0030\u65E5',
  18656. '\u33EA': '\u0031\u0031\u65E5',
  18657. '\u33EB': '\u0031\u0032\u65E5',
  18658. '\u33EC': '\u0031\u0033\u65E5',
  18659. '\u33ED': '\u0031\u0034\u65E5',
  18660. '\u33EE': '\u0031\u0035\u65E5',
  18661. '\u33EF': '\u0031\u0036\u65E5',
  18662. '\u33F0': '\u0031\u0037\u65E5',
  18663. '\u33F1': '\u0031\u0038\u65E5',
  18664. '\u33F2': '\u0031\u0039\u65E5',
  18665. '\u33F3': '\u0032\u0030\u65E5',
  18666. '\u33F4': '\u0032\u0031\u65E5',
  18667. '\u33F5': '\u0032\u0032\u65E5',
  18668. '\u33F6': '\u0032\u0033\u65E5',
  18669. '\u33F7': '\u0032\u0034\u65E5',
  18670. '\u33F8': '\u0032\u0035\u65E5',
  18671. '\u33F9': '\u0032\u0036\u65E5',
  18672. '\u33FA': '\u0032\u0037\u65E5',
  18673. '\u33FB': '\u0032\u0038\u65E5',
  18674. '\u33FC': '\u0032\u0039\u65E5',
  18675. '\u33FD': '\u0033\u0030\u65E5',
  18676. '\u33FE': '\u0033\u0031\u65E5',
  18677. '\uFB00': '\u0066\u0066',
  18678. '\uFB01': '\u0066\u0069',
  18679. '\uFB02': '\u0066\u006C',
  18680. '\uFB03': '\u0066\u0066\u0069',
  18681. '\uFB04': '\u0066\u0066\u006C',
  18682. '\uFB05': '\u017F\u0074',
  18683. '\uFB06': '\u0073\u0074',
  18684. '\uFB13': '\u0574\u0576',
  18685. '\uFB14': '\u0574\u0565',
  18686. '\uFB15': '\u0574\u056B',
  18687. '\uFB16': '\u057E\u0576',
  18688. '\uFB17': '\u0574\u056D',
  18689. '\uFB4F': '\u05D0\u05DC',
  18690. '\uFB50': '\u0671',
  18691. '\uFB51': '\u0671',
  18692. '\uFB52': '\u067B',
  18693. '\uFB53': '\u067B',
  18694. '\uFB54': '\u067B',
  18695. '\uFB55': '\u067B',
  18696. '\uFB56': '\u067E',
  18697. '\uFB57': '\u067E',
  18698. '\uFB58': '\u067E',
  18699. '\uFB59': '\u067E',
  18700. '\uFB5A': '\u0680',
  18701. '\uFB5B': '\u0680',
  18702. '\uFB5C': '\u0680',
  18703. '\uFB5D': '\u0680',
  18704. '\uFB5E': '\u067A',
  18705. '\uFB5F': '\u067A',
  18706. '\uFB60': '\u067A',
  18707. '\uFB61': '\u067A',
  18708. '\uFB62': '\u067F',
  18709. '\uFB63': '\u067F',
  18710. '\uFB64': '\u067F',
  18711. '\uFB65': '\u067F',
  18712. '\uFB66': '\u0679',
  18713. '\uFB67': '\u0679',
  18714. '\uFB68': '\u0679',
  18715. '\uFB69': '\u0679',
  18716. '\uFB6A': '\u06A4',
  18717. '\uFB6B': '\u06A4',
  18718. '\uFB6C': '\u06A4',
  18719. '\uFB6D': '\u06A4',
  18720. '\uFB6E': '\u06A6',
  18721. '\uFB6F': '\u06A6',
  18722. '\uFB70': '\u06A6',
  18723. '\uFB71': '\u06A6',
  18724. '\uFB72': '\u0684',
  18725. '\uFB73': '\u0684',
  18726. '\uFB74': '\u0684',
  18727. '\uFB75': '\u0684',
  18728. '\uFB76': '\u0683',
  18729. '\uFB77': '\u0683',
  18730. '\uFB78': '\u0683',
  18731. '\uFB79': '\u0683',
  18732. '\uFB7A': '\u0686',
  18733. '\uFB7B': '\u0686',
  18734. '\uFB7C': '\u0686',
  18735. '\uFB7D': '\u0686',
  18736. '\uFB7E': '\u0687',
  18737. '\uFB7F': '\u0687',
  18738. '\uFB80': '\u0687',
  18739. '\uFB81': '\u0687',
  18740. '\uFB82': '\u068D',
  18741. '\uFB83': '\u068D',
  18742. '\uFB84': '\u068C',
  18743. '\uFB85': '\u068C',
  18744. '\uFB86': '\u068E',
  18745. '\uFB87': '\u068E',
  18746. '\uFB88': '\u0688',
  18747. '\uFB89': '\u0688',
  18748. '\uFB8A': '\u0698',
  18749. '\uFB8B': '\u0698',
  18750. '\uFB8C': '\u0691',
  18751. '\uFB8D': '\u0691',
  18752. '\uFB8E': '\u06A9',
  18753. '\uFB8F': '\u06A9',
  18754. '\uFB90': '\u06A9',
  18755. '\uFB91': '\u06A9',
  18756. '\uFB92': '\u06AF',
  18757. '\uFB93': '\u06AF',
  18758. '\uFB94': '\u06AF',
  18759. '\uFB95': '\u06AF',
  18760. '\uFB96': '\u06B3',
  18761. '\uFB97': '\u06B3',
  18762. '\uFB98': '\u06B3',
  18763. '\uFB99': '\u06B3',
  18764. '\uFB9A': '\u06B1',
  18765. '\uFB9B': '\u06B1',
  18766. '\uFB9C': '\u06B1',
  18767. '\uFB9D': '\u06B1',
  18768. '\uFB9E': '\u06BA',
  18769. '\uFB9F': '\u06BA',
  18770. '\uFBA0': '\u06BB',
  18771. '\uFBA1': '\u06BB',
  18772. '\uFBA2': '\u06BB',
  18773. '\uFBA3': '\u06BB',
  18774. '\uFBA4': '\u06C0',
  18775. '\uFBA5': '\u06C0',
  18776. '\uFBA6': '\u06C1',
  18777. '\uFBA7': '\u06C1',
  18778. '\uFBA8': '\u06C1',
  18779. '\uFBA9': '\u06C1',
  18780. '\uFBAA': '\u06BE',
  18781. '\uFBAB': '\u06BE',
  18782. '\uFBAC': '\u06BE',
  18783. '\uFBAD': '\u06BE',
  18784. '\uFBAE': '\u06D2',
  18785. '\uFBAF': '\u06D2',
  18786. '\uFBB0': '\u06D3',
  18787. '\uFBB1': '\u06D3',
  18788. '\uFBD3': '\u06AD',
  18789. '\uFBD4': '\u06AD',
  18790. '\uFBD5': '\u06AD',
  18791. '\uFBD6': '\u06AD',
  18792. '\uFBD7': '\u06C7',
  18793. '\uFBD8': '\u06C7',
  18794. '\uFBD9': '\u06C6',
  18795. '\uFBDA': '\u06C6',
  18796. '\uFBDB': '\u06C8',
  18797. '\uFBDC': '\u06C8',
  18798. '\uFBDD': '\u0677',
  18799. '\uFBDE': '\u06CB',
  18800. '\uFBDF': '\u06CB',
  18801. '\uFBE0': '\u06C5',
  18802. '\uFBE1': '\u06C5',
  18803. '\uFBE2': '\u06C9',
  18804. '\uFBE3': '\u06C9',
  18805. '\uFBE4': '\u06D0',
  18806. '\uFBE5': '\u06D0',
  18807. '\uFBE6': '\u06D0',
  18808. '\uFBE7': '\u06D0',
  18809. '\uFBE8': '\u0649',
  18810. '\uFBE9': '\u0649',
  18811. '\uFBEA': '\u0626\u0627',
  18812. '\uFBEB': '\u0626\u0627',
  18813. '\uFBEC': '\u0626\u06D5',
  18814. '\uFBED': '\u0626\u06D5',
  18815. '\uFBEE': '\u0626\u0648',
  18816. '\uFBEF': '\u0626\u0648',
  18817. '\uFBF0': '\u0626\u06C7',
  18818. '\uFBF1': '\u0626\u06C7',
  18819. '\uFBF2': '\u0626\u06C6',
  18820. '\uFBF3': '\u0626\u06C6',
  18821. '\uFBF4': '\u0626\u06C8',
  18822. '\uFBF5': '\u0626\u06C8',
  18823. '\uFBF6': '\u0626\u06D0',
  18824. '\uFBF7': '\u0626\u06D0',
  18825. '\uFBF8': '\u0626\u06D0',
  18826. '\uFBF9': '\u0626\u0649',
  18827. '\uFBFA': '\u0626\u0649',
  18828. '\uFBFB': '\u0626\u0649',
  18829. '\uFBFC': '\u06CC',
  18830. '\uFBFD': '\u06CC',
  18831. '\uFBFE': '\u06CC',
  18832. '\uFBFF': '\u06CC',
  18833. '\uFC00': '\u0626\u062C',
  18834. '\uFC01': '\u0626\u062D',
  18835. '\uFC02': '\u0626\u0645',
  18836. '\uFC03': '\u0626\u0649',
  18837. '\uFC04': '\u0626\u064A',
  18838. '\uFC05': '\u0628\u062C',
  18839. '\uFC06': '\u0628\u062D',
  18840. '\uFC07': '\u0628\u062E',
  18841. '\uFC08': '\u0628\u0645',
  18842. '\uFC09': '\u0628\u0649',
  18843. '\uFC0A': '\u0628\u064A',
  18844. '\uFC0B': '\u062A\u062C',
  18845. '\uFC0C': '\u062A\u062D',
  18846. '\uFC0D': '\u062A\u062E',
  18847. '\uFC0E': '\u062A\u0645',
  18848. '\uFC0F': '\u062A\u0649',
  18849. '\uFC10': '\u062A\u064A',
  18850. '\uFC11': '\u062B\u062C',
  18851. '\uFC12': '\u062B\u0645',
  18852. '\uFC13': '\u062B\u0649',
  18853. '\uFC14': '\u062B\u064A',
  18854. '\uFC15': '\u062C\u062D',
  18855. '\uFC16': '\u062C\u0645',
  18856. '\uFC17': '\u062D\u062C',
  18857. '\uFC18': '\u062D\u0645',
  18858. '\uFC19': '\u062E\u062C',
  18859. '\uFC1A': '\u062E\u062D',
  18860. '\uFC1B': '\u062E\u0645',
  18861. '\uFC1C': '\u0633\u062C',
  18862. '\uFC1D': '\u0633\u062D',
  18863. '\uFC1E': '\u0633\u062E',
  18864. '\uFC1F': '\u0633\u0645',
  18865. '\uFC20': '\u0635\u062D',
  18866. '\uFC21': '\u0635\u0645',
  18867. '\uFC22': '\u0636\u062C',
  18868. '\uFC23': '\u0636\u062D',
  18869. '\uFC24': '\u0636\u062E',
  18870. '\uFC25': '\u0636\u0645',
  18871. '\uFC26': '\u0637\u062D',
  18872. '\uFC27': '\u0637\u0645',
  18873. '\uFC28': '\u0638\u0645',
  18874. '\uFC29': '\u0639\u062C',
  18875. '\uFC2A': '\u0639\u0645',
  18876. '\uFC2B': '\u063A\u062C',
  18877. '\uFC2C': '\u063A\u0645',
  18878. '\uFC2D': '\u0641\u062C',
  18879. '\uFC2E': '\u0641\u062D',
  18880. '\uFC2F': '\u0641\u062E',
  18881. '\uFC30': '\u0641\u0645',
  18882. '\uFC31': '\u0641\u0649',
  18883. '\uFC32': '\u0641\u064A',
  18884. '\uFC33': '\u0642\u062D',
  18885. '\uFC34': '\u0642\u0645',
  18886. '\uFC35': '\u0642\u0649',
  18887. '\uFC36': '\u0642\u064A',
  18888. '\uFC37': '\u0643\u0627',
  18889. '\uFC38': '\u0643\u062C',
  18890. '\uFC39': '\u0643\u062D',
  18891. '\uFC3A': '\u0643\u062E',
  18892. '\uFC3B': '\u0643\u0644',
  18893. '\uFC3C': '\u0643\u0645',
  18894. '\uFC3D': '\u0643\u0649',
  18895. '\uFC3E': '\u0643\u064A',
  18896. '\uFC3F': '\u0644\u062C',
  18897. '\uFC40': '\u0644\u062D',
  18898. '\uFC41': '\u0644\u062E',
  18899. '\uFC42': '\u0644\u0645',
  18900. '\uFC43': '\u0644\u0649',
  18901. '\uFC44': '\u0644\u064A',
  18902. '\uFC45': '\u0645\u062C',
  18903. '\uFC46': '\u0645\u062D',
  18904. '\uFC47': '\u0645\u062E',
  18905. '\uFC48': '\u0645\u0645',
  18906. '\uFC49': '\u0645\u0649',
  18907. '\uFC4A': '\u0645\u064A',
  18908. '\uFC4B': '\u0646\u062C',
  18909. '\uFC4C': '\u0646\u062D',
  18910. '\uFC4D': '\u0646\u062E',
  18911. '\uFC4E': '\u0646\u0645',
  18912. '\uFC4F': '\u0646\u0649',
  18913. '\uFC50': '\u0646\u064A',
  18914. '\uFC51': '\u0647\u062C',
  18915. '\uFC52': '\u0647\u0645',
  18916. '\uFC53': '\u0647\u0649',
  18917. '\uFC54': '\u0647\u064A',
  18918. '\uFC55': '\u064A\u062C',
  18919. '\uFC56': '\u064A\u062D',
  18920. '\uFC57': '\u064A\u062E',
  18921. '\uFC58': '\u064A\u0645',
  18922. '\uFC59': '\u064A\u0649',
  18923. '\uFC5A': '\u064A\u064A',
  18924. '\uFC5B': '\u0630\u0670',
  18925. '\uFC5C': '\u0631\u0670',
  18926. '\uFC5D': '\u0649\u0670',
  18927. '\uFC5E': '\u0020\u064C\u0651',
  18928. '\uFC5F': '\u0020\u064D\u0651',
  18929. '\uFC60': '\u0020\u064E\u0651',
  18930. '\uFC61': '\u0020\u064F\u0651',
  18931. '\uFC62': '\u0020\u0650\u0651',
  18932. '\uFC63': '\u0020\u0651\u0670',
  18933. '\uFC64': '\u0626\u0631',
  18934. '\uFC65': '\u0626\u0632',
  18935. '\uFC66': '\u0626\u0645',
  18936. '\uFC67': '\u0626\u0646',
  18937. '\uFC68': '\u0626\u0649',
  18938. '\uFC69': '\u0626\u064A',
  18939. '\uFC6A': '\u0628\u0631',
  18940. '\uFC6B': '\u0628\u0632',
  18941. '\uFC6C': '\u0628\u0645',
  18942. '\uFC6D': '\u0628\u0646',
  18943. '\uFC6E': '\u0628\u0649',
  18944. '\uFC6F': '\u0628\u064A',
  18945. '\uFC70': '\u062A\u0631',
  18946. '\uFC71': '\u062A\u0632',
  18947. '\uFC72': '\u062A\u0645',
  18948. '\uFC73': '\u062A\u0646',
  18949. '\uFC74': '\u062A\u0649',
  18950. '\uFC75': '\u062A\u064A',
  18951. '\uFC76': '\u062B\u0631',
  18952. '\uFC77': '\u062B\u0632',
  18953. '\uFC78': '\u062B\u0645',
  18954. '\uFC79': '\u062B\u0646',
  18955. '\uFC7A': '\u062B\u0649',
  18956. '\uFC7B': '\u062B\u064A',
  18957. '\uFC7C': '\u0641\u0649',
  18958. '\uFC7D': '\u0641\u064A',
  18959. '\uFC7E': '\u0642\u0649',
  18960. '\uFC7F': '\u0642\u064A',
  18961. '\uFC80': '\u0643\u0627',
  18962. '\uFC81': '\u0643\u0644',
  18963. '\uFC82': '\u0643\u0645',
  18964. '\uFC83': '\u0643\u0649',
  18965. '\uFC84': '\u0643\u064A',
  18966. '\uFC85': '\u0644\u0645',
  18967. '\uFC86': '\u0644\u0649',
  18968. '\uFC87': '\u0644\u064A',
  18969. '\uFC88': '\u0645\u0627',
  18970. '\uFC89': '\u0645\u0645',
  18971. '\uFC8A': '\u0646\u0631',
  18972. '\uFC8B': '\u0646\u0632',
  18973. '\uFC8C': '\u0646\u0645',
  18974. '\uFC8D': '\u0646\u0646',
  18975. '\uFC8E': '\u0646\u0649',
  18976. '\uFC8F': '\u0646\u064A',
  18977. '\uFC90': '\u0649\u0670',
  18978. '\uFC91': '\u064A\u0631',
  18979. '\uFC92': '\u064A\u0632',
  18980. '\uFC93': '\u064A\u0645',
  18981. '\uFC94': '\u064A\u0646',
  18982. '\uFC95': '\u064A\u0649',
  18983. '\uFC96': '\u064A\u064A',
  18984. '\uFC97': '\u0626\u062C',
  18985. '\uFC98': '\u0626\u062D',
  18986. '\uFC99': '\u0626\u062E',
  18987. '\uFC9A': '\u0626\u0645',
  18988. '\uFC9B': '\u0626\u0647',
  18989. '\uFC9C': '\u0628\u062C',
  18990. '\uFC9D': '\u0628\u062D',
  18991. '\uFC9E': '\u0628\u062E',
  18992. '\uFC9F': '\u0628\u0645',
  18993. '\uFCA0': '\u0628\u0647',
  18994. '\uFCA1': '\u062A\u062C',
  18995. '\uFCA2': '\u062A\u062D',
  18996. '\uFCA3': '\u062A\u062E',
  18997. '\uFCA4': '\u062A\u0645',
  18998. '\uFCA5': '\u062A\u0647',
  18999. '\uFCA6': '\u062B\u0645',
  19000. '\uFCA7': '\u062C\u062D',
  19001. '\uFCA8': '\u062C\u0645',
  19002. '\uFCA9': '\u062D\u062C',
  19003. '\uFCAA': '\u062D\u0645',
  19004. '\uFCAB': '\u062E\u062C',
  19005. '\uFCAC': '\u062E\u0645',
  19006. '\uFCAD': '\u0633\u062C',
  19007. '\uFCAE': '\u0633\u062D',
  19008. '\uFCAF': '\u0633\u062E',
  19009. '\uFCB0': '\u0633\u0645',
  19010. '\uFCB1': '\u0635\u062D',
  19011. '\uFCB2': '\u0635\u062E',
  19012. '\uFCB3': '\u0635\u0645',
  19013. '\uFCB4': '\u0636\u062C',
  19014. '\uFCB5': '\u0636\u062D',
  19015. '\uFCB6': '\u0636\u062E',
  19016. '\uFCB7': '\u0636\u0645',
  19017. '\uFCB8': '\u0637\u062D',
  19018. '\uFCB9': '\u0638\u0645',
  19019. '\uFCBA': '\u0639\u062C',
  19020. '\uFCBB': '\u0639\u0645',
  19021. '\uFCBC': '\u063A\u062C',
  19022. '\uFCBD': '\u063A\u0645',
  19023. '\uFCBE': '\u0641\u062C',
  19024. '\uFCBF': '\u0641\u062D',
  19025. '\uFCC0': '\u0641\u062E',
  19026. '\uFCC1': '\u0641\u0645',
  19027. '\uFCC2': '\u0642\u062D',
  19028. '\uFCC3': '\u0642\u0645',
  19029. '\uFCC4': '\u0643\u062C',
  19030. '\uFCC5': '\u0643\u062D',
  19031. '\uFCC6': '\u0643\u062E',
  19032. '\uFCC7': '\u0643\u0644',
  19033. '\uFCC8': '\u0643\u0645',
  19034. '\uFCC9': '\u0644\u062C',
  19035. '\uFCCA': '\u0644\u062D',
  19036. '\uFCCB': '\u0644\u062E',
  19037. '\uFCCC': '\u0644\u0645',
  19038. '\uFCCD': '\u0644\u0647',
  19039. '\uFCCE': '\u0645\u062C',
  19040. '\uFCCF': '\u0645\u062D',
  19041. '\uFCD0': '\u0645\u062E',
  19042. '\uFCD1': '\u0645\u0645',
  19043. '\uFCD2': '\u0646\u062C',
  19044. '\uFCD3': '\u0646\u062D',
  19045. '\uFCD4': '\u0646\u062E',
  19046. '\uFCD5': '\u0646\u0645',
  19047. '\uFCD6': '\u0646\u0647',
  19048. '\uFCD7': '\u0647\u062C',
  19049. '\uFCD8': '\u0647\u0645',
  19050. '\uFCD9': '\u0647\u0670',
  19051. '\uFCDA': '\u064A\u062C',
  19052. '\uFCDB': '\u064A\u062D',
  19053. '\uFCDC': '\u064A\u062E',
  19054. '\uFCDD': '\u064A\u0645',
  19055. '\uFCDE': '\u064A\u0647',
  19056. '\uFCDF': '\u0626\u0645',
  19057. '\uFCE0': '\u0626\u0647',
  19058. '\uFCE1': '\u0628\u0645',
  19059. '\uFCE2': '\u0628\u0647',
  19060. '\uFCE3': '\u062A\u0645',
  19061. '\uFCE4': '\u062A\u0647',
  19062. '\uFCE5': '\u062B\u0645',
  19063. '\uFCE6': '\u062B\u0647',
  19064. '\uFCE7': '\u0633\u0645',
  19065. '\uFCE8': '\u0633\u0647',
  19066. '\uFCE9': '\u0634\u0645',
  19067. '\uFCEA': '\u0634\u0647',
  19068. '\uFCEB': '\u0643\u0644',
  19069. '\uFCEC': '\u0643\u0645',
  19070. '\uFCED': '\u0644\u0645',
  19071. '\uFCEE': '\u0646\u0645',
  19072. '\uFCEF': '\u0646\u0647',
  19073. '\uFCF0': '\u064A\u0645',
  19074. '\uFCF1': '\u064A\u0647',
  19075. '\uFCF2': '\u0640\u064E\u0651',
  19076. '\uFCF3': '\u0640\u064F\u0651',
  19077. '\uFCF4': '\u0640\u0650\u0651',
  19078. '\uFCF5': '\u0637\u0649',
  19079. '\uFCF6': '\u0637\u064A',
  19080. '\uFCF7': '\u0639\u0649',
  19081. '\uFCF8': '\u0639\u064A',
  19082. '\uFCF9': '\u063A\u0649',
  19083. '\uFCFA': '\u063A\u064A',
  19084. '\uFCFB': '\u0633\u0649',
  19085. '\uFCFC': '\u0633\u064A',
  19086. '\uFCFD': '\u0634\u0649',
  19087. '\uFCFE': '\u0634\u064A',
  19088. '\uFCFF': '\u062D\u0649',
  19089. '\uFD00': '\u062D\u064A',
  19090. '\uFD01': '\u062C\u0649',
  19091. '\uFD02': '\u062C\u064A',
  19092. '\uFD03': '\u062E\u0649',
  19093. '\uFD04': '\u062E\u064A',
  19094. '\uFD05': '\u0635\u0649',
  19095. '\uFD06': '\u0635\u064A',
  19096. '\uFD07': '\u0636\u0649',
  19097. '\uFD08': '\u0636\u064A',
  19098. '\uFD09': '\u0634\u062C',
  19099. '\uFD0A': '\u0634\u062D',
  19100. '\uFD0B': '\u0634\u062E',
  19101. '\uFD0C': '\u0634\u0645',
  19102. '\uFD0D': '\u0634\u0631',
  19103. '\uFD0E': '\u0633\u0631',
  19104. '\uFD0F': '\u0635\u0631',
  19105. '\uFD10': '\u0636\u0631',
  19106. '\uFD11': '\u0637\u0649',
  19107. '\uFD12': '\u0637\u064A',
  19108. '\uFD13': '\u0639\u0649',
  19109. '\uFD14': '\u0639\u064A',
  19110. '\uFD15': '\u063A\u0649',
  19111. '\uFD16': '\u063A\u064A',
  19112. '\uFD17': '\u0633\u0649',
  19113. '\uFD18': '\u0633\u064A',
  19114. '\uFD19': '\u0634\u0649',
  19115. '\uFD1A': '\u0634\u064A',
  19116. '\uFD1B': '\u062D\u0649',
  19117. '\uFD1C': '\u062D\u064A',
  19118. '\uFD1D': '\u062C\u0649',
  19119. '\uFD1E': '\u062C\u064A',
  19120. '\uFD1F': '\u062E\u0649',
  19121. '\uFD20': '\u062E\u064A',
  19122. '\uFD21': '\u0635\u0649',
  19123. '\uFD22': '\u0635\u064A',
  19124. '\uFD23': '\u0636\u0649',
  19125. '\uFD24': '\u0636\u064A',
  19126. '\uFD25': '\u0634\u062C',
  19127. '\uFD26': '\u0634\u062D',
  19128. '\uFD27': '\u0634\u062E',
  19129. '\uFD28': '\u0634\u0645',
  19130. '\uFD29': '\u0634\u0631',
  19131. '\uFD2A': '\u0633\u0631',
  19132. '\uFD2B': '\u0635\u0631',
  19133. '\uFD2C': '\u0636\u0631',
  19134. '\uFD2D': '\u0634\u062C',
  19135. '\uFD2E': '\u0634\u062D',
  19136. '\uFD2F': '\u0634\u062E',
  19137. '\uFD30': '\u0634\u0645',
  19138. '\uFD31': '\u0633\u0647',
  19139. '\uFD32': '\u0634\u0647',
  19140. '\uFD33': '\u0637\u0645',
  19141. '\uFD34': '\u0633\u062C',
  19142. '\uFD35': '\u0633\u062D',
  19143. '\uFD36': '\u0633\u062E',
  19144. '\uFD37': '\u0634\u062C',
  19145. '\uFD38': '\u0634\u062D',
  19146. '\uFD39': '\u0634\u062E',
  19147. '\uFD3A': '\u0637\u0645',
  19148. '\uFD3B': '\u0638\u0645',
  19149. '\uFD3C': '\u0627\u064B',
  19150. '\uFD3D': '\u0627\u064B',
  19151. '\uFD50': '\u062A\u062C\u0645',
  19152. '\uFD51': '\u062A\u062D\u062C',
  19153. '\uFD52': '\u062A\u062D\u062C',
  19154. '\uFD53': '\u062A\u062D\u0645',
  19155. '\uFD54': '\u062A\u062E\u0645',
  19156. '\uFD55': '\u062A\u0645\u062C',
  19157. '\uFD56': '\u062A\u0645\u062D',
  19158. '\uFD57': '\u062A\u0645\u062E',
  19159. '\uFD58': '\u062C\u0645\u062D',
  19160. '\uFD59': '\u062C\u0645\u062D',
  19161. '\uFD5A': '\u062D\u0645\u064A',
  19162. '\uFD5B': '\u062D\u0645\u0649',
  19163. '\uFD5C': '\u0633\u062D\u062C',
  19164. '\uFD5D': '\u0633\u062C\u062D',
  19165. '\uFD5E': '\u0633\u062C\u0649',
  19166. '\uFD5F': '\u0633\u0645\u062D',
  19167. '\uFD60': '\u0633\u0645\u062D',
  19168. '\uFD61': '\u0633\u0645\u062C',
  19169. '\uFD62': '\u0633\u0645\u0645',
  19170. '\uFD63': '\u0633\u0645\u0645',
  19171. '\uFD64': '\u0635\u062D\u062D',
  19172. '\uFD65': '\u0635\u062D\u062D',
  19173. '\uFD66': '\u0635\u0645\u0645',
  19174. '\uFD67': '\u0634\u062D\u0645',
  19175. '\uFD68': '\u0634\u062D\u0645',
  19176. '\uFD69': '\u0634\u062C\u064A',
  19177. '\uFD6A': '\u0634\u0645\u062E',
  19178. '\uFD6B': '\u0634\u0645\u062E',
  19179. '\uFD6C': '\u0634\u0645\u0645',
  19180. '\uFD6D': '\u0634\u0645\u0645',
  19181. '\uFD6E': '\u0636\u062D\u0649',
  19182. '\uFD6F': '\u0636\u062E\u0645',
  19183. '\uFD70': '\u0636\u062E\u0645',
  19184. '\uFD71': '\u0637\u0645\u062D',
  19185. '\uFD72': '\u0637\u0645\u062D',
  19186. '\uFD73': '\u0637\u0645\u0645',
  19187. '\uFD74': '\u0637\u0645\u064A',
  19188. '\uFD75': '\u0639\u062C\u0645',
  19189. '\uFD76': '\u0639\u0645\u0645',
  19190. '\uFD77': '\u0639\u0645\u0645',
  19191. '\uFD78': '\u0639\u0645\u0649',
  19192. '\uFD79': '\u063A\u0645\u0645',
  19193. '\uFD7A': '\u063A\u0645\u064A',
  19194. '\uFD7B': '\u063A\u0645\u0649',
  19195. '\uFD7C': '\u0641\u062E\u0645',
  19196. '\uFD7D': '\u0641\u062E\u0645',
  19197. '\uFD7E': '\u0642\u0645\u062D',
  19198. '\uFD7F': '\u0642\u0645\u0645',
  19199. '\uFD80': '\u0644\u062D\u0645',
  19200. '\uFD81': '\u0644\u062D\u064A',
  19201. '\uFD82': '\u0644\u062D\u0649',
  19202. '\uFD83': '\u0644\u062C\u062C',
  19203. '\uFD84': '\u0644\u062C\u062C',
  19204. '\uFD85': '\u0644\u062E\u0645',
  19205. '\uFD86': '\u0644\u062E\u0645',
  19206. '\uFD87': '\u0644\u0645\u062D',
  19207. '\uFD88': '\u0644\u0645\u062D',
  19208. '\uFD89': '\u0645\u062D\u062C',
  19209. '\uFD8A': '\u0645\u062D\u0645',
  19210. '\uFD8B': '\u0645\u062D\u064A',
  19211. '\uFD8C': '\u0645\u062C\u062D',
  19212. '\uFD8D': '\u0645\u062C\u0645',
  19213. '\uFD8E': '\u0645\u062E\u062C',
  19214. '\uFD8F': '\u0645\u062E\u0645',
  19215. '\uFD92': '\u0645\u062C\u062E',
  19216. '\uFD93': '\u0647\u0645\u062C',
  19217. '\uFD94': '\u0647\u0645\u0645',
  19218. '\uFD95': '\u0646\u062D\u0645',
  19219. '\uFD96': '\u0646\u062D\u0649',
  19220. '\uFD97': '\u0646\u062C\u0645',
  19221. '\uFD98': '\u0646\u062C\u0645',
  19222. '\uFD99': '\u0646\u062C\u0649',
  19223. '\uFD9A': '\u0646\u0645\u064A',
  19224. '\uFD9B': '\u0646\u0645\u0649',
  19225. '\uFD9C': '\u064A\u0645\u0645',
  19226. '\uFD9D': '\u064A\u0645\u0645',
  19227. '\uFD9E': '\u0628\u062E\u064A',
  19228. '\uFD9F': '\u062A\u062C\u064A',
  19229. '\uFDA0': '\u062A\u062C\u0649',
  19230. '\uFDA1': '\u062A\u062E\u064A',
  19231. '\uFDA2': '\u062A\u062E\u0649',
  19232. '\uFDA3': '\u062A\u0645\u064A',
  19233. '\uFDA4': '\u062A\u0645\u0649',
  19234. '\uFDA5': '\u062C\u0645\u064A',
  19235. '\uFDA6': '\u062C\u062D\u0649',
  19236. '\uFDA7': '\u062C\u0645\u0649',
  19237. '\uFDA8': '\u0633\u062E\u0649',
  19238. '\uFDA9': '\u0635\u062D\u064A',
  19239. '\uFDAA': '\u0634\u062D\u064A',
  19240. '\uFDAB': '\u0636\u062D\u064A',
  19241. '\uFDAC': '\u0644\u062C\u064A',
  19242. '\uFDAD': '\u0644\u0645\u064A',
  19243. '\uFDAE': '\u064A\u062D\u064A',
  19244. '\uFDAF': '\u064A\u062C\u064A',
  19245. '\uFDB0': '\u064A\u0645\u064A',
  19246. '\uFDB1': '\u0645\u0645\u064A',
  19247. '\uFDB2': '\u0642\u0645\u064A',
  19248. '\uFDB3': '\u0646\u062D\u064A',
  19249. '\uFDB4': '\u0642\u0645\u062D',
  19250. '\uFDB5': '\u0644\u062D\u0645',
  19251. '\uFDB6': '\u0639\u0645\u064A',
  19252. '\uFDB7': '\u0643\u0645\u064A',
  19253. '\uFDB8': '\u0646\u062C\u062D',
  19254. '\uFDB9': '\u0645\u062E\u064A',
  19255. '\uFDBA': '\u0644\u062C\u0645',
  19256. '\uFDBB': '\u0643\u0645\u0645',
  19257. '\uFDBC': '\u0644\u062C\u0645',
  19258. '\uFDBD': '\u0646\u062C\u062D',
  19259. '\uFDBE': '\u062C\u062D\u064A',
  19260. '\uFDBF': '\u062D\u062C\u064A',
  19261. '\uFDC0': '\u0645\u062C\u064A',
  19262. '\uFDC1': '\u0641\u0645\u064A',
  19263. '\uFDC2': '\u0628\u062D\u064A',
  19264. '\uFDC3': '\u0643\u0645\u0645',
  19265. '\uFDC4': '\u0639\u062C\u0645',
  19266. '\uFDC5': '\u0635\u0645\u0645',
  19267. '\uFDC6': '\u0633\u062E\u064A',
  19268. '\uFDC7': '\u0646\u062C\u064A',
  19269. '\uFE49': '\u203E',
  19270. '\uFE4A': '\u203E',
  19271. '\uFE4B': '\u203E',
  19272. '\uFE4C': '\u203E',
  19273. '\uFE4D': '\u005F',
  19274. '\uFE4E': '\u005F',
  19275. '\uFE4F': '\u005F',
  19276. '\uFE80': '\u0621',
  19277. '\uFE81': '\u0622',
  19278. '\uFE82': '\u0622',
  19279. '\uFE83': '\u0623',
  19280. '\uFE84': '\u0623',
  19281. '\uFE85': '\u0624',
  19282. '\uFE86': '\u0624',
  19283. '\uFE87': '\u0625',
  19284. '\uFE88': '\u0625',
  19285. '\uFE89': '\u0626',
  19286. '\uFE8A': '\u0626',
  19287. '\uFE8B': '\u0626',
  19288. '\uFE8C': '\u0626',
  19289. '\uFE8D': '\u0627',
  19290. '\uFE8E': '\u0627',
  19291. '\uFE8F': '\u0628',
  19292. '\uFE90': '\u0628',
  19293. '\uFE91': '\u0628',
  19294. '\uFE92': '\u0628',
  19295. '\uFE93': '\u0629',
  19296. '\uFE94': '\u0629',
  19297. '\uFE95': '\u062A',
  19298. '\uFE96': '\u062A',
  19299. '\uFE97': '\u062A',
  19300. '\uFE98': '\u062A',
  19301. '\uFE99': '\u062B',
  19302. '\uFE9A': '\u062B',
  19303. '\uFE9B': '\u062B',
  19304. '\uFE9C': '\u062B',
  19305. '\uFE9D': '\u062C',
  19306. '\uFE9E': '\u062C',
  19307. '\uFE9F': '\u062C',
  19308. '\uFEA0': '\u062C',
  19309. '\uFEA1': '\u062D',
  19310. '\uFEA2': '\u062D',
  19311. '\uFEA3': '\u062D',
  19312. '\uFEA4': '\u062D',
  19313. '\uFEA5': '\u062E',
  19314. '\uFEA6': '\u062E',
  19315. '\uFEA7': '\u062E',
  19316. '\uFEA8': '\u062E',
  19317. '\uFEA9': '\u062F',
  19318. '\uFEAA': '\u062F',
  19319. '\uFEAB': '\u0630',
  19320. '\uFEAC': '\u0630',
  19321. '\uFEAD': '\u0631',
  19322. '\uFEAE': '\u0631',
  19323. '\uFEAF': '\u0632',
  19324. '\uFEB0': '\u0632',
  19325. '\uFEB1': '\u0633',
  19326. '\uFEB2': '\u0633',
  19327. '\uFEB3': '\u0633',
  19328. '\uFEB4': '\u0633',
  19329. '\uFEB5': '\u0634',
  19330. '\uFEB6': '\u0634',
  19331. '\uFEB7': '\u0634',
  19332. '\uFEB8': '\u0634',
  19333. '\uFEB9': '\u0635',
  19334. '\uFEBA': '\u0635',
  19335. '\uFEBB': '\u0635',
  19336. '\uFEBC': '\u0635',
  19337. '\uFEBD': '\u0636',
  19338. '\uFEBE': '\u0636',
  19339. '\uFEBF': '\u0636',
  19340. '\uFEC0': '\u0636',
  19341. '\uFEC1': '\u0637',
  19342. '\uFEC2': '\u0637',
  19343. '\uFEC3': '\u0637',
  19344. '\uFEC4': '\u0637',
  19345. '\uFEC5': '\u0638',
  19346. '\uFEC6': '\u0638',
  19347. '\uFEC7': '\u0638',
  19348. '\uFEC8': '\u0638',
  19349. '\uFEC9': '\u0639',
  19350. '\uFECA': '\u0639',
  19351. '\uFECB': '\u0639',
  19352. '\uFECC': '\u0639',
  19353. '\uFECD': '\u063A',
  19354. '\uFECE': '\u063A',
  19355. '\uFECF': '\u063A',
  19356. '\uFED0': '\u063A',
  19357. '\uFED1': '\u0641',
  19358. '\uFED2': '\u0641',
  19359. '\uFED3': '\u0641',
  19360. '\uFED4': '\u0641',
  19361. '\uFED5': '\u0642',
  19362. '\uFED6': '\u0642',
  19363. '\uFED7': '\u0642',
  19364. '\uFED8': '\u0642',
  19365. '\uFED9': '\u0643',
  19366. '\uFEDA': '\u0643',
  19367. '\uFEDB': '\u0643',
  19368. '\uFEDC': '\u0643',
  19369. '\uFEDD': '\u0644',
  19370. '\uFEDE': '\u0644',
  19371. '\uFEDF': '\u0644',
  19372. '\uFEE0': '\u0644',
  19373. '\uFEE1': '\u0645',
  19374. '\uFEE2': '\u0645',
  19375. '\uFEE3': '\u0645',
  19376. '\uFEE4': '\u0645',
  19377. '\uFEE5': '\u0646',
  19378. '\uFEE6': '\u0646',
  19379. '\uFEE7': '\u0646',
  19380. '\uFEE8': '\u0646',
  19381. '\uFEE9': '\u0647',
  19382. '\uFEEA': '\u0647',
  19383. '\uFEEB': '\u0647',
  19384. '\uFEEC': '\u0647',
  19385. '\uFEED': '\u0648',
  19386. '\uFEEE': '\u0648',
  19387. '\uFEEF': '\u0649',
  19388. '\uFEF0': '\u0649',
  19389. '\uFEF1': '\u064A',
  19390. '\uFEF2': '\u064A',
  19391. '\uFEF3': '\u064A',
  19392. '\uFEF4': '\u064A',
  19393. '\uFEF5': '\u0644\u0622',
  19394. '\uFEF6': '\u0644\u0622',
  19395. '\uFEF7': '\u0644\u0623',
  19396. '\uFEF8': '\u0644\u0623',
  19397. '\uFEF9': '\u0644\u0625',
  19398. '\uFEFA': '\u0644\u0625',
  19399. '\uFEFB': '\u0644\u0627',
  19400. '\uFEFC': '\u0644\u0627'
  19401. };
  19402. function reverseIfRtl(chars) {
  19403. var charsLength = chars.length;
  19404. //reverse an arabic ligature
  19405. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  19406. return chars;
  19407. }
  19408. var s = '';
  19409. for (var ii = charsLength - 1; ii >= 0; ii--) {
  19410. s += chars[ii];
  19411. }
  19412. return s;
  19413. }
  19414. function adjustWidths(properties) {
  19415. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  19416. return;
  19417. }
  19418. // adjusting width to fontMatrix scale
  19419. var scale = 0.001 / properties.fontMatrix[0];
  19420. var glyphsWidths = properties.widths;
  19421. for (var glyph in glyphsWidths) {
  19422. glyphsWidths[glyph] *= scale;
  19423. }
  19424. properties.defaultWidth *= scale;
  19425. }
  19426. var Glyph = (function GlyphClosure() {
  19427. function Glyph(fontChar, unicode, accent, width, vmetric, operatorList) {
  19428. this.fontChar = fontChar;
  19429. this.unicode = unicode;
  19430. this.accent = accent;
  19431. this.width = width;
  19432. this.vmetric = vmetric;
  19433. this.operatorList = operatorList;
  19434. }
  19435. Glyph.prototype.matchesForCache =
  19436. function(fontChar, unicode, accent, width, vmetric, operatorList) {
  19437. return this.fontChar === fontChar &&
  19438. this.unicode === unicode &&
  19439. this.accent === accent &&
  19440. this.width === width &&
  19441. this.vmetric === vmetric &&
  19442. this.operatorList === operatorList;
  19443. };
  19444. return Glyph;
  19445. })();
  19446. /**
  19447. * 'Font' is the class the outside world should use, it encapsulate all the font
  19448. * decoding logics whatever type it is (assuming the font type is supported).
  19449. *
  19450. * For example to read a Type1 font and to attach it to the document:
  19451. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  19452. * type1Font.bind();
  19453. */
  19454. var Font = (function FontClosure() {
  19455. function Font(name, file, properties) {
  19456. var charCode;
  19457. this.name = name;
  19458. this.loadedName = properties.loadedName;
  19459. this.coded = properties.coded;
  19460. this.loadCharProcs = properties.coded;
  19461. this.sizes = [];
  19462. this.glyphCache = {};
  19463. var names = name.split('+');
  19464. names = names.length > 1 ? names[1] : names[0];
  19465. names = names.split(/[-,_]/g)[0];
  19466. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  19467. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  19468. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  19469. var type = properties.type;
  19470. this.type = type;
  19471. this.fallbackName = (this.isMonospace ? 'monospace' :
  19472. (this.isSerifFont ? 'serif' : 'sans-serif'));
  19473. this.differences = properties.differences;
  19474. this.widths = properties.widths;
  19475. this.defaultWidth = properties.defaultWidth;
  19476. this.composite = properties.composite;
  19477. this.wideChars = properties.wideChars;
  19478. this.cMap = properties.cMap;
  19479. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  19480. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  19481. this.fontMatrix = properties.fontMatrix;
  19482. var unicode = this.buildToUnicode(properties);
  19483. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  19484. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  19485. this.toFontChar = [];
  19486. if (properties.type == 'Type3') {
  19487. for (charCode = 0; charCode < 256; charCode++) {
  19488. this.toFontChar[charCode] = (this.differences[charCode] ||
  19489. properties.defaultEncoding[charCode]);
  19490. }
  19491. return;
  19492. }
  19493. this.cidEncoding = properties.cidEncoding;
  19494. this.vertical = properties.vertical;
  19495. if (this.vertical) {
  19496. this.vmetrics = properties.vmetrics;
  19497. this.defaultVMetrics = properties.defaultVMetrics;
  19498. }
  19499. if (!file) {
  19500. this.missingFile = true;
  19501. // The file data is not specified. Trying to fix the font name
  19502. // to be used with the canvas.font.
  19503. var fontName = name.replace(/[,_]/g, '-');
  19504. var isStandardFont = fontName in stdFontMap;
  19505. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  19506. this.bold = (fontName.search(/bold/gi) != -1);
  19507. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  19508. (fontName.search(/italic/gi) != -1));
  19509. // Use 'name' instead of 'fontName' here because the original
  19510. // name ArialBlack for example will be replaced by Helvetica.
  19511. this.black = (name.search(/Black/g) != -1);
  19512. // if at least one width is present, remeasure all chars when exists
  19513. this.remeasure = Object.keys(this.widths).length > 0;
  19514. if (isStandardFont && type === 'CIDFontType2' &&
  19515. properties.cidEncoding.indexOf('Identity-') === 0) {
  19516. // Standard fonts might be embedded as CID font without glyph mapping.
  19517. // Building one based on GlyphMapForStandardFonts.
  19518. var map = [];
  19519. for (var code in GlyphMapForStandardFonts) {
  19520. map[+code] = GlyphMapForStandardFonts[code];
  19521. }
  19522. this.toFontChar = map;
  19523. this.toUnicode = map;
  19524. } else if (/Symbol/i.test(fontName)) {
  19525. var symbols = Encodings.SymbolSetEncoding;
  19526. for (charCode in symbols) {
  19527. var fontChar = GlyphsUnicode[symbols[charCode]];
  19528. if (!fontChar) {
  19529. continue;
  19530. }
  19531. this.toFontChar[charCode] = fontChar;
  19532. }
  19533. } else if (isStandardFont) {
  19534. this.toFontChar = [];
  19535. for (charCode in properties.defaultEncoding) {
  19536. var glyphName = properties.differences[charCode] ||
  19537. properties.defaultEncoding[charCode];
  19538. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  19539. }
  19540. } else {
  19541. for (charCode in this.toUnicode) {
  19542. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  19543. }
  19544. }
  19545. this.loadedName = fontName.split('-')[0];
  19546. this.loading = false;
  19547. return;
  19548. }
  19549. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  19550. var subtype = properties.subtype;
  19551. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  19552. // Some TrueType fonts by mistake claim Type1C
  19553. if (isTrueTypeFile(file)) {
  19554. subtype = 'TrueType';
  19555. } else {
  19556. type = 'Type1';
  19557. }
  19558. }
  19559. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  19560. type = 'CIDFontType0';
  19561. }
  19562. // XXX: Temporarily change the type for open type so we trigger a warning.
  19563. // This should be removed when we add support for open type.
  19564. if (subtype === 'OpenType') {
  19565. type = 'OpenType';
  19566. }
  19567. var data;
  19568. switch (type) {
  19569. case 'Type1':
  19570. case 'CIDFontType0':
  19571. this.mimetype = 'font/opentype';
  19572. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  19573. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  19574. adjustWidths(properties);
  19575. // Wrap the CFF data inside an OTF font file
  19576. data = this.convert(name, cff, properties);
  19577. break;
  19578. case 'OpenType':
  19579. case 'TrueType':
  19580. case 'CIDFontType2':
  19581. this.mimetype = 'font/opentype';
  19582. // Repair the TrueType file. It is can be damaged in the point of
  19583. // view of the sanitizer
  19584. data = this.checkAndRepair(name, file, properties);
  19585. break;
  19586. default:
  19587. error('Font ' + type + ' is not supported');
  19588. break;
  19589. }
  19590. this.data = data;
  19591. // Transfer some properties again that could change during font conversion
  19592. this.fontMatrix = properties.fontMatrix;
  19593. this.widths = properties.widths;
  19594. this.defaultWidth = properties.defaultWidth;
  19595. this.encoding = properties.baseEncoding;
  19596. this.seacMap = properties.seacMap;
  19597. this.loading = true;
  19598. }
  19599. Font.getFontID = (function () {
  19600. var ID = 1;
  19601. return function Font_getFontID() {
  19602. return String(ID++);
  19603. };
  19604. })();
  19605. function int16(b0, b1) {
  19606. return (b0 << 8) + b1;
  19607. }
  19608. function int32(b0, b1, b2, b3) {
  19609. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  19610. }
  19611. function getMaxPower2(number) {
  19612. var maxPower = 0;
  19613. var value = number;
  19614. while (value >= 2) {
  19615. value /= 2;
  19616. maxPower++;
  19617. }
  19618. value = 2;
  19619. for (var i = 1; i < maxPower; i++) {
  19620. value *= 2;
  19621. }
  19622. return value;
  19623. }
  19624. function string16(value) {
  19625. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19626. }
  19627. function safeString16(value) {
  19628. // clamp value to the 16-bit int range
  19629. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  19630. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19631. }
  19632. function createOpenTypeHeader(sfnt, file, numTables) {
  19633. // Windows hates the Mac TrueType sfnt version number
  19634. if (sfnt == 'true') {
  19635. sfnt = string32(0x00010000);
  19636. }
  19637. // sfnt version (4 bytes)
  19638. var header = sfnt;
  19639. // numTables (2 bytes)
  19640. header += string16(numTables);
  19641. // searchRange (2 bytes)
  19642. var tablesMaxPower2 = getMaxPower2(numTables);
  19643. var searchRange = tablesMaxPower2 * 16;
  19644. header += string16(searchRange);
  19645. // entrySelector (2 bytes)
  19646. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  19647. // rangeShift (2 bytes)
  19648. header += string16(numTables * 16 - searchRange);
  19649. file.file += header;
  19650. file.virtualOffset += header.length;
  19651. }
  19652. function createTableEntry(file, tag, data) {
  19653. // offset
  19654. var offset = file.virtualOffset;
  19655. // length
  19656. var length = data.length;
  19657. // Per spec tables must be 4-bytes align so add padding as needed
  19658. while (data.length & 3) {
  19659. data.push(0x00);
  19660. }
  19661. while (file.virtualOffset & 3) {
  19662. file.virtualOffset++;
  19663. }
  19664. // checksum
  19665. var checksum = 0, n = data.length;
  19666. for (var i = 0; i < n; i += 4) {
  19667. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  19668. data[i + 3])) | 0;
  19669. }
  19670. var tableEntry = (tag + string32(checksum) +
  19671. string32(offset) + string32(length));
  19672. file.file += tableEntry;
  19673. file.virtualOffset += data.length;
  19674. }
  19675. function isTrueTypeFile(file) {
  19676. var header = file.peekBytes(4);
  19677. return readUint32(header, 0) === 0x00010000;
  19678. }
  19679. /**
  19680. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  19681. * with their unicode value. It also moves char codes that are in known
  19682. * problematic locations.
  19683. * @return {Object} Two properties:
  19684. * 'toFontChar' - maps original char codes(the value that will be read
  19685. * from commands such as show text) to the char codes that will be used in the
  19686. * font that we build
  19687. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  19688. */
  19689. function adjustMapping(charCodeToGlyphId, properties) {
  19690. var toUnicode = properties.toUnicode;
  19691. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  19692. var isIdentityUnicode = properties.isIdentityUnicode;
  19693. var newMap = Object.create(null);
  19694. var toFontChar = [];
  19695. var usedFontCharCodes = [];
  19696. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  19697. for (var originalCharCode in charCodeToGlyphId) {
  19698. originalCharCode |= 0;
  19699. var glyphId = charCodeToGlyphId[originalCharCode];
  19700. var fontCharCode = originalCharCode;
  19701. // First try to map the value to a unicode position if a non identity map
  19702. // was created.
  19703. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  19704. var unicode = toUnicode[fontCharCode];
  19705. // TODO: Try to map ligatures to the correct spot.
  19706. if (unicode.length === 1) {
  19707. fontCharCode = unicode.charCodeAt(0);
  19708. }
  19709. }
  19710. // Try to move control characters, special characters and already mapped
  19711. // characters to the private use area since they will not be drawn by
  19712. // canvas if left in their current position. Also, move characters if the
  19713. // font was symbolic and there is only an identity unicode map since the
  19714. // characters probably aren't in the correct position (fixes an issue
  19715. // with firefox and thuluthfont).
  19716. if ((fontCharCode in usedFontCharCodes ||
  19717. fontCharCode <= 0x1f || // Control chars
  19718. fontCharCode === 0x7F || // Control char
  19719. fontCharCode === 0xAD || // Soft hyphen
  19720. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  19721. // Prevent drawing characters in the specials unicode block.
  19722. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  19723. (isSymbolic && isIdentityUnicode)) &&
  19724. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  19725. // Loop to try and find a free spot in the private use area.
  19726. do {
  19727. fontCharCode = nextAvailableFontCharCode++;
  19728. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  19729. fontCharCode = 0xF020;
  19730. nextAvailableFontCharCode = fontCharCode + 1;
  19731. }
  19732. } while (fontCharCode in usedFontCharCodes &&
  19733. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  19734. }
  19735. newMap[fontCharCode] = glyphId;
  19736. toFontChar[originalCharCode] = fontCharCode;
  19737. usedFontCharCodes[fontCharCode] = true;
  19738. }
  19739. return {
  19740. toFontChar: toFontChar,
  19741. charCodeToGlyphId: newMap,
  19742. nextAvailableFontCharCode: nextAvailableFontCharCode
  19743. };
  19744. }
  19745. function getRanges(glyphs) {
  19746. // Array.sort() sorts by characters, not numerically, so convert to an
  19747. // array of characters.
  19748. var codes = [];
  19749. for (var charCode in glyphs) {
  19750. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  19751. }
  19752. codes.sort(function fontGetRangesSort(a, b) {
  19753. return a.fontCharCode - b.fontCharCode;
  19754. });
  19755. // Split the sorted codes into ranges.
  19756. var ranges = [];
  19757. var length = codes.length;
  19758. for (var n = 0; n < length; ) {
  19759. var start = codes[n].fontCharCode;
  19760. var codeIndices = [codes[n].glyphId];
  19761. ++n;
  19762. var end = start;
  19763. while (n < length && end + 1 == codes[n].fontCharCode) {
  19764. codeIndices.push(codes[n].glyphId);
  19765. ++end;
  19766. ++n;
  19767. if (end === 0xFFFF) {
  19768. break;
  19769. }
  19770. }
  19771. ranges.push([start, end, codeIndices]);
  19772. }
  19773. return ranges;
  19774. }
  19775. function createCmapTable(glyphs) {
  19776. var ranges = getRanges(glyphs);
  19777. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  19778. var cmap = '\x00\x00' + // version
  19779. string16(numTables) + // numTables
  19780. '\x00\x03' + // platformID
  19781. '\x00\x01' + // encodingID
  19782. string32(4 + numTables * 8); // start of the table record
  19783. var i, ii, j, jj;
  19784. for (i = ranges.length - 1; i >= 0; --i) {
  19785. if (ranges[i][0] <= 0xFFFF) { break; }
  19786. }
  19787. var bmpLength = i + 1;
  19788. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  19789. ranges[i][1] = 0xFFFE;
  19790. }
  19791. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  19792. var segCount = bmpLength + trailingRangesCount;
  19793. var segCount2 = segCount * 2;
  19794. var searchRange = getMaxPower2(segCount) * 2;
  19795. var searchEntry = Math.log(segCount) / Math.log(2);
  19796. var rangeShift = 2 * segCount - searchRange;
  19797. // Fill up the 4 parallel arrays describing the segments.
  19798. var startCount = '';
  19799. var endCount = '';
  19800. var idDeltas = '';
  19801. var idRangeOffsets = '';
  19802. var glyphsIds = '';
  19803. var bias = 0;
  19804. var range, start, end, codes;
  19805. for (i = 0, ii = bmpLength; i < ii; i++) {
  19806. range = ranges[i];
  19807. start = range[0];
  19808. end = range[1];
  19809. startCount += string16(start);
  19810. endCount += string16(end);
  19811. codes = range[2];
  19812. var contiguous = true;
  19813. for (j = 1, jj = codes.length; j < jj; ++j) {
  19814. if (codes[j] !== codes[j - 1] + 1) {
  19815. contiguous = false;
  19816. break;
  19817. }
  19818. }
  19819. if (!contiguous) {
  19820. var offset = (segCount - i) * 2 + bias * 2;
  19821. bias += (end - start + 1);
  19822. idDeltas += string16(0);
  19823. idRangeOffsets += string16(offset);
  19824. for (j = 0, jj = codes.length; j < jj; ++j) {
  19825. glyphsIds += string16(codes[j]);
  19826. }
  19827. } else {
  19828. var startCode = codes[0];
  19829. idDeltas += string16((startCode - start) & 0xFFFF);
  19830. idRangeOffsets += string16(0);
  19831. }
  19832. }
  19833. if (trailingRangesCount > 0) {
  19834. endCount += '\xFF\xFF';
  19835. startCount += '\xFF\xFF';
  19836. idDeltas += '\x00\x01';
  19837. idRangeOffsets += '\x00\x00';
  19838. }
  19839. var format314 = '\x00\x00' + // language
  19840. string16(segCount2) +
  19841. string16(searchRange) +
  19842. string16(searchEntry) +
  19843. string16(rangeShift) +
  19844. endCount + '\x00\x00' + startCount +
  19845. idDeltas + idRangeOffsets + glyphsIds;
  19846. var format31012 = '';
  19847. var header31012 = '';
  19848. if (numTables > 1) {
  19849. cmap += '\x00\x03' + // platformID
  19850. '\x00\x0A' + // encodingID
  19851. string32(4 + numTables * 8 +
  19852. 4 + format314.length); // start of the table record
  19853. format31012 = '';
  19854. for (i = 0, ii = ranges.length; i < ii; i++) {
  19855. range = ranges[i];
  19856. start = range[0];
  19857. codes = range[2];
  19858. var code = codes[0];
  19859. for (j = 1, jj = codes.length; j < jj; ++j) {
  19860. if (codes[j] !== codes[j - 1] + 1) {
  19861. end = range[0] + j - 1;
  19862. format31012 += string32(start) + // startCharCode
  19863. string32(end) + // endCharCode
  19864. string32(code); // startGlyphID
  19865. start = end + 1;
  19866. code = codes[j];
  19867. }
  19868. }
  19869. format31012 += string32(start) + // startCharCode
  19870. string32(range[1]) + // endCharCode
  19871. string32(code); // startGlyphID
  19872. }
  19873. header31012 = '\x00\x0C' + // format
  19874. '\x00\x00' + // reserved
  19875. string32(format31012.length + 16) + // length
  19876. '\x00\x00\x00\x00' + // language
  19877. string32(format31012.length / 12); // nGroups
  19878. }
  19879. return stringToArray(cmap +
  19880. '\x00\x04' + // format
  19881. string16(format314.length + 4) + // length
  19882. format314 + header31012 + format31012);
  19883. }
  19884. function validateOS2Table(os2) {
  19885. var stream = new Stream(os2.data);
  19886. var version = stream.getUint16();
  19887. // TODO verify all OS/2 tables fields, but currently we validate only those
  19888. // that give us issues
  19889. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  19890. var selection = stream.getUint16();
  19891. if (version < 4 && (selection & 0x0300)) {
  19892. return false;
  19893. }
  19894. var firstChar = stream.getUint16();
  19895. var lastChar = stream.getUint16();
  19896. if (firstChar > lastChar) {
  19897. return false;
  19898. }
  19899. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  19900. var usWinAscent = stream.getUint16();
  19901. if (usWinAscent === 0) { // makes font unreadable by windows
  19902. return false;
  19903. }
  19904. // OS/2 appears to be valid, resetting some fields
  19905. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  19906. return true;
  19907. }
  19908. function createOS2Table(properties, charstrings, override) {
  19909. override = override || {
  19910. unitsPerEm: 0,
  19911. yMax: 0,
  19912. yMin: 0,
  19913. ascent: 0,
  19914. descent: 0
  19915. };
  19916. var ulUnicodeRange1 = 0;
  19917. var ulUnicodeRange2 = 0;
  19918. var ulUnicodeRange3 = 0;
  19919. var ulUnicodeRange4 = 0;
  19920. var firstCharIndex = null;
  19921. var lastCharIndex = 0;
  19922. if (charstrings) {
  19923. for (var code in charstrings) {
  19924. code |= 0;
  19925. if (firstCharIndex > code || !firstCharIndex) {
  19926. firstCharIndex = code;
  19927. }
  19928. if (lastCharIndex < code) {
  19929. lastCharIndex = code;
  19930. }
  19931. var position = getUnicodeRangeFor(code);
  19932. if (position < 32) {
  19933. ulUnicodeRange1 |= 1 << position;
  19934. } else if (position < 64) {
  19935. ulUnicodeRange2 |= 1 << position - 32;
  19936. } else if (position < 96) {
  19937. ulUnicodeRange3 |= 1 << position - 64;
  19938. } else if (position < 123) {
  19939. ulUnicodeRange4 |= 1 << position - 96;
  19940. } else {
  19941. error('Unicode ranges Bits > 123 are reserved for internal usage');
  19942. }
  19943. }
  19944. } else {
  19945. // TODO
  19946. firstCharIndex = 0;
  19947. lastCharIndex = 255;
  19948. }
  19949. var bbox = properties.bbox || [0, 0, 0, 0];
  19950. var unitsPerEm = (override.unitsPerEm ||
  19951. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  19952. // if the font units differ to the PDF glyph space units
  19953. // then scale up the values
  19954. var scale = (properties.ascentScaled ? 1.0 :
  19955. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  19956. var typoAscent = (override.ascent ||
  19957. Math.round(scale * (properties.ascent || bbox[3])));
  19958. var typoDescent = (override.descent ||
  19959. Math.round(scale * (properties.descent || bbox[1])));
  19960. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  19961. typoDescent = -typoDescent; // fixing incorrect descent
  19962. }
  19963. var winAscent = override.yMax || typoAscent;
  19964. var winDescent = -override.yMin || -typoDescent;
  19965. return '\x00\x03' + // version
  19966. '\x02\x24' + // xAvgCharWidth
  19967. '\x01\xF4' + // usWeightClass
  19968. '\x00\x05' + // usWidthClass
  19969. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  19970. '\x02\x8A' + // ySubscriptXSize
  19971. '\x02\xBB' + // ySubscriptYSize
  19972. '\x00\x00' + // ySubscriptXOffset
  19973. '\x00\x8C' + // ySubscriptYOffset
  19974. '\x02\x8A' + // ySuperScriptXSize
  19975. '\x02\xBB' + // ySuperScriptYSize
  19976. '\x00\x00' + // ySuperScriptXOffset
  19977. '\x01\xDF' + // ySuperScriptYOffset
  19978. '\x00\x31' + // yStrikeOutSize
  19979. '\x01\x02' + // yStrikeOutPosition
  19980. '\x00\x00' + // sFamilyClass
  19981. '\x00\x00\x06' +
  19982. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  19983. '\x00\x00\x00\x00\x00\x00' + // Panose
  19984. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  19985. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  19986. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  19987. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  19988. '\x2A\x32\x31\x2A' + // achVendID
  19989. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  19990. string16(firstCharIndex ||
  19991. properties.firstChar) + // usFirstCharIndex
  19992. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  19993. string16(typoAscent) + // sTypoAscender
  19994. string16(typoDescent) + // sTypoDescender
  19995. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  19996. string16(winAscent) + // usWinAscent
  19997. string16(winDescent) + // usWinDescent
  19998. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  19999. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  20000. string16(properties.xHeight) + // sxHeight
  20001. string16(properties.capHeight) + // sCapHeight
  20002. string16(0) + // usDefaultChar
  20003. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  20004. '\x00\x03'; // usMaxContext
  20005. }
  20006. function createPostTable(properties) {
  20007. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  20008. return ('\x00\x03\x00\x00' + // Version number
  20009. string32(angle) + // italicAngle
  20010. '\x00\x00' + // underlinePosition
  20011. '\x00\x00' + // underlineThickness
  20012. string32(properties.fixedPitch) + // isFixedPitch
  20013. '\x00\x00\x00\x00' + // minMemType42
  20014. '\x00\x00\x00\x00' + // maxMemType42
  20015. '\x00\x00\x00\x00' + // minMemType1
  20016. '\x00\x00\x00\x00'); // maxMemType1
  20017. }
  20018. function createNameTable(name, proto) {
  20019. if (!proto) {
  20020. proto = [[], []]; // no strings and unicode strings
  20021. }
  20022. var strings = [
  20023. proto[0][0] || 'Original licence', // 0.Copyright
  20024. proto[0][1] || name, // 1.Font family
  20025. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  20026. proto[0][3] || 'uniqueID', // 3.Unique ID
  20027. proto[0][4] || name, // 4.Full font name
  20028. proto[0][5] || 'Version 0.11', // 5.Version
  20029. proto[0][6] || '', // 6.Postscript name
  20030. proto[0][7] || 'Unknown', // 7.Trademark
  20031. proto[0][8] || 'Unknown', // 8.Manufacturer
  20032. proto[0][9] || 'Unknown' // 9.Designer
  20033. ];
  20034. // Mac want 1-byte per character strings while Windows want
  20035. // 2-bytes per character, so duplicate the names table
  20036. var stringsUnicode = [];
  20037. var i, ii, j, jj, str;
  20038. for (i = 0, ii = strings.length; i < ii; i++) {
  20039. str = proto[1][i] || strings[i];
  20040. var strBufUnicode = [];
  20041. for (j = 0, jj = str.length; j < jj; j++) {
  20042. strBufUnicode.push(string16(str.charCodeAt(j)));
  20043. }
  20044. stringsUnicode.push(strBufUnicode.join(''));
  20045. }
  20046. var names = [strings, stringsUnicode];
  20047. var platforms = ['\x00\x01', '\x00\x03'];
  20048. var encodings = ['\x00\x00', '\x00\x01'];
  20049. var languages = ['\x00\x00', '\x04\x09'];
  20050. var namesRecordCount = strings.length * platforms.length;
  20051. var nameTable =
  20052. '\x00\x00' + // format
  20053. string16(namesRecordCount) + // Number of names Record
  20054. string16(namesRecordCount * 12 + 6); // Storage
  20055. // Build the name records field
  20056. var strOffset = 0;
  20057. for (i = 0, ii = platforms.length; i < ii; i++) {
  20058. var strs = names[i];
  20059. for (j = 0, jj = strs.length; j < jj; j++) {
  20060. str = strs[j];
  20061. var nameRecord =
  20062. platforms[i] + // platform ID
  20063. encodings[i] + // encoding ID
  20064. languages[i] + // language ID
  20065. string16(j) + // name ID
  20066. string16(str.length) +
  20067. string16(strOffset);
  20068. nameTable += nameRecord;
  20069. strOffset += str.length;
  20070. }
  20071. }
  20072. nameTable += strings.join('') + stringsUnicode.join('');
  20073. return nameTable;
  20074. }
  20075. Font.prototype = {
  20076. name: null,
  20077. font: null,
  20078. mimetype: null,
  20079. encoding: null,
  20080. get renderer() {
  20081. var renderer = FontRendererFactory.create(this);
  20082. return shadow(this, 'renderer', renderer);
  20083. },
  20084. exportData: function Font_exportData() {
  20085. var data = {};
  20086. for (var i in this) {
  20087. if (this.hasOwnProperty(i)) {
  20088. data[i] = this[i];
  20089. }
  20090. }
  20091. return data;
  20092. },
  20093. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  20094. function readTableEntry(file) {
  20095. var tag = bytesToString(file.getBytes(4));
  20096. var checksum = file.getInt32();
  20097. var offset = file.getInt32() >>> 0;
  20098. var length = file.getInt32() >>> 0;
  20099. // Read the table associated data
  20100. var previousPosition = file.pos;
  20101. file.pos = file.start ? file.start : 0;
  20102. file.skip(offset);
  20103. var data = file.getBytes(length);
  20104. file.pos = previousPosition;
  20105. if (tag == 'head') {
  20106. // clearing checksum adjustment
  20107. data[8] = data[9] = data[10] = data[11] = 0;
  20108. data[17] |= 0x20; //Set font optimized for cleartype flag
  20109. }
  20110. return {
  20111. tag: tag,
  20112. checksum: checksum,
  20113. length: length,
  20114. offset: offset,
  20115. data: data
  20116. };
  20117. }
  20118. function readOpenTypeHeader(ttf) {
  20119. return {
  20120. version: bytesToString(ttf.getBytes(4)),
  20121. numTables: ttf.getUint16(),
  20122. searchRange: ttf.getUint16(),
  20123. entrySelector: ttf.getUint16(),
  20124. rangeShift: ttf.getUint16()
  20125. };
  20126. }
  20127. /**
  20128. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  20129. * PDF spec
  20130. */
  20131. function readCmapTable(cmap, font, isSymbolicFont) {
  20132. var segment;
  20133. var start = (font.start ? font.start : 0) + cmap.offset;
  20134. font.pos = start;
  20135. var version = font.getUint16();
  20136. var numTables = font.getUint16();
  20137. var potentialTable;
  20138. var canBreak = false;
  20139. // There's an order of preference in terms of which cmap subtable to
  20140. // use:
  20141. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  20142. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  20143. // The following takes advantage of the fact that the tables are sorted
  20144. // to work.
  20145. for (var i = 0; i < numTables; i++) {
  20146. var platformId = font.getUint16();
  20147. var encodingId = font.getUint16();
  20148. var offset = font.getInt32() >>> 0;
  20149. var useTable = false;
  20150. if (platformId == 1 && encodingId === 0) {
  20151. useTable = true;
  20152. // Continue the loop since there still may be a higher priority
  20153. // table.
  20154. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  20155. useTable = true;
  20156. canBreak = true;
  20157. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  20158. useTable = true;
  20159. canBreak = true;
  20160. }
  20161. if (useTable) {
  20162. potentialTable = {
  20163. platformId: platformId,
  20164. encodingId: encodingId,
  20165. offset: offset
  20166. };
  20167. }
  20168. if (canBreak) {
  20169. break;
  20170. }
  20171. }
  20172. if (!potentialTable) {
  20173. warn('Could not find a preferred cmap table.');
  20174. return [];
  20175. }
  20176. font.pos = start + potentialTable.offset;
  20177. var format = font.getUint16();
  20178. var length = font.getUint16();
  20179. var language = font.getUint16();
  20180. var hasShortCmap = false;
  20181. var mappings = [];
  20182. var j, glyphId;
  20183. // TODO(mack): refactor this cmap subtable reading logic out
  20184. if (format === 0) {
  20185. for (j = 0; j < 256; j++) {
  20186. var index = font.getByte();
  20187. if (!index) {
  20188. continue;
  20189. }
  20190. mappings.push({
  20191. charCode: j,
  20192. glyphId: index
  20193. });
  20194. }
  20195. hasShortCmap = true;
  20196. } else if (format === 4) {
  20197. // re-creating the table in format 4 since the encoding
  20198. // might be changed
  20199. var segCount = (font.getUint16() >> 1);
  20200. font.getBytes(6); // skipping range fields
  20201. var segIndex, segments = [];
  20202. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20203. segments.push({ end: font.getUint16() });
  20204. }
  20205. font.getUint16();
  20206. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20207. segments[segIndex].start = font.getUint16();
  20208. }
  20209. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20210. segments[segIndex].delta = font.getUint16();
  20211. }
  20212. var offsetsCount = 0;
  20213. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20214. segment = segments[segIndex];
  20215. var rangeOffset = font.getUint16();
  20216. if (!rangeOffset) {
  20217. segment.offsetIndex = -1;
  20218. continue;
  20219. }
  20220. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  20221. segment.offsetIndex = offsetIndex;
  20222. offsetsCount = Math.max(offsetsCount, offsetIndex +
  20223. segment.end - segment.start + 1);
  20224. }
  20225. var offsets = [];
  20226. for (j = 0; j < offsetsCount; j++) {
  20227. offsets.push(font.getUint16());
  20228. }
  20229. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20230. segment = segments[segIndex];
  20231. start = segment.start;
  20232. var end = segment.end;
  20233. var delta = segment.delta;
  20234. offsetIndex = segment.offsetIndex;
  20235. for (j = start; j <= end; j++) {
  20236. if (j == 0xFFFF) {
  20237. continue;
  20238. }
  20239. glyphId = (offsetIndex < 0 ?
  20240. j : offsets[offsetIndex + j - start]);
  20241. glyphId = (glyphId + delta) & 0xFFFF;
  20242. if (glyphId === 0) {
  20243. continue;
  20244. }
  20245. mappings.push({
  20246. charCode: j,
  20247. glyphId: glyphId
  20248. });
  20249. }
  20250. }
  20251. } else if (format == 6) {
  20252. // Format 6 is a 2-bytes dense mapping, which means the font data
  20253. // lives glue together even if they are pretty far in the unicode
  20254. // table. (This looks weird, so I can have missed something), this
  20255. // works on Linux but seems to fails on Mac so let's rewrite the
  20256. // cmap table to a 3-1-4 style
  20257. var firstCode = font.getUint16();
  20258. var entryCount = font.getUint16();
  20259. for (j = 0; j < entryCount; j++) {
  20260. glyphId = font.getUint16();
  20261. var charCode = firstCode + j;
  20262. mappings.push({
  20263. charCode: charCode,
  20264. glyphId: glyphId
  20265. });
  20266. }
  20267. } else {
  20268. error('cmap table has unsupported format: ' + format);
  20269. }
  20270. // removing duplicate entries
  20271. mappings.sort(function (a, b) {
  20272. return a.charCode - b.charCode;
  20273. });
  20274. for (i = 1; i < mappings.length; i++) {
  20275. if (mappings[i - 1].charCode === mappings[i].charCode) {
  20276. mappings.splice(i, 1);
  20277. i--;
  20278. }
  20279. }
  20280. return {
  20281. platformId: potentialTable.platformId,
  20282. encodingId: potentialTable.encodingId,
  20283. mappings: mappings,
  20284. hasShortCmap: hasShortCmap
  20285. };
  20286. }
  20287. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  20288. if (!header) {
  20289. if (metrics) {
  20290. metrics.data = null;
  20291. }
  20292. return;
  20293. }
  20294. font.pos = (font.start ? font.start : 0) + header.offset;
  20295. font.pos += header.length - 2;
  20296. var numOfMetrics = font.getUint16();
  20297. if (numOfMetrics > numGlyphs) {
  20298. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  20299. 'greater than the numGlyphs (' + numGlyphs + ')');
  20300. // Reduce numOfMetrics if it is greater than numGlyphs
  20301. numOfMetrics = numGlyphs;
  20302. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  20303. header.data[35] = numOfMetrics & 0x00ff;
  20304. }
  20305. var numOfSidebearings = numGlyphs - numOfMetrics;
  20306. var numMissing = numOfSidebearings -
  20307. ((metrics.length - numOfMetrics * 4) >> 1);
  20308. var i, ii;
  20309. if (numMissing > 0) {
  20310. font.pos = (font.start ? font.start : 0) + metrics.offset;
  20311. var entries = '';
  20312. for (i = 0, ii = metrics.length; i < ii; i++) {
  20313. entries += String.fromCharCode(font.getByte());
  20314. }
  20315. for (i = 0; i < numMissing; i++) {
  20316. entries += '\x00\x00';
  20317. }
  20318. metrics.data = stringToArray(entries);
  20319. }
  20320. }
  20321. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  20322. hintsValid) {
  20323. if (sourceEnd - sourceStart <= 12) {
  20324. // glyph with data less than 12 is invalid one
  20325. return 0;
  20326. }
  20327. var glyf = source.subarray(sourceStart, sourceEnd);
  20328. var contoursCount = (glyf[0] << 8) | glyf[1];
  20329. if (contoursCount & 0x8000) {
  20330. // complex glyph, writing as is
  20331. dest.set(glyf, destStart);
  20332. return glyf.length;
  20333. }
  20334. var i, j = 10, flagsCount = 0;
  20335. for (i = 0; i < contoursCount; i++) {
  20336. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  20337. flagsCount = endPoint + 1;
  20338. j += 2;
  20339. }
  20340. // skipping instructions
  20341. var instructionsStart = j;
  20342. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  20343. j += 2 + instructionsLength;
  20344. var instructionsEnd = j;
  20345. // validating flags
  20346. var coordinatesLength = 0;
  20347. for (i = 0; i < flagsCount; i++) {
  20348. var flag = glyf[j++];
  20349. if (flag & 0xC0) {
  20350. // reserved flags must be zero, cleaning up
  20351. glyf[j - 1] = flag & 0x3F;
  20352. }
  20353. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  20354. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  20355. coordinatesLength += xyLength;
  20356. if (flag & 8) {
  20357. var repeat = glyf[j++];
  20358. i += repeat;
  20359. coordinatesLength += repeat * xyLength;
  20360. }
  20361. }
  20362. // glyph without coordinates will be rejected
  20363. if (coordinatesLength === 0) {
  20364. return 0;
  20365. }
  20366. var glyphDataLength = j + coordinatesLength;
  20367. if (glyphDataLength > glyf.length) {
  20368. // not enough data for coordinates
  20369. return 0;
  20370. }
  20371. if (!hintsValid && instructionsLength > 0) {
  20372. dest.set(glyf.subarray(0, instructionsStart), destStart);
  20373. dest.set([0, 0], destStart + instructionsStart);
  20374. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  20375. destStart + instructionsStart + 2);
  20376. glyphDataLength -= instructionsLength;
  20377. if (glyf.length - glyphDataLength > 3) {
  20378. glyphDataLength = (glyphDataLength + 3) & ~3;
  20379. }
  20380. return glyphDataLength;
  20381. }
  20382. if (glyf.length - glyphDataLength > 3) {
  20383. // truncating and aligning to 4 bytes the long glyph data
  20384. glyphDataLength = (glyphDataLength + 3) & ~3;
  20385. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  20386. return glyphDataLength;
  20387. }
  20388. // glyph data is fine
  20389. dest.set(glyf, destStart);
  20390. return glyf.length;
  20391. }
  20392. function sanitizeHead(head, numGlyphs, locaLength) {
  20393. var data = head.data;
  20394. // Validate version:
  20395. // Should always be 0x00010000
  20396. var version = int32(data[0], data[1], data[2], data[3]);
  20397. if (version >> 16 !== 1) {
  20398. info('Attempting to fix invalid version in head table: ' + version);
  20399. data[0] = 0;
  20400. data[1] = 1;
  20401. data[2] = 0;
  20402. data[3] = 0;
  20403. }
  20404. var indexToLocFormat = int16(data[50], data[51]);
  20405. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  20406. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  20407. indexToLocFormat);
  20408. // The value of indexToLocFormat should be 0 if the loca table
  20409. // consists of short offsets, and should be 1 if the loca table
  20410. // consists of long offsets.
  20411. //
  20412. // The number of entries in the loca table should be numGlyphs + 1.
  20413. //
  20414. // Using this information, we can work backwards to deduce if the
  20415. // size of each offset in the loca table, and thus figure out the
  20416. // appropriate value for indexToLocFormat.
  20417. var numGlyphsPlusOne = numGlyphs + 1;
  20418. if (locaLength === numGlyphsPlusOne << 1) {
  20419. // 0x0000 indicates the loca table consists of short offsets
  20420. data[50] = 0;
  20421. data[51] = 0;
  20422. } else if (locaLength === numGlyphsPlusOne << 2) {
  20423. // 0x0001 indicates the loca table consists of long offsets
  20424. data[50] = 0;
  20425. data[51] = 1;
  20426. } else {
  20427. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  20428. }
  20429. }
  20430. }
  20431. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  20432. isGlyphLocationsLong, hintsValid,
  20433. dupFirstEntry) {
  20434. var itemSize, itemDecode, itemEncode;
  20435. if (isGlyphLocationsLong) {
  20436. itemSize = 4;
  20437. itemDecode = function fontItemDecodeLong(data, offset) {
  20438. return (data[offset] << 24) | (data[offset + 1] << 16) |
  20439. (data[offset + 2] << 8) | data[offset + 3];
  20440. };
  20441. itemEncode = function fontItemEncodeLong(data, offset, value) {
  20442. data[offset] = (value >>> 24) & 0xFF;
  20443. data[offset + 1] = (value >> 16) & 0xFF;
  20444. data[offset + 2] = (value >> 8) & 0xFF;
  20445. data[offset + 3] = value & 0xFF;
  20446. };
  20447. } else {
  20448. itemSize = 2;
  20449. itemDecode = function fontItemDecode(data, offset) {
  20450. return (data[offset] << 9) | (data[offset + 1] << 1);
  20451. };
  20452. itemEncode = function fontItemEncode(data, offset, value) {
  20453. data[offset] = (value >> 9) & 0xFF;
  20454. data[offset + 1] = (value >> 1) & 0xFF;
  20455. };
  20456. }
  20457. var locaData = loca.data;
  20458. var locaDataSize = itemSize * (1 + numGlyphs);
  20459. // is loca.data too short or long?
  20460. if (locaData.length !== locaDataSize) {
  20461. locaData = new Uint8Array(locaDataSize);
  20462. locaData.set(loca.data.subarray(0, locaDataSize));
  20463. loca.data = locaData;
  20464. }
  20465. // removing the invalid glyphs
  20466. var oldGlyfData = glyf.data;
  20467. var oldGlyfDataLength = oldGlyfData.length;
  20468. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  20469. var startOffset = itemDecode(locaData, 0);
  20470. var writeOffset = 0;
  20471. itemEncode(locaData, 0, writeOffset);
  20472. var i, j;
  20473. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20474. var endOffset = itemDecode(locaData, j);
  20475. if (endOffset > oldGlyfDataLength &&
  20476. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  20477. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  20478. // the glyf table size, which makes last glyph out of range.
  20479. endOffset = oldGlyfDataLength;
  20480. }
  20481. if (endOffset > oldGlyfDataLength) {
  20482. // glyph end offset points outside glyf data, rejecting the glyph
  20483. itemEncode(locaData, j, writeOffset);
  20484. startOffset = endOffset;
  20485. continue;
  20486. }
  20487. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  20488. newGlyfData, writeOffset, hintsValid);
  20489. writeOffset += newLength;
  20490. itemEncode(locaData, j, writeOffset);
  20491. startOffset = endOffset;
  20492. }
  20493. if (writeOffset === 0) {
  20494. // glyf table cannot be empty -- redoing the glyf and loca tables
  20495. // to have single glyph with one point
  20496. var simpleGlyph = new Uint8Array(
  20497. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  20498. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20499. itemEncode(locaData, j, simpleGlyph.length);
  20500. }
  20501. glyf.data = simpleGlyph;
  20502. return;
  20503. }
  20504. if (dupFirstEntry) {
  20505. var firstEntryLength = itemDecode(locaData, itemSize);
  20506. if (newGlyfData.length > firstEntryLength + writeOffset) {
  20507. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  20508. } else {
  20509. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  20510. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  20511. }
  20512. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  20513. itemEncode(loca.data, locaData.length - itemSize,
  20514. writeOffset + firstEntryLength);
  20515. } else {
  20516. glyf.data = newGlyfData.subarray(0, writeOffset);
  20517. }
  20518. }
  20519. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  20520. var start = (font.start ? font.start : 0) + post.offset;
  20521. font.pos = start;
  20522. var length = post.length, end = start + length;
  20523. var version = font.getInt32();
  20524. // skip rest to the tables
  20525. font.getBytes(28);
  20526. var glyphNames;
  20527. var valid = true;
  20528. var i;
  20529. switch (version) {
  20530. case 0x00010000:
  20531. glyphNames = MacStandardGlyphOrdering;
  20532. break;
  20533. case 0x00020000:
  20534. var numGlyphs = font.getUint16();
  20535. if (numGlyphs != maxpNumGlyphs) {
  20536. valid = false;
  20537. break;
  20538. }
  20539. var glyphNameIndexes = [];
  20540. for (i = 0; i < numGlyphs; ++i) {
  20541. var index = font.getUint16();
  20542. if (index >= 32768) {
  20543. valid = false;
  20544. break;
  20545. }
  20546. glyphNameIndexes.push(index);
  20547. }
  20548. if (!valid) {
  20549. break;
  20550. }
  20551. var customNames = [];
  20552. while (font.pos < end) {
  20553. var stringLength = font.getByte();
  20554. var string = '';
  20555. for (i = 0; i < stringLength; ++i) {
  20556. string += String.fromCharCode(font.getByte());
  20557. }
  20558. customNames.push(string);
  20559. }
  20560. glyphNames = [];
  20561. for (i = 0; i < numGlyphs; ++i) {
  20562. var j = glyphNameIndexes[i];
  20563. if (j < 258) {
  20564. glyphNames.push(MacStandardGlyphOrdering[j]);
  20565. continue;
  20566. }
  20567. glyphNames.push(customNames[j - 258]);
  20568. }
  20569. break;
  20570. case 0x00030000:
  20571. break;
  20572. default:
  20573. warn('Unknown/unsupported post table version ' + version);
  20574. valid = false;
  20575. break;
  20576. }
  20577. properties.glyphNames = glyphNames;
  20578. return valid;
  20579. }
  20580. function readNameTable(nameTable) {
  20581. var start = (font.start ? font.start : 0) + nameTable.offset;
  20582. font.pos = start;
  20583. var names = [[], []];
  20584. var length = nameTable.length, end = start + length;
  20585. var format = font.getUint16();
  20586. var FORMAT_0_HEADER_LENGTH = 6;
  20587. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  20588. // unsupported name table format or table "too" small
  20589. return names;
  20590. }
  20591. var numRecords = font.getUint16();
  20592. var stringsStart = font.getUint16();
  20593. var records = [];
  20594. var NAME_RECORD_LENGTH = 12;
  20595. var i, ii;
  20596. for (i = 0; i < numRecords &&
  20597. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  20598. var r = {
  20599. platform: font.getUint16(),
  20600. encoding: font.getUint16(),
  20601. language: font.getUint16(),
  20602. name: font.getUint16(),
  20603. length: font.getUint16(),
  20604. offset: font.getUint16()
  20605. };
  20606. // using only Macintosh and Windows platform/encoding names
  20607. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  20608. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  20609. records.push(r);
  20610. }
  20611. }
  20612. for (i = 0, ii = records.length; i < ii; i++) {
  20613. var record = records[i];
  20614. var pos = start + stringsStart + record.offset;
  20615. if (pos + record.length > end) {
  20616. continue; // outside of name table, ignoring
  20617. }
  20618. font.pos = pos;
  20619. var nameIndex = record.name;
  20620. if (record.encoding) {
  20621. // unicode
  20622. var str = '';
  20623. for (var j = 0, jj = record.length; j < jj; j += 2) {
  20624. str += String.fromCharCode(font.getUint16());
  20625. }
  20626. names[1][nameIndex] = str;
  20627. } else {
  20628. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  20629. }
  20630. }
  20631. return names;
  20632. }
  20633. var TTOpsStackDeltas = [
  20634. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  20635. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  20636. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  20637. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  20638. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  20639. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  20640. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  20641. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  20642. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  20643. // 0xC0-DF == -1 and 0xE0-FF == -2
  20644. function sanitizeTTProgram(table, ttContext) {
  20645. var data = table.data;
  20646. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  20647. var stack = [];
  20648. var callstack = [];
  20649. var functionsCalled = [];
  20650. var tooComplexToFollowFunctions =
  20651. ttContext.tooComplexToFollowFunctions;
  20652. var inFDEF = false, ifLevel = 0, inELSE = 0;
  20653. for (var ii = data.length; i < ii;) {
  20654. var op = data[i++];
  20655. // The TrueType instruction set docs can be found at
  20656. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  20657. if (op === 0x40) { // NPUSHB - pushes n bytes
  20658. n = data[i++];
  20659. if (inFDEF || inELSE) {
  20660. i += n;
  20661. } else {
  20662. for (j = 0; j < n; j++) {
  20663. stack.push(data[i++]);
  20664. }
  20665. }
  20666. } else if (op === 0x41) { // NPUSHW - pushes n words
  20667. n = data[i++];
  20668. if (inFDEF || inELSE) {
  20669. i += n * 2;
  20670. } else {
  20671. for (j = 0; j < n; j++) {
  20672. b = data[i++];
  20673. stack.push((b << 8) | data[i++]);
  20674. }
  20675. }
  20676. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  20677. n = op - 0xB0 + 1;
  20678. if (inFDEF || inELSE) {
  20679. i += n;
  20680. } else {
  20681. for (j = 0; j < n; j++) {
  20682. stack.push(data[i++]);
  20683. }
  20684. }
  20685. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  20686. n = op - 0xB8 + 1;
  20687. if (inFDEF || inELSE) {
  20688. i += n * 2;
  20689. } else {
  20690. for (j = 0; j < n; j++) {
  20691. b = data[i++];
  20692. stack.push((b << 8) | data[i++]);
  20693. }
  20694. }
  20695. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  20696. if (!inFDEF && !inELSE) {
  20697. // collecting inforamtion about which functions are used
  20698. funcId = stack[stack.length - 1];
  20699. ttContext.functionsUsed[funcId] = true;
  20700. if (funcId in ttContext.functionsStackDeltas) {
  20701. stack.length += ttContext.functionsStackDeltas[funcId];
  20702. } else if (funcId in ttContext.functionsDefined &&
  20703. functionsCalled.indexOf(funcId) < 0) {
  20704. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  20705. functionsCalled.push(funcId);
  20706. pc = ttContext.functionsDefined[funcId];
  20707. if (!pc) {
  20708. warn('TT: CALL non-existent function');
  20709. ttContext.hintsValid = false;
  20710. return;
  20711. }
  20712. data = pc.data;
  20713. i = pc.i;
  20714. }
  20715. }
  20716. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  20717. if (inFDEF || inELSE) {
  20718. warn('TT: nested FDEFs not allowed');
  20719. tooComplexToFollowFunctions = true;
  20720. }
  20721. inFDEF = true;
  20722. // collecting inforamtion about which functions are defined
  20723. lastDeff = i;
  20724. funcId = stack.pop();
  20725. ttContext.functionsDefined[funcId] = {data: data, i: i};
  20726. } else if (op === 0x2D) { // ENDF - end of function
  20727. if (inFDEF) {
  20728. inFDEF = false;
  20729. lastEndf = i;
  20730. } else {
  20731. pc = callstack.pop();
  20732. if (!pc) {
  20733. warn('TT: ENDF bad stack');
  20734. ttContext.hintsValid = false;
  20735. return;
  20736. }
  20737. funcId = functionsCalled.pop();
  20738. data = pc.data;
  20739. i = pc.i;
  20740. ttContext.functionsStackDeltas[funcId] =
  20741. stack.length - pc.stackTop;
  20742. }
  20743. } else if (op === 0x89) { // IDEF - instruction definition
  20744. if (inFDEF || inELSE) {
  20745. warn('TT: nested IDEFs not allowed');
  20746. tooComplexToFollowFunctions = true;
  20747. }
  20748. inFDEF = true;
  20749. // recording it as a function to track ENDF
  20750. lastDeff = i;
  20751. } else if (op === 0x58) { // IF
  20752. ++ifLevel;
  20753. } else if (op === 0x1B) { // ELSE
  20754. inELSE = ifLevel;
  20755. } else if (op === 0x59) { // EIF
  20756. if (inELSE === ifLevel) {
  20757. inELSE = 0;
  20758. }
  20759. --ifLevel;
  20760. } else if (op === 0x1C) { // JMPR
  20761. if (!inFDEF && !inELSE) {
  20762. var offset = stack[stack.length - 1];
  20763. // only jumping forward to prevent infinite loop
  20764. if (offset > 0) {
  20765. i += offset - 1;
  20766. }
  20767. }
  20768. }
  20769. // Adjusting stack not extactly, but just enough to get function id
  20770. if (!inFDEF && !inELSE) {
  20771. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  20772. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  20773. if (op >= 0x71 && op <= 0x75) {
  20774. n = stack.pop();
  20775. if (n === n) {
  20776. stackDelta = -n * 2;
  20777. }
  20778. }
  20779. while (stackDelta < 0 && stack.length > 0) {
  20780. stack.pop();
  20781. stackDelta++;
  20782. }
  20783. while (stackDelta > 0) {
  20784. stack.push(NaN); // pushing any number into stack
  20785. stackDelta--;
  20786. }
  20787. }
  20788. }
  20789. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  20790. var content = [data];
  20791. if (i > data.length) {
  20792. content.push(new Uint8Array(i - data.length));
  20793. }
  20794. if (lastDeff > lastEndf) {
  20795. warn('TT: complementing a missing function tail');
  20796. // new function definition started, but not finished
  20797. // complete function by [CLEAR, ENDF]
  20798. content.push(new Uint8Array([0x22, 0x2D]));
  20799. }
  20800. foldTTTable(table, content);
  20801. }
  20802. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  20803. if (ttContext.tooComplexToFollowFunctions) {
  20804. return;
  20805. }
  20806. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  20807. warn('TT: more functions defined than expected');
  20808. ttContext.hintsValid = false;
  20809. return;
  20810. }
  20811. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  20812. if (j > maxFunctionDefs) {
  20813. warn('TT: invalid function id: ' + j);
  20814. ttContext.hintsValid = false;
  20815. return;
  20816. }
  20817. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  20818. warn('TT: undefined function: ' + j);
  20819. ttContext.hintsValid = false;
  20820. return;
  20821. }
  20822. }
  20823. }
  20824. function foldTTTable(table, content) {
  20825. if (content.length > 1) {
  20826. // concatenating the content items
  20827. var newLength = 0;
  20828. var j, jj;
  20829. for (j = 0, jj = content.length; j < jj; j++) {
  20830. newLength += content[j].length;
  20831. }
  20832. newLength = (newLength + 3) & ~3;
  20833. var result = new Uint8Array(newLength);
  20834. var pos = 0;
  20835. for (j = 0, jj = content.length; j < jj; j++) {
  20836. result.set(content[j], pos);
  20837. pos += content[j].length;
  20838. }
  20839. table.data = result;
  20840. table.length = newLength;
  20841. }
  20842. }
  20843. function sanitizeTTPrograms(fpgm, prep, cvt) {
  20844. var ttContext = {
  20845. functionsDefined: [],
  20846. functionsUsed: [],
  20847. functionsStackDeltas: [],
  20848. tooComplexToFollowFunctions: false,
  20849. hintsValid: true
  20850. };
  20851. if (fpgm) {
  20852. sanitizeTTProgram(fpgm, ttContext);
  20853. }
  20854. if (prep) {
  20855. sanitizeTTProgram(prep, ttContext);
  20856. }
  20857. if (fpgm) {
  20858. checkInvalidFunctions(ttContext, maxFunctionDefs);
  20859. }
  20860. if (cvt && (cvt.length & 1)) {
  20861. var cvtData = new Uint8Array(cvt.length + 1);
  20862. cvtData.set(cvt.data);
  20863. cvt.data = cvtData;
  20864. }
  20865. return ttContext.hintsValid;
  20866. }
  20867. // The following steps modify the original font data, making copy
  20868. font = new Stream(new Uint8Array(font.getBytes()));
  20869. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  20870. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  20871. var header = readOpenTypeHeader(font);
  20872. var numTables = header.numTables;
  20873. var cff, cffFile;
  20874. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  20875. hmtx: null, maxp: null, name: null, post: null };
  20876. var table, tableData;
  20877. for (var i = 0; i < numTables; i++) {
  20878. table = readTableEntry(font);
  20879. if (VALID_TABLES.indexOf(table.tag) < 0) {
  20880. continue; // skipping table if it's not a required or optional table
  20881. }
  20882. if (table.length === 0) {
  20883. continue; // skipping empty tables
  20884. }
  20885. tables[table.tag] = table;
  20886. }
  20887. var isTrueType = !tables['CFF '];
  20888. if (!isTrueType) {
  20889. // OpenType font
  20890. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  20891. // no major tables: throwing everything at CFFFont
  20892. cffFile = new Stream(tables['CFF '].data);
  20893. cff = new CFFFont(cffFile, properties);
  20894. return this.convert(name, cff, properties);
  20895. }
  20896. delete tables.glyf;
  20897. delete tables.loca;
  20898. delete tables.fpgm;
  20899. delete tables.prep;
  20900. delete tables['cvt '];
  20901. } else {
  20902. if (!tables.glyf || !tables.loca) {
  20903. error('Required "glyf" or "loca" tables are not found');
  20904. }
  20905. }
  20906. if (!tables.maxp) {
  20907. error('Required "maxp" table is not found');
  20908. }
  20909. font.pos = (font.start || 0) + tables.maxp.offset;
  20910. var version = font.getInt32();
  20911. var numGlyphs = font.getUint16();
  20912. var maxFunctionDefs = 0;
  20913. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  20914. // maxZones can be invalid
  20915. font.pos += 8;
  20916. var maxZones = font.getUint16();
  20917. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  20918. tables.maxp.data[14] = 0;
  20919. tables.maxp.data[15] = 2;
  20920. }
  20921. font.pos += 4;
  20922. maxFunctionDefs = font.getUint16();
  20923. }
  20924. var dupFirstEntry = false;
  20925. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  20926. properties.toUnicode[0] > '\u0000') {
  20927. // oracle's defect (see 3427), duplicating first entry
  20928. dupFirstEntry = true;
  20929. numGlyphs++;
  20930. tables.maxp.data[4] = numGlyphs >> 8;
  20931. tables.maxp.data[5] = numGlyphs & 255;
  20932. }
  20933. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  20934. tables['cvt '], maxFunctionDefs);
  20935. if (!hintsValid) {
  20936. delete tables.fpgm;
  20937. delete tables.prep;
  20938. delete tables['cvt '];
  20939. }
  20940. // Tables needs to be written by ascendant alphabetic order
  20941. var tablesNames = Object.keys(tables);
  20942. tablesNames.sort();
  20943. numTables = tablesNames.length;
  20944. // header and new offsets. Table entry information is appended to the
  20945. // end of file. The virtualOffset represents where to put the actual
  20946. // data of a particular table;
  20947. var ttf = {
  20948. file: '',
  20949. virtualOffset: numTables * (4 * 4)
  20950. };
  20951. // The new numbers of tables will be the last one plus the num
  20952. // of missing tables
  20953. createOpenTypeHeader(header.version, ttf, numTables);
  20954. // Ensure the hmtx table contains the advance width and
  20955. // sidebearings information for numGlyphs in the maxp table
  20956. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  20957. if (!tables.head) {
  20958. error('Required "head" table is not found');
  20959. }
  20960. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  20961. if (isTrueType) {
  20962. var isGlyphLocationsLong = int16(tables.head.data[50],
  20963. tables.head.data[51]);
  20964. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  20965. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  20966. }
  20967. if (!tables.hhea) {
  20968. error('Required "hhea" table is not found');
  20969. }
  20970. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  20971. // Sometimes it's 0. That needs to be fixed
  20972. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  20973. tables.hhea.data[10] = 0xFF;
  20974. tables.hhea.data[11] = 0xFF;
  20975. }
  20976. // The 'post' table has glyphs names.
  20977. if (tables.post) {
  20978. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  20979. if (!valid) {
  20980. tables.post = null;
  20981. }
  20982. }
  20983. var charCodeToGlyphId = [], charCode;
  20984. if (properties.type == 'CIDFontType2') {
  20985. var cidToGidMap = properties.cidToGidMap || [];
  20986. var cMap = properties.cMap.map;
  20987. for (charCode in cMap) {
  20988. charCode |= 0;
  20989. var cid = cMap[charCode];
  20990. assert(cid.length === 1, 'Max size of CID is 65,535');
  20991. cid = cid.charCodeAt(0);
  20992. var glyphId = -1;
  20993. if (cidToGidMap.length === 0) {
  20994. glyphId = charCode;
  20995. } else if (cid in cidToGidMap) {
  20996. glyphId = cidToGidMap[cid];
  20997. }
  20998. if (glyphId >= 0 && glyphId < numGlyphs) {
  20999. charCodeToGlyphId[charCode] = glyphId;
  21000. }
  21001. }
  21002. if (dupFirstEntry) {
  21003. charCodeToGlyphId[0] = numGlyphs - 1;
  21004. }
  21005. } else {
  21006. // Most of the following logic in this code branch is based on the
  21007. // 9.6.6.4 of the PDF spec.
  21008. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  21009. var cmapPlatformId = cmapTable.platformId;
  21010. var cmapEncodingId = cmapTable.encodingId;
  21011. var cmapMappings = cmapTable.mappings;
  21012. var cmapMappingsLength = cmapMappings.length;
  21013. var hasEncoding = properties.differences.length ||
  21014. !!properties.baseEncodingName;
  21015. // The spec seems to imply that if the font is symbolic the encoding
  21016. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  21017. // where the the font is symbolic and it has an encoding.
  21018. if (hasEncoding &&
  21019. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  21020. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  21021. var baseEncoding = [];
  21022. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  21023. properties.baseEncodingName === 'WinAnsiEncoding') {
  21024. baseEncoding = Encodings[properties.baseEncodingName];
  21025. }
  21026. for (charCode = 0; charCode < 256; charCode++) {
  21027. var glyphName;
  21028. if (this.differences && charCode in this.differences) {
  21029. glyphName = this.differences[charCode];
  21030. } else if (charCode in baseEncoding &&
  21031. baseEncoding[charCode] !== '') {
  21032. glyphName = baseEncoding[charCode];
  21033. } else {
  21034. glyphName = Encodings.StandardEncoding[charCode];
  21035. }
  21036. if (!glyphName) {
  21037. continue;
  21038. }
  21039. var unicodeOrCharCode;
  21040. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  21041. unicodeOrCharCode = GlyphsUnicode[glyphName];
  21042. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  21043. // TODO: the encoding needs to be updated with mac os table.
  21044. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  21045. }
  21046. var found = false;
  21047. for (i = 0; i < cmapMappingsLength; ++i) {
  21048. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  21049. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21050. found = true;
  21051. break;
  21052. }
  21053. }
  21054. if (!found && properties.glyphNames) {
  21055. // Try to map using the post table. There are currently no known
  21056. // pdfs that this fixes.
  21057. glyphId = properties.glyphNames.indexOf(glyphName);
  21058. if (glyphId > 0) {
  21059. charCodeToGlyphId[charCode] = glyphId;
  21060. }
  21061. }
  21062. }
  21063. } else {
  21064. // For (3, 0) cmap tables:
  21065. // The charcode key being stored in charCodeToGlyphId is the lower
  21066. // byte of the two-byte charcodes of the cmap table since according to
  21067. // the spec: 'each byte from the string shall be prepended with the
  21068. // high byte of the range [of charcodes in the cmap table], to form
  21069. // a two-byte character, which shall be used to select the
  21070. // associated glyph description from the subtable'.
  21071. //
  21072. // For (1, 0) cmap tables:
  21073. // 'single bytes from the string shall be used to look up the
  21074. // associated glyph descriptions from the subtable'. This means
  21075. // charcodes in the cmap will be single bytes, so no-op since
  21076. // glyph.charCode & 0xFF === glyph.charCode
  21077. for (i = 0; i < cmapMappingsLength; ++i) {
  21078. charCode = cmapMappings[i].charCode & 0xFF;
  21079. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21080. }
  21081. }
  21082. }
  21083. if (charCodeToGlyphId.length === 0) {
  21084. // defines at least one glyph
  21085. charCodeToGlyphId[0] = 0;
  21086. }
  21087. // Converting glyphs and ids into font's cmap table
  21088. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  21089. this.toFontChar = newMapping.toFontChar;
  21090. tables.cmap = {
  21091. tag: 'cmap',
  21092. data: createCmapTable(newMapping.charCodeToGlyphId)
  21093. };
  21094. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  21095. // extract some more font properties from the OpenType head and
  21096. // hhea tables; yMin and descent value are always negative
  21097. var override = {
  21098. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  21099. yMax: int16(tables.head.data[42], tables.head.data[43]),
  21100. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  21101. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  21102. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  21103. };
  21104. tables['OS/2'] = {
  21105. tag: 'OS/2',
  21106. data: stringToArray(createOS2Table(properties,
  21107. newMapping.charCodeToGlyphId,
  21108. override))
  21109. };
  21110. }
  21111. // Rewrite the 'post' table if needed
  21112. if (!tables.post) {
  21113. tables.post = {
  21114. tag: 'post',
  21115. data: stringToArray(createPostTable(properties))
  21116. };
  21117. }
  21118. if (!isTrueType) {
  21119. try {
  21120. // Trying to repair CFF file
  21121. cffFile = new Stream(tables['CFF '].data);
  21122. var parser = new CFFParser(cffFile, properties);
  21123. cff = parser.parse();
  21124. var compiler = new CFFCompiler(cff);
  21125. tables['CFF '].data = compiler.compile();
  21126. } catch (e) {
  21127. warn('Failed to compile font ' + properties.loadedName);
  21128. }
  21129. }
  21130. // Re-creating 'name' table
  21131. if (!tables.name) {
  21132. tables.name = {
  21133. tag: 'name',
  21134. data: stringToArray(createNameTable(this.name))
  21135. };
  21136. } else {
  21137. // ... using existing 'name' table as prototype
  21138. var namePrototype = readNameTable(tables.name);
  21139. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  21140. }
  21141. // rewrite the tables but tweak offsets
  21142. for (i = 0; i < numTables; i++) {
  21143. table = tables[tablesNames[i]];
  21144. var data = [];
  21145. tableData = table.data;
  21146. for (var j = 0, jj = tableData.length; j < jj; j++) {
  21147. data.push(tableData[j]);
  21148. }
  21149. createTableEntry(ttf, table.tag, data);
  21150. }
  21151. // Add the table datas
  21152. for (i = 0; i < numTables; i++) {
  21153. table = tables[tablesNames[i]];
  21154. tableData = table.data;
  21155. ttf.file += bytesToString(new Uint8Array(tableData));
  21156. // 4-byte aligned data
  21157. while (ttf.file.length & 3) {
  21158. ttf.file += String.fromCharCode(0);
  21159. }
  21160. }
  21161. return stringToArray(ttf.file);
  21162. },
  21163. convert: function Font_convert(fontName, font, properties) {
  21164. // The offsets object holds at the same time a representation of where
  21165. // to write the table entry information about a table and another offset
  21166. // representing the offset where to draw the actual data of a particular
  21167. // table
  21168. var otf = {
  21169. file: '',
  21170. virtualOffset: 9 * (4 * 4)
  21171. };
  21172. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  21173. // TODO: Check the charstring widths to determine this.
  21174. properties.fixedPitch = false;
  21175. var mapping = font.getGlyphMapping(properties);
  21176. var newMapping = adjustMapping(mapping, properties);
  21177. this.toFontChar = newMapping.toFontChar;
  21178. var numGlyphs = font.numGlyphs;
  21179. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  21180. for (var charCode in charCodeToGlyphId) {
  21181. if (glyphId === charCodeToGlyphId[charCode]) {
  21182. return charCode | 0;
  21183. }
  21184. }
  21185. if (addMap) {
  21186. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  21187. glyphId;
  21188. return newMapping.nextAvailableFontCharCode++;
  21189. }
  21190. return null;
  21191. }
  21192. var seacs = font.seacs;
  21193. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  21194. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  21195. var charset = font.getCharset();
  21196. var seacMap = Object.create(null);
  21197. for (var glyphId in seacs) {
  21198. glyphId |= 0;
  21199. var seac = seacs[glyphId];
  21200. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  21201. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  21202. var baseGlyphId = charset.indexOf(baseGlyphName);
  21203. var accentGlyphId = charset.indexOf(accentGlyphName);
  21204. if (baseGlyphId < 0 || accentGlyphId < 0) {
  21205. continue;
  21206. }
  21207. var accentOffset = {
  21208. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  21209. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  21210. };
  21211. var charCode = getCharCode(mapping, glyphId);
  21212. if (charCode === null) {
  21213. // There's no point in mapping it if the char code was never mapped
  21214. // to begin with.
  21215. continue;
  21216. }
  21217. // Find a fontCharCode that maps to the base and accent glyphs. If one
  21218. // doesn't exists, create it.
  21219. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  21220. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  21221. true);
  21222. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  21223. true);
  21224. seacMap[charCode] = {
  21225. baseFontCharCode: baseFontCharCode,
  21226. accentFontCharCode: accentFontCharCode,
  21227. accentOffset: accentOffset
  21228. };
  21229. }
  21230. properties.seacMap = seacMap;
  21231. }
  21232. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  21233. var fields = {
  21234. // PostScript Font Program
  21235. 'CFF ': font.data,
  21236. // OS/2 and Windows Specific metrics
  21237. 'OS/2': stringToArray(createOS2Table(properties,
  21238. newMapping.charCodeToGlyphId)),
  21239. // Character to glyphs mapping
  21240. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  21241. // Font header
  21242. 'head': (function fontFieldsHead() {
  21243. return stringToArray(
  21244. '\x00\x01\x00\x00' + // Version number
  21245. '\x00\x00\x10\x00' + // fontRevision
  21246. '\x00\x00\x00\x00' + // checksumAdjustement
  21247. '\x5F\x0F\x3C\xF5' + // magicNumber
  21248. '\x00\x00' + // Flags
  21249. safeString16(unitsPerEm) + // unitsPerEM
  21250. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  21251. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  21252. '\x00\x00' + // xMin
  21253. safeString16(properties.descent) + // yMin
  21254. '\x0F\xFF' + // xMax
  21255. safeString16(properties.ascent) + // yMax
  21256. string16(properties.italicAngle ? 2 : 0) + // macStyle
  21257. '\x00\x11' + // lowestRecPPEM
  21258. '\x00\x00' + // fontDirectionHint
  21259. '\x00\x00' + // indexToLocFormat
  21260. '\x00\x00'); // glyphDataFormat
  21261. })(),
  21262. // Horizontal header
  21263. 'hhea': (function fontFieldsHhea() {
  21264. return stringToArray(
  21265. '\x00\x01\x00\x00' + // Version number
  21266. safeString16(properties.ascent) + // Typographic Ascent
  21267. safeString16(properties.descent) + // Typographic Descent
  21268. '\x00\x00' + // Line Gap
  21269. '\xFF\xFF' + // advanceWidthMax
  21270. '\x00\x00' + // minLeftSidebearing
  21271. '\x00\x00' + // minRightSidebearing
  21272. '\x00\x00' + // xMaxExtent
  21273. safeString16(properties.capHeight) + // caretSlopeRise
  21274. safeString16(Math.tan(properties.italicAngle) *
  21275. properties.xHeight) + // caretSlopeRun
  21276. '\x00\x00' + // caretOffset
  21277. '\x00\x00' + // -reserved-
  21278. '\x00\x00' + // -reserved-
  21279. '\x00\x00' + // -reserved-
  21280. '\x00\x00' + // -reserved-
  21281. '\x00\x00' + // metricDataFormat
  21282. string16(numGlyphs)); // Number of HMetrics
  21283. })(),
  21284. // Horizontal metrics
  21285. 'hmtx': (function fontFieldsHmtx() {
  21286. var charstrings = font.charstrings;
  21287. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  21288. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  21289. // TODO: For CFF fonts the width should technically match th x in
  21290. // the glyph, but it doesn't seem to matter.
  21291. var charstring = charstrings ? charstrings[i - 1] : {};
  21292. var width = 'width' in charstring ? charstring.width : 0;
  21293. hmtx += string16(width) + string16(0);
  21294. }
  21295. return stringToArray(hmtx);
  21296. })(),
  21297. // Maximum profile
  21298. 'maxp': (function fontFieldsMaxp() {
  21299. return stringToArray(
  21300. '\x00\x00\x50\x00' + // Version number
  21301. string16(numGlyphs)); // Num of glyphs
  21302. })(),
  21303. // Naming tables
  21304. 'name': stringToArray(createNameTable(fontName)),
  21305. // PostScript informations
  21306. 'post': stringToArray(createPostTable(properties))
  21307. };
  21308. var field;
  21309. for (field in fields) {
  21310. createTableEntry(otf, field, fields[field]);
  21311. }
  21312. for (field in fields) {
  21313. var table = fields[field];
  21314. otf.file += bytesToString(new Uint8Array(table));
  21315. }
  21316. return stringToArray(otf.file);
  21317. },
  21318. /**
  21319. * Builds a char code to unicode map based on section 9.10 of the spec.
  21320. * @param {Object} properties Font properties object.
  21321. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  21322. * unicode (string) values and 'isIdentity' which is true if an identity map
  21323. * is used.
  21324. */
  21325. buildToUnicode: function Font_buildToUnicode(properties) {
  21326. var map = {
  21327. isIdentity: false,
  21328. toUnicode: null
  21329. };
  21330. // Section 9.10.2 Mapping Character Codes to Unicode Values
  21331. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  21332. map.toUnicode = properties.toUnicode;
  21333. return map;
  21334. }
  21335. // According to the spec if the font is a simple font we should only map
  21336. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  21337. // the differences array only contains adobe standard or symbol set names,
  21338. // in pratice it seems better to always try to create a toUnicode
  21339. // map based of the default encoding.
  21340. var toUnicode, charcode;
  21341. if (!properties.composite /* is simple font */) {
  21342. toUnicode = [];
  21343. var encoding = properties.defaultEncoding.slice();
  21344. // Merge in the differences array.
  21345. var differences = properties.differences;
  21346. for (charcode in differences) {
  21347. encoding[charcode] = differences[charcode];
  21348. }
  21349. for (charcode in encoding) {
  21350. // a) Map the character code to a character name.
  21351. var glyphName = encoding[charcode];
  21352. // b) Look up the character name in the Adobe Glyph List (see the
  21353. // Bibliography) to obtain the corresponding Unicode value.
  21354. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  21355. // (undocumented) c) Few heuristics to recognize unknown glyphs
  21356. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  21357. var code;
  21358. // Gxx glyph
  21359. if (glyphName.length === 3 &&
  21360. glyphName[0] === 'G' &&
  21361. (code = parseInt(glyphName.substr(1), 16))) {
  21362. toUnicode[charcode] = String.fromCharCode(code);
  21363. }
  21364. // Cddd glyph
  21365. if (glyphName.length >= 3 &&
  21366. glyphName[0] === 'C' &&
  21367. (code = +glyphName.substr(1))) {
  21368. toUnicode[charcode] = String.fromCharCode(code);
  21369. }
  21370. continue;
  21371. }
  21372. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  21373. }
  21374. map.toUnicode = toUnicode;
  21375. return map;
  21376. }
  21377. // If the font is a composite font that uses one of the predefined CMaps
  21378. // listed in Table 118 (except Identity–H and Identity–V) or whose
  21379. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  21380. // Adobe-Korea1 character collection:
  21381. if (properties.composite && (
  21382. (properties.cMap.builtInCMap &&
  21383. !(properties.cMap instanceof IdentityCMap)) ||
  21384. (properties.cidSystemInfo.registry === 'Adobe' &&
  21385. (properties.cidSystemInfo.ordering === 'GB1' ||
  21386. properties.cidSystemInfo.ordering === 'CNS1' ||
  21387. properties.cidSystemInfo.ordering === 'Japan1' ||
  21388. properties.cidSystemInfo.ordering === 'Korea1')))) {
  21389. // Then:
  21390. // a) Map the character code to a character identifier (CID) according
  21391. // to the font’s CMap.
  21392. // b) Obtain the registry and ordering of the character collection used
  21393. // by the font’s CMap (for example, Adobe and Japan1) from its
  21394. // CIDSystemInfo dictionary.
  21395. var registry = properties.cidSystemInfo.registry;
  21396. var ordering = properties.cidSystemInfo.ordering;
  21397. // c) Construct a second CMap name by concatenating the registry and
  21398. // ordering obtained in step (b) in the format registry–ordering–UCS2
  21399. // (for example, Adobe–Japan1–UCS2).
  21400. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  21401. // d) Obtain the CMap with the name constructed in step (c) (available
  21402. // from the ASN Web site; see the Bibliography).
  21403. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  21404. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  21405. var cMap = properties.cMap;
  21406. toUnicode = [];
  21407. for (charcode in cMap.map) {
  21408. var cid = cMap.map[charcode];
  21409. assert(cid.length === 1, 'Max size of CID is 65,535');
  21410. // e) Map the CID obtained in step (a) according to the CMap obtained
  21411. // in step (d), producing a Unicode value.
  21412. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  21413. if (!ucs2) {
  21414. continue;
  21415. }
  21416. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  21417. ucs2.charCodeAt(1));
  21418. }
  21419. map.toUnicode = toUnicode;
  21420. return map;
  21421. }
  21422. // The viewer's choice, just use an identity map.
  21423. toUnicode = [];
  21424. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  21425. for (var i = firstChar; i <= lastChar; i++) {
  21426. toUnicode[i] = String.fromCharCode(i);
  21427. }
  21428. map.isIdentity = true;
  21429. map.toUnicode = toUnicode;
  21430. return map;
  21431. },
  21432. get spaceWidth() {
  21433. if ('_shadowWidth' in this) {
  21434. return this._shadowWidth;
  21435. }
  21436. // trying to estimate space character width
  21437. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  21438. var width;
  21439. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  21440. var glyphName = possibleSpaceReplacements[i];
  21441. // if possible, getting width by glyph name
  21442. if (glyphName in this.widths) {
  21443. width = this.widths[glyphName];
  21444. break;
  21445. }
  21446. var glyphUnicode = GlyphsUnicode[glyphName];
  21447. // finding the charcode via unicodeToCID map
  21448. var charcode = 0;
  21449. if (this.composite) {
  21450. if (glyphUnicode in this.cMap.map) {
  21451. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  21452. }
  21453. }
  21454. // ... via toUnicode map
  21455. if (!charcode && 'toUnicode' in this) {
  21456. charcode = this.toUnicode.indexOf(glyphUnicode);
  21457. }
  21458. // setting it to unicode if negative or undefined
  21459. if (charcode <= 0) {
  21460. charcode = glyphUnicode;
  21461. }
  21462. // trying to get width via charcode
  21463. width = this.widths[charcode];
  21464. if (width) {
  21465. break; // the non-zero width found
  21466. }
  21467. }
  21468. width = width || this.defaultWidth;
  21469. // Do not shadow the property here. See discussion:
  21470. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  21471. this._shadowWidth = width;
  21472. return width;
  21473. },
  21474. charToGlyph: function Font_charToGlyph(charcode) {
  21475. var fontCharCode, width, operatorList;
  21476. var widthCode = charcode;
  21477. if (this.cMap && charcode in this.cMap.map) {
  21478. widthCode = this.cMap.map[charcode].charCodeAt(0);
  21479. }
  21480. width = this.widths[widthCode];
  21481. width = isNum(width) ? width : this.defaultWidth;
  21482. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  21483. var unicode = this.toUnicode[charcode] || charcode;
  21484. if (typeof unicode === 'number') {
  21485. unicode = String.fromCharCode(unicode);
  21486. }
  21487. // First try the toFontChar map, if it's not there then try falling
  21488. // back to the char code.
  21489. fontCharCode = this.toFontChar[charcode] || charcode;
  21490. if (this.missingFile) {
  21491. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  21492. }
  21493. if (this.type === 'Type3') {
  21494. // Font char code in this case is actually a glyph name.
  21495. operatorList = this.charProcOperatorList[fontCharCode];
  21496. }
  21497. var accent = null;
  21498. if (this.seacMap && this.seacMap[charcode]) {
  21499. var seac = this.seacMap[charcode];
  21500. fontCharCode = seac.baseFontCharCode;
  21501. accent = {
  21502. fontChar: String.fromCharCode(seac.accentFontCharCode),
  21503. offset: seac.accentOffset
  21504. };
  21505. }
  21506. var fontChar = String.fromCharCode(fontCharCode);
  21507. var glyph = this.glyphCache[charcode];
  21508. if (!glyph ||
  21509. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  21510. operatorList)) {
  21511. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  21512. operatorList);
  21513. this.glyphCache[charcode] = glyph;
  21514. }
  21515. return glyph;
  21516. },
  21517. charsToGlyphs: function Font_charsToGlyphs(chars) {
  21518. var charsCache = this.charsCache;
  21519. var glyphs, glyph, charcode;
  21520. // if we translated this string before, just grab it from the cache
  21521. if (charsCache) {
  21522. glyphs = charsCache[chars];
  21523. if (glyphs) {
  21524. return glyphs;
  21525. }
  21526. }
  21527. // lazily create the translation cache
  21528. if (!charsCache) {
  21529. charsCache = this.charsCache = Object.create(null);
  21530. }
  21531. glyphs = [];
  21532. var charsCacheKey = chars;
  21533. var i = 0, ii;
  21534. if (this.cMap) {
  21535. // composite fonts have multi-byte strings convert the string from
  21536. // single-byte to multi-byte
  21537. while (i < chars.length) {
  21538. var c = this.cMap.readCharCode(chars, i);
  21539. charcode = c[0];
  21540. var length = c[1];
  21541. i += length;
  21542. glyph = this.charToGlyph(charcode);
  21543. glyphs.push(glyph);
  21544. // placing null after each word break charcode (ASCII SPACE)
  21545. // Ignore occurences of 0x20 in multiple-byte codes.
  21546. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  21547. glyphs.push(null);
  21548. }
  21549. }
  21550. } else {
  21551. for (i = 0, ii = chars.length; i < ii; ++i) {
  21552. charcode = chars.charCodeAt(i);
  21553. glyph = this.charToGlyph(charcode);
  21554. glyphs.push(glyph);
  21555. if (charcode == 0x20) {
  21556. glyphs.push(null);
  21557. }
  21558. }
  21559. }
  21560. // Enter the translated string into the cache
  21561. return (charsCache[charsCacheKey] = glyphs);
  21562. }
  21563. };
  21564. return Font;
  21565. })();
  21566. var ErrorFont = (function ErrorFontClosure() {
  21567. function ErrorFont(error) {
  21568. this.error = error;
  21569. }
  21570. ErrorFont.prototype = {
  21571. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  21572. return [];
  21573. },
  21574. exportData: function ErrorFont_exportData() {
  21575. return {error: this.error};
  21576. }
  21577. };
  21578. return ErrorFont;
  21579. })();
  21580. /**
  21581. * Shared logic for building a char code to glyph id mapping for Type1 and
  21582. * simple CFF fonts. See section 9.6.6.2 of the spec.
  21583. * @param {Object} properties Font properties object.
  21584. * @param {Object} builtInEncoding The encoding contained within the actual font
  21585. * data.
  21586. * @param {Array} Array of glyph names where the index is the glyph ID.
  21587. * @returns {Object} A char code to glyph ID map.
  21588. */
  21589. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  21590. var charCodeToGlyphId = Object.create(null);
  21591. var glyphId, charCode, baseEncoding;
  21592. if (properties.baseEncodingName) {
  21593. // If a valid base encoding name was used, the mapping is initialized with
  21594. // that.
  21595. baseEncoding = Encodings[properties.baseEncodingName];
  21596. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21597. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21598. if (glyphId >= 0) {
  21599. charCodeToGlyphId[charCode] = glyphId;
  21600. }
  21601. }
  21602. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  21603. // For a symbolic font the encoding should be the fonts built-in
  21604. // encoding.
  21605. for (charCode in builtInEncoding) {
  21606. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  21607. }
  21608. } else {
  21609. // For non-symbolic fonts that don't have a base encoding the standard
  21610. // encoding should be used.
  21611. baseEncoding = Encodings.StandardEncoding;
  21612. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21613. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21614. if (glyphId >= 0) {
  21615. charCodeToGlyphId[charCode] = glyphId;
  21616. }
  21617. }
  21618. }
  21619. // Lastly, merge in the differences.
  21620. var differences = properties.differences;
  21621. if (differences) {
  21622. for (charCode in differences) {
  21623. var glyphName = differences[charCode];
  21624. glyphId = glyphNames.indexOf(glyphName);
  21625. if (glyphId >= 0) {
  21626. charCodeToGlyphId[charCode] = glyphId;
  21627. }
  21628. }
  21629. }
  21630. return charCodeToGlyphId;
  21631. }
  21632. /*
  21633. * CharStrings are encoded following the the CharString Encoding sequence
  21634. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  21635. * The value in a byte indicates a command, a number, or subsequent bytes
  21636. * that are to be interpreted in a special way.
  21637. *
  21638. * CharString Number Encoding:
  21639. * A CharString byte containing the values from 32 through 255 inclusive
  21640. * indicate an integer. These values are decoded in four ranges.
  21641. *
  21642. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  21643. * indicate the integer v - 139. Thus, the integer values from -107 through
  21644. * 107 inclusive may be encoded in single byte.
  21645. *
  21646. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  21647. * indicates an integer involving the next byte, w, according to the formula:
  21648. * [(v - 247) x 256] + w + 108
  21649. *
  21650. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  21651. * indicates an integer involving the next byte, w, according to the formula:
  21652. * -[(v - 251) * 256] - w - 108
  21653. *
  21654. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  21655. * are a two complement signed integer. The first of these bytes contains the
  21656. * highest order bits, the second byte contains the next higher order bits
  21657. * and the fourth byte contain the lowest order bits.
  21658. *
  21659. *
  21660. * CharString Command Encoding:
  21661. * CharStrings commands are encoded in 1 or 2 bytes.
  21662. *
  21663. * Single byte commands are encoded in 1 byte that contains a value between
  21664. * 0 and 31 inclusive.
  21665. * If a command byte contains the value 12, then the value in the next byte
  21666. * indicates a command. This "escape" mechanism allows many extra commands
  21667. * to be encoded and this encoding technique helps to minimize the length of
  21668. * the charStrings.
  21669. */
  21670. var Type1CharString = (function Type1CharStringClosure() {
  21671. var COMMAND_MAP = {
  21672. 'hstem': [1],
  21673. 'vstem': [3],
  21674. 'vmoveto': [4],
  21675. 'rlineto': [5],
  21676. 'hlineto': [6],
  21677. 'vlineto': [7],
  21678. 'rrcurveto': [8],
  21679. 'callsubr': [10],
  21680. 'flex': [12, 35],
  21681. 'drop' : [12, 18],
  21682. 'endchar': [14],
  21683. 'rmoveto': [21],
  21684. 'hmoveto': [22],
  21685. 'vhcurveto': [30],
  21686. 'hvcurveto': [31]
  21687. };
  21688. function Type1CharString() {
  21689. this.width = 0;
  21690. this.lsb = 0;
  21691. this.flexing = false;
  21692. this.output = [];
  21693. this.stack = [];
  21694. }
  21695. Type1CharString.prototype = {
  21696. convert: function Type1CharString_convert(encoded, subrs) {
  21697. var count = encoded.length;
  21698. var error = false;
  21699. var wx, sbx, subrNumber;
  21700. for (var i = 0; i < count; i++) {
  21701. var value = encoded[i];
  21702. if (value < 32) {
  21703. if (value === 12) {
  21704. value = (value << 8) + encoded[++i];
  21705. }
  21706. switch (value) {
  21707. case 1: // hstem
  21708. if (!HINTING_ENABLED) {
  21709. this.stack = [];
  21710. break;
  21711. }
  21712. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21713. break;
  21714. case 3: // vstem
  21715. if (!HINTING_ENABLED) {
  21716. this.stack = [];
  21717. break;
  21718. }
  21719. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21720. break;
  21721. case 4: // vmoveto
  21722. if (this.flexing) {
  21723. if (this.stack.length < 1) {
  21724. error = true;
  21725. break;
  21726. }
  21727. // Add the dx for flex and but also swap the values so they are
  21728. // the right order.
  21729. var dy = this.stack.pop();
  21730. this.stack.push(0, dy);
  21731. break;
  21732. }
  21733. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  21734. break;
  21735. case 5: // rlineto
  21736. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  21737. break;
  21738. case 6: // hlineto
  21739. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  21740. break;
  21741. case 7: // vlineto
  21742. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  21743. break;
  21744. case 8: // rrcurveto
  21745. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  21746. break;
  21747. case 9: // closepath
  21748. // closepath is a Type1 command that does not take argument and is
  21749. // useless in Type2 and it can simply be ignored.
  21750. this.stack = [];
  21751. break;
  21752. case 10: // callsubr
  21753. if (this.stack.length < 1) {
  21754. error = true;
  21755. break;
  21756. }
  21757. subrNumber = this.stack.pop();
  21758. error = this.convert(subrs[subrNumber], subrs);
  21759. break;
  21760. case 11: // return
  21761. return error;
  21762. case 13: // hsbw
  21763. if (this.stack.length < 2) {
  21764. error = true;
  21765. break;
  21766. }
  21767. // To convert to type2 we have to move the width value to the
  21768. // first part of the charstring and then use hmoveto with lsb.
  21769. wx = this.stack.pop();
  21770. sbx = this.stack.pop();
  21771. this.lsb = sbx;
  21772. this.width = wx;
  21773. this.stack.push(sbx);
  21774. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21775. break;
  21776. case 14: // endchar
  21777. this.output.push(COMMAND_MAP.endchar[0]);
  21778. break;
  21779. case 21: // rmoveto
  21780. if (this.flexing) {
  21781. break;
  21782. }
  21783. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21784. break;
  21785. case 22: // hmoveto
  21786. if (this.flexing) {
  21787. // Add the dy for flex.
  21788. this.stack.push(0);
  21789. break;
  21790. }
  21791. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21792. break;
  21793. case 30: // vhcurveto
  21794. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  21795. break;
  21796. case 31: // hvcurveto
  21797. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  21798. break;
  21799. case (12 << 8) + 0: // dotsection
  21800. // dotsection is a Type1 command to specify some hinting feature
  21801. // for dots that do not take a parameter and it can safely be
  21802. // ignored for Type2.
  21803. this.stack = [];
  21804. break;
  21805. case (12 << 8) + 1: // vstem3
  21806. if (!HINTING_ENABLED) {
  21807. this.stack = [];
  21808. break;
  21809. }
  21810. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  21811. // multiple parameters, so instead of returning [vh]stem3 take a
  21812. // shortcut and return [vhstem] instead.
  21813. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21814. break;
  21815. case (12 << 8) + 2: // hstem3
  21816. if (!HINTING_ENABLED) {
  21817. this.stack = [];
  21818. break;
  21819. }
  21820. // See vstem3.
  21821. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21822. break;
  21823. case (12 << 8) + 6: // seac
  21824. // seac is like type 2's special endchar but it doesn't use the
  21825. // first argument asb, so remove it.
  21826. if (SEAC_ANALYSIS_ENABLED) {
  21827. this.seac = this.stack.splice(-4, 4);
  21828. error = this.executeCommand(0, COMMAND_MAP.endchar);
  21829. } else {
  21830. error = this.executeCommand(4, COMMAND_MAP.endchar);
  21831. }
  21832. break;
  21833. case (12 << 8) + 7: // sbw
  21834. if (this.stack.length < 4) {
  21835. error = true;
  21836. break;
  21837. }
  21838. // To convert to type2 we have to move the width value to the
  21839. // first part of the charstring and then use rmoveto with
  21840. // (dx, dy). The height argument will not be used for vmtx and
  21841. // vhea tables reconstruction -- ignoring it.
  21842. var wy = this.stack.pop();
  21843. wx = this.stack.pop();
  21844. var sby = this.stack.pop();
  21845. sbx = this.stack.pop();
  21846. this.lsb = sbx;
  21847. this.width = wx;
  21848. this.stack.push(sbx, sby);
  21849. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21850. break;
  21851. case (12 << 8) + 12: // div
  21852. if (this.stack.length < 2) {
  21853. error = true;
  21854. break;
  21855. }
  21856. var num2 = this.stack.pop();
  21857. var num1 = this.stack.pop();
  21858. this.stack.push(num1 / num2);
  21859. break;
  21860. case (12 << 8) + 16: // callothersubr
  21861. if (this.stack.length < 2) {
  21862. error = true;
  21863. break;
  21864. }
  21865. subrNumber = this.stack.pop();
  21866. var numArgs = this.stack.pop();
  21867. if (subrNumber === 0 && numArgs === 3) {
  21868. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  21869. this.stack.push(
  21870. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  21871. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  21872. flexArgs[4], // bcp2x
  21873. flexArgs[5], // bcp2y
  21874. flexArgs[6], // p2x
  21875. flexArgs[7], // p2y
  21876. flexArgs[8], // bcp3x
  21877. flexArgs[9], // bcp3y
  21878. flexArgs[10], // bcp4x
  21879. flexArgs[11], // bcp4y
  21880. flexArgs[12], // p3x
  21881. flexArgs[13], // p3y
  21882. flexArgs[14] // flexDepth
  21883. // 15 = finalx unused by flex
  21884. // 16 = finaly unused by flex
  21885. );
  21886. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  21887. this.flexing = false;
  21888. this.stack.push(flexArgs[15], flexArgs[16]);
  21889. } else if (subrNumber === 1 && numArgs === 0) {
  21890. this.flexing = true;
  21891. }
  21892. break;
  21893. case (12 << 8) + 17: // pop
  21894. // Ignore this since it is only used with othersubr.
  21895. break;
  21896. case (12 << 8) + 33: // setcurrentpoint
  21897. // Ignore for now.
  21898. this.stack = [];
  21899. break;
  21900. default:
  21901. warn('Unknown type 1 charstring command of "' + value + '"');
  21902. break;
  21903. }
  21904. if (error) {
  21905. break;
  21906. }
  21907. continue;
  21908. } else if (value <= 246) {
  21909. value = value - 139;
  21910. } else if (value <= 250) {
  21911. value = ((value - 247) * 256) + encoded[++i] + 108;
  21912. } else if (value <= 254) {
  21913. value = -((value - 251) * 256) - encoded[++i] - 108;
  21914. } else {
  21915. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  21916. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  21917. }
  21918. this.stack.push(value);
  21919. }
  21920. return error;
  21921. },
  21922. executeCommand: function(howManyArgs, command, keepStack) {
  21923. var stackLength = this.stack.length;
  21924. if (howManyArgs > stackLength) {
  21925. return true;
  21926. }
  21927. var start = stackLength - howManyArgs;
  21928. for (var i = start; i < stackLength; i++) {
  21929. var value = this.stack[i];
  21930. if (value === (value | 0)) { // int
  21931. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  21932. } else { // fixed point
  21933. value = (65536 * value) | 0;
  21934. this.output.push(255,
  21935. (value >> 24) & 0xFF,
  21936. (value >> 16) & 0xFF,
  21937. (value >> 8) & 0xFF,
  21938. value & 0xFF);
  21939. }
  21940. }
  21941. this.output.push.apply(this.output, command);
  21942. if (keepStack) {
  21943. this.stack.splice(start, howManyArgs);
  21944. } else {
  21945. this.stack.length = 0;
  21946. }
  21947. return false;
  21948. }
  21949. };
  21950. return Type1CharString;
  21951. })();
  21952. /*
  21953. * Type1Parser encapsulate the needed code for parsing a Type1 font
  21954. * program. Some of its logic depends on the Type2 charstrings
  21955. * structure.
  21956. * Note: this doesn't really parse the font since that would require evaluation
  21957. * of PostScript, but it is possible in most cases to extract what we need
  21958. * without a full parse.
  21959. */
  21960. var Type1Parser = (function Type1ParserClosure() {
  21961. /*
  21962. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  21963. * of Plaintext Bytes. The function took a key as a parameter which can be
  21964. * for decrypting the eexec block of for decoding charStrings.
  21965. */
  21966. var EEXEC_ENCRYPT_KEY = 55665;
  21967. var CHAR_STRS_ENCRYPT_KEY = 4330;
  21968. function isHexDigit(code) {
  21969. return code >= 48 && code <= 57 || // '0'-'9'
  21970. code >= 65 && code <= 70 || // 'A'-'F'
  21971. code >= 97 && code <= 102; // 'a'-'f'
  21972. }
  21973. function decrypt(data, key, discardNumber) {
  21974. var r = key | 0, c1 = 52845, c2 = 22719;
  21975. var count = data.length;
  21976. var decrypted = new Uint8Array(count);
  21977. for (var i = 0; i < count; i++) {
  21978. var value = data[i];
  21979. decrypted[i] = value ^ (r >> 8);
  21980. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  21981. }
  21982. return Array.prototype.slice.call(decrypted, discardNumber);
  21983. }
  21984. function decryptAscii(data, key, discardNumber) {
  21985. var r = key | 0, c1 = 52845, c2 = 22719;
  21986. var count = data.length, maybeLength = count >>> 1;
  21987. var decrypted = new Uint8Array(maybeLength);
  21988. var i, j;
  21989. for (i = 0, j = 0; i < count; i++) {
  21990. var digit1 = data[i];
  21991. if (!isHexDigit(digit1)) {
  21992. continue;
  21993. }
  21994. i++;
  21995. var digit2;
  21996. while (i < count && !isHexDigit(digit2 = data[i])) {
  21997. i++;
  21998. }
  21999. if (i < count) {
  22000. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  22001. decrypted[j++] = value ^ (r >> 8);
  22002. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22003. }
  22004. }
  22005. return Array.prototype.slice.call(decrypted, discardNumber, j);
  22006. }
  22007. function isSpecial(c) {
  22008. return c === 0x2F || // '/'
  22009. c === 0x5B || c === 0x5D || // '[', ']'
  22010. c === 0x7B || c === 0x7D || // '{', '}'
  22011. c === 0x28 || c === 0x29; // '(', ')'
  22012. }
  22013. function Type1Parser(stream, encrypted) {
  22014. if (encrypted) {
  22015. var data = stream.getBytes();
  22016. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  22017. isHexDigit(data[2]) && isHexDigit(data[3]));
  22018. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  22019. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  22020. }
  22021. this.stream = stream;
  22022. this.nextChar();
  22023. }
  22024. Type1Parser.prototype = {
  22025. readNumberArray: function Type1Parser_readNumberArray() {
  22026. this.getToken(); // read '[' or '{' (arrays can start with either)
  22027. var array = [];
  22028. while (true) {
  22029. var token = this.getToken();
  22030. if (token === null || token === ']' || token === '}') {
  22031. break;
  22032. }
  22033. array.push(parseFloat(token || 0));
  22034. }
  22035. return array;
  22036. },
  22037. readNumber: function Type1Parser_readNumber() {
  22038. var token = this.getToken();
  22039. return parseFloat(token || 0);
  22040. },
  22041. readInt: function Type1Parser_readInt() {
  22042. // Use '| 0' to prevent setting a double into length such as the double
  22043. // does not flow into the loop variable.
  22044. var token = this.getToken();
  22045. return parseInt(token || 0, 10) | 0;
  22046. },
  22047. readBoolean: function Type1Parser_readBoolean() {
  22048. var token = this.getToken();
  22049. // Use 1 and 0 since that's what type2 charstrings use.
  22050. return token === 'true' ? 1 : 0;
  22051. },
  22052. nextChar : function Type1_nextChar() {
  22053. return (this.currentChar = this.stream.getByte());
  22054. },
  22055. getToken: function Type1Parser_getToken() {
  22056. // Eat whitespace and comments.
  22057. var comment = false;
  22058. var ch = this.currentChar;
  22059. while (true) {
  22060. if (ch === -1) {
  22061. return null;
  22062. }
  22063. if (comment) {
  22064. if (ch === 0x0A || ch === 0x0D) {
  22065. comment = false;
  22066. }
  22067. } else if (ch === 0x25) { // '%'
  22068. comment = true;
  22069. } else if (!Lexer.isSpace(ch)) {
  22070. break;
  22071. }
  22072. ch = this.nextChar();
  22073. }
  22074. if (isSpecial(ch)) {
  22075. this.nextChar();
  22076. return String.fromCharCode(ch);
  22077. }
  22078. var token = '';
  22079. do {
  22080. token += String.fromCharCode(ch);
  22081. ch = this.nextChar();
  22082. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  22083. return token;
  22084. },
  22085. /*
  22086. * Returns an object containing a Subrs array and a CharStrings
  22087. * array extracted from and eexec encrypted block of data
  22088. */
  22089. extractFontProgram: function Type1Parser_extractFontProgram() {
  22090. var stream = this.stream;
  22091. var subrs = [], charstrings = [];
  22092. var program = {
  22093. subrs: [],
  22094. charstrings: [],
  22095. properties: {
  22096. 'privateData': {
  22097. 'lenIV': 4
  22098. }
  22099. }
  22100. };
  22101. var token, length, data, lenIV, encoded;
  22102. while ((token = this.getToken()) !== null) {
  22103. if (token !== '/') {
  22104. continue;
  22105. }
  22106. token = this.getToken();
  22107. switch (token) {
  22108. case 'CharStrings':
  22109. // The number immediately following CharStrings must be greater or
  22110. // equal to the number of CharStrings.
  22111. this.getToken();
  22112. this.getToken(); // read in 'dict'
  22113. this.getToken(); // read in 'dup'
  22114. this.getToken(); // read in 'begin'
  22115. while(true) {
  22116. token = this.getToken();
  22117. if (token === null || token === 'end') {
  22118. break;
  22119. }
  22120. if (token !== '/') {
  22121. continue;
  22122. }
  22123. var glyph = this.getToken();
  22124. length = this.readInt();
  22125. this.getToken(); // read in 'RD' or '-|'
  22126. data = stream.makeSubStream(stream.pos, length);
  22127. lenIV = program.properties.privateData['lenIV'];
  22128. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22129. // Skip past the required space and binary data.
  22130. stream.skip(length);
  22131. this.nextChar();
  22132. token = this.getToken(); // read in 'ND' or '|-'
  22133. if (token === 'noaccess') {
  22134. this.getToken(); // read in 'def'
  22135. }
  22136. charstrings.push({
  22137. glyph: glyph,
  22138. encoded: encoded
  22139. });
  22140. }
  22141. break;
  22142. case 'Subrs':
  22143. var num = this.readInt();
  22144. this.getToken(); // read in 'array'
  22145. while ((token = this.getToken()) === 'dup') {
  22146. var index = this.readInt();
  22147. length = this.readInt();
  22148. this.getToken(); // read in 'RD' or '-|'
  22149. data = stream.makeSubStream(stream.pos, length);
  22150. lenIV = program.properties.privateData['lenIV'];
  22151. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22152. // Skip past the required space and binary data.
  22153. stream.skip(length);
  22154. this.nextChar();
  22155. token = this.getToken(); // read in 'NP' or '|'
  22156. if (token === 'noaccess') {
  22157. this.getToken(); // read in 'put'
  22158. }
  22159. subrs[index] = encoded;
  22160. }
  22161. break;
  22162. case 'BlueValues':
  22163. case 'OtherBlues':
  22164. case 'FamilyBlues':
  22165. case 'FamilyOtherBlues':
  22166. var blueArray = this.readNumberArray();
  22167. // *Blue* values may contain invalid data: disables reading of
  22168. // those values when hinting is disabled.
  22169. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  22170. HINTING_ENABLED) {
  22171. program.properties.privateData[token] = blueArray;
  22172. }
  22173. break;
  22174. case 'StemSnapH':
  22175. case 'StemSnapV':
  22176. program.properties.privateData[token] = this.readNumberArray();
  22177. break;
  22178. case 'StdHW':
  22179. case 'StdVW':
  22180. program.properties.privateData[token] =
  22181. this.readNumberArray()[0];
  22182. break;
  22183. case 'BlueShift':
  22184. case 'lenIV':
  22185. case 'BlueFuzz':
  22186. case 'BlueScale':
  22187. case 'LanguageGroup':
  22188. case 'ExpansionFactor':
  22189. program.properties.privateData[token] = this.readNumber();
  22190. break;
  22191. case 'ForceBold':
  22192. program.properties.privateData[token] = this.readBoolean();
  22193. break;
  22194. }
  22195. }
  22196. for (var i = 0; i < charstrings.length; i++) {
  22197. glyph = charstrings[i].glyph;
  22198. encoded = charstrings[i].encoded;
  22199. var charString = new Type1CharString();
  22200. var error = charString.convert(encoded, subrs);
  22201. var output = charString.output;
  22202. if (error) {
  22203. // It seems when FreeType encounters an error while evaluating a glyph
  22204. // that it completely ignores the glyph so we'll mimic that behaviour
  22205. // here and put an endchar to make the validator happy.
  22206. output = [14];
  22207. }
  22208. program.charstrings.push({
  22209. glyphName: glyph,
  22210. charstring: output,
  22211. width: charString.width,
  22212. lsb: charString.lsb,
  22213. seac: charString.seac
  22214. });
  22215. }
  22216. return program;
  22217. },
  22218. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  22219. var token;
  22220. while ((token = this.getToken()) !== null) {
  22221. if (token !== '/') {
  22222. continue;
  22223. }
  22224. token = this.getToken();
  22225. switch (token) {
  22226. case 'FontMatrix':
  22227. var matrix = this.readNumberArray();
  22228. properties.fontMatrix = matrix;
  22229. break;
  22230. case 'Encoding':
  22231. var encodingArg = this.getToken();
  22232. var encoding;
  22233. if (!/^\d+$/.test(encodingArg)) {
  22234. // encoding name is specified
  22235. encoding = Encodings[encodingArg];
  22236. } else {
  22237. encoding = [];
  22238. var size = parseInt(encodingArg, 10) | 0;
  22239. this.getToken(); // read in 'array'
  22240. for (var j = 0; j < size; j++) {
  22241. token = this.getToken();
  22242. // skipping till first dup or def (e.g. ignoring for statement)
  22243. while (token !== 'dup' && token !== 'def') {
  22244. token = this.getToken();
  22245. if (token === null) {
  22246. return; // invalid header
  22247. }
  22248. }
  22249. if (token === 'def') {
  22250. break; // read all array data
  22251. }
  22252. var index = this.readInt();
  22253. this.getToken(); // read in '/'
  22254. var glyph = this.getToken();
  22255. encoding[index] = glyph;
  22256. this.getToken(); // read the in 'put'
  22257. }
  22258. }
  22259. properties.builtInEncoding = encoding;
  22260. break;
  22261. case 'FontBBox':
  22262. var fontBBox = this.readNumberArray();
  22263. // adjusting ascent/descent
  22264. properties.ascent = fontBBox[3];
  22265. properties.descent = fontBBox[1];
  22266. properties.ascentScaled = true;
  22267. break;
  22268. }
  22269. }
  22270. }
  22271. };
  22272. return Type1Parser;
  22273. })();
  22274. /**
  22275. * The CFF class takes a Type1 file and wrap it into a
  22276. * 'Compact Font Format' which itself embed Type2 charstrings.
  22277. */
  22278. var CFFStandardStrings = [
  22279. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  22280. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  22281. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  22282. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  22283. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  22284. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  22285. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  22286. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  22287. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  22288. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  22289. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  22290. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  22291. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  22292. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  22293. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  22294. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  22295. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  22296. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  22297. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  22298. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  22299. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  22300. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  22301. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  22302. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  22303. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  22304. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  22305. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  22306. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  22307. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  22308. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  22309. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  22310. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  22311. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  22312. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  22313. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  22314. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  22315. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  22316. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  22317. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  22318. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  22319. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  22320. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  22321. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  22322. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  22323. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  22324. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  22325. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  22326. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  22327. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  22328. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  22329. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  22330. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  22331. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  22332. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  22333. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  22334. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  22335. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  22336. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  22337. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  22338. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  22339. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  22340. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  22341. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  22342. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  22343. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  22344. ];
  22345. // Type1Font is also a CIDFontType0.
  22346. var Type1Font = function Type1Font(name, file, properties) {
  22347. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  22348. // Also, length1 and length2 might be off by 6 bytes as well.
  22349. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  22350. var PFB_HEADER_SIZE = 6;
  22351. var headerBlockLength = properties.length1;
  22352. var eexecBlockLength = properties.length2;
  22353. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  22354. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  22355. if (pfbHeaderPresent) {
  22356. file.skip(PFB_HEADER_SIZE);
  22357. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22358. (pfbHeader[3] << 8) | pfbHeader[2];
  22359. }
  22360. // Get the data block containing glyphs and subrs informations
  22361. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  22362. var headerBlockParser = new Type1Parser(headerBlock);
  22363. headerBlockParser.extractFontHeader(properties);
  22364. if (pfbHeaderPresent) {
  22365. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  22366. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22367. (pfbHeader[3] << 8) | pfbHeader[2];
  22368. }
  22369. // Decrypt the data blocks and retrieve it's content
  22370. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  22371. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  22372. var data = eexecBlockParser.extractFontProgram();
  22373. for (var info in data.properties) {
  22374. properties[info] = data.properties[info];
  22375. }
  22376. var charstrings = data.charstrings;
  22377. var type2Charstrings = this.getType2Charstrings(charstrings);
  22378. var subrs = this.getType2Subrs(data.subrs);
  22379. this.charstrings = charstrings;
  22380. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  22381. subrs, properties);
  22382. this.seacs = this.getSeacs(data.charstrings);
  22383. };
  22384. Type1Font.prototype = {
  22385. get numGlyphs() {
  22386. return this.charstrings.length + 1;
  22387. },
  22388. getCharset: function Type1Font_getCharset() {
  22389. var charset = ['.notdef'];
  22390. var charstrings = this.charstrings;
  22391. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22392. charset.push(charstrings[glyphId].glyphName);
  22393. }
  22394. return charset;
  22395. },
  22396. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  22397. var charstrings = this.charstrings;
  22398. var glyphNames = ['.notdef'], glyphId;
  22399. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22400. glyphNames.push(charstrings[glyphId].glyphName);
  22401. }
  22402. var encoding = properties.builtInEncoding;
  22403. if (encoding) {
  22404. var builtInEncoding = {};
  22405. for (var charCode in encoding) {
  22406. glyphId = glyphNames.indexOf(encoding[charCode]);
  22407. if (glyphId >= 0) {
  22408. builtInEncoding[charCode] = glyphId;
  22409. }
  22410. }
  22411. }
  22412. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  22413. },
  22414. getSeacs: function Type1Font_getSeacs(charstrings) {
  22415. var i, ii;
  22416. var seacMap = [];
  22417. for (i = 0, ii = charstrings.length; i < ii; i++) {
  22418. var charstring = charstrings[i];
  22419. if (charstring.seac) {
  22420. // Offset by 1 for .notdef
  22421. seacMap[i + 1] = charstring.seac;
  22422. }
  22423. }
  22424. return seacMap;
  22425. },
  22426. getType2Charstrings: function Type1Font_getType2Charstrings(
  22427. type1Charstrings) {
  22428. var type2Charstrings = [];
  22429. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  22430. type2Charstrings.push(type1Charstrings[i].charstring);
  22431. }
  22432. return type2Charstrings;
  22433. },
  22434. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  22435. var bias = 0;
  22436. var count = type1Subrs.length;
  22437. if (count < 1133) {
  22438. bias = 107;
  22439. } else if (count < 33769) {
  22440. bias = 1131;
  22441. } else {
  22442. bias = 32768;
  22443. }
  22444. // Add a bunch of empty subrs to deal with the Type2 bias
  22445. var type2Subrs = [];
  22446. var i;
  22447. for (i = 0; i < bias; i++) {
  22448. type2Subrs.push([0x0B]);
  22449. }
  22450. for (i = 0; i < count; i++) {
  22451. type2Subrs.push(type1Subrs[i]);
  22452. }
  22453. return type2Subrs;
  22454. },
  22455. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  22456. var cff = new CFF();
  22457. cff.header = new CFFHeader(1, 0, 4, 4);
  22458. cff.names = [name];
  22459. var topDict = new CFFTopDict();
  22460. // CFF strings IDs 0...390 are predefined names, so refering
  22461. // to entries in our own String INDEX starts at SID 391.
  22462. topDict.setByName('version', 391);
  22463. topDict.setByName('Notice', 392);
  22464. topDict.setByName('FullName', 393);
  22465. topDict.setByName('FamilyName', 394);
  22466. topDict.setByName('Weight', 395);
  22467. topDict.setByName('Encoding', null); // placeholder
  22468. topDict.setByName('FontMatrix', properties.fontMatrix);
  22469. topDict.setByName('FontBBox', properties.bbox);
  22470. topDict.setByName('charset', null); // placeholder
  22471. topDict.setByName('CharStrings', null); // placeholder
  22472. topDict.setByName('Private', null); // placeholder
  22473. cff.topDict = topDict;
  22474. var strings = new CFFStrings();
  22475. strings.add('Version 0.11'); // Version
  22476. strings.add('See original notice'); // Notice
  22477. strings.add(name); // FullName
  22478. strings.add(name); // FamilyName
  22479. strings.add('Medium'); // Weight
  22480. cff.strings = strings;
  22481. cff.globalSubrIndex = new CFFIndex();
  22482. var count = glyphs.length;
  22483. var charsetArray = [0];
  22484. var i, ii;
  22485. for (i = 0; i < count; i++) {
  22486. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  22487. // TODO: Insert the string and correctly map it. Previously it was
  22488. // thought mapping names that aren't in the standard strings to .notdef
  22489. // was fine, however in issue818 when mapping them all to .notdef the
  22490. // adieresis glyph no longer worked.
  22491. if (index == -1) {
  22492. index = 0;
  22493. }
  22494. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  22495. }
  22496. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  22497. var charStringsIndex = new CFFIndex();
  22498. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  22499. for (i = 0; i < count; i++) {
  22500. charStringsIndex.add(glyphs[i]);
  22501. }
  22502. cff.charStrings = charStringsIndex;
  22503. var privateDict = new CFFPrivateDict();
  22504. privateDict.setByName('Subrs', null); // placeholder
  22505. var fields = [
  22506. 'BlueValues',
  22507. 'OtherBlues',
  22508. 'FamilyBlues',
  22509. 'FamilyOtherBlues',
  22510. 'StemSnapH',
  22511. 'StemSnapV',
  22512. 'BlueShift',
  22513. 'BlueFuzz',
  22514. 'BlueScale',
  22515. 'LanguageGroup',
  22516. 'ExpansionFactor',
  22517. 'ForceBold',
  22518. 'StdHW',
  22519. 'StdVW'
  22520. ];
  22521. for (i = 0, ii = fields.length; i < ii; i++) {
  22522. var field = fields[i];
  22523. if (!properties.privateData.hasOwnProperty(field)) {
  22524. continue;
  22525. }
  22526. var value = properties.privateData[field];
  22527. if (isArray(value)) {
  22528. // All of the private dictionary array data in CFF must be stored as
  22529. // "delta-encoded" numbers.
  22530. for (var j = value.length - 1; j > 0; j--) {
  22531. value[j] -= value[j - 1]; // ... difference from previous value
  22532. }
  22533. }
  22534. privateDict.setByName(field, value);
  22535. }
  22536. cff.topDict.privateDict = privateDict;
  22537. var subrIndex = new CFFIndex();
  22538. for (i = 0, ii = subrs.length; i < ii; i++) {
  22539. subrIndex.add(subrs[i]);
  22540. }
  22541. privateDict.subrsIndex = subrIndex;
  22542. var compiler = new CFFCompiler(cff);
  22543. return compiler.compile();
  22544. }
  22545. };
  22546. var CFFFont = (function CFFFontClosure() {
  22547. function CFFFont(file, properties) {
  22548. this.properties = properties;
  22549. var parser = new CFFParser(file, properties);
  22550. this.cff = parser.parse();
  22551. var compiler = new CFFCompiler(this.cff);
  22552. this.seacs = this.cff.seacs;
  22553. try {
  22554. this.data = compiler.compile();
  22555. } catch (e) {
  22556. warn('Failed to compile font ' + properties.loadedName);
  22557. // There may have just been an issue with the compiler, set the data
  22558. // anyway and hope the font loaded.
  22559. this.data = file;
  22560. }
  22561. }
  22562. CFFFont.prototype = {
  22563. get numGlyphs() {
  22564. return this.cff.charStrings.count;
  22565. },
  22566. getCharset: function CFFFont_getCharset() {
  22567. return this.cff.charset.charset;
  22568. },
  22569. getGlyphMapping: function CFFFont_getGlyphMapping() {
  22570. var cff = this.cff;
  22571. var properties = this.properties;
  22572. var charsets = cff.charset.charset;
  22573. var charCodeToGlyphId;
  22574. var glyphId;
  22575. if (properties.composite) {
  22576. charCodeToGlyphId = Object.create(null);
  22577. if (cff.isCIDFont) {
  22578. // If the font is actually a CID font then we should use the charset
  22579. // to map CIDs to GIDs.
  22580. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  22581. var cidString = String.fromCharCode(charsets[glyphId]);
  22582. var charCode = properties.cMap.map.indexOf(cidString);
  22583. charCodeToGlyphId[charCode] = glyphId;
  22584. }
  22585. } else {
  22586. // If it is NOT actually a CID font then CIDs should be mapped
  22587. // directly to GIDs.
  22588. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  22589. charCodeToGlyphId[glyphId] = glyphId;
  22590. }
  22591. }
  22592. return charCodeToGlyphId;
  22593. }
  22594. var encoding = cff.encoding ? cff.encoding.encoding : null;
  22595. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  22596. return charCodeToGlyphId;
  22597. }
  22598. };
  22599. return CFFFont;
  22600. })();
  22601. var CFFParser = (function CFFParserClosure() {
  22602. var CharstringValidationData = [
  22603. null,
  22604. { id: 'hstem', min: 2, resetStack: true, stem: true },
  22605. null,
  22606. { id: 'vstem', min: 2, resetStack: true, stem: true },
  22607. { id: 'vmoveto', min: 1, resetStack: true },
  22608. { id: 'rlineto', min: 2, resetStack: true },
  22609. { id: 'hlineto', min: 1, resetStack: true },
  22610. { id: 'vlineto', min: 1, resetStack: true },
  22611. { id: 'rrcurveto', min: 6, resetStack: true },
  22612. null,
  22613. { id: 'callsubr', min: 1, undefStack: true },
  22614. { id: 'return', min: 0, undefStack: true },
  22615. null, // 12
  22616. null,
  22617. null, // endchar
  22618. null,
  22619. null,
  22620. null,
  22621. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  22622. null, // hintmask
  22623. null, // cntrmask
  22624. { id: 'rmoveto', min: 2, resetStack: true },
  22625. { id: 'hmoveto', min: 1, resetStack: true },
  22626. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  22627. { id: 'rcurveline', min: 8, resetStack: true },
  22628. { id: 'rlinecurve', min: 8, resetStack: true },
  22629. { id: 'vvcurveto', min: 4, resetStack: true },
  22630. { id: 'hhcurveto', min: 4, resetStack: true },
  22631. null, // shortint
  22632. { id: 'callgsubr', min: 1, undefStack: true },
  22633. { id: 'vhcurveto', min: 4, resetStack: true },
  22634. { id: 'hvcurveto', min: 4, resetStack: true }
  22635. ];
  22636. var CharstringValidationData12 = [
  22637. null,
  22638. null,
  22639. null,
  22640. { id: 'and', min: 2, stackDelta: -1 },
  22641. { id: 'or', min: 2, stackDelta: -1 },
  22642. { id: 'not', min: 1, stackDelta: 0 },
  22643. null,
  22644. null,
  22645. null,
  22646. { id: 'abs', min: 1, stackDelta: 0 },
  22647. { id: 'add', min: 2, stackDelta: -1,
  22648. stackFn: function stack_div(stack, index) {
  22649. stack[index - 2] = stack[index - 2] + stack[index - 1];
  22650. }
  22651. },
  22652. { id: 'sub', min: 2, stackDelta: -1,
  22653. stackFn: function stack_div(stack, index) {
  22654. stack[index - 2] = stack[index - 2] - stack[index - 1];
  22655. }
  22656. },
  22657. { id: 'div', min: 2, stackDelta: -1,
  22658. stackFn: function stack_div(stack, index) {
  22659. stack[index - 2] = stack[index - 2] / stack[index - 1];
  22660. }
  22661. },
  22662. null,
  22663. { id: 'neg', min: 1, stackDelta: 0,
  22664. stackFn: function stack_div(stack, index) {
  22665. stack[index - 1] = -stack[index - 1];
  22666. }
  22667. },
  22668. { id: 'eq', min: 2, stackDelta: -1 },
  22669. null,
  22670. null,
  22671. { id: 'drop', min: 1, stackDelta: -1 },
  22672. null,
  22673. { id: 'put', min: 2, stackDelta: -2 },
  22674. { id: 'get', min: 1, stackDelta: 0 },
  22675. { id: 'ifelse', min: 4, stackDelta: -3 },
  22676. { id: 'random', min: 0, stackDelta: 1 },
  22677. { id: 'mul', min: 2, stackDelta: -1,
  22678. stackFn: function stack_div(stack, index) {
  22679. stack[index - 2] = stack[index - 2] * stack[index - 1];
  22680. }
  22681. },
  22682. null,
  22683. { id: 'sqrt', min: 1, stackDelta: 0 },
  22684. { id: 'dup', min: 1, stackDelta: 1 },
  22685. { id: 'exch', min: 2, stackDelta: 0 },
  22686. { id: 'index', min: 2, stackDelta: 0 },
  22687. { id: 'roll', min: 3, stackDelta: -2 },
  22688. null,
  22689. null,
  22690. null,
  22691. { id: 'hflex', min: 7, resetStack: true },
  22692. { id: 'flex', min: 13, resetStack: true },
  22693. { id: 'hflex1', min: 9, resetStack: true },
  22694. { id: 'flex1', min: 11, resetStack: true }
  22695. ];
  22696. function CFFParser(file, properties) {
  22697. this.bytes = file.getBytes();
  22698. this.properties = properties;
  22699. }
  22700. CFFParser.prototype = {
  22701. parse: function CFFParser_parse() {
  22702. var properties = this.properties;
  22703. var cff = new CFF();
  22704. this.cff = cff;
  22705. // The first five sections must be in order, all the others are reached
  22706. // via offsets contained in one of the below.
  22707. var header = this.parseHeader();
  22708. var nameIndex = this.parseIndex(header.endPos);
  22709. var topDictIndex = this.parseIndex(nameIndex.endPos);
  22710. var stringIndex = this.parseIndex(topDictIndex.endPos);
  22711. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  22712. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  22713. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  22714. cff.header = header.obj;
  22715. cff.names = this.parseNameIndex(nameIndex.obj);
  22716. cff.strings = this.parseStringIndex(stringIndex.obj);
  22717. cff.topDict = topDict;
  22718. cff.globalSubrIndex = globalSubrIndex.obj;
  22719. this.parsePrivateDict(cff.topDict);
  22720. cff.isCIDFont = topDict.hasName('ROS');
  22721. var charStringOffset = topDict.getByName('CharStrings');
  22722. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  22723. cff.charStrings = charStringsAndSeacs.charStrings;
  22724. cff.seacs = charStringsAndSeacs.seacs;
  22725. var fontMatrix = topDict.getByName('FontMatrix');
  22726. if (fontMatrix) {
  22727. properties.fontMatrix = fontMatrix;
  22728. }
  22729. var fontBBox = topDict.getByName('FontBBox');
  22730. if (fontBBox) {
  22731. // adjusting ascent/descent
  22732. properties.ascent = fontBBox[3];
  22733. properties.descent = fontBBox[1];
  22734. properties.ascentScaled = true;
  22735. }
  22736. var charset, encoding;
  22737. if (cff.isCIDFont) {
  22738. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  22739. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  22740. var dictRaw = fdArrayIndex.get(i);
  22741. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  22742. cff.strings);
  22743. this.parsePrivateDict(fontDict);
  22744. cff.fdArray.push(fontDict);
  22745. }
  22746. // cid fonts don't have an encoding
  22747. encoding = null;
  22748. charset = this.parseCharsets(topDict.getByName('charset'),
  22749. cff.charStrings.count, cff.strings, true);
  22750. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  22751. cff.charStrings.count);
  22752. } else {
  22753. charset = this.parseCharsets(topDict.getByName('charset'),
  22754. cff.charStrings.count, cff.strings, false);
  22755. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  22756. properties,
  22757. cff.strings, charset.charset);
  22758. }
  22759. cff.charset = charset;
  22760. cff.encoding = encoding;
  22761. return cff;
  22762. },
  22763. parseHeader: function CFFParser_parseHeader() {
  22764. var bytes = this.bytes;
  22765. var bytesLength = bytes.length;
  22766. var offset = 0;
  22767. // Prevent an infinite loop, by checking that the offset is within the
  22768. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  22769. while (offset < bytesLength && bytes[offset] !== 1) {
  22770. ++offset;
  22771. }
  22772. if (offset >= bytesLength) {
  22773. error('Invalid CFF header');
  22774. } else if (offset !== 0) {
  22775. info('cff data is shifted');
  22776. bytes = bytes.subarray(offset);
  22777. this.bytes = bytes;
  22778. }
  22779. var major = bytes[0];
  22780. var minor = bytes[1];
  22781. var hdrSize = bytes[2];
  22782. var offSize = bytes[3];
  22783. var header = new CFFHeader(major, minor, hdrSize, offSize);
  22784. return { obj: header, endPos: hdrSize };
  22785. },
  22786. parseDict: function CFFParser_parseDict(dict) {
  22787. var pos = 0;
  22788. function parseOperand() {
  22789. var value = dict[pos++];
  22790. if (value === 30) {
  22791. return parseFloatOperand(pos);
  22792. } else if (value === 28) {
  22793. value = dict[pos++];
  22794. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  22795. return value;
  22796. } else if (value === 29) {
  22797. value = dict[pos++];
  22798. value = (value << 8) | dict[pos++];
  22799. value = (value << 8) | dict[pos++];
  22800. value = (value << 8) | dict[pos++];
  22801. return value;
  22802. } else if (value >= 32 && value <= 246) {
  22803. return value - 139;
  22804. } else if (value >= 247 && value <= 250) {
  22805. return ((value - 247) * 256) + dict[pos++] + 108;
  22806. } else if (value >= 251 && value <= 254) {
  22807. return -((value - 251) * 256) - dict[pos++] - 108;
  22808. } else {
  22809. error('255 is not a valid DICT command');
  22810. }
  22811. return -1;
  22812. }
  22813. function parseFloatOperand() {
  22814. var str = '';
  22815. var eof = 15;
  22816. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  22817. '9', '.', 'E', 'E-', null, '-'];
  22818. var length = dict.length;
  22819. while (pos < length) {
  22820. var b = dict[pos++];
  22821. var b1 = b >> 4;
  22822. var b2 = b & 15;
  22823. if (b1 == eof) {
  22824. break;
  22825. }
  22826. str += lookup[b1];
  22827. if (b2 == eof) {
  22828. break;
  22829. }
  22830. str += lookup[b2];
  22831. }
  22832. return parseFloat(str);
  22833. }
  22834. var operands = [];
  22835. var entries = [];
  22836. pos = 0;
  22837. var end = dict.length;
  22838. while (pos < end) {
  22839. var b = dict[pos];
  22840. if (b <= 21) {
  22841. if (b === 12) {
  22842. b = (b << 8) | dict[++pos];
  22843. }
  22844. entries.push([b, operands]);
  22845. operands = [];
  22846. ++pos;
  22847. } else {
  22848. operands.push(parseOperand());
  22849. }
  22850. }
  22851. return entries;
  22852. },
  22853. parseIndex: function CFFParser_parseIndex(pos) {
  22854. var cffIndex = new CFFIndex();
  22855. var bytes = this.bytes;
  22856. var count = (bytes[pos++] << 8) | bytes[pos++];
  22857. var offsets = [];
  22858. var end = pos;
  22859. var i, ii;
  22860. if (count !== 0) {
  22861. var offsetSize = bytes[pos++];
  22862. // add 1 for offset to determine size of last object
  22863. var startPos = pos + ((count + 1) * offsetSize) - 1;
  22864. for (i = 0, ii = count + 1; i < ii; ++i) {
  22865. var offset = 0;
  22866. for (var j = 0; j < offsetSize; ++j) {
  22867. offset <<= 8;
  22868. offset += bytes[pos++];
  22869. }
  22870. offsets.push(startPos + offset);
  22871. }
  22872. end = offsets[count];
  22873. }
  22874. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  22875. var offsetStart = offsets[i];
  22876. var offsetEnd = offsets[i + 1];
  22877. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  22878. }
  22879. return {obj: cffIndex, endPos: end};
  22880. },
  22881. parseNameIndex: function CFFParser_parseNameIndex(index) {
  22882. var names = [];
  22883. for (var i = 0, ii = index.count; i < ii; ++i) {
  22884. var name = index.get(i);
  22885. // OTS doesn't allow names to be over 127 characters.
  22886. var length = Math.min(name.length, 127);
  22887. var data = [];
  22888. // OTS also only permits certain characters in the name.
  22889. for (var j = 0; j < length; ++j) {
  22890. var c = name[j];
  22891. if (j === 0 && c === 0) {
  22892. data[j] = c;
  22893. continue;
  22894. }
  22895. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  22896. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  22897. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  22898. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  22899. data[j] = 95;
  22900. continue;
  22901. }
  22902. data[j] = c;
  22903. }
  22904. names.push(bytesToString(data));
  22905. }
  22906. return names;
  22907. },
  22908. parseStringIndex: function CFFParser_parseStringIndex(index) {
  22909. var strings = new CFFStrings();
  22910. for (var i = 0, ii = index.count; i < ii; ++i) {
  22911. var data = index.get(i);
  22912. strings.add(bytesToString(data));
  22913. }
  22914. return strings;
  22915. },
  22916. createDict: function CFFParser_createDict(Type, dict, strings) {
  22917. var cffDict = new Type(strings);
  22918. for (var i = 0, ii = dict.length; i < ii; ++i) {
  22919. var pair = dict[i];
  22920. var key = pair[0];
  22921. var value = pair[1];
  22922. cffDict.setByKey(key, value);
  22923. }
  22924. return cffDict;
  22925. },
  22926. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  22927. var charStrings = this.parseIndex(charStringOffset).obj;
  22928. var seacs = [];
  22929. var count = charStrings.count;
  22930. for (var i = 0; i < count; i++) {
  22931. var charstring = charStrings.get(i);
  22932. var stackSize = 0;
  22933. var stack = [];
  22934. var undefStack = true;
  22935. var hints = 0;
  22936. var valid = true;
  22937. var data = charstring;
  22938. var length = data.length;
  22939. for (var j = 0; j < length;) {
  22940. var value = data[j++];
  22941. var validationCommand = null;
  22942. if (value == 12) {
  22943. var q = data[j++];
  22944. if (q === 0) {
  22945. // The CFF specification state that the 'dotsection' command
  22946. // (12, 0) is deprecated and treated as a no-op, but all Type2
  22947. // charstrings processors should support them. Unfortunately
  22948. // the font sanitizer don't. As a workaround the sequence (12, 0)
  22949. // is replaced by a useless (0, hmoveto).
  22950. data[j - 2] = 139;
  22951. data[j - 1] = 22;
  22952. stackSize = 0;
  22953. } else {
  22954. validationCommand = CharstringValidationData12[q];
  22955. }
  22956. } else if (value === 28) { // number (16 bit)
  22957. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  22958. j += 2;
  22959. stackSize++;
  22960. } else if (value == 14) {
  22961. if (stackSize >= 4) {
  22962. stackSize -= 4;
  22963. if (SEAC_ANALYSIS_ENABLED) {
  22964. seacs[i] = stack.slice(stackSize, stackSize + 4);
  22965. valid = false;
  22966. }
  22967. }
  22968. } else if (value >= 32 && value <= 246) { // number
  22969. stack[stackSize] = value - 139;
  22970. stackSize++;
  22971. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  22972. stack[stackSize] = (value < 251 ?
  22973. ((value - 247) << 8) + data[j] + 108 :
  22974. -((value - 251) << 8) - data[j] - 108);
  22975. j++;
  22976. stackSize++;
  22977. } else if (value == 255) { // number (32 bit)
  22978. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  22979. (data[j + 2] << 8) | data[j + 3]) / 65536;
  22980. j += 4;
  22981. stackSize++;
  22982. } else if (value == 19 || value == 20) {
  22983. hints += stackSize >> 1;
  22984. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  22985. stackSize = 0;
  22986. } else {
  22987. validationCommand = CharstringValidationData[value];
  22988. }
  22989. if (validationCommand) {
  22990. if (validationCommand.stem) {
  22991. hints += stackSize >> 1;
  22992. }
  22993. if ('min' in validationCommand) {
  22994. if (!undefStack && stackSize < validationCommand.min) {
  22995. warn('Not enough parameters for ' + validationCommand.id +
  22996. '; actual: ' + stackSize +
  22997. ', expected: ' + validationCommand.min);
  22998. valid = false;
  22999. break;
  23000. }
  23001. }
  23002. if ('stackDelta' in validationCommand) {
  23003. if ('stackFn' in validationCommand) {
  23004. validationCommand.stackFn(stack, stackSize);
  23005. }
  23006. stackSize += validationCommand.stackDelta;
  23007. } else if (validationCommand.resetStack) {
  23008. stackSize = 0;
  23009. undefStack = false;
  23010. } else if (validationCommand.undefStack) {
  23011. stackSize = 0;
  23012. undefStack = true;
  23013. }
  23014. }
  23015. }
  23016. if (!valid) {
  23017. // resetting invalid charstring to single 'endchar'
  23018. charStrings.set(i, new Uint8Array([14]));
  23019. }
  23020. }
  23021. return { charStrings: charStrings, seacs: seacs };
  23022. },
  23023. emptyPrivateDictionary:
  23024. function CFFParser_emptyPrivateDictionary(parentDict) {
  23025. var privateDict = this.createDict(CFFPrivateDict, [],
  23026. parentDict.strings);
  23027. parentDict.setByKey(18, [0, 0]);
  23028. parentDict.privateDict = privateDict;
  23029. },
  23030. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  23031. // no private dict, do nothing
  23032. if (!parentDict.hasName('Private')) {
  23033. this.emptyPrivateDictionary(parentDict);
  23034. return;
  23035. }
  23036. var privateOffset = parentDict.getByName('Private');
  23037. // make sure the params are formatted correctly
  23038. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  23039. parentDict.removeByName('Private');
  23040. return;
  23041. }
  23042. var size = privateOffset[0];
  23043. var offset = privateOffset[1];
  23044. // remove empty dicts or ones that refer to invalid location
  23045. if (size === 0 || offset >= this.bytes.length) {
  23046. this.emptyPrivateDictionary(parentDict);
  23047. return;
  23048. }
  23049. var privateDictEnd = offset + size;
  23050. var dictData = this.bytes.subarray(offset, privateDictEnd);
  23051. var dict = this.parseDict(dictData);
  23052. var privateDict = this.createDict(CFFPrivateDict, dict,
  23053. parentDict.strings);
  23054. parentDict.privateDict = privateDict;
  23055. // Parse the Subrs index also since it's relative to the private dict.
  23056. if (!privateDict.getByName('Subrs')) {
  23057. return;
  23058. }
  23059. var subrsOffset = privateDict.getByName('Subrs');
  23060. var relativeOffset = offset + subrsOffset;
  23061. // Validate the offset.
  23062. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  23063. this.emptyPrivateDictionary(parentDict);
  23064. return;
  23065. }
  23066. var subrsIndex = this.parseIndex(relativeOffset);
  23067. privateDict.subrsIndex = subrsIndex.obj;
  23068. },
  23069. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  23070. if (pos === 0) {
  23071. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  23072. ISOAdobeCharset);
  23073. } else if (pos == 1) {
  23074. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  23075. ExpertCharset);
  23076. } else if (pos == 2) {
  23077. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  23078. ExpertSubsetCharset);
  23079. }
  23080. var bytes = this.bytes;
  23081. var start = pos;
  23082. var format = bytes[pos++];
  23083. var charset = ['.notdef'];
  23084. var id, count, i;
  23085. // subtract 1 for the .notdef glyph
  23086. length -= 1;
  23087. switch (format) {
  23088. case 0:
  23089. for (i = 0; i < length; i++) {
  23090. id = (bytes[pos++] << 8) | bytes[pos++];
  23091. charset.push(cid ? id : strings.get(id));
  23092. }
  23093. break;
  23094. case 1:
  23095. while (charset.length <= length) {
  23096. id = (bytes[pos++] << 8) | bytes[pos++];
  23097. count = bytes[pos++];
  23098. for (i = 0; i <= count; i++) {
  23099. charset.push(cid ? id++ : strings.get(id++));
  23100. }
  23101. }
  23102. break;
  23103. case 2:
  23104. while (charset.length <= length) {
  23105. id = (bytes[pos++] << 8) | bytes[pos++];
  23106. count = (bytes[pos++] << 8) | bytes[pos++];
  23107. for (i = 0; i <= count; i++) {
  23108. charset.push(cid ? id++ : strings.get(id++));
  23109. }
  23110. }
  23111. break;
  23112. default:
  23113. error('Unknown charset format');
  23114. }
  23115. // Raw won't be needed if we actually compile the charset.
  23116. var end = pos;
  23117. var raw = bytes.subarray(start, end);
  23118. return new CFFCharset(false, format, charset, raw);
  23119. },
  23120. parseEncoding: function CFFParser_parseEncoding(pos,
  23121. properties,
  23122. strings,
  23123. charset) {
  23124. var encoding = {};
  23125. var bytes = this.bytes;
  23126. var predefined = false;
  23127. var hasSupplement = false;
  23128. var format, i, ii;
  23129. var raw = null;
  23130. function readSupplement() {
  23131. var supplementsCount = bytes[pos++];
  23132. for (i = 0; i < supplementsCount; i++) {
  23133. var code = bytes[pos++];
  23134. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  23135. encoding[code] = charset.indexOf(strings.get(sid));
  23136. }
  23137. }
  23138. if (pos === 0 || pos == 1) {
  23139. predefined = true;
  23140. format = pos;
  23141. var baseEncoding = pos ? Encodings.ExpertEncoding :
  23142. Encodings.StandardEncoding;
  23143. for (i = 0, ii = charset.length; i < ii; i++) {
  23144. var index = baseEncoding.indexOf(charset[i]);
  23145. if (index != -1) {
  23146. encoding[index] = i;
  23147. }
  23148. }
  23149. } else {
  23150. var dataStart = pos;
  23151. format = bytes[pos++];
  23152. switch (format & 0x7f) {
  23153. case 0:
  23154. var glyphsCount = bytes[pos++];
  23155. for (i = 1; i <= glyphsCount; i++) {
  23156. encoding[bytes[pos++]] = i;
  23157. }
  23158. break;
  23159. case 1:
  23160. var rangesCount = bytes[pos++];
  23161. var gid = 1;
  23162. for (i = 0; i < rangesCount; i++) {
  23163. var start = bytes[pos++];
  23164. var left = bytes[pos++];
  23165. for (var j = start; j <= start + left; j++) {
  23166. encoding[j] = gid++;
  23167. }
  23168. }
  23169. break;
  23170. default:
  23171. error('Unknow encoding format: ' + format + ' in CFF');
  23172. break;
  23173. }
  23174. var dataEnd = pos;
  23175. if (format & 0x80) {
  23176. // The font sanitizer does not support CFF encoding with a
  23177. // supplement, since the encoding is not really used to map
  23178. // between gid to glyph, let's overwrite what is declared in
  23179. // the top dictionary to let the sanitizer think the font use
  23180. // StandardEncoding, that's a lie but that's ok.
  23181. bytes[dataStart] &= 0x7f;
  23182. readSupplement();
  23183. hasSupplement = true;
  23184. }
  23185. raw = bytes.subarray(dataStart, dataEnd);
  23186. }
  23187. format = format & 0x7f;
  23188. return new CFFEncoding(predefined, format, encoding, raw);
  23189. },
  23190. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  23191. var start = pos;
  23192. var bytes = this.bytes;
  23193. var format = bytes[pos++];
  23194. var fdSelect = [];
  23195. var i;
  23196. switch (format) {
  23197. case 0:
  23198. for (i = 0; i < length; ++i) {
  23199. var id = bytes[pos++];
  23200. fdSelect.push(id);
  23201. }
  23202. break;
  23203. case 3:
  23204. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  23205. for (i = 0; i < rangesCount; ++i) {
  23206. var first = (bytes[pos++] << 8) | bytes[pos++];
  23207. var fdIndex = bytes[pos++];
  23208. var next = (bytes[pos] << 8) | bytes[pos + 1];
  23209. for (var j = first; j < next; ++j) {
  23210. fdSelect.push(fdIndex);
  23211. }
  23212. }
  23213. // Advance past the sentinel(next).
  23214. pos += 2;
  23215. break;
  23216. default:
  23217. error('Unknown fdselect format ' + format);
  23218. break;
  23219. }
  23220. var end = pos;
  23221. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  23222. }
  23223. };
  23224. return CFFParser;
  23225. })();
  23226. // Compact Font Format
  23227. var CFF = (function CFFClosure() {
  23228. function CFF() {
  23229. this.header = null;
  23230. this.names = [];
  23231. this.topDict = null;
  23232. this.strings = new CFFStrings();
  23233. this.globalSubrIndex = null;
  23234. // The following could really be per font, but since we only have one font
  23235. // store them here.
  23236. this.encoding = null;
  23237. this.charset = null;
  23238. this.charStrings = null;
  23239. this.fdArray = [];
  23240. this.fdSelect = null;
  23241. this.isCIDFont = false;
  23242. }
  23243. return CFF;
  23244. })();
  23245. var CFFHeader = (function CFFHeaderClosure() {
  23246. function CFFHeader(major, minor, hdrSize, offSize) {
  23247. this.major = major;
  23248. this.minor = minor;
  23249. this.hdrSize = hdrSize;
  23250. this.offSize = offSize;
  23251. }
  23252. return CFFHeader;
  23253. })();
  23254. var CFFStrings = (function CFFStringsClosure() {
  23255. function CFFStrings() {
  23256. this.strings = [];
  23257. }
  23258. CFFStrings.prototype = {
  23259. get: function CFFStrings_get(index) {
  23260. if (index >= 0 && index <= 390) {
  23261. return CFFStandardStrings[index];
  23262. }
  23263. if (index - 391 <= this.strings.length) {
  23264. return this.strings[index - 391];
  23265. }
  23266. return CFFStandardStrings[0];
  23267. },
  23268. add: function CFFStrings_add(value) {
  23269. this.strings.push(value);
  23270. },
  23271. get count() {
  23272. return this.strings.length;
  23273. }
  23274. };
  23275. return CFFStrings;
  23276. })();
  23277. var CFFIndex = (function CFFIndexClosure() {
  23278. function CFFIndex() {
  23279. this.objects = [];
  23280. this.length = 0;
  23281. }
  23282. CFFIndex.prototype = {
  23283. add: function CFFIndex_add(data) {
  23284. this.length += data.length;
  23285. this.objects.push(data);
  23286. },
  23287. set: function CFFIndex_set(index, data) {
  23288. this.length += data.length - this.objects[index].length;
  23289. this.objects[index] = data;
  23290. },
  23291. get: function CFFIndex_get(index) {
  23292. return this.objects[index];
  23293. },
  23294. get count() {
  23295. return this.objects.length;
  23296. }
  23297. };
  23298. return CFFIndex;
  23299. })();
  23300. var CFFDict = (function CFFDictClosure() {
  23301. function CFFDict(tables, strings) {
  23302. this.keyToNameMap = tables.keyToNameMap;
  23303. this.nameToKeyMap = tables.nameToKeyMap;
  23304. this.defaults = tables.defaults;
  23305. this.types = tables.types;
  23306. this.opcodes = tables.opcodes;
  23307. this.order = tables.order;
  23308. this.strings = strings;
  23309. this.values = {};
  23310. }
  23311. CFFDict.prototype = {
  23312. // value should always be an array
  23313. setByKey: function CFFDict_setByKey(key, value) {
  23314. if (!(key in this.keyToNameMap)) {
  23315. return false;
  23316. }
  23317. // ignore empty values
  23318. if (value.length === 0) {
  23319. return true;
  23320. }
  23321. var type = this.types[key];
  23322. // remove the array wrapping these types of values
  23323. if (type === 'num' || type === 'sid' || type === 'offset') {
  23324. value = value[0];
  23325. }
  23326. this.values[key] = value;
  23327. return true;
  23328. },
  23329. setByName: function CFFDict_setByName(name, value) {
  23330. if (!(name in this.nameToKeyMap)) {
  23331. error('Invalid dictionary name "' + name + '"');
  23332. }
  23333. this.values[this.nameToKeyMap[name]] = value;
  23334. },
  23335. hasName: function CFFDict_hasName(name) {
  23336. return this.nameToKeyMap[name] in this.values;
  23337. },
  23338. getByName: function CFFDict_getByName(name) {
  23339. if (!(name in this.nameToKeyMap)) {
  23340. error('Invalid dictionary name "' + name + '"');
  23341. }
  23342. var key = this.nameToKeyMap[name];
  23343. if (!(key in this.values)) {
  23344. return this.defaults[key];
  23345. }
  23346. return this.values[key];
  23347. },
  23348. removeByName: function CFFDict_removeByName(name) {
  23349. delete this.values[this.nameToKeyMap[name]];
  23350. }
  23351. };
  23352. CFFDict.createTables = function CFFDict_createTables(layout) {
  23353. var tables = {
  23354. keyToNameMap: {},
  23355. nameToKeyMap: {},
  23356. defaults: {},
  23357. types: {},
  23358. opcodes: {},
  23359. order: []
  23360. };
  23361. for (var i = 0, ii = layout.length; i < ii; ++i) {
  23362. var entry = layout[i];
  23363. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  23364. tables.keyToNameMap[key] = entry[1];
  23365. tables.nameToKeyMap[entry[1]] = key;
  23366. tables.types[key] = entry[2];
  23367. tables.defaults[key] = entry[3];
  23368. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  23369. tables.order.push(key);
  23370. }
  23371. return tables;
  23372. };
  23373. return CFFDict;
  23374. })();
  23375. var CFFTopDict = (function CFFTopDictClosure() {
  23376. var layout = [
  23377. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  23378. [[12, 20], 'SyntheticBase', 'num', null],
  23379. [0, 'version', 'sid', null],
  23380. [1, 'Notice', 'sid', null],
  23381. [[12, 0], 'Copyright', 'sid', null],
  23382. [2, 'FullName', 'sid', null],
  23383. [3, 'FamilyName', 'sid', null],
  23384. [4, 'Weight', 'sid', null],
  23385. [[12, 1], 'isFixedPitch', 'num', 0],
  23386. [[12, 2], 'ItalicAngle', 'num', 0],
  23387. [[12, 3], 'UnderlinePosition', 'num', -100],
  23388. [[12, 4], 'UnderlineThickness', 'num', 50],
  23389. [[12, 5], 'PaintType', 'num', 0],
  23390. [[12, 6], 'CharstringType', 'num', 2],
  23391. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  23392. [0.001, 0, 0, 0.001, 0, 0]],
  23393. [13, 'UniqueID', 'num', null],
  23394. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  23395. [[12, 8], 'StrokeWidth', 'num', 0],
  23396. [14, 'XUID', 'array', null],
  23397. [15, 'charset', 'offset', 0],
  23398. [16, 'Encoding', 'offset', 0],
  23399. [17, 'CharStrings', 'offset', 0],
  23400. [18, 'Private', ['offset', 'offset'], null],
  23401. [[12, 21], 'PostScript', 'sid', null],
  23402. [[12, 22], 'BaseFontName', 'sid', null],
  23403. [[12, 23], 'BaseFontBlend', 'delta', null],
  23404. [[12, 31], 'CIDFontVersion', 'num', 0],
  23405. [[12, 32], 'CIDFontRevision', 'num', 0],
  23406. [[12, 33], 'CIDFontType', 'num', 0],
  23407. [[12, 34], 'CIDCount', 'num', 8720],
  23408. [[12, 35], 'UIDBase', 'num', null],
  23409. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  23410. // before FDArray.
  23411. [[12, 37], 'FDSelect', 'offset', null],
  23412. [[12, 36], 'FDArray', 'offset', null],
  23413. [[12, 38], 'FontName', 'sid', null]
  23414. ];
  23415. var tables = null;
  23416. function CFFTopDict(strings) {
  23417. if (tables === null) {
  23418. tables = CFFDict.createTables(layout);
  23419. }
  23420. CFFDict.call(this, tables, strings);
  23421. this.privateDict = null;
  23422. }
  23423. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  23424. return CFFTopDict;
  23425. })();
  23426. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  23427. var layout = [
  23428. [6, 'BlueValues', 'delta', null],
  23429. [7, 'OtherBlues', 'delta', null],
  23430. [8, 'FamilyBlues', 'delta', null],
  23431. [9, 'FamilyOtherBlues', 'delta', null],
  23432. [[12, 9], 'BlueScale', 'num', 0.039625],
  23433. [[12, 10], 'BlueShift', 'num', 7],
  23434. [[12, 11], 'BlueFuzz', 'num', 1],
  23435. [10, 'StdHW', 'num', null],
  23436. [11, 'StdVW', 'num', null],
  23437. [[12, 12], 'StemSnapH', 'delta', null],
  23438. [[12, 13], 'StemSnapV', 'delta', null],
  23439. [[12, 14], 'ForceBold', 'num', 0],
  23440. [[12, 17], 'LanguageGroup', 'num', 0],
  23441. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  23442. [[12, 19], 'initialRandomSeed', 'num', 0],
  23443. [20, 'defaultWidthX', 'num', 0],
  23444. [21, 'nominalWidthX', 'num', 0],
  23445. [19, 'Subrs', 'offset', null]
  23446. ];
  23447. var tables = null;
  23448. function CFFPrivateDict(strings) {
  23449. if (tables === null) {
  23450. tables = CFFDict.createTables(layout);
  23451. }
  23452. CFFDict.call(this, tables, strings);
  23453. this.subrsIndex = null;
  23454. }
  23455. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  23456. return CFFPrivateDict;
  23457. })();
  23458. var CFFCharsetPredefinedTypes = {
  23459. ISO_ADOBE: 0,
  23460. EXPERT: 1,
  23461. EXPERT_SUBSET: 2
  23462. };
  23463. var CFFCharset = (function CFFCharsetClosure() {
  23464. function CFFCharset(predefined, format, charset, raw) {
  23465. this.predefined = predefined;
  23466. this.format = format;
  23467. this.charset = charset;
  23468. this.raw = raw;
  23469. }
  23470. return CFFCharset;
  23471. })();
  23472. var CFFEncoding = (function CFFEncodingClosure() {
  23473. function CFFEncoding(predefined, format, encoding, raw) {
  23474. this.predefined = predefined;
  23475. this.format = format;
  23476. this.encoding = encoding;
  23477. this.raw = raw;
  23478. }
  23479. return CFFEncoding;
  23480. })();
  23481. var CFFFDSelect = (function CFFFDSelectClosure() {
  23482. function CFFFDSelect(fdSelect, raw) {
  23483. this.fdSelect = fdSelect;
  23484. this.raw = raw;
  23485. }
  23486. return CFFFDSelect;
  23487. })();
  23488. // Helper class to keep track of where an offset is within the data and helps
  23489. // filling in that offset once it's known.
  23490. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  23491. function CFFOffsetTracker() {
  23492. this.offsets = {};
  23493. }
  23494. CFFOffsetTracker.prototype = {
  23495. isTracking: function CFFOffsetTracker_isTracking(key) {
  23496. return key in this.offsets;
  23497. },
  23498. track: function CFFOffsetTracker_track(key, location) {
  23499. if (key in this.offsets) {
  23500. error('Already tracking location of ' + key);
  23501. }
  23502. this.offsets[key] = location;
  23503. },
  23504. offset: function CFFOffsetTracker_offset(value) {
  23505. for (var key in this.offsets) {
  23506. this.offsets[key] += value;
  23507. }
  23508. },
  23509. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  23510. values,
  23511. output) {
  23512. if (!(key in this.offsets)) {
  23513. error('Not tracking location of ' + key);
  23514. }
  23515. var data = output.data;
  23516. var dataOffset = this.offsets[key];
  23517. var size = 5;
  23518. for (var i = 0, ii = values.length; i < ii; ++i) {
  23519. var offset0 = i * size + dataOffset;
  23520. var offset1 = offset0 + 1;
  23521. var offset2 = offset0 + 2;
  23522. var offset3 = offset0 + 3;
  23523. var offset4 = offset0 + 4;
  23524. // It's easy to screw up offsets so perform this sanity check.
  23525. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  23526. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  23527. error('writing to an offset that is not empty');
  23528. }
  23529. var value = values[i];
  23530. data[offset0] = 0x1d;
  23531. data[offset1] = (value >> 24) & 0xFF;
  23532. data[offset2] = (value >> 16) & 0xFF;
  23533. data[offset3] = (value >> 8) & 0xFF;
  23534. data[offset4] = value & 0xFF;
  23535. }
  23536. }
  23537. };
  23538. return CFFOffsetTracker;
  23539. })();
  23540. // Takes a CFF and converts it to the binary representation.
  23541. var CFFCompiler = (function CFFCompilerClosure() {
  23542. function CFFCompiler(cff) {
  23543. this.cff = cff;
  23544. }
  23545. CFFCompiler.prototype = {
  23546. compile: function CFFCompiler_compile() {
  23547. var cff = this.cff;
  23548. var output = {
  23549. data: [],
  23550. length: 0,
  23551. add: function CFFCompiler_add(data) {
  23552. this.data = this.data.concat(data);
  23553. this.length = this.data.length;
  23554. }
  23555. };
  23556. // Compile the five entries that must be in order.
  23557. var header = this.compileHeader(cff.header);
  23558. output.add(header);
  23559. var nameIndex = this.compileNameIndex(cff.names);
  23560. output.add(nameIndex);
  23561. if (cff.isCIDFont) {
  23562. // The spec is unclear on how font matrices should relate to each other
  23563. // when there is one in the main top dict and the sub top dicts.
  23564. // Windows handles this differently than linux and osx so we have to
  23565. // normalize to work on all.
  23566. // Rules based off of some mailing list discussions:
  23567. // - If main font has a matrix and subfont doesn't, use the main matrix.
  23568. // - If no main font matrix and there is a subfont matrix, use the
  23569. // subfont matrix.
  23570. // - If both have matrices, concat together.
  23571. // - If neither have matrices, use default.
  23572. // To make this work on all platforms we move the top matrix into each
  23573. // sub top dict and concat if necessary.
  23574. if (cff.topDict.hasName('FontMatrix')) {
  23575. var base = cff.topDict.getByName('FontMatrix');
  23576. cff.topDict.removeByName('FontMatrix');
  23577. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  23578. var subDict = cff.fdArray[i];
  23579. var matrix = base.slice(0);
  23580. if (subDict.hasName('FontMatrix')) {
  23581. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  23582. }
  23583. subDict.setByName('FontMatrix', matrix);
  23584. }
  23585. }
  23586. }
  23587. var compiled = this.compileTopDicts([cff.topDict],
  23588. output.length,
  23589. cff.isCIDFont);
  23590. output.add(compiled.output);
  23591. var topDictTracker = compiled.trackers[0];
  23592. var stringIndex = this.compileStringIndex(cff.strings.strings);
  23593. output.add(stringIndex);
  23594. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  23595. output.add(globalSubrIndex);
  23596. // Now start on the other entries that have no specfic order.
  23597. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  23598. if (cff.encoding.predefined) {
  23599. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  23600. output);
  23601. } else {
  23602. var encoding = this.compileEncoding(cff.encoding);
  23603. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  23604. output.add(encoding);
  23605. }
  23606. }
  23607. if (cff.charset && cff.topDict.hasName('charset')) {
  23608. if (cff.charset.predefined) {
  23609. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  23610. output);
  23611. } else {
  23612. var charset = this.compileCharset(cff.charset);
  23613. topDictTracker.setEntryLocation('charset', [output.length], output);
  23614. output.add(charset);
  23615. }
  23616. }
  23617. var charStrings = this.compileCharStrings(cff.charStrings);
  23618. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  23619. output.add(charStrings);
  23620. if (cff.isCIDFont) {
  23621. // For some reason FDSelect must be in front of FDArray on windows. OSX
  23622. // and linux don't seem to care.
  23623. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  23624. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  23625. output.add(fdSelect);
  23626. // It is unclear if the sub font dictionary can have CID related
  23627. // dictionary keys, but the sanitizer doesn't like them so remove them.
  23628. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  23629. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  23630. output.add(compiled.output);
  23631. var fontDictTrackers = compiled.trackers;
  23632. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  23633. }
  23634. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  23635. // If the font data ends with INDEX whose object data is zero-length,
  23636. // the sanitizer will bail out. Add a dummy byte to avoid that.
  23637. output.add([0]);
  23638. return output.data;
  23639. },
  23640. encodeNumber: function CFFCompiler_encodeNumber(value) {
  23641. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  23642. return this.encodeInteger(value);
  23643. } else {
  23644. return this.encodeFloat(value);
  23645. }
  23646. },
  23647. encodeFloat: function CFFCompiler_encodeFloat(num) {
  23648. var value = num.toString();
  23649. // rounding inaccurate doubles
  23650. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  23651. if (m) {
  23652. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  23653. value = (Math.round(num * epsilon) / epsilon).toString();
  23654. }
  23655. var nibbles = '';
  23656. var i, ii;
  23657. for (i = 0, ii = value.length; i < ii; ++i) {
  23658. var a = value[i];
  23659. if (a === 'e') {
  23660. nibbles += value[++i] === '-' ? 'c' : 'b';
  23661. } else if (a === '.') {
  23662. nibbles += 'a';
  23663. } else if (a === '-') {
  23664. nibbles += 'e';
  23665. } else {
  23666. nibbles += a;
  23667. }
  23668. }
  23669. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  23670. var out = [30];
  23671. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  23672. out.push(parseInt(nibbles.substr(i, 2), 16));
  23673. }
  23674. return out;
  23675. },
  23676. encodeInteger: function CFFCompiler_encodeInteger(value) {
  23677. var code;
  23678. if (value >= -107 && value <= 107) {
  23679. code = [value + 139];
  23680. } else if (value >= 108 && value <= 1131) {
  23681. value = [value - 108];
  23682. code = [(value >> 8) + 247, value & 0xFF];
  23683. } else if (value >= -1131 && value <= -108) {
  23684. value = -value - 108;
  23685. code = [(value >> 8) + 251, value & 0xFF];
  23686. } else if (value >= -32768 && value <= 32767) {
  23687. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  23688. } else {
  23689. code = [0x1d,
  23690. (value >> 24) & 0xFF,
  23691. (value >> 16) & 0xFF,
  23692. (value >> 8) & 0xFF,
  23693. value & 0xFF];
  23694. }
  23695. return code;
  23696. },
  23697. compileHeader: function CFFCompiler_compileHeader(header) {
  23698. return [
  23699. header.major,
  23700. header.minor,
  23701. header.hdrSize,
  23702. header.offSize
  23703. ];
  23704. },
  23705. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  23706. var nameIndex = new CFFIndex();
  23707. for (var i = 0, ii = names.length; i < ii; ++i) {
  23708. nameIndex.add(stringToArray(names[i]));
  23709. }
  23710. return this.compileIndex(nameIndex);
  23711. },
  23712. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  23713. length,
  23714. removeCidKeys) {
  23715. var fontDictTrackers = [];
  23716. var fdArrayIndex = new CFFIndex();
  23717. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23718. var fontDict = dicts[i];
  23719. if (removeCidKeys) {
  23720. fontDict.removeByName('CIDFontVersion');
  23721. fontDict.removeByName('CIDFontRevision');
  23722. fontDict.removeByName('CIDFontType');
  23723. fontDict.removeByName('CIDCount');
  23724. fontDict.removeByName('UIDBase');
  23725. }
  23726. var fontDictTracker = new CFFOffsetTracker();
  23727. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  23728. fontDictTrackers.push(fontDictTracker);
  23729. fdArrayIndex.add(fontDictData);
  23730. fontDictTracker.offset(length);
  23731. }
  23732. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  23733. return {
  23734. trackers: fontDictTrackers,
  23735. output: fdArrayIndex
  23736. };
  23737. },
  23738. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  23739. trackers,
  23740. output) {
  23741. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23742. var fontDict = dicts[i];
  23743. assert(fontDict.privateDict && fontDict.hasName('Private'),
  23744. 'There must be an private dictionary.');
  23745. var privateDict = fontDict.privateDict;
  23746. var privateDictTracker = new CFFOffsetTracker();
  23747. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  23748. var outputLength = output.length;
  23749. privateDictTracker.offset(outputLength);
  23750. if (!privateDictData.length) {
  23751. // The private dictionary was empty, set the output length to zero to
  23752. // ensure the offset length isn't out of bounds in the eyes of the
  23753. // sanitizer.
  23754. outputLength = 0;
  23755. }
  23756. trackers[i].setEntryLocation('Private',
  23757. [privateDictData.length, outputLength],
  23758. output);
  23759. output.add(privateDictData);
  23760. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  23761. var subrs = this.compileIndex(privateDict.subrsIndex);
  23762. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  23763. output);
  23764. output.add(subrs);
  23765. }
  23766. }
  23767. },
  23768. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  23769. var out = [];
  23770. // The dictionary keys must be in a certain order.
  23771. var order = dict.order;
  23772. for (var i = 0; i < order.length; ++i) {
  23773. var key = order[i];
  23774. if (!(key in dict.values)) {
  23775. continue;
  23776. }
  23777. var values = dict.values[key];
  23778. var types = dict.types[key];
  23779. if (!isArray(types)) {
  23780. types = [types];
  23781. }
  23782. if (!isArray(values)) {
  23783. values = [values];
  23784. }
  23785. // Remove any empty dict values.
  23786. if (values.length === 0) {
  23787. continue;
  23788. }
  23789. for (var j = 0, jj = types.length; j < jj; ++j) {
  23790. var type = types[j];
  23791. var value = values[j];
  23792. switch (type) {
  23793. case 'num':
  23794. case 'sid':
  23795. out = out.concat(this.encodeNumber(value));
  23796. break;
  23797. case 'offset':
  23798. // For offsets we just insert a 32bit integer so we don't have to
  23799. // deal with figuring out the length of the offset when it gets
  23800. // replaced later on by the compiler.
  23801. var name = dict.keyToNameMap[key];
  23802. // Some offsets have the offset and the length, so just record the
  23803. // position of the first one.
  23804. if (!offsetTracker.isTracking(name)) {
  23805. offsetTracker.track(name, out.length);
  23806. }
  23807. out = out.concat([0x1d, 0, 0, 0, 0]);
  23808. break;
  23809. case 'array':
  23810. case 'delta':
  23811. out = out.concat(this.encodeNumber(value));
  23812. for (var k = 1, kk = values.length; k < kk; ++k) {
  23813. out = out.concat(this.encodeNumber(values[k]));
  23814. }
  23815. break;
  23816. default:
  23817. error('Unknown data type of ' + type);
  23818. break;
  23819. }
  23820. }
  23821. out = out.concat(dict.opcodes[key]);
  23822. }
  23823. return out;
  23824. },
  23825. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  23826. var stringIndex = new CFFIndex();
  23827. for (var i = 0, ii = strings.length; i < ii; ++i) {
  23828. stringIndex.add(stringToArray(strings[i]));
  23829. }
  23830. return this.compileIndex(stringIndex);
  23831. },
  23832. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  23833. var globalSubrIndex = this.cff.globalSubrIndex;
  23834. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  23835. },
  23836. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  23837. return this.compileIndex(charStrings);
  23838. },
  23839. compileCharset: function CFFCompiler_compileCharset(charset) {
  23840. return this.compileTypedArray(charset.raw);
  23841. },
  23842. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  23843. return this.compileTypedArray(encoding.raw);
  23844. },
  23845. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  23846. return this.compileTypedArray(fdSelect);
  23847. },
  23848. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  23849. var out = [];
  23850. for (var i = 0, ii = data.length; i < ii; ++i) {
  23851. out[i] = data[i];
  23852. }
  23853. return out;
  23854. },
  23855. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  23856. trackers = trackers || [];
  23857. var objects = index.objects;
  23858. // First 2 bytes contains the number of objects contained into this index
  23859. var count = objects.length;
  23860. // If there is no object, just create an index. This technically
  23861. // should just be [0, 0] but OTS has an issue with that.
  23862. if (count === 0) {
  23863. return [0, 0, 0];
  23864. }
  23865. var data = [(count >> 8) & 0xFF, count & 0xff];
  23866. var lastOffset = 1, i;
  23867. for (i = 0; i < count; ++i) {
  23868. lastOffset += objects[i].length;
  23869. }
  23870. var offsetSize;
  23871. if (lastOffset < 0x100) {
  23872. offsetSize = 1;
  23873. } else if (lastOffset < 0x10000) {
  23874. offsetSize = 2;
  23875. } else if (lastOffset < 0x1000000) {
  23876. offsetSize = 3;
  23877. } else {
  23878. offsetSize = 4;
  23879. }
  23880. // Next byte contains the offset size use to reference object in the file
  23881. data.push(offsetSize);
  23882. // Add another offset after this one because we need a new offset
  23883. var relativeOffset = 1;
  23884. for (i = 0; i < count + 1; i++) {
  23885. if (offsetSize === 1) {
  23886. data.push(relativeOffset & 0xFF);
  23887. } else if (offsetSize === 2) {
  23888. data.push((relativeOffset >> 8) & 0xFF,
  23889. relativeOffset & 0xFF);
  23890. } else if (offsetSize === 3) {
  23891. data.push((relativeOffset >> 16) & 0xFF,
  23892. (relativeOffset >> 8) & 0xFF,
  23893. relativeOffset & 0xFF);
  23894. } else {
  23895. data.push((relativeOffset >>> 24) & 0xFF,
  23896. (relativeOffset >> 16) & 0xFF,
  23897. (relativeOffset >> 8) & 0xFF,
  23898. relativeOffset & 0xFF);
  23899. }
  23900. if (objects[i]) {
  23901. relativeOffset += objects[i].length;
  23902. }
  23903. }
  23904. for (i = 0; i < count; i++) {
  23905. // Notify the tracker where the object will be offset in the data.
  23906. if (trackers[i]) {
  23907. trackers[i].offset(data.length);
  23908. }
  23909. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  23910. data.push(objects[i][j]);
  23911. }
  23912. }
  23913. return data;
  23914. }
  23915. };
  23916. return CFFCompiler;
  23917. })();
  23918. // Workaround for seac on Windows.
  23919. (function checkSeacSupport() {
  23920. if (/Windows/.test(navigator.userAgent)) {
  23921. SEAC_ANALYSIS_ENABLED = true;
  23922. }
  23923. })();
  23924. // Workaround for Private Use Area characters in Chrome on Windows
  23925. // http://code.google.com/p/chromium/issues/detail?id=122465
  23926. // https://github.com/mozilla/pdf.js/issues/1689
  23927. (function checkChromeWindows() {
  23928. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  23929. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  23930. }
  23931. })();
  23932. var FontRendererFactory = (function FontRendererFactoryClosure() {
  23933. function getLong(data, offset) {
  23934. return (data[offset] << 24) | (data[offset + 1] << 16) |
  23935. (data[offset + 2] << 8) | data[offset + 3];
  23936. }
  23937. function getUshort(data, offset) {
  23938. return (data[offset] << 8) | data[offset + 1];
  23939. }
  23940. function parseCmap(data, start, end) {
  23941. var offset = (getUshort(data, start + 2) === 1 ?
  23942. getLong(data, start + 8) : getLong(data, start + 16));
  23943. var format = getUshort(data, start + offset);
  23944. var length, ranges, p, i;
  23945. if (format === 4) {
  23946. length = getUshort(data, start + offset + 2);
  23947. var segCount = getUshort(data, start + offset + 6) >> 1;
  23948. p = start + offset + 14;
  23949. ranges = [];
  23950. for (i = 0; i < segCount; i++, p += 2) {
  23951. ranges[i] = {end: getUshort(data, p)};
  23952. }
  23953. p += 2;
  23954. for (i = 0; i < segCount; i++, p += 2) {
  23955. ranges[i].start = getUshort(data, p);
  23956. }
  23957. for (i = 0; i < segCount; i++, p += 2) {
  23958. ranges[i].idDelta = getUshort(data, p);
  23959. }
  23960. for (i = 0; i < segCount; i++, p += 2) {
  23961. var idOffset = getUshort(data, p);
  23962. if (idOffset === 0) {
  23963. continue;
  23964. }
  23965. ranges[i].ids = [];
  23966. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  23967. ranges[i].ids[j] = getUshort(data, p + idOffset);
  23968. idOffset += 2;
  23969. }
  23970. }
  23971. return ranges;
  23972. } else if (format === 12) {
  23973. length = getLong(data, start + offset + 4);
  23974. var groups = getLong(data, start + offset + 12);
  23975. p = start + offset + 16;
  23976. ranges = [];
  23977. for (i = 0; i < groups; i++) {
  23978. ranges.push({
  23979. start: getLong(data, p),
  23980. end: getLong(data, p + 4),
  23981. idDelta: getLong(data, p + 8) - getLong(data, p)
  23982. });
  23983. p += 12;
  23984. }
  23985. return ranges;
  23986. }
  23987. error('not supported cmap: ' + format);
  23988. }
  23989. function parseCff(data, start, end) {
  23990. var properties = {};
  23991. var parser = new CFFParser(new Stream(data, start, end - start),
  23992. properties);
  23993. var cff = parser.parse();
  23994. return {
  23995. glyphs: cff.charStrings.objects,
  23996. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  23997. cff.topDict.privateDict.subrsIndex.objects),
  23998. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  23999. };
  24000. }
  24001. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  24002. var itemSize, itemDecode;
  24003. if (isGlyphLocationsLong) {
  24004. itemSize = 4;
  24005. itemDecode = function fontItemDecodeLong(data, offset) {
  24006. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24007. (data[offset + 2] << 8) | data[offset + 3];
  24008. };
  24009. } else {
  24010. itemSize = 2;
  24011. itemDecode = function fontItemDecode(data, offset) {
  24012. return (data[offset] << 9) | (data[offset + 1] << 1);
  24013. };
  24014. }
  24015. var glyphs = [];
  24016. var startOffset = itemDecode(loca, 0);
  24017. for (var j = itemSize; j < loca.length; j += itemSize) {
  24018. var endOffset = itemDecode(loca, j);
  24019. glyphs.push(glyf.subarray(startOffset, endOffset));
  24020. startOffset = endOffset;
  24021. }
  24022. return glyphs;
  24023. }
  24024. function lookupCmap(ranges, unicode) {
  24025. var code = unicode.charCodeAt(0);
  24026. var l = 0, r = ranges.length - 1;
  24027. while (l < r) {
  24028. var c = (l + r + 1) >> 1;
  24029. if (code < ranges[c].start) {
  24030. r = c - 1;
  24031. } else {
  24032. l = c;
  24033. }
  24034. }
  24035. if (ranges[l].start <= code && code <= ranges[l].end) {
  24036. return (ranges[l].idDelta + (ranges[l].ids ?
  24037. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  24038. }
  24039. return 0;
  24040. }
  24041. function compileGlyf(code, js, font) {
  24042. function moveTo(x, y) {
  24043. js.push('c.moveTo(' + x + ',' + y + ');');
  24044. }
  24045. function lineTo(x, y) {
  24046. js.push('c.lineTo(' + x + ',' + y + ');');
  24047. }
  24048. function quadraticCurveTo(xa, ya, x, y) {
  24049. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  24050. x + ',' + y + ');');
  24051. }
  24052. var i = 0;
  24053. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24054. var flags;
  24055. var x = 0, y = 0;
  24056. i += 10;
  24057. if (numberOfContours < 0) {
  24058. // composite glyph
  24059. do {
  24060. flags = (code[i] << 8) | code[i + 1];
  24061. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  24062. i += 4;
  24063. var arg1, arg2;
  24064. if ((flags & 0x01)) {
  24065. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24066. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  24067. i += 4;
  24068. } else {
  24069. arg1 = code[i++]; arg2 = code[i++];
  24070. }
  24071. if ((flags & 0x02)) {
  24072. x = arg1;
  24073. y = arg2;
  24074. } else {
  24075. x = 0; y = 0; // TODO "they are points" ?
  24076. }
  24077. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  24078. if ((flags & 0x08)) {
  24079. scaleX =
  24080. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24081. i += 2;
  24082. } else if ((flags & 0x40)) {
  24083. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24084. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24085. i += 4;
  24086. } else if ((flags & 0x80)) {
  24087. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24088. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24089. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  24090. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  24091. i += 8;
  24092. }
  24093. var subglyph = font.glyphs[glyphIndex];
  24094. if (subglyph) {
  24095. js.push('c.save();');
  24096. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  24097. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  24098. compileGlyf(subglyph, js, font);
  24099. js.push('c.restore();');
  24100. }
  24101. } while ((flags & 0x20));
  24102. } else {
  24103. // simple glyph
  24104. var endPtsOfContours = [];
  24105. var j, jj;
  24106. for (j = 0; j < numberOfContours; j++) {
  24107. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  24108. i += 2;
  24109. }
  24110. var instructionLength = (code[i] << 8) | code[i + 1];
  24111. i += 2 + instructionLength; // skipping the instructions
  24112. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  24113. var points = [];
  24114. while (points.length < numberOfPoints) {
  24115. flags = code[i++];
  24116. var repeat = 1;
  24117. if ((flags & 0x08)) {
  24118. repeat += code[i++];
  24119. }
  24120. while (repeat-- > 0) {
  24121. points.push({flags: flags});
  24122. }
  24123. }
  24124. for (j = 0; j < numberOfPoints; j++) {
  24125. switch (points[j].flags & 0x12) {
  24126. case 0x00:
  24127. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24128. i += 2;
  24129. break;
  24130. case 0x02:
  24131. x -= code[i++];
  24132. break;
  24133. case 0x12:
  24134. x += code[i++];
  24135. break;
  24136. }
  24137. points[j].x = x;
  24138. }
  24139. for (j = 0; j < numberOfPoints; j++) {
  24140. switch (points[j].flags & 0x24) {
  24141. case 0x00:
  24142. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24143. i += 2;
  24144. break;
  24145. case 0x04:
  24146. y -= code[i++];
  24147. break;
  24148. case 0x24:
  24149. y += code[i++];
  24150. break;
  24151. }
  24152. points[j].y = y;
  24153. }
  24154. var startPoint = 0;
  24155. for (i = 0; i < numberOfContours; i++) {
  24156. var endPoint = endPtsOfContours[i];
  24157. // contours might have implicit points, which is located in the middle
  24158. // between two neighboring off-curve points
  24159. var contour = points.slice(startPoint, endPoint + 1);
  24160. if ((contour[0].flags & 1)) {
  24161. contour.push(contour[0]); // using start point at the contour end
  24162. } else if ((contour[contour.length - 1].flags & 1)) {
  24163. // first is off-curve point, trying to use one from the end
  24164. contour.unshift(contour[contour.length - 1]);
  24165. } else {
  24166. // start and end are off-curve points, creating implicit one
  24167. var p = {
  24168. flags: 1,
  24169. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  24170. y: (contour[0].y + contour[contour.length - 1].y) / 2
  24171. };
  24172. contour.unshift(p);
  24173. contour.push(p);
  24174. }
  24175. moveTo(contour[0].x, contour[0].y);
  24176. for (j = 1, jj = contour.length; j < jj; j++) {
  24177. if ((contour[j].flags & 1)) {
  24178. lineTo(contour[j].x, contour[j].y);
  24179. } else if ((contour[j + 1].flags & 1)){
  24180. quadraticCurveTo(contour[j].x, contour[j].y,
  24181. contour[j + 1].x, contour[j + 1].y);
  24182. j++;
  24183. } else {
  24184. quadraticCurveTo(contour[j].x, contour[j].y,
  24185. (contour[j].x + contour[j + 1].x) / 2,
  24186. (contour[j].y + contour[j + 1].y) / 2);
  24187. }
  24188. }
  24189. startPoint = endPoint + 1;
  24190. }
  24191. }
  24192. }
  24193. function compileCharString(code, js, font) {
  24194. var stack = [];
  24195. var x = 0, y = 0;
  24196. var stems = 0;
  24197. function moveTo(x, y) {
  24198. js.push('c.moveTo(' + x + ',' + y + ');');
  24199. }
  24200. function lineTo(x, y) {
  24201. js.push('c.lineTo(' + x + ',' + y + ');');
  24202. }
  24203. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  24204. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  24205. x + ',' + y + ');');
  24206. }
  24207. function parse(code) {
  24208. var i = 0;
  24209. while (i < code.length) {
  24210. var stackClean = false;
  24211. var v = code[i++];
  24212. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  24213. switch (v) {
  24214. case 1: // hstem
  24215. stems += stack.length >> 1;
  24216. stackClean = true;
  24217. break;
  24218. case 3: // vstem
  24219. stems += stack.length >> 1;
  24220. stackClean = true;
  24221. break;
  24222. case 4: // vmoveto
  24223. y += stack.pop();
  24224. moveTo(x, y);
  24225. stackClean = true;
  24226. break;
  24227. case 5: // rlineto
  24228. while (stack.length > 0) {
  24229. x += stack.shift();
  24230. y += stack.shift();
  24231. lineTo(x, y);
  24232. }
  24233. break;
  24234. case 6: // hlineto
  24235. while (stack.length > 0) {
  24236. x += stack.shift();
  24237. lineTo(x, y);
  24238. if (stack.length === 0) {
  24239. break;
  24240. }
  24241. y += stack.shift();
  24242. lineTo(x, y);
  24243. }
  24244. break;
  24245. case 7: // vlineto
  24246. while (stack.length > 0) {
  24247. y += stack.shift();
  24248. lineTo(x, y);
  24249. if (stack.length === 0) {
  24250. break;
  24251. }
  24252. x += stack.shift();
  24253. lineTo(x, y);
  24254. }
  24255. break;
  24256. case 8: // rrcurveto
  24257. while (stack.length > 0) {
  24258. xa = x + stack.shift(); ya = y + stack.shift();
  24259. xb = xa + stack.shift(); yb = ya + stack.shift();
  24260. x = xb + stack.shift(); y = yb + stack.shift();
  24261. bezierCurveTo(xa, ya, xb, yb, x, y);
  24262. }
  24263. break;
  24264. case 10: // callsubr
  24265. n = stack.pop() + font.subrsBias;
  24266. subrCode = font.subrs[n];
  24267. if (subrCode) {
  24268. parse(subrCode);
  24269. }
  24270. break;
  24271. case 11: // return
  24272. return;
  24273. case 12:
  24274. v = code[i++];
  24275. switch (v) {
  24276. case 34: // flex
  24277. xa = x + stack.shift();
  24278. xb = xa + stack.shift(); y1 = y + stack.shift();
  24279. x = xb + stack.shift();
  24280. bezierCurveTo(xa, y, xb, y1, x, y1);
  24281. xa = x + stack.shift();
  24282. xb = xa + stack.shift();
  24283. x = xb + stack.shift();
  24284. bezierCurveTo(xa, y1, xb, y, x, y);
  24285. break;
  24286. case 35: // flex
  24287. xa = x + stack.shift(); ya = y + stack.shift();
  24288. xb = xa + stack.shift(); yb = ya + stack.shift();
  24289. x = xb + stack.shift(); y = yb + stack.shift();
  24290. bezierCurveTo(xa, ya, xb, yb, x, y);
  24291. xa = x + stack.shift(); ya = y + stack.shift();
  24292. xb = xa + stack.shift(); yb = ya + stack.shift();
  24293. x = xb + stack.shift(); y = yb + stack.shift();
  24294. bezierCurveTo(xa, ya, xb, yb, x, y);
  24295. stack.pop(); // fd
  24296. break;
  24297. case 36: // hflex1
  24298. xa = x + stack.shift(); y1 = y + stack.shift();
  24299. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  24300. x = xb + stack.shift();
  24301. bezierCurveTo(xa, y1, xb, y2, x, y2);
  24302. xa = x + stack.shift();
  24303. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  24304. x = xb + stack.shift();
  24305. bezierCurveTo(xa, y2, xb, y3, x, y);
  24306. break;
  24307. case 37: // flex1
  24308. var x0 = x, y0 = y;
  24309. xa = x + stack.shift(); ya = y + stack.shift();
  24310. xb = xa + stack.shift(); yb = ya + stack.shift();
  24311. x = xb + stack.shift(); y = yb + stack.shift();
  24312. bezierCurveTo(xa, ya, xb, yb, x, y);
  24313. xa = x + stack.shift(); ya = y + stack.shift();
  24314. xb = xa + stack.shift(); yb = ya + stack.shift();
  24315. x = xb; y = yb;
  24316. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  24317. x += stack.shift();
  24318. } else {
  24319. y += stack.shift();
  24320. }
  24321. bezierCurveTo(xa, ya, xb, yb, x, y);
  24322. break;
  24323. default:
  24324. error('unknown operator: 12 ' + v);
  24325. }
  24326. break;
  24327. case 14: // endchar
  24328. if (stack.length >= 4) {
  24329. var achar = stack.pop();
  24330. var bchar = stack.pop();
  24331. y = stack.pop();
  24332. x = stack.pop();
  24333. js.push('c.save();');
  24334. js.push('c.translate('+ x + ',' + y + ');');
  24335. var gid = lookupCmap(font.cmap, String.fromCharCode(
  24336. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  24337. compileCharString(font.glyphs[gid], js, font);
  24338. js.push('c.restore();');
  24339. gid = lookupCmap(font.cmap, String.fromCharCode(
  24340. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  24341. compileCharString(font.glyphs[gid], js, font);
  24342. }
  24343. return;
  24344. case 18: // hstemhm
  24345. stems += stack.length >> 1;
  24346. stackClean = true;
  24347. break;
  24348. case 19: // hintmask
  24349. stems += stack.length >> 1;
  24350. i += (stems + 7) >> 3;
  24351. stackClean = true;
  24352. break;
  24353. case 20: // cntrmask
  24354. stems += stack.length >> 1;
  24355. i += (stems + 7) >> 3;
  24356. stackClean = true;
  24357. break;
  24358. case 21: // rmoveto
  24359. y += stack.pop();
  24360. x += stack.pop();
  24361. moveTo(x, y);
  24362. stackClean = true;
  24363. break;
  24364. case 22: // hmoveto
  24365. x += stack.pop();
  24366. moveTo(x, y);
  24367. stackClean = true;
  24368. break;
  24369. case 23: // vstemhm
  24370. stems += stack.length >> 1;
  24371. stackClean = true;
  24372. break;
  24373. case 24: // rcurveline
  24374. while (stack.length > 2) {
  24375. xa = x + stack.shift(); ya = y + stack.shift();
  24376. xb = xa + stack.shift(); yb = ya + stack.shift();
  24377. x = xb + stack.shift(); y = yb + stack.shift();
  24378. bezierCurveTo(xa, ya, xb, yb, x, y);
  24379. }
  24380. x += stack.shift();
  24381. y += stack.shift();
  24382. lineTo(x, y);
  24383. break;
  24384. case 25: // rlinecurve
  24385. while (stack.length > 6) {
  24386. x += stack.shift();
  24387. y += stack.shift();
  24388. lineTo(x, y);
  24389. }
  24390. xa = x + stack.shift(); ya = y + stack.shift();
  24391. xb = xa + stack.shift(); yb = ya + stack.shift();
  24392. x = xb + stack.shift(); y = yb + stack.shift();
  24393. bezierCurveTo(xa, ya, xb, yb, x, y);
  24394. break;
  24395. case 26: // vvcurveto
  24396. if (stack.length % 2) {
  24397. x += stack.shift();
  24398. }
  24399. while (stack.length > 0) {
  24400. xa = x; ya = y + stack.shift();
  24401. xb = xa + stack.shift(); yb = ya + stack.shift();
  24402. x = xb; y = yb + stack.shift();
  24403. bezierCurveTo(xa, ya, xb, yb, x, y);
  24404. }
  24405. break;
  24406. case 27: // hhcurveto
  24407. if (stack.length % 2) {
  24408. y += stack.shift();
  24409. }
  24410. while (stack.length > 0) {
  24411. xa = x + stack.shift(); ya = y;
  24412. xb = xa + stack.shift(); yb = ya + stack.shift();
  24413. x = xb + stack.shift(); y = yb;
  24414. bezierCurveTo(xa, ya, xb, yb, x, y);
  24415. }
  24416. break;
  24417. case 28:
  24418. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  24419. i += 2;
  24420. break;
  24421. case 29: // callgsubr
  24422. n = stack.pop() + font.gsubrsBias;
  24423. subrCode = font.gsubrs[n];
  24424. if (subrCode) {
  24425. parse(subrCode);
  24426. }
  24427. break;
  24428. case 30: // vhcurveto
  24429. while (stack.length > 0) {
  24430. xa = x; ya = y + stack.shift();
  24431. xb = xa + stack.shift(); yb = ya + stack.shift();
  24432. x = xb + stack.shift();
  24433. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24434. bezierCurveTo(xa, ya, xb, yb, x, y);
  24435. if (stack.length === 0) {
  24436. break;
  24437. }
  24438. xa = x + stack.shift(); ya = y;
  24439. xb = xa + stack.shift(); yb = ya + stack.shift();
  24440. y = yb + stack.shift();
  24441. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24442. bezierCurveTo(xa, ya, xb, yb, x, y);
  24443. }
  24444. break;
  24445. case 31: // hvcurveto
  24446. while (stack.length > 0) {
  24447. xa = x + stack.shift(); ya = y;
  24448. xb = xa + stack.shift(); yb = ya + stack.shift();
  24449. y = yb + stack.shift();
  24450. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24451. bezierCurveTo(xa, ya, xb, yb, x, y);
  24452. if (stack.length === 0) {
  24453. break;
  24454. }
  24455. xa = x; ya = y + stack.shift();
  24456. xb = xa + stack.shift(); yb = ya + stack.shift();
  24457. x = xb + stack.shift();
  24458. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24459. bezierCurveTo(xa, ya, xb, yb, x, y);
  24460. }
  24461. break;
  24462. default:
  24463. if (v < 32) {
  24464. error('unknown operator: ' + v);
  24465. }
  24466. if (v < 247) {
  24467. stack.push(v - 139);
  24468. } else if (v < 251) {
  24469. stack.push((v - 247) * 256 + code[i++] + 108);
  24470. } else if (v < 255) {
  24471. stack.push(-(v - 251) * 256 - code[i++] - 108);
  24472. } else {
  24473. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  24474. (code[i + 2] << 8) | code[i + 3]) / 65536);
  24475. i += 4;
  24476. }
  24477. break;
  24478. }
  24479. if (stackClean) {
  24480. stack.length = 0;
  24481. }
  24482. }
  24483. }
  24484. parse(code);
  24485. }
  24486. var noop = '';
  24487. function CompiledFont(fontMatrix) {
  24488. this.compiledGlyphs = {};
  24489. this.fontMatrix = fontMatrix;
  24490. }
  24491. CompiledFont.prototype = {
  24492. getPathJs: function (unicode) {
  24493. var gid = lookupCmap(this.cmap, unicode);
  24494. var fn = this.compiledGlyphs[gid];
  24495. if (!fn) {
  24496. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  24497. }
  24498. return fn;
  24499. },
  24500. compileGlyph: function (code) {
  24501. if (!code || code.length === 0 || code[0] === 14) {
  24502. return noop;
  24503. }
  24504. var js = [];
  24505. js.push('c.save();');
  24506. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  24507. js.push('c.scale(size, -size);');
  24508. this.compileGlyphImpl(code, js);
  24509. js.push('c.restore();');
  24510. return js.join('\n');
  24511. },
  24512. compileGlyphImpl: function () {
  24513. error('Children classes should implement this.');
  24514. },
  24515. hasBuiltPath: function (unicode) {
  24516. var gid = lookupCmap(this.cmap, unicode);
  24517. return gid in this.compiledGlyphs;
  24518. }
  24519. };
  24520. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  24521. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  24522. CompiledFont.call(this, fontMatrix);
  24523. this.glyphs = glyphs;
  24524. this.cmap = cmap;
  24525. this.compiledGlyphs = [];
  24526. }
  24527. Util.inherit(TrueTypeCompiled, CompiledFont, {
  24528. compileGlyphImpl: function (code, js) {
  24529. compileGlyf(code, js, this);
  24530. }
  24531. });
  24532. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  24533. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  24534. CompiledFont.call(this, fontMatrix);
  24535. this.glyphs = cffInfo.glyphs;
  24536. this.gsubrs = cffInfo.gsubrs || [];
  24537. this.subrs = cffInfo.subrs || [];
  24538. this.cmap = cmap;
  24539. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  24540. this.compiledGlyphs = [];
  24541. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  24542. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  24543. this.subrsBias = (this.subrs.length < 1240 ?
  24544. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  24545. }
  24546. Util.inherit(Type2Compiled, CompiledFont, {
  24547. compileGlyphImpl: function (code, js) {
  24548. compileCharString(code, js, this);
  24549. }
  24550. });
  24551. return {
  24552. create: function FontRendererFactory_create(font) {
  24553. var data = new Uint8Array(font.data);
  24554. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  24555. var numTables = getUshort(data, 4);
  24556. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  24557. var tag = bytesToString(data.subarray(p, p + 4));
  24558. var offset = getLong(data, p + 8);
  24559. var length = getLong(data, p + 12);
  24560. switch (tag) {
  24561. case 'cmap':
  24562. cmap = parseCmap(data, offset, offset + length);
  24563. break;
  24564. case 'glyf':
  24565. glyf = data.subarray(offset, offset + length);
  24566. break;
  24567. case 'loca':
  24568. loca = data.subarray(offset, offset + length);
  24569. break;
  24570. case 'head':
  24571. unitsPerEm = getUshort(data, offset + 18);
  24572. indexToLocFormat = getUshort(data, offset + 50);
  24573. break;
  24574. case 'CFF ':
  24575. cff = parseCff(data, offset, offset + length);
  24576. break;
  24577. }
  24578. }
  24579. if (glyf) {
  24580. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  24581. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  24582. return new TrueTypeCompiled(
  24583. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  24584. } else {
  24585. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  24586. }
  24587. }
  24588. };
  24589. })();
  24590. var GlyphsUnicode = {
  24591. A: 0x0041,
  24592. AE: 0x00C6,
  24593. AEacute: 0x01FC,
  24594. AEmacron: 0x01E2,
  24595. AEsmall: 0xF7E6,
  24596. Aacute: 0x00C1,
  24597. Aacutesmall: 0xF7E1,
  24598. Abreve: 0x0102,
  24599. Abreveacute: 0x1EAE,
  24600. Abrevecyrillic: 0x04D0,
  24601. Abrevedotbelow: 0x1EB6,
  24602. Abrevegrave: 0x1EB0,
  24603. Abrevehookabove: 0x1EB2,
  24604. Abrevetilde: 0x1EB4,
  24605. Acaron: 0x01CD,
  24606. Acircle: 0x24B6,
  24607. Acircumflex: 0x00C2,
  24608. Acircumflexacute: 0x1EA4,
  24609. Acircumflexdotbelow: 0x1EAC,
  24610. Acircumflexgrave: 0x1EA6,
  24611. Acircumflexhookabove: 0x1EA8,
  24612. Acircumflexsmall: 0xF7E2,
  24613. Acircumflextilde: 0x1EAA,
  24614. Acute: 0xF6C9,
  24615. Acutesmall: 0xF7B4,
  24616. Acyrillic: 0x0410,
  24617. Adblgrave: 0x0200,
  24618. Adieresis: 0x00C4,
  24619. Adieresiscyrillic: 0x04D2,
  24620. Adieresismacron: 0x01DE,
  24621. Adieresissmall: 0xF7E4,
  24622. Adotbelow: 0x1EA0,
  24623. Adotmacron: 0x01E0,
  24624. Agrave: 0x00C0,
  24625. Agravesmall: 0xF7E0,
  24626. Ahookabove: 0x1EA2,
  24627. Aiecyrillic: 0x04D4,
  24628. Ainvertedbreve: 0x0202,
  24629. Alpha: 0x0391,
  24630. Alphatonos: 0x0386,
  24631. Amacron: 0x0100,
  24632. Amonospace: 0xFF21,
  24633. Aogonek: 0x0104,
  24634. Aring: 0x00C5,
  24635. Aringacute: 0x01FA,
  24636. Aringbelow: 0x1E00,
  24637. Aringsmall: 0xF7E5,
  24638. Asmall: 0xF761,
  24639. Atilde: 0x00C3,
  24640. Atildesmall: 0xF7E3,
  24641. Aybarmenian: 0x0531,
  24642. B: 0x0042,
  24643. Bcircle: 0x24B7,
  24644. Bdotaccent: 0x1E02,
  24645. Bdotbelow: 0x1E04,
  24646. Becyrillic: 0x0411,
  24647. Benarmenian: 0x0532,
  24648. Beta: 0x0392,
  24649. Bhook: 0x0181,
  24650. Blinebelow: 0x1E06,
  24651. Bmonospace: 0xFF22,
  24652. Brevesmall: 0xF6F4,
  24653. Bsmall: 0xF762,
  24654. Btopbar: 0x0182,
  24655. C: 0x0043,
  24656. Caarmenian: 0x053E,
  24657. Cacute: 0x0106,
  24658. Caron: 0xF6CA,
  24659. Caronsmall: 0xF6F5,
  24660. Ccaron: 0x010C,
  24661. Ccedilla: 0x00C7,
  24662. Ccedillaacute: 0x1E08,
  24663. Ccedillasmall: 0xF7E7,
  24664. Ccircle: 0x24B8,
  24665. Ccircumflex: 0x0108,
  24666. Cdot: 0x010A,
  24667. Cdotaccent: 0x010A,
  24668. Cedillasmall: 0xF7B8,
  24669. Chaarmenian: 0x0549,
  24670. Cheabkhasiancyrillic: 0x04BC,
  24671. Checyrillic: 0x0427,
  24672. Chedescenderabkhasiancyrillic: 0x04BE,
  24673. Chedescendercyrillic: 0x04B6,
  24674. Chedieresiscyrillic: 0x04F4,
  24675. Cheharmenian: 0x0543,
  24676. Chekhakassiancyrillic: 0x04CB,
  24677. Cheverticalstrokecyrillic: 0x04B8,
  24678. Chi: 0x03A7,
  24679. Chook: 0x0187,
  24680. Circumflexsmall: 0xF6F6,
  24681. Cmonospace: 0xFF23,
  24682. Coarmenian: 0x0551,
  24683. Csmall: 0xF763,
  24684. D: 0x0044,
  24685. DZ: 0x01F1,
  24686. DZcaron: 0x01C4,
  24687. Daarmenian: 0x0534,
  24688. Dafrican: 0x0189,
  24689. Dcaron: 0x010E,
  24690. Dcedilla: 0x1E10,
  24691. Dcircle: 0x24B9,
  24692. Dcircumflexbelow: 0x1E12,
  24693. Dcroat: 0x0110,
  24694. Ddotaccent: 0x1E0A,
  24695. Ddotbelow: 0x1E0C,
  24696. Decyrillic: 0x0414,
  24697. Deicoptic: 0x03EE,
  24698. Delta: 0x2206,
  24699. Deltagreek: 0x0394,
  24700. Dhook: 0x018A,
  24701. Dieresis: 0xF6CB,
  24702. DieresisAcute: 0xF6CC,
  24703. DieresisGrave: 0xF6CD,
  24704. Dieresissmall: 0xF7A8,
  24705. Digammagreek: 0x03DC,
  24706. Djecyrillic: 0x0402,
  24707. Dlinebelow: 0x1E0E,
  24708. Dmonospace: 0xFF24,
  24709. Dotaccentsmall: 0xF6F7,
  24710. Dslash: 0x0110,
  24711. Dsmall: 0xF764,
  24712. Dtopbar: 0x018B,
  24713. Dz: 0x01F2,
  24714. Dzcaron: 0x01C5,
  24715. Dzeabkhasiancyrillic: 0x04E0,
  24716. Dzecyrillic: 0x0405,
  24717. Dzhecyrillic: 0x040F,
  24718. E: 0x0045,
  24719. Eacute: 0x00C9,
  24720. Eacutesmall: 0xF7E9,
  24721. Ebreve: 0x0114,
  24722. Ecaron: 0x011A,
  24723. Ecedillabreve: 0x1E1C,
  24724. Echarmenian: 0x0535,
  24725. Ecircle: 0x24BA,
  24726. Ecircumflex: 0x00CA,
  24727. Ecircumflexacute: 0x1EBE,
  24728. Ecircumflexbelow: 0x1E18,
  24729. Ecircumflexdotbelow: 0x1EC6,
  24730. Ecircumflexgrave: 0x1EC0,
  24731. Ecircumflexhookabove: 0x1EC2,
  24732. Ecircumflexsmall: 0xF7EA,
  24733. Ecircumflextilde: 0x1EC4,
  24734. Ecyrillic: 0x0404,
  24735. Edblgrave: 0x0204,
  24736. Edieresis: 0x00CB,
  24737. Edieresissmall: 0xF7EB,
  24738. Edot: 0x0116,
  24739. Edotaccent: 0x0116,
  24740. Edotbelow: 0x1EB8,
  24741. Efcyrillic: 0x0424,
  24742. Egrave: 0x00C8,
  24743. Egravesmall: 0xF7E8,
  24744. Eharmenian: 0x0537,
  24745. Ehookabove: 0x1EBA,
  24746. Eightroman: 0x2167,
  24747. Einvertedbreve: 0x0206,
  24748. Eiotifiedcyrillic: 0x0464,
  24749. Elcyrillic: 0x041B,
  24750. Elevenroman: 0x216A,
  24751. Emacron: 0x0112,
  24752. Emacronacute: 0x1E16,
  24753. Emacrongrave: 0x1E14,
  24754. Emcyrillic: 0x041C,
  24755. Emonospace: 0xFF25,
  24756. Encyrillic: 0x041D,
  24757. Endescendercyrillic: 0x04A2,
  24758. Eng: 0x014A,
  24759. Enghecyrillic: 0x04A4,
  24760. Enhookcyrillic: 0x04C7,
  24761. Eogonek: 0x0118,
  24762. Eopen: 0x0190,
  24763. Epsilon: 0x0395,
  24764. Epsilontonos: 0x0388,
  24765. Ercyrillic: 0x0420,
  24766. Ereversed: 0x018E,
  24767. Ereversedcyrillic: 0x042D,
  24768. Escyrillic: 0x0421,
  24769. Esdescendercyrillic: 0x04AA,
  24770. Esh: 0x01A9,
  24771. Esmall: 0xF765,
  24772. Eta: 0x0397,
  24773. Etarmenian: 0x0538,
  24774. Etatonos: 0x0389,
  24775. Eth: 0x00D0,
  24776. Ethsmall: 0xF7F0,
  24777. Etilde: 0x1EBC,
  24778. Etildebelow: 0x1E1A,
  24779. Euro: 0x20AC,
  24780. Ezh: 0x01B7,
  24781. Ezhcaron: 0x01EE,
  24782. Ezhreversed: 0x01B8,
  24783. F: 0x0046,
  24784. Fcircle: 0x24BB,
  24785. Fdotaccent: 0x1E1E,
  24786. Feharmenian: 0x0556,
  24787. Feicoptic: 0x03E4,
  24788. Fhook: 0x0191,
  24789. Fitacyrillic: 0x0472,
  24790. Fiveroman: 0x2164,
  24791. Fmonospace: 0xFF26,
  24792. Fourroman: 0x2163,
  24793. Fsmall: 0xF766,
  24794. G: 0x0047,
  24795. GBsquare: 0x3387,
  24796. Gacute: 0x01F4,
  24797. Gamma: 0x0393,
  24798. Gammaafrican: 0x0194,
  24799. Gangiacoptic: 0x03EA,
  24800. Gbreve: 0x011E,
  24801. Gcaron: 0x01E6,
  24802. Gcedilla: 0x0122,
  24803. Gcircle: 0x24BC,
  24804. Gcircumflex: 0x011C,
  24805. Gcommaaccent: 0x0122,
  24806. Gdot: 0x0120,
  24807. Gdotaccent: 0x0120,
  24808. Gecyrillic: 0x0413,
  24809. Ghadarmenian: 0x0542,
  24810. Ghemiddlehookcyrillic: 0x0494,
  24811. Ghestrokecyrillic: 0x0492,
  24812. Gheupturncyrillic: 0x0490,
  24813. Ghook: 0x0193,
  24814. Gimarmenian: 0x0533,
  24815. Gjecyrillic: 0x0403,
  24816. Gmacron: 0x1E20,
  24817. Gmonospace: 0xFF27,
  24818. Grave: 0xF6CE,
  24819. Gravesmall: 0xF760,
  24820. Gsmall: 0xF767,
  24821. Gsmallhook: 0x029B,
  24822. Gstroke: 0x01E4,
  24823. H: 0x0048,
  24824. H18533: 0x25CF,
  24825. H18543: 0x25AA,
  24826. H18551: 0x25AB,
  24827. H22073: 0x25A1,
  24828. HPsquare: 0x33CB,
  24829. Haabkhasiancyrillic: 0x04A8,
  24830. Hadescendercyrillic: 0x04B2,
  24831. Hardsigncyrillic: 0x042A,
  24832. Hbar: 0x0126,
  24833. Hbrevebelow: 0x1E2A,
  24834. Hcedilla: 0x1E28,
  24835. Hcircle: 0x24BD,
  24836. Hcircumflex: 0x0124,
  24837. Hdieresis: 0x1E26,
  24838. Hdotaccent: 0x1E22,
  24839. Hdotbelow: 0x1E24,
  24840. Hmonospace: 0xFF28,
  24841. Hoarmenian: 0x0540,
  24842. Horicoptic: 0x03E8,
  24843. Hsmall: 0xF768,
  24844. Hungarumlaut: 0xF6CF,
  24845. Hungarumlautsmall: 0xF6F8,
  24846. Hzsquare: 0x3390,
  24847. I: 0x0049,
  24848. IAcyrillic: 0x042F,
  24849. IJ: 0x0132,
  24850. IUcyrillic: 0x042E,
  24851. Iacute: 0x00CD,
  24852. Iacutesmall: 0xF7ED,
  24853. Ibreve: 0x012C,
  24854. Icaron: 0x01CF,
  24855. Icircle: 0x24BE,
  24856. Icircumflex: 0x00CE,
  24857. Icircumflexsmall: 0xF7EE,
  24858. Icyrillic: 0x0406,
  24859. Idblgrave: 0x0208,
  24860. Idieresis: 0x00CF,
  24861. Idieresisacute: 0x1E2E,
  24862. Idieresiscyrillic: 0x04E4,
  24863. Idieresissmall: 0xF7EF,
  24864. Idot: 0x0130,
  24865. Idotaccent: 0x0130,
  24866. Idotbelow: 0x1ECA,
  24867. Iebrevecyrillic: 0x04D6,
  24868. Iecyrillic: 0x0415,
  24869. Ifraktur: 0x2111,
  24870. Igrave: 0x00CC,
  24871. Igravesmall: 0xF7EC,
  24872. Ihookabove: 0x1EC8,
  24873. Iicyrillic: 0x0418,
  24874. Iinvertedbreve: 0x020A,
  24875. Iishortcyrillic: 0x0419,
  24876. Imacron: 0x012A,
  24877. Imacroncyrillic: 0x04E2,
  24878. Imonospace: 0xFF29,
  24879. Iniarmenian: 0x053B,
  24880. Iocyrillic: 0x0401,
  24881. Iogonek: 0x012E,
  24882. Iota: 0x0399,
  24883. Iotaafrican: 0x0196,
  24884. Iotadieresis: 0x03AA,
  24885. Iotatonos: 0x038A,
  24886. Ismall: 0xF769,
  24887. Istroke: 0x0197,
  24888. Itilde: 0x0128,
  24889. Itildebelow: 0x1E2C,
  24890. Izhitsacyrillic: 0x0474,
  24891. Izhitsadblgravecyrillic: 0x0476,
  24892. J: 0x004A,
  24893. Jaarmenian: 0x0541,
  24894. Jcircle: 0x24BF,
  24895. Jcircumflex: 0x0134,
  24896. Jecyrillic: 0x0408,
  24897. Jheharmenian: 0x054B,
  24898. Jmonospace: 0xFF2A,
  24899. Jsmall: 0xF76A,
  24900. K: 0x004B,
  24901. KBsquare: 0x3385,
  24902. KKsquare: 0x33CD,
  24903. Kabashkircyrillic: 0x04A0,
  24904. Kacute: 0x1E30,
  24905. Kacyrillic: 0x041A,
  24906. Kadescendercyrillic: 0x049A,
  24907. Kahookcyrillic: 0x04C3,
  24908. Kappa: 0x039A,
  24909. Kastrokecyrillic: 0x049E,
  24910. Kaverticalstrokecyrillic: 0x049C,
  24911. Kcaron: 0x01E8,
  24912. Kcedilla: 0x0136,
  24913. Kcircle: 0x24C0,
  24914. Kcommaaccent: 0x0136,
  24915. Kdotbelow: 0x1E32,
  24916. Keharmenian: 0x0554,
  24917. Kenarmenian: 0x053F,
  24918. Khacyrillic: 0x0425,
  24919. Kheicoptic: 0x03E6,
  24920. Khook: 0x0198,
  24921. Kjecyrillic: 0x040C,
  24922. Klinebelow: 0x1E34,
  24923. Kmonospace: 0xFF2B,
  24924. Koppacyrillic: 0x0480,
  24925. Koppagreek: 0x03DE,
  24926. Ksicyrillic: 0x046E,
  24927. Ksmall: 0xF76B,
  24928. L: 0x004C,
  24929. LJ: 0x01C7,
  24930. LL: 0xF6BF,
  24931. Lacute: 0x0139,
  24932. Lambda: 0x039B,
  24933. Lcaron: 0x013D,
  24934. Lcedilla: 0x013B,
  24935. Lcircle: 0x24C1,
  24936. Lcircumflexbelow: 0x1E3C,
  24937. Lcommaaccent: 0x013B,
  24938. Ldot: 0x013F,
  24939. Ldotaccent: 0x013F,
  24940. Ldotbelow: 0x1E36,
  24941. Ldotbelowmacron: 0x1E38,
  24942. Liwnarmenian: 0x053C,
  24943. Lj: 0x01C8,
  24944. Ljecyrillic: 0x0409,
  24945. Llinebelow: 0x1E3A,
  24946. Lmonospace: 0xFF2C,
  24947. Lslash: 0x0141,
  24948. Lslashsmall: 0xF6F9,
  24949. Lsmall: 0xF76C,
  24950. M: 0x004D,
  24951. MBsquare: 0x3386,
  24952. Macron: 0xF6D0,
  24953. Macronsmall: 0xF7AF,
  24954. Macute: 0x1E3E,
  24955. Mcircle: 0x24C2,
  24956. Mdotaccent: 0x1E40,
  24957. Mdotbelow: 0x1E42,
  24958. Menarmenian: 0x0544,
  24959. Mmonospace: 0xFF2D,
  24960. Msmall: 0xF76D,
  24961. Mturned: 0x019C,
  24962. Mu: 0x039C,
  24963. N: 0x004E,
  24964. NJ: 0x01CA,
  24965. Nacute: 0x0143,
  24966. Ncaron: 0x0147,
  24967. Ncedilla: 0x0145,
  24968. Ncircle: 0x24C3,
  24969. Ncircumflexbelow: 0x1E4A,
  24970. Ncommaaccent: 0x0145,
  24971. Ndotaccent: 0x1E44,
  24972. Ndotbelow: 0x1E46,
  24973. Nhookleft: 0x019D,
  24974. Nineroman: 0x2168,
  24975. Nj: 0x01CB,
  24976. Njecyrillic: 0x040A,
  24977. Nlinebelow: 0x1E48,
  24978. Nmonospace: 0xFF2E,
  24979. Nowarmenian: 0x0546,
  24980. Nsmall: 0xF76E,
  24981. Ntilde: 0x00D1,
  24982. Ntildesmall: 0xF7F1,
  24983. Nu: 0x039D,
  24984. O: 0x004F,
  24985. OE: 0x0152,
  24986. OEsmall: 0xF6FA,
  24987. Oacute: 0x00D3,
  24988. Oacutesmall: 0xF7F3,
  24989. Obarredcyrillic: 0x04E8,
  24990. Obarreddieresiscyrillic: 0x04EA,
  24991. Obreve: 0x014E,
  24992. Ocaron: 0x01D1,
  24993. Ocenteredtilde: 0x019F,
  24994. Ocircle: 0x24C4,
  24995. Ocircumflex: 0x00D4,
  24996. Ocircumflexacute: 0x1ED0,
  24997. Ocircumflexdotbelow: 0x1ED8,
  24998. Ocircumflexgrave: 0x1ED2,
  24999. Ocircumflexhookabove: 0x1ED4,
  25000. Ocircumflexsmall: 0xF7F4,
  25001. Ocircumflextilde: 0x1ED6,
  25002. Ocyrillic: 0x041E,
  25003. Odblacute: 0x0150,
  25004. Odblgrave: 0x020C,
  25005. Odieresis: 0x00D6,
  25006. Odieresiscyrillic: 0x04E6,
  25007. Odieresissmall: 0xF7F6,
  25008. Odotbelow: 0x1ECC,
  25009. Ogoneksmall: 0xF6FB,
  25010. Ograve: 0x00D2,
  25011. Ogravesmall: 0xF7F2,
  25012. Oharmenian: 0x0555,
  25013. Ohm: 0x2126,
  25014. Ohookabove: 0x1ECE,
  25015. Ohorn: 0x01A0,
  25016. Ohornacute: 0x1EDA,
  25017. Ohorndotbelow: 0x1EE2,
  25018. Ohorngrave: 0x1EDC,
  25019. Ohornhookabove: 0x1EDE,
  25020. Ohorntilde: 0x1EE0,
  25021. Ohungarumlaut: 0x0150,
  25022. Oi: 0x01A2,
  25023. Oinvertedbreve: 0x020E,
  25024. Omacron: 0x014C,
  25025. Omacronacute: 0x1E52,
  25026. Omacrongrave: 0x1E50,
  25027. Omega: 0x2126,
  25028. Omegacyrillic: 0x0460,
  25029. Omegagreek: 0x03A9,
  25030. Omegaroundcyrillic: 0x047A,
  25031. Omegatitlocyrillic: 0x047C,
  25032. Omegatonos: 0x038F,
  25033. Omicron: 0x039F,
  25034. Omicrontonos: 0x038C,
  25035. Omonospace: 0xFF2F,
  25036. Oneroman: 0x2160,
  25037. Oogonek: 0x01EA,
  25038. Oogonekmacron: 0x01EC,
  25039. Oopen: 0x0186,
  25040. Oslash: 0x00D8,
  25041. Oslashacute: 0x01FE,
  25042. Oslashsmall: 0xF7F8,
  25043. Osmall: 0xF76F,
  25044. Ostrokeacute: 0x01FE,
  25045. Otcyrillic: 0x047E,
  25046. Otilde: 0x00D5,
  25047. Otildeacute: 0x1E4C,
  25048. Otildedieresis: 0x1E4E,
  25049. Otildesmall: 0xF7F5,
  25050. P: 0x0050,
  25051. Pacute: 0x1E54,
  25052. Pcircle: 0x24C5,
  25053. Pdotaccent: 0x1E56,
  25054. Pecyrillic: 0x041F,
  25055. Peharmenian: 0x054A,
  25056. Pemiddlehookcyrillic: 0x04A6,
  25057. Phi: 0x03A6,
  25058. Phook: 0x01A4,
  25059. Pi: 0x03A0,
  25060. Piwrarmenian: 0x0553,
  25061. Pmonospace: 0xFF30,
  25062. Psi: 0x03A8,
  25063. Psicyrillic: 0x0470,
  25064. Psmall: 0xF770,
  25065. Q: 0x0051,
  25066. Qcircle: 0x24C6,
  25067. Qmonospace: 0xFF31,
  25068. Qsmall: 0xF771,
  25069. R: 0x0052,
  25070. Raarmenian: 0x054C,
  25071. Racute: 0x0154,
  25072. Rcaron: 0x0158,
  25073. Rcedilla: 0x0156,
  25074. Rcircle: 0x24C7,
  25075. Rcommaaccent: 0x0156,
  25076. Rdblgrave: 0x0210,
  25077. Rdotaccent: 0x1E58,
  25078. Rdotbelow: 0x1E5A,
  25079. Rdotbelowmacron: 0x1E5C,
  25080. Reharmenian: 0x0550,
  25081. Rfraktur: 0x211C,
  25082. Rho: 0x03A1,
  25083. Ringsmall: 0xF6FC,
  25084. Rinvertedbreve: 0x0212,
  25085. Rlinebelow: 0x1E5E,
  25086. Rmonospace: 0xFF32,
  25087. Rsmall: 0xF772,
  25088. Rsmallinverted: 0x0281,
  25089. Rsmallinvertedsuperior: 0x02B6,
  25090. S: 0x0053,
  25091. SF010000: 0x250C,
  25092. SF020000: 0x2514,
  25093. SF030000: 0x2510,
  25094. SF040000: 0x2518,
  25095. SF050000: 0x253C,
  25096. SF060000: 0x252C,
  25097. SF070000: 0x2534,
  25098. SF080000: 0x251C,
  25099. SF090000: 0x2524,
  25100. SF100000: 0x2500,
  25101. SF110000: 0x2502,
  25102. SF190000: 0x2561,
  25103. SF200000: 0x2562,
  25104. SF210000: 0x2556,
  25105. SF220000: 0x2555,
  25106. SF230000: 0x2563,
  25107. SF240000: 0x2551,
  25108. SF250000: 0x2557,
  25109. SF260000: 0x255D,
  25110. SF270000: 0x255C,
  25111. SF280000: 0x255B,
  25112. SF360000: 0x255E,
  25113. SF370000: 0x255F,
  25114. SF380000: 0x255A,
  25115. SF390000: 0x2554,
  25116. SF400000: 0x2569,
  25117. SF410000: 0x2566,
  25118. SF420000: 0x2560,
  25119. SF430000: 0x2550,
  25120. SF440000: 0x256C,
  25121. SF450000: 0x2567,
  25122. SF460000: 0x2568,
  25123. SF470000: 0x2564,
  25124. SF480000: 0x2565,
  25125. SF490000: 0x2559,
  25126. SF500000: 0x2558,
  25127. SF510000: 0x2552,
  25128. SF520000: 0x2553,
  25129. SF530000: 0x256B,
  25130. SF540000: 0x256A,
  25131. Sacute: 0x015A,
  25132. Sacutedotaccent: 0x1E64,
  25133. Sampigreek: 0x03E0,
  25134. Scaron: 0x0160,
  25135. Scarondotaccent: 0x1E66,
  25136. Scaronsmall: 0xF6FD,
  25137. Scedilla: 0x015E,
  25138. Schwa: 0x018F,
  25139. Schwacyrillic: 0x04D8,
  25140. Schwadieresiscyrillic: 0x04DA,
  25141. Scircle: 0x24C8,
  25142. Scircumflex: 0x015C,
  25143. Scommaaccent: 0x0218,
  25144. Sdotaccent: 0x1E60,
  25145. Sdotbelow: 0x1E62,
  25146. Sdotbelowdotaccent: 0x1E68,
  25147. Seharmenian: 0x054D,
  25148. Sevenroman: 0x2166,
  25149. Shaarmenian: 0x0547,
  25150. Shacyrillic: 0x0428,
  25151. Shchacyrillic: 0x0429,
  25152. Sheicoptic: 0x03E2,
  25153. Shhacyrillic: 0x04BA,
  25154. Shimacoptic: 0x03EC,
  25155. Sigma: 0x03A3,
  25156. Sixroman: 0x2165,
  25157. Smonospace: 0xFF33,
  25158. Softsigncyrillic: 0x042C,
  25159. Ssmall: 0xF773,
  25160. Stigmagreek: 0x03DA,
  25161. T: 0x0054,
  25162. Tau: 0x03A4,
  25163. Tbar: 0x0166,
  25164. Tcaron: 0x0164,
  25165. Tcedilla: 0x0162,
  25166. Tcircle: 0x24C9,
  25167. Tcircumflexbelow: 0x1E70,
  25168. Tcommaaccent: 0x0162,
  25169. Tdotaccent: 0x1E6A,
  25170. Tdotbelow: 0x1E6C,
  25171. Tecyrillic: 0x0422,
  25172. Tedescendercyrillic: 0x04AC,
  25173. Tenroman: 0x2169,
  25174. Tetsecyrillic: 0x04B4,
  25175. Theta: 0x0398,
  25176. Thook: 0x01AC,
  25177. Thorn: 0x00DE,
  25178. Thornsmall: 0xF7FE,
  25179. Threeroman: 0x2162,
  25180. Tildesmall: 0xF6FE,
  25181. Tiwnarmenian: 0x054F,
  25182. Tlinebelow: 0x1E6E,
  25183. Tmonospace: 0xFF34,
  25184. Toarmenian: 0x0539,
  25185. Tonefive: 0x01BC,
  25186. Tonesix: 0x0184,
  25187. Tonetwo: 0x01A7,
  25188. Tretroflexhook: 0x01AE,
  25189. Tsecyrillic: 0x0426,
  25190. Tshecyrillic: 0x040B,
  25191. Tsmall: 0xF774,
  25192. Twelveroman: 0x216B,
  25193. Tworoman: 0x2161,
  25194. U: 0x0055,
  25195. Uacute: 0x00DA,
  25196. Uacutesmall: 0xF7FA,
  25197. Ubreve: 0x016C,
  25198. Ucaron: 0x01D3,
  25199. Ucircle: 0x24CA,
  25200. Ucircumflex: 0x00DB,
  25201. Ucircumflexbelow: 0x1E76,
  25202. Ucircumflexsmall: 0xF7FB,
  25203. Ucyrillic: 0x0423,
  25204. Udblacute: 0x0170,
  25205. Udblgrave: 0x0214,
  25206. Udieresis: 0x00DC,
  25207. Udieresisacute: 0x01D7,
  25208. Udieresisbelow: 0x1E72,
  25209. Udieresiscaron: 0x01D9,
  25210. Udieresiscyrillic: 0x04F0,
  25211. Udieresisgrave: 0x01DB,
  25212. Udieresismacron: 0x01D5,
  25213. Udieresissmall: 0xF7FC,
  25214. Udotbelow: 0x1EE4,
  25215. Ugrave: 0x00D9,
  25216. Ugravesmall: 0xF7F9,
  25217. Uhookabove: 0x1EE6,
  25218. Uhorn: 0x01AF,
  25219. Uhornacute: 0x1EE8,
  25220. Uhorndotbelow: 0x1EF0,
  25221. Uhorngrave: 0x1EEA,
  25222. Uhornhookabove: 0x1EEC,
  25223. Uhorntilde: 0x1EEE,
  25224. Uhungarumlaut: 0x0170,
  25225. Uhungarumlautcyrillic: 0x04F2,
  25226. Uinvertedbreve: 0x0216,
  25227. Ukcyrillic: 0x0478,
  25228. Umacron: 0x016A,
  25229. Umacroncyrillic: 0x04EE,
  25230. Umacrondieresis: 0x1E7A,
  25231. Umonospace: 0xFF35,
  25232. Uogonek: 0x0172,
  25233. Upsilon: 0x03A5,
  25234. Upsilon1: 0x03D2,
  25235. Upsilonacutehooksymbolgreek: 0x03D3,
  25236. Upsilonafrican: 0x01B1,
  25237. Upsilondieresis: 0x03AB,
  25238. Upsilondieresishooksymbolgreek: 0x03D4,
  25239. Upsilonhooksymbol: 0x03D2,
  25240. Upsilontonos: 0x038E,
  25241. Uring: 0x016E,
  25242. Ushortcyrillic: 0x040E,
  25243. Usmall: 0xF775,
  25244. Ustraightcyrillic: 0x04AE,
  25245. Ustraightstrokecyrillic: 0x04B0,
  25246. Utilde: 0x0168,
  25247. Utildeacute: 0x1E78,
  25248. Utildebelow: 0x1E74,
  25249. V: 0x0056,
  25250. Vcircle: 0x24CB,
  25251. Vdotbelow: 0x1E7E,
  25252. Vecyrillic: 0x0412,
  25253. Vewarmenian: 0x054E,
  25254. Vhook: 0x01B2,
  25255. Vmonospace: 0xFF36,
  25256. Voarmenian: 0x0548,
  25257. Vsmall: 0xF776,
  25258. Vtilde: 0x1E7C,
  25259. W: 0x0057,
  25260. Wacute: 0x1E82,
  25261. Wcircle: 0x24CC,
  25262. Wcircumflex: 0x0174,
  25263. Wdieresis: 0x1E84,
  25264. Wdotaccent: 0x1E86,
  25265. Wdotbelow: 0x1E88,
  25266. Wgrave: 0x1E80,
  25267. Wmonospace: 0xFF37,
  25268. Wsmall: 0xF777,
  25269. X: 0x0058,
  25270. Xcircle: 0x24CD,
  25271. Xdieresis: 0x1E8C,
  25272. Xdotaccent: 0x1E8A,
  25273. Xeharmenian: 0x053D,
  25274. Xi: 0x039E,
  25275. Xmonospace: 0xFF38,
  25276. Xsmall: 0xF778,
  25277. Y: 0x0059,
  25278. Yacute: 0x00DD,
  25279. Yacutesmall: 0xF7FD,
  25280. Yatcyrillic: 0x0462,
  25281. Ycircle: 0x24CE,
  25282. Ycircumflex: 0x0176,
  25283. Ydieresis: 0x0178,
  25284. Ydieresissmall: 0xF7FF,
  25285. Ydotaccent: 0x1E8E,
  25286. Ydotbelow: 0x1EF4,
  25287. Yericyrillic: 0x042B,
  25288. Yerudieresiscyrillic: 0x04F8,
  25289. Ygrave: 0x1EF2,
  25290. Yhook: 0x01B3,
  25291. Yhookabove: 0x1EF6,
  25292. Yiarmenian: 0x0545,
  25293. Yicyrillic: 0x0407,
  25294. Yiwnarmenian: 0x0552,
  25295. Ymonospace: 0xFF39,
  25296. Ysmall: 0xF779,
  25297. Ytilde: 0x1EF8,
  25298. Yusbigcyrillic: 0x046A,
  25299. Yusbigiotifiedcyrillic: 0x046C,
  25300. Yuslittlecyrillic: 0x0466,
  25301. Yuslittleiotifiedcyrillic: 0x0468,
  25302. Z: 0x005A,
  25303. Zaarmenian: 0x0536,
  25304. Zacute: 0x0179,
  25305. Zcaron: 0x017D,
  25306. Zcaronsmall: 0xF6FF,
  25307. Zcircle: 0x24CF,
  25308. Zcircumflex: 0x1E90,
  25309. Zdot: 0x017B,
  25310. Zdotaccent: 0x017B,
  25311. Zdotbelow: 0x1E92,
  25312. Zecyrillic: 0x0417,
  25313. Zedescendercyrillic: 0x0498,
  25314. Zedieresiscyrillic: 0x04DE,
  25315. Zeta: 0x0396,
  25316. Zhearmenian: 0x053A,
  25317. Zhebrevecyrillic: 0x04C1,
  25318. Zhecyrillic: 0x0416,
  25319. Zhedescendercyrillic: 0x0496,
  25320. Zhedieresiscyrillic: 0x04DC,
  25321. Zlinebelow: 0x1E94,
  25322. Zmonospace: 0xFF3A,
  25323. Zsmall: 0xF77A,
  25324. Zstroke: 0x01B5,
  25325. a: 0x0061,
  25326. aabengali: 0x0986,
  25327. aacute: 0x00E1,
  25328. aadeva: 0x0906,
  25329. aagujarati: 0x0A86,
  25330. aagurmukhi: 0x0A06,
  25331. aamatragurmukhi: 0x0A3E,
  25332. aarusquare: 0x3303,
  25333. aavowelsignbengali: 0x09BE,
  25334. aavowelsigndeva: 0x093E,
  25335. aavowelsigngujarati: 0x0ABE,
  25336. abbreviationmarkarmenian: 0x055F,
  25337. abbreviationsigndeva: 0x0970,
  25338. abengali: 0x0985,
  25339. abopomofo: 0x311A,
  25340. abreve: 0x0103,
  25341. abreveacute: 0x1EAF,
  25342. abrevecyrillic: 0x04D1,
  25343. abrevedotbelow: 0x1EB7,
  25344. abrevegrave: 0x1EB1,
  25345. abrevehookabove: 0x1EB3,
  25346. abrevetilde: 0x1EB5,
  25347. acaron: 0x01CE,
  25348. acircle: 0x24D0,
  25349. acircumflex: 0x00E2,
  25350. acircumflexacute: 0x1EA5,
  25351. acircumflexdotbelow: 0x1EAD,
  25352. acircumflexgrave: 0x1EA7,
  25353. acircumflexhookabove: 0x1EA9,
  25354. acircumflextilde: 0x1EAB,
  25355. acute: 0x00B4,
  25356. acutebelowcmb: 0x0317,
  25357. acutecmb: 0x0301,
  25358. acutecomb: 0x0301,
  25359. acutedeva: 0x0954,
  25360. acutelowmod: 0x02CF,
  25361. acutetonecmb: 0x0341,
  25362. acyrillic: 0x0430,
  25363. adblgrave: 0x0201,
  25364. addakgurmukhi: 0x0A71,
  25365. adeva: 0x0905,
  25366. adieresis: 0x00E4,
  25367. adieresiscyrillic: 0x04D3,
  25368. adieresismacron: 0x01DF,
  25369. adotbelow: 0x1EA1,
  25370. adotmacron: 0x01E1,
  25371. ae: 0x00E6,
  25372. aeacute: 0x01FD,
  25373. aekorean: 0x3150,
  25374. aemacron: 0x01E3,
  25375. afii00208: 0x2015,
  25376. afii08941: 0x20A4,
  25377. afii10017: 0x0410,
  25378. afii10018: 0x0411,
  25379. afii10019: 0x0412,
  25380. afii10020: 0x0413,
  25381. afii10021: 0x0414,
  25382. afii10022: 0x0415,
  25383. afii10023: 0x0401,
  25384. afii10024: 0x0416,
  25385. afii10025: 0x0417,
  25386. afii10026: 0x0418,
  25387. afii10027: 0x0419,
  25388. afii10028: 0x041A,
  25389. afii10029: 0x041B,
  25390. afii10030: 0x041C,
  25391. afii10031: 0x041D,
  25392. afii10032: 0x041E,
  25393. afii10033: 0x041F,
  25394. afii10034: 0x0420,
  25395. afii10035: 0x0421,
  25396. afii10036: 0x0422,
  25397. afii10037: 0x0423,
  25398. afii10038: 0x0424,
  25399. afii10039: 0x0425,
  25400. afii10040: 0x0426,
  25401. afii10041: 0x0427,
  25402. afii10042: 0x0428,
  25403. afii10043: 0x0429,
  25404. afii10044: 0x042A,
  25405. afii10045: 0x042B,
  25406. afii10046: 0x042C,
  25407. afii10047: 0x042D,
  25408. afii10048: 0x042E,
  25409. afii10049: 0x042F,
  25410. afii10050: 0x0490,
  25411. afii10051: 0x0402,
  25412. afii10052: 0x0403,
  25413. afii10053: 0x0404,
  25414. afii10054: 0x0405,
  25415. afii10055: 0x0406,
  25416. afii10056: 0x0407,
  25417. afii10057: 0x0408,
  25418. afii10058: 0x0409,
  25419. afii10059: 0x040A,
  25420. afii10060: 0x040B,
  25421. afii10061: 0x040C,
  25422. afii10062: 0x040E,
  25423. afii10063: 0xF6C4,
  25424. afii10064: 0xF6C5,
  25425. afii10065: 0x0430,
  25426. afii10066: 0x0431,
  25427. afii10067: 0x0432,
  25428. afii10068: 0x0433,
  25429. afii10069: 0x0434,
  25430. afii10070: 0x0435,
  25431. afii10071: 0x0451,
  25432. afii10072: 0x0436,
  25433. afii10073: 0x0437,
  25434. afii10074: 0x0438,
  25435. afii10075: 0x0439,
  25436. afii10076: 0x043A,
  25437. afii10077: 0x043B,
  25438. afii10078: 0x043C,
  25439. afii10079: 0x043D,
  25440. afii10080: 0x043E,
  25441. afii10081: 0x043F,
  25442. afii10082: 0x0440,
  25443. afii10083: 0x0441,
  25444. afii10084: 0x0442,
  25445. afii10085: 0x0443,
  25446. afii10086: 0x0444,
  25447. afii10087: 0x0445,
  25448. afii10088: 0x0446,
  25449. afii10089: 0x0447,
  25450. afii10090: 0x0448,
  25451. afii10091: 0x0449,
  25452. afii10092: 0x044A,
  25453. afii10093: 0x044B,
  25454. afii10094: 0x044C,
  25455. afii10095: 0x044D,
  25456. afii10096: 0x044E,
  25457. afii10097: 0x044F,
  25458. afii10098: 0x0491,
  25459. afii10099: 0x0452,
  25460. afii10100: 0x0453,
  25461. afii10101: 0x0454,
  25462. afii10102: 0x0455,
  25463. afii10103: 0x0456,
  25464. afii10104: 0x0457,
  25465. afii10105: 0x0458,
  25466. afii10106: 0x0459,
  25467. afii10107: 0x045A,
  25468. afii10108: 0x045B,
  25469. afii10109: 0x045C,
  25470. afii10110: 0x045E,
  25471. afii10145: 0x040F,
  25472. afii10146: 0x0462,
  25473. afii10147: 0x0472,
  25474. afii10148: 0x0474,
  25475. afii10192: 0xF6C6,
  25476. afii10193: 0x045F,
  25477. afii10194: 0x0463,
  25478. afii10195: 0x0473,
  25479. afii10196: 0x0475,
  25480. afii10831: 0xF6C7,
  25481. afii10832: 0xF6C8,
  25482. afii10846: 0x04D9,
  25483. afii299: 0x200E,
  25484. afii300: 0x200F,
  25485. afii301: 0x200D,
  25486. afii57381: 0x066A,
  25487. afii57388: 0x060C,
  25488. afii57392: 0x0660,
  25489. afii57393: 0x0661,
  25490. afii57394: 0x0662,
  25491. afii57395: 0x0663,
  25492. afii57396: 0x0664,
  25493. afii57397: 0x0665,
  25494. afii57398: 0x0666,
  25495. afii57399: 0x0667,
  25496. afii57400: 0x0668,
  25497. afii57401: 0x0669,
  25498. afii57403: 0x061B,
  25499. afii57407: 0x061F,
  25500. afii57409: 0x0621,
  25501. afii57410: 0x0622,
  25502. afii57411: 0x0623,
  25503. afii57412: 0x0624,
  25504. afii57413: 0x0625,
  25505. afii57414: 0x0626,
  25506. afii57415: 0x0627,
  25507. afii57416: 0x0628,
  25508. afii57417: 0x0629,
  25509. afii57418: 0x062A,
  25510. afii57419: 0x062B,
  25511. afii57420: 0x062C,
  25512. afii57421: 0x062D,
  25513. afii57422: 0x062E,
  25514. afii57423: 0x062F,
  25515. afii57424: 0x0630,
  25516. afii57425: 0x0631,
  25517. afii57426: 0x0632,
  25518. afii57427: 0x0633,
  25519. afii57428: 0x0634,
  25520. afii57429: 0x0635,
  25521. afii57430: 0x0636,
  25522. afii57431: 0x0637,
  25523. afii57432: 0x0638,
  25524. afii57433: 0x0639,
  25525. afii57434: 0x063A,
  25526. afii57440: 0x0640,
  25527. afii57441: 0x0641,
  25528. afii57442: 0x0642,
  25529. afii57443: 0x0643,
  25530. afii57444: 0x0644,
  25531. afii57445: 0x0645,
  25532. afii57446: 0x0646,
  25533. afii57448: 0x0648,
  25534. afii57449: 0x0649,
  25535. afii57450: 0x064A,
  25536. afii57451: 0x064B,
  25537. afii57452: 0x064C,
  25538. afii57453: 0x064D,
  25539. afii57454: 0x064E,
  25540. afii57455: 0x064F,
  25541. afii57456: 0x0650,
  25542. afii57457: 0x0651,
  25543. afii57458: 0x0652,
  25544. afii57470: 0x0647,
  25545. afii57505: 0x06A4,
  25546. afii57506: 0x067E,
  25547. afii57507: 0x0686,
  25548. afii57508: 0x0698,
  25549. afii57509: 0x06AF,
  25550. afii57511: 0x0679,
  25551. afii57512: 0x0688,
  25552. afii57513: 0x0691,
  25553. afii57514: 0x06BA,
  25554. afii57519: 0x06D2,
  25555. afii57534: 0x06D5,
  25556. afii57636: 0x20AA,
  25557. afii57645: 0x05BE,
  25558. afii57658: 0x05C3,
  25559. afii57664: 0x05D0,
  25560. afii57665: 0x05D1,
  25561. afii57666: 0x05D2,
  25562. afii57667: 0x05D3,
  25563. afii57668: 0x05D4,
  25564. afii57669: 0x05D5,
  25565. afii57670: 0x05D6,
  25566. afii57671: 0x05D7,
  25567. afii57672: 0x05D8,
  25568. afii57673: 0x05D9,
  25569. afii57674: 0x05DA,
  25570. afii57675: 0x05DB,
  25571. afii57676: 0x05DC,
  25572. afii57677: 0x05DD,
  25573. afii57678: 0x05DE,
  25574. afii57679: 0x05DF,
  25575. afii57680: 0x05E0,
  25576. afii57681: 0x05E1,
  25577. afii57682: 0x05E2,
  25578. afii57683: 0x05E3,
  25579. afii57684: 0x05E4,
  25580. afii57685: 0x05E5,
  25581. afii57686: 0x05E6,
  25582. afii57687: 0x05E7,
  25583. afii57688: 0x05E8,
  25584. afii57689: 0x05E9,
  25585. afii57690: 0x05EA,
  25586. afii57694: 0xFB2A,
  25587. afii57695: 0xFB2B,
  25588. afii57700: 0xFB4B,
  25589. afii57705: 0xFB1F,
  25590. afii57716: 0x05F0,
  25591. afii57717: 0x05F1,
  25592. afii57718: 0x05F2,
  25593. afii57723: 0xFB35,
  25594. afii57793: 0x05B4,
  25595. afii57794: 0x05B5,
  25596. afii57795: 0x05B6,
  25597. afii57796: 0x05BB,
  25598. afii57797: 0x05B8,
  25599. afii57798: 0x05B7,
  25600. afii57799: 0x05B0,
  25601. afii57800: 0x05B2,
  25602. afii57801: 0x05B1,
  25603. afii57802: 0x05B3,
  25604. afii57803: 0x05C2,
  25605. afii57804: 0x05C1,
  25606. afii57806: 0x05B9,
  25607. afii57807: 0x05BC,
  25608. afii57839: 0x05BD,
  25609. afii57841: 0x05BF,
  25610. afii57842: 0x05C0,
  25611. afii57929: 0x02BC,
  25612. afii61248: 0x2105,
  25613. afii61289: 0x2113,
  25614. afii61352: 0x2116,
  25615. afii61573: 0x202C,
  25616. afii61574: 0x202D,
  25617. afii61575: 0x202E,
  25618. afii61664: 0x200C,
  25619. afii63167: 0x066D,
  25620. afii64937: 0x02BD,
  25621. agrave: 0x00E0,
  25622. agujarati: 0x0A85,
  25623. agurmukhi: 0x0A05,
  25624. ahiragana: 0x3042,
  25625. ahookabove: 0x1EA3,
  25626. aibengali: 0x0990,
  25627. aibopomofo: 0x311E,
  25628. aideva: 0x0910,
  25629. aiecyrillic: 0x04D5,
  25630. aigujarati: 0x0A90,
  25631. aigurmukhi: 0x0A10,
  25632. aimatragurmukhi: 0x0A48,
  25633. ainarabic: 0x0639,
  25634. ainfinalarabic: 0xFECA,
  25635. aininitialarabic: 0xFECB,
  25636. ainmedialarabic: 0xFECC,
  25637. ainvertedbreve: 0x0203,
  25638. aivowelsignbengali: 0x09C8,
  25639. aivowelsigndeva: 0x0948,
  25640. aivowelsigngujarati: 0x0AC8,
  25641. akatakana: 0x30A2,
  25642. akatakanahalfwidth: 0xFF71,
  25643. akorean: 0x314F,
  25644. alef: 0x05D0,
  25645. alefarabic: 0x0627,
  25646. alefdageshhebrew: 0xFB30,
  25647. aleffinalarabic: 0xFE8E,
  25648. alefhamzaabovearabic: 0x0623,
  25649. alefhamzaabovefinalarabic: 0xFE84,
  25650. alefhamzabelowarabic: 0x0625,
  25651. alefhamzabelowfinalarabic: 0xFE88,
  25652. alefhebrew: 0x05D0,
  25653. aleflamedhebrew: 0xFB4F,
  25654. alefmaddaabovearabic: 0x0622,
  25655. alefmaddaabovefinalarabic: 0xFE82,
  25656. alefmaksuraarabic: 0x0649,
  25657. alefmaksurafinalarabic: 0xFEF0,
  25658. alefmaksurainitialarabic: 0xFEF3,
  25659. alefmaksuramedialarabic: 0xFEF4,
  25660. alefpatahhebrew: 0xFB2E,
  25661. alefqamatshebrew: 0xFB2F,
  25662. aleph: 0x2135,
  25663. allequal: 0x224C,
  25664. alpha: 0x03B1,
  25665. alphatonos: 0x03AC,
  25666. amacron: 0x0101,
  25667. amonospace: 0xFF41,
  25668. ampersand: 0x0026,
  25669. ampersandmonospace: 0xFF06,
  25670. ampersandsmall: 0xF726,
  25671. amsquare: 0x33C2,
  25672. anbopomofo: 0x3122,
  25673. angbopomofo: 0x3124,
  25674. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  25675. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  25676. angkhankhuthai: 0x0E5A,
  25677. angle: 0x2220,
  25678. anglebracketleft: 0x3008,
  25679. anglebracketleftvertical: 0xFE3F,
  25680. anglebracketright: 0x3009,
  25681. anglebracketrightvertical: 0xFE40,
  25682. angleleft: 0x2329,
  25683. angleright: 0x232A,
  25684. angstrom: 0x212B,
  25685. anoteleia: 0x0387,
  25686. anudattadeva: 0x0952,
  25687. anusvarabengali: 0x0982,
  25688. anusvaradeva: 0x0902,
  25689. anusvaragujarati: 0x0A82,
  25690. aogonek: 0x0105,
  25691. apaatosquare: 0x3300,
  25692. aparen: 0x249C,
  25693. apostrophearmenian: 0x055A,
  25694. apostrophemod: 0x02BC,
  25695. apple: 0xF8FF,
  25696. approaches: 0x2250,
  25697. approxequal: 0x2248,
  25698. approxequalorimage: 0x2252,
  25699. approximatelyequal: 0x2245,
  25700. araeaekorean: 0x318E,
  25701. araeakorean: 0x318D,
  25702. arc: 0x2312,
  25703. arighthalfring: 0x1E9A,
  25704. aring: 0x00E5,
  25705. aringacute: 0x01FB,
  25706. aringbelow: 0x1E01,
  25707. arrowboth: 0x2194,
  25708. arrowdashdown: 0x21E3,
  25709. arrowdashleft: 0x21E0,
  25710. arrowdashright: 0x21E2,
  25711. arrowdashup: 0x21E1,
  25712. arrowdblboth: 0x21D4,
  25713. arrowdbldown: 0x21D3,
  25714. arrowdblleft: 0x21D0,
  25715. arrowdblright: 0x21D2,
  25716. arrowdblup: 0x21D1,
  25717. arrowdown: 0x2193,
  25718. arrowdownleft: 0x2199,
  25719. arrowdownright: 0x2198,
  25720. arrowdownwhite: 0x21E9,
  25721. arrowheaddownmod: 0x02C5,
  25722. arrowheadleftmod: 0x02C2,
  25723. arrowheadrightmod: 0x02C3,
  25724. arrowheadupmod: 0x02C4,
  25725. arrowhorizex: 0xF8E7,
  25726. arrowleft: 0x2190,
  25727. arrowleftdbl: 0x21D0,
  25728. arrowleftdblstroke: 0x21CD,
  25729. arrowleftoverright: 0x21C6,
  25730. arrowleftwhite: 0x21E6,
  25731. arrowright: 0x2192,
  25732. arrowrightdblstroke: 0x21CF,
  25733. arrowrightheavy: 0x279E,
  25734. arrowrightoverleft: 0x21C4,
  25735. arrowrightwhite: 0x21E8,
  25736. arrowtableft: 0x21E4,
  25737. arrowtabright: 0x21E5,
  25738. arrowup: 0x2191,
  25739. arrowupdn: 0x2195,
  25740. arrowupdnbse: 0x21A8,
  25741. arrowupdownbase: 0x21A8,
  25742. arrowupleft: 0x2196,
  25743. arrowupleftofdown: 0x21C5,
  25744. arrowupright: 0x2197,
  25745. arrowupwhite: 0x21E7,
  25746. arrowvertex: 0xF8E6,
  25747. asciicircum: 0x005E,
  25748. asciicircummonospace: 0xFF3E,
  25749. asciitilde: 0x007E,
  25750. asciitildemonospace: 0xFF5E,
  25751. ascript: 0x0251,
  25752. ascriptturned: 0x0252,
  25753. asmallhiragana: 0x3041,
  25754. asmallkatakana: 0x30A1,
  25755. asmallkatakanahalfwidth: 0xFF67,
  25756. asterisk: 0x002A,
  25757. asteriskaltonearabic: 0x066D,
  25758. asteriskarabic: 0x066D,
  25759. asteriskmath: 0x2217,
  25760. asteriskmonospace: 0xFF0A,
  25761. asterisksmall: 0xFE61,
  25762. asterism: 0x2042,
  25763. asuperior: 0xF6E9,
  25764. asymptoticallyequal: 0x2243,
  25765. at: 0x0040,
  25766. atilde: 0x00E3,
  25767. atmonospace: 0xFF20,
  25768. atsmall: 0xFE6B,
  25769. aturned: 0x0250,
  25770. aubengali: 0x0994,
  25771. aubopomofo: 0x3120,
  25772. audeva: 0x0914,
  25773. augujarati: 0x0A94,
  25774. augurmukhi: 0x0A14,
  25775. aulengthmarkbengali: 0x09D7,
  25776. aumatragurmukhi: 0x0A4C,
  25777. auvowelsignbengali: 0x09CC,
  25778. auvowelsigndeva: 0x094C,
  25779. auvowelsigngujarati: 0x0ACC,
  25780. avagrahadeva: 0x093D,
  25781. aybarmenian: 0x0561,
  25782. ayin: 0x05E2,
  25783. ayinaltonehebrew: 0xFB20,
  25784. ayinhebrew: 0x05E2,
  25785. b: 0x0062,
  25786. babengali: 0x09AC,
  25787. backslash: 0x005C,
  25788. backslashmonospace: 0xFF3C,
  25789. badeva: 0x092C,
  25790. bagujarati: 0x0AAC,
  25791. bagurmukhi: 0x0A2C,
  25792. bahiragana: 0x3070,
  25793. bahtthai: 0x0E3F,
  25794. bakatakana: 0x30D0,
  25795. bar: 0x007C,
  25796. barmonospace: 0xFF5C,
  25797. bbopomofo: 0x3105,
  25798. bcircle: 0x24D1,
  25799. bdotaccent: 0x1E03,
  25800. bdotbelow: 0x1E05,
  25801. beamedsixteenthnotes: 0x266C,
  25802. because: 0x2235,
  25803. becyrillic: 0x0431,
  25804. beharabic: 0x0628,
  25805. behfinalarabic: 0xFE90,
  25806. behinitialarabic: 0xFE91,
  25807. behiragana: 0x3079,
  25808. behmedialarabic: 0xFE92,
  25809. behmeeminitialarabic: 0xFC9F,
  25810. behmeemisolatedarabic: 0xFC08,
  25811. behnoonfinalarabic: 0xFC6D,
  25812. bekatakana: 0x30D9,
  25813. benarmenian: 0x0562,
  25814. bet: 0x05D1,
  25815. beta: 0x03B2,
  25816. betasymbolgreek: 0x03D0,
  25817. betdagesh: 0xFB31,
  25818. betdageshhebrew: 0xFB31,
  25819. bethebrew: 0x05D1,
  25820. betrafehebrew: 0xFB4C,
  25821. bhabengali: 0x09AD,
  25822. bhadeva: 0x092D,
  25823. bhagujarati: 0x0AAD,
  25824. bhagurmukhi: 0x0A2D,
  25825. bhook: 0x0253,
  25826. bihiragana: 0x3073,
  25827. bikatakana: 0x30D3,
  25828. bilabialclick: 0x0298,
  25829. bindigurmukhi: 0x0A02,
  25830. birusquare: 0x3331,
  25831. blackcircle: 0x25CF,
  25832. blackdiamond: 0x25C6,
  25833. blackdownpointingtriangle: 0x25BC,
  25834. blackleftpointingpointer: 0x25C4,
  25835. blackleftpointingtriangle: 0x25C0,
  25836. blacklenticularbracketleft: 0x3010,
  25837. blacklenticularbracketleftvertical: 0xFE3B,
  25838. blacklenticularbracketright: 0x3011,
  25839. blacklenticularbracketrightvertical: 0xFE3C,
  25840. blacklowerlefttriangle: 0x25E3,
  25841. blacklowerrighttriangle: 0x25E2,
  25842. blackrectangle: 0x25AC,
  25843. blackrightpointingpointer: 0x25BA,
  25844. blackrightpointingtriangle: 0x25B6,
  25845. blacksmallsquare: 0x25AA,
  25846. blacksmilingface: 0x263B,
  25847. blacksquare: 0x25A0,
  25848. blackstar: 0x2605,
  25849. blackupperlefttriangle: 0x25E4,
  25850. blackupperrighttriangle: 0x25E5,
  25851. blackuppointingsmalltriangle: 0x25B4,
  25852. blackuppointingtriangle: 0x25B2,
  25853. blank: 0x2423,
  25854. blinebelow: 0x1E07,
  25855. block: 0x2588,
  25856. bmonospace: 0xFF42,
  25857. bobaimaithai: 0x0E1A,
  25858. bohiragana: 0x307C,
  25859. bokatakana: 0x30DC,
  25860. bparen: 0x249D,
  25861. bqsquare: 0x33C3,
  25862. braceex: 0xF8F4,
  25863. braceleft: 0x007B,
  25864. braceleftbt: 0xF8F3,
  25865. braceleftmid: 0xF8F2,
  25866. braceleftmonospace: 0xFF5B,
  25867. braceleftsmall: 0xFE5B,
  25868. bracelefttp: 0xF8F1,
  25869. braceleftvertical: 0xFE37,
  25870. braceright: 0x007D,
  25871. bracerightbt: 0xF8FE,
  25872. bracerightmid: 0xF8FD,
  25873. bracerightmonospace: 0xFF5D,
  25874. bracerightsmall: 0xFE5C,
  25875. bracerighttp: 0xF8FC,
  25876. bracerightvertical: 0xFE38,
  25877. bracketleft: 0x005B,
  25878. bracketleftbt: 0xF8F0,
  25879. bracketleftex: 0xF8EF,
  25880. bracketleftmonospace: 0xFF3B,
  25881. bracketlefttp: 0xF8EE,
  25882. bracketright: 0x005D,
  25883. bracketrightbt: 0xF8FB,
  25884. bracketrightex: 0xF8FA,
  25885. bracketrightmonospace: 0xFF3D,
  25886. bracketrighttp: 0xF8F9,
  25887. breve: 0x02D8,
  25888. brevebelowcmb: 0x032E,
  25889. brevecmb: 0x0306,
  25890. breveinvertedbelowcmb: 0x032F,
  25891. breveinvertedcmb: 0x0311,
  25892. breveinverteddoublecmb: 0x0361,
  25893. bridgebelowcmb: 0x032A,
  25894. bridgeinvertedbelowcmb: 0x033A,
  25895. brokenbar: 0x00A6,
  25896. bstroke: 0x0180,
  25897. bsuperior: 0xF6EA,
  25898. btopbar: 0x0183,
  25899. buhiragana: 0x3076,
  25900. bukatakana: 0x30D6,
  25901. bullet: 0x2022,
  25902. bulletinverse: 0x25D8,
  25903. bulletoperator: 0x2219,
  25904. bullseye: 0x25CE,
  25905. c: 0x0063,
  25906. caarmenian: 0x056E,
  25907. cabengali: 0x099A,
  25908. cacute: 0x0107,
  25909. cadeva: 0x091A,
  25910. cagujarati: 0x0A9A,
  25911. cagurmukhi: 0x0A1A,
  25912. calsquare: 0x3388,
  25913. candrabindubengali: 0x0981,
  25914. candrabinducmb: 0x0310,
  25915. candrabindudeva: 0x0901,
  25916. candrabindugujarati: 0x0A81,
  25917. capslock: 0x21EA,
  25918. careof: 0x2105,
  25919. caron: 0x02C7,
  25920. caronbelowcmb: 0x032C,
  25921. caroncmb: 0x030C,
  25922. carriagereturn: 0x21B5,
  25923. cbopomofo: 0x3118,
  25924. ccaron: 0x010D,
  25925. ccedilla: 0x00E7,
  25926. ccedillaacute: 0x1E09,
  25927. ccircle: 0x24D2,
  25928. ccircumflex: 0x0109,
  25929. ccurl: 0x0255,
  25930. cdot: 0x010B,
  25931. cdotaccent: 0x010B,
  25932. cdsquare: 0x33C5,
  25933. cedilla: 0x00B8,
  25934. cedillacmb: 0x0327,
  25935. cent: 0x00A2,
  25936. centigrade: 0x2103,
  25937. centinferior: 0xF6DF,
  25938. centmonospace: 0xFFE0,
  25939. centoldstyle: 0xF7A2,
  25940. centsuperior: 0xF6E0,
  25941. chaarmenian: 0x0579,
  25942. chabengali: 0x099B,
  25943. chadeva: 0x091B,
  25944. chagujarati: 0x0A9B,
  25945. chagurmukhi: 0x0A1B,
  25946. chbopomofo: 0x3114,
  25947. cheabkhasiancyrillic: 0x04BD,
  25948. checkmark: 0x2713,
  25949. checyrillic: 0x0447,
  25950. chedescenderabkhasiancyrillic: 0x04BF,
  25951. chedescendercyrillic: 0x04B7,
  25952. chedieresiscyrillic: 0x04F5,
  25953. cheharmenian: 0x0573,
  25954. chekhakassiancyrillic: 0x04CC,
  25955. cheverticalstrokecyrillic: 0x04B9,
  25956. chi: 0x03C7,
  25957. chieuchacirclekorean: 0x3277,
  25958. chieuchaparenkorean: 0x3217,
  25959. chieuchcirclekorean: 0x3269,
  25960. chieuchkorean: 0x314A,
  25961. chieuchparenkorean: 0x3209,
  25962. chochangthai: 0x0E0A,
  25963. chochanthai: 0x0E08,
  25964. chochingthai: 0x0E09,
  25965. chochoethai: 0x0E0C,
  25966. chook: 0x0188,
  25967. cieucacirclekorean: 0x3276,
  25968. cieucaparenkorean: 0x3216,
  25969. cieuccirclekorean: 0x3268,
  25970. cieuckorean: 0x3148,
  25971. cieucparenkorean: 0x3208,
  25972. cieucuparenkorean: 0x321C,
  25973. circle: 0x25CB,
  25974. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  25975. circlemultiply: 0x2297,
  25976. circleot: 0x2299,
  25977. circleplus: 0x2295,
  25978. circlepostalmark: 0x3036,
  25979. circlewithlefthalfblack: 0x25D0,
  25980. circlewithrighthalfblack: 0x25D1,
  25981. circumflex: 0x02C6,
  25982. circumflexbelowcmb: 0x032D,
  25983. circumflexcmb: 0x0302,
  25984. clear: 0x2327,
  25985. clickalveolar: 0x01C2,
  25986. clickdental: 0x01C0,
  25987. clicklateral: 0x01C1,
  25988. clickretroflex: 0x01C3,
  25989. club: 0x2663,
  25990. clubsuitblack: 0x2663,
  25991. clubsuitwhite: 0x2667,
  25992. cmcubedsquare: 0x33A4,
  25993. cmonospace: 0xFF43,
  25994. cmsquaredsquare: 0x33A0,
  25995. coarmenian: 0x0581,
  25996. colon: 0x003A,
  25997. colonmonetary: 0x20A1,
  25998. colonmonospace: 0xFF1A,
  25999. colonsign: 0x20A1,
  26000. colonsmall: 0xFE55,
  26001. colontriangularhalfmod: 0x02D1,
  26002. colontriangularmod: 0x02D0,
  26003. comma: 0x002C,
  26004. commaabovecmb: 0x0313,
  26005. commaaboverightcmb: 0x0315,
  26006. commaaccent: 0xF6C3,
  26007. commaarabic: 0x060C,
  26008. commaarmenian: 0x055D,
  26009. commainferior: 0xF6E1,
  26010. commamonospace: 0xFF0C,
  26011. commareversedabovecmb: 0x0314,
  26012. commareversedmod: 0x02BD,
  26013. commasmall: 0xFE50,
  26014. commasuperior: 0xF6E2,
  26015. commaturnedabovecmb: 0x0312,
  26016. commaturnedmod: 0x02BB,
  26017. compass: 0x263C,
  26018. congruent: 0x2245,
  26019. contourintegral: 0x222E,
  26020. control: 0x2303,
  26021. controlACK: 0x0006,
  26022. controlBEL: 0x0007,
  26023. controlBS: 0x0008,
  26024. controlCAN: 0x0018,
  26025. controlCR: 0x000D,
  26026. controlDC1: 0x0011,
  26027. controlDC2: 0x0012,
  26028. controlDC3: 0x0013,
  26029. controlDC4: 0x0014,
  26030. controlDEL: 0x007F,
  26031. controlDLE: 0x0010,
  26032. controlEM: 0x0019,
  26033. controlENQ: 0x0005,
  26034. controlEOT: 0x0004,
  26035. controlESC: 0x001B,
  26036. controlETB: 0x0017,
  26037. controlETX: 0x0003,
  26038. controlFF: 0x000C,
  26039. controlFS: 0x001C,
  26040. controlGS: 0x001D,
  26041. controlHT: 0x0009,
  26042. controlLF: 0x000A,
  26043. controlNAK: 0x0015,
  26044. controlRS: 0x001E,
  26045. controlSI: 0x000F,
  26046. controlSO: 0x000E,
  26047. controlSOT: 0x0002,
  26048. controlSTX: 0x0001,
  26049. controlSUB: 0x001A,
  26050. controlSYN: 0x0016,
  26051. controlUS: 0x001F,
  26052. controlVT: 0x000B,
  26053. copyright: 0x00A9,
  26054. copyrightsans: 0xF8E9,
  26055. copyrightserif: 0xF6D9,
  26056. cornerbracketleft: 0x300C,
  26057. cornerbracketlefthalfwidth: 0xFF62,
  26058. cornerbracketleftvertical: 0xFE41,
  26059. cornerbracketright: 0x300D,
  26060. cornerbracketrighthalfwidth: 0xFF63,
  26061. cornerbracketrightvertical: 0xFE42,
  26062. corporationsquare: 0x337F,
  26063. cosquare: 0x33C7,
  26064. coverkgsquare: 0x33C6,
  26065. cparen: 0x249E,
  26066. cruzeiro: 0x20A2,
  26067. cstretched: 0x0297,
  26068. curlyand: 0x22CF,
  26069. curlyor: 0x22CE,
  26070. currency: 0x00A4,
  26071. cyrBreve: 0xF6D1,
  26072. cyrFlex: 0xF6D2,
  26073. cyrbreve: 0xF6D4,
  26074. cyrflex: 0xF6D5,
  26075. d: 0x0064,
  26076. daarmenian: 0x0564,
  26077. dabengali: 0x09A6,
  26078. dadarabic: 0x0636,
  26079. dadeva: 0x0926,
  26080. dadfinalarabic: 0xFEBE,
  26081. dadinitialarabic: 0xFEBF,
  26082. dadmedialarabic: 0xFEC0,
  26083. dagesh: 0x05BC,
  26084. dageshhebrew: 0x05BC,
  26085. dagger: 0x2020,
  26086. daggerdbl: 0x2021,
  26087. dagujarati: 0x0AA6,
  26088. dagurmukhi: 0x0A26,
  26089. dahiragana: 0x3060,
  26090. dakatakana: 0x30C0,
  26091. dalarabic: 0x062F,
  26092. dalet: 0x05D3,
  26093. daletdagesh: 0xFB33,
  26094. daletdageshhebrew: 0xFB33,
  26095. dalethebrew: 0x05D3,
  26096. dalfinalarabic: 0xFEAA,
  26097. dammaarabic: 0x064F,
  26098. dammalowarabic: 0x064F,
  26099. dammatanaltonearabic: 0x064C,
  26100. dammatanarabic: 0x064C,
  26101. danda: 0x0964,
  26102. dargahebrew: 0x05A7,
  26103. dargalefthebrew: 0x05A7,
  26104. dasiapneumatacyrilliccmb: 0x0485,
  26105. dblGrave: 0xF6D3,
  26106. dblanglebracketleft: 0x300A,
  26107. dblanglebracketleftvertical: 0xFE3D,
  26108. dblanglebracketright: 0x300B,
  26109. dblanglebracketrightvertical: 0xFE3E,
  26110. dblarchinvertedbelowcmb: 0x032B,
  26111. dblarrowleft: 0x21D4,
  26112. dblarrowright: 0x21D2,
  26113. dbldanda: 0x0965,
  26114. dblgrave: 0xF6D6,
  26115. dblgravecmb: 0x030F,
  26116. dblintegral: 0x222C,
  26117. dbllowline: 0x2017,
  26118. dbllowlinecmb: 0x0333,
  26119. dbloverlinecmb: 0x033F,
  26120. dblprimemod: 0x02BA,
  26121. dblverticalbar: 0x2016,
  26122. dblverticallineabovecmb: 0x030E,
  26123. dbopomofo: 0x3109,
  26124. dbsquare: 0x33C8,
  26125. dcaron: 0x010F,
  26126. dcedilla: 0x1E11,
  26127. dcircle: 0x24D3,
  26128. dcircumflexbelow: 0x1E13,
  26129. dcroat: 0x0111,
  26130. ddabengali: 0x09A1,
  26131. ddadeva: 0x0921,
  26132. ddagujarati: 0x0AA1,
  26133. ddagurmukhi: 0x0A21,
  26134. ddalarabic: 0x0688,
  26135. ddalfinalarabic: 0xFB89,
  26136. dddhadeva: 0x095C,
  26137. ddhabengali: 0x09A2,
  26138. ddhadeva: 0x0922,
  26139. ddhagujarati: 0x0AA2,
  26140. ddhagurmukhi: 0x0A22,
  26141. ddotaccent: 0x1E0B,
  26142. ddotbelow: 0x1E0D,
  26143. decimalseparatorarabic: 0x066B,
  26144. decimalseparatorpersian: 0x066B,
  26145. decyrillic: 0x0434,
  26146. degree: 0x00B0,
  26147. dehihebrew: 0x05AD,
  26148. dehiragana: 0x3067,
  26149. deicoptic: 0x03EF,
  26150. dekatakana: 0x30C7,
  26151. deleteleft: 0x232B,
  26152. deleteright: 0x2326,
  26153. delta: 0x03B4,
  26154. deltaturned: 0x018D,
  26155. denominatorminusonenumeratorbengali: 0x09F8,
  26156. dezh: 0x02A4,
  26157. dhabengali: 0x09A7,
  26158. dhadeva: 0x0927,
  26159. dhagujarati: 0x0AA7,
  26160. dhagurmukhi: 0x0A27,
  26161. dhook: 0x0257,
  26162. dialytikatonos: 0x0385,
  26163. dialytikatonoscmb: 0x0344,
  26164. diamond: 0x2666,
  26165. diamondsuitwhite: 0x2662,
  26166. dieresis: 0x00A8,
  26167. dieresisacute: 0xF6D7,
  26168. dieresisbelowcmb: 0x0324,
  26169. dieresiscmb: 0x0308,
  26170. dieresisgrave: 0xF6D8,
  26171. dieresistonos: 0x0385,
  26172. dihiragana: 0x3062,
  26173. dikatakana: 0x30C2,
  26174. dittomark: 0x3003,
  26175. divide: 0x00F7,
  26176. divides: 0x2223,
  26177. divisionslash: 0x2215,
  26178. djecyrillic: 0x0452,
  26179. dkshade: 0x2593,
  26180. dlinebelow: 0x1E0F,
  26181. dlsquare: 0x3397,
  26182. dmacron: 0x0111,
  26183. dmonospace: 0xFF44,
  26184. dnblock: 0x2584,
  26185. dochadathai: 0x0E0E,
  26186. dodekthai: 0x0E14,
  26187. dohiragana: 0x3069,
  26188. dokatakana: 0x30C9,
  26189. dollar: 0x0024,
  26190. dollarinferior: 0xF6E3,
  26191. dollarmonospace: 0xFF04,
  26192. dollaroldstyle: 0xF724,
  26193. dollarsmall: 0xFE69,
  26194. dollarsuperior: 0xF6E4,
  26195. dong: 0x20AB,
  26196. dorusquare: 0x3326,
  26197. dotaccent: 0x02D9,
  26198. dotaccentcmb: 0x0307,
  26199. dotbelowcmb: 0x0323,
  26200. dotbelowcomb: 0x0323,
  26201. dotkatakana: 0x30FB,
  26202. dotlessi: 0x0131,
  26203. dotlessj: 0xF6BE,
  26204. dotlessjstrokehook: 0x0284,
  26205. dotmath: 0x22C5,
  26206. dottedcircle: 0x25CC,
  26207. doubleyodpatah: 0xFB1F,
  26208. doubleyodpatahhebrew: 0xFB1F,
  26209. downtackbelowcmb: 0x031E,
  26210. downtackmod: 0x02D5,
  26211. dparen: 0x249F,
  26212. dsuperior: 0xF6EB,
  26213. dtail: 0x0256,
  26214. dtopbar: 0x018C,
  26215. duhiragana: 0x3065,
  26216. dukatakana: 0x30C5,
  26217. dz: 0x01F3,
  26218. dzaltone: 0x02A3,
  26219. dzcaron: 0x01C6,
  26220. dzcurl: 0x02A5,
  26221. dzeabkhasiancyrillic: 0x04E1,
  26222. dzecyrillic: 0x0455,
  26223. dzhecyrillic: 0x045F,
  26224. e: 0x0065,
  26225. eacute: 0x00E9,
  26226. earth: 0x2641,
  26227. ebengali: 0x098F,
  26228. ebopomofo: 0x311C,
  26229. ebreve: 0x0115,
  26230. ecandradeva: 0x090D,
  26231. ecandragujarati: 0x0A8D,
  26232. ecandravowelsigndeva: 0x0945,
  26233. ecandravowelsigngujarati: 0x0AC5,
  26234. ecaron: 0x011B,
  26235. ecedillabreve: 0x1E1D,
  26236. echarmenian: 0x0565,
  26237. echyiwnarmenian: 0x0587,
  26238. ecircle: 0x24D4,
  26239. ecircumflex: 0x00EA,
  26240. ecircumflexacute: 0x1EBF,
  26241. ecircumflexbelow: 0x1E19,
  26242. ecircumflexdotbelow: 0x1EC7,
  26243. ecircumflexgrave: 0x1EC1,
  26244. ecircumflexhookabove: 0x1EC3,
  26245. ecircumflextilde: 0x1EC5,
  26246. ecyrillic: 0x0454,
  26247. edblgrave: 0x0205,
  26248. edeva: 0x090F,
  26249. edieresis: 0x00EB,
  26250. edot: 0x0117,
  26251. edotaccent: 0x0117,
  26252. edotbelow: 0x1EB9,
  26253. eegurmukhi: 0x0A0F,
  26254. eematragurmukhi: 0x0A47,
  26255. efcyrillic: 0x0444,
  26256. egrave: 0x00E8,
  26257. egujarati: 0x0A8F,
  26258. eharmenian: 0x0567,
  26259. ehbopomofo: 0x311D,
  26260. ehiragana: 0x3048,
  26261. ehookabove: 0x1EBB,
  26262. eibopomofo: 0x311F,
  26263. eight: 0x0038,
  26264. eightarabic: 0x0668,
  26265. eightbengali: 0x09EE,
  26266. eightcircle: 0x2467,
  26267. eightcircleinversesansserif: 0x2791,
  26268. eightdeva: 0x096E,
  26269. eighteencircle: 0x2471,
  26270. eighteenparen: 0x2485,
  26271. eighteenperiod: 0x2499,
  26272. eightgujarati: 0x0AEE,
  26273. eightgurmukhi: 0x0A6E,
  26274. eighthackarabic: 0x0668,
  26275. eighthangzhou: 0x3028,
  26276. eighthnotebeamed: 0x266B,
  26277. eightideographicparen: 0x3227,
  26278. eightinferior: 0x2088,
  26279. eightmonospace: 0xFF18,
  26280. eightoldstyle: 0xF738,
  26281. eightparen: 0x247B,
  26282. eightperiod: 0x248F,
  26283. eightpersian: 0x06F8,
  26284. eightroman: 0x2177,
  26285. eightsuperior: 0x2078,
  26286. eightthai: 0x0E58,
  26287. einvertedbreve: 0x0207,
  26288. eiotifiedcyrillic: 0x0465,
  26289. ekatakana: 0x30A8,
  26290. ekatakanahalfwidth: 0xFF74,
  26291. ekonkargurmukhi: 0x0A74,
  26292. ekorean: 0x3154,
  26293. elcyrillic: 0x043B,
  26294. element: 0x2208,
  26295. elevencircle: 0x246A,
  26296. elevenparen: 0x247E,
  26297. elevenperiod: 0x2492,
  26298. elevenroman: 0x217A,
  26299. ellipsis: 0x2026,
  26300. ellipsisvertical: 0x22EE,
  26301. emacron: 0x0113,
  26302. emacronacute: 0x1E17,
  26303. emacrongrave: 0x1E15,
  26304. emcyrillic: 0x043C,
  26305. emdash: 0x2014,
  26306. emdashvertical: 0xFE31,
  26307. emonospace: 0xFF45,
  26308. emphasismarkarmenian: 0x055B,
  26309. emptyset: 0x2205,
  26310. enbopomofo: 0x3123,
  26311. encyrillic: 0x043D,
  26312. endash: 0x2013,
  26313. endashvertical: 0xFE32,
  26314. endescendercyrillic: 0x04A3,
  26315. eng: 0x014B,
  26316. engbopomofo: 0x3125,
  26317. enghecyrillic: 0x04A5,
  26318. enhookcyrillic: 0x04C8,
  26319. enspace: 0x2002,
  26320. eogonek: 0x0119,
  26321. eokorean: 0x3153,
  26322. eopen: 0x025B,
  26323. eopenclosed: 0x029A,
  26324. eopenreversed: 0x025C,
  26325. eopenreversedclosed: 0x025E,
  26326. eopenreversedhook: 0x025D,
  26327. eparen: 0x24A0,
  26328. epsilon: 0x03B5,
  26329. epsilontonos: 0x03AD,
  26330. equal: 0x003D,
  26331. equalmonospace: 0xFF1D,
  26332. equalsmall: 0xFE66,
  26333. equalsuperior: 0x207C,
  26334. equivalence: 0x2261,
  26335. erbopomofo: 0x3126,
  26336. ercyrillic: 0x0440,
  26337. ereversed: 0x0258,
  26338. ereversedcyrillic: 0x044D,
  26339. escyrillic: 0x0441,
  26340. esdescendercyrillic: 0x04AB,
  26341. esh: 0x0283,
  26342. eshcurl: 0x0286,
  26343. eshortdeva: 0x090E,
  26344. eshortvowelsigndeva: 0x0946,
  26345. eshreversedloop: 0x01AA,
  26346. eshsquatreversed: 0x0285,
  26347. esmallhiragana: 0x3047,
  26348. esmallkatakana: 0x30A7,
  26349. esmallkatakanahalfwidth: 0xFF6A,
  26350. estimated: 0x212E,
  26351. esuperior: 0xF6EC,
  26352. eta: 0x03B7,
  26353. etarmenian: 0x0568,
  26354. etatonos: 0x03AE,
  26355. eth: 0x00F0,
  26356. etilde: 0x1EBD,
  26357. etildebelow: 0x1E1B,
  26358. etnahtafoukhhebrew: 0x0591,
  26359. etnahtafoukhlefthebrew: 0x0591,
  26360. etnahtahebrew: 0x0591,
  26361. etnahtalefthebrew: 0x0591,
  26362. eturned: 0x01DD,
  26363. eukorean: 0x3161,
  26364. euro: 0x20AC,
  26365. evowelsignbengali: 0x09C7,
  26366. evowelsigndeva: 0x0947,
  26367. evowelsigngujarati: 0x0AC7,
  26368. exclam: 0x0021,
  26369. exclamarmenian: 0x055C,
  26370. exclamdbl: 0x203C,
  26371. exclamdown: 0x00A1,
  26372. exclamdownsmall: 0xF7A1,
  26373. exclammonospace: 0xFF01,
  26374. exclamsmall: 0xF721,
  26375. existential: 0x2203,
  26376. ezh: 0x0292,
  26377. ezhcaron: 0x01EF,
  26378. ezhcurl: 0x0293,
  26379. ezhreversed: 0x01B9,
  26380. ezhtail: 0x01BA,
  26381. f: 0x0066,
  26382. fadeva: 0x095E,
  26383. fagurmukhi: 0x0A5E,
  26384. fahrenheit: 0x2109,
  26385. fathaarabic: 0x064E,
  26386. fathalowarabic: 0x064E,
  26387. fathatanarabic: 0x064B,
  26388. fbopomofo: 0x3108,
  26389. fcircle: 0x24D5,
  26390. fdotaccent: 0x1E1F,
  26391. feharabic: 0x0641,
  26392. feharmenian: 0x0586,
  26393. fehfinalarabic: 0xFED2,
  26394. fehinitialarabic: 0xFED3,
  26395. fehmedialarabic: 0xFED4,
  26396. feicoptic: 0x03E5,
  26397. female: 0x2640,
  26398. ff: 0xFB00,
  26399. ffi: 0xFB03,
  26400. ffl: 0xFB04,
  26401. fi: 0xFB01,
  26402. fifteencircle: 0x246E,
  26403. fifteenparen: 0x2482,
  26404. fifteenperiod: 0x2496,
  26405. figuredash: 0x2012,
  26406. filledbox: 0x25A0,
  26407. filledrect: 0x25AC,
  26408. finalkaf: 0x05DA,
  26409. finalkafdagesh: 0xFB3A,
  26410. finalkafdageshhebrew: 0xFB3A,
  26411. finalkafhebrew: 0x05DA,
  26412. finalmem: 0x05DD,
  26413. finalmemhebrew: 0x05DD,
  26414. finalnun: 0x05DF,
  26415. finalnunhebrew: 0x05DF,
  26416. finalpe: 0x05E3,
  26417. finalpehebrew: 0x05E3,
  26418. finaltsadi: 0x05E5,
  26419. finaltsadihebrew: 0x05E5,
  26420. firsttonechinese: 0x02C9,
  26421. fisheye: 0x25C9,
  26422. fitacyrillic: 0x0473,
  26423. five: 0x0035,
  26424. fivearabic: 0x0665,
  26425. fivebengali: 0x09EB,
  26426. fivecircle: 0x2464,
  26427. fivecircleinversesansserif: 0x278E,
  26428. fivedeva: 0x096B,
  26429. fiveeighths: 0x215D,
  26430. fivegujarati: 0x0AEB,
  26431. fivegurmukhi: 0x0A6B,
  26432. fivehackarabic: 0x0665,
  26433. fivehangzhou: 0x3025,
  26434. fiveideographicparen: 0x3224,
  26435. fiveinferior: 0x2085,
  26436. fivemonospace: 0xFF15,
  26437. fiveoldstyle: 0xF735,
  26438. fiveparen: 0x2478,
  26439. fiveperiod: 0x248C,
  26440. fivepersian: 0x06F5,
  26441. fiveroman: 0x2174,
  26442. fivesuperior: 0x2075,
  26443. fivethai: 0x0E55,
  26444. fl: 0xFB02,
  26445. florin: 0x0192,
  26446. fmonospace: 0xFF46,
  26447. fmsquare: 0x3399,
  26448. fofanthai: 0x0E1F,
  26449. fofathai: 0x0E1D,
  26450. fongmanthai: 0x0E4F,
  26451. forall: 0x2200,
  26452. four: 0x0034,
  26453. fourarabic: 0x0664,
  26454. fourbengali: 0x09EA,
  26455. fourcircle: 0x2463,
  26456. fourcircleinversesansserif: 0x278D,
  26457. fourdeva: 0x096A,
  26458. fourgujarati: 0x0AEA,
  26459. fourgurmukhi: 0x0A6A,
  26460. fourhackarabic: 0x0664,
  26461. fourhangzhou: 0x3024,
  26462. fourideographicparen: 0x3223,
  26463. fourinferior: 0x2084,
  26464. fourmonospace: 0xFF14,
  26465. fournumeratorbengali: 0x09F7,
  26466. fouroldstyle: 0xF734,
  26467. fourparen: 0x2477,
  26468. fourperiod: 0x248B,
  26469. fourpersian: 0x06F4,
  26470. fourroman: 0x2173,
  26471. foursuperior: 0x2074,
  26472. fourteencircle: 0x246D,
  26473. fourteenparen: 0x2481,
  26474. fourteenperiod: 0x2495,
  26475. fourthai: 0x0E54,
  26476. fourthtonechinese: 0x02CB,
  26477. fparen: 0x24A1,
  26478. fraction: 0x2044,
  26479. franc: 0x20A3,
  26480. g: 0x0067,
  26481. gabengali: 0x0997,
  26482. gacute: 0x01F5,
  26483. gadeva: 0x0917,
  26484. gafarabic: 0x06AF,
  26485. gaffinalarabic: 0xFB93,
  26486. gafinitialarabic: 0xFB94,
  26487. gafmedialarabic: 0xFB95,
  26488. gagujarati: 0x0A97,
  26489. gagurmukhi: 0x0A17,
  26490. gahiragana: 0x304C,
  26491. gakatakana: 0x30AC,
  26492. gamma: 0x03B3,
  26493. gammalatinsmall: 0x0263,
  26494. gammasuperior: 0x02E0,
  26495. gangiacoptic: 0x03EB,
  26496. gbopomofo: 0x310D,
  26497. gbreve: 0x011F,
  26498. gcaron: 0x01E7,
  26499. gcedilla: 0x0123,
  26500. gcircle: 0x24D6,
  26501. gcircumflex: 0x011D,
  26502. gcommaaccent: 0x0123,
  26503. gdot: 0x0121,
  26504. gdotaccent: 0x0121,
  26505. gecyrillic: 0x0433,
  26506. gehiragana: 0x3052,
  26507. gekatakana: 0x30B2,
  26508. geometricallyequal: 0x2251,
  26509. gereshaccenthebrew: 0x059C,
  26510. gereshhebrew: 0x05F3,
  26511. gereshmuqdamhebrew: 0x059D,
  26512. germandbls: 0x00DF,
  26513. gershayimaccenthebrew: 0x059E,
  26514. gershayimhebrew: 0x05F4,
  26515. getamark: 0x3013,
  26516. ghabengali: 0x0998,
  26517. ghadarmenian: 0x0572,
  26518. ghadeva: 0x0918,
  26519. ghagujarati: 0x0A98,
  26520. ghagurmukhi: 0x0A18,
  26521. ghainarabic: 0x063A,
  26522. ghainfinalarabic: 0xFECE,
  26523. ghaininitialarabic: 0xFECF,
  26524. ghainmedialarabic: 0xFED0,
  26525. ghemiddlehookcyrillic: 0x0495,
  26526. ghestrokecyrillic: 0x0493,
  26527. gheupturncyrillic: 0x0491,
  26528. ghhadeva: 0x095A,
  26529. ghhagurmukhi: 0x0A5A,
  26530. ghook: 0x0260,
  26531. ghzsquare: 0x3393,
  26532. gihiragana: 0x304E,
  26533. gikatakana: 0x30AE,
  26534. gimarmenian: 0x0563,
  26535. gimel: 0x05D2,
  26536. gimeldagesh: 0xFB32,
  26537. gimeldageshhebrew: 0xFB32,
  26538. gimelhebrew: 0x05D2,
  26539. gjecyrillic: 0x0453,
  26540. glottalinvertedstroke: 0x01BE,
  26541. glottalstop: 0x0294,
  26542. glottalstopinverted: 0x0296,
  26543. glottalstopmod: 0x02C0,
  26544. glottalstopreversed: 0x0295,
  26545. glottalstopreversedmod: 0x02C1,
  26546. glottalstopreversedsuperior: 0x02E4,
  26547. glottalstopstroke: 0x02A1,
  26548. glottalstopstrokereversed: 0x02A2,
  26549. gmacron: 0x1E21,
  26550. gmonospace: 0xFF47,
  26551. gohiragana: 0x3054,
  26552. gokatakana: 0x30B4,
  26553. gparen: 0x24A2,
  26554. gpasquare: 0x33AC,
  26555. gradient: 0x2207,
  26556. grave: 0x0060,
  26557. gravebelowcmb: 0x0316,
  26558. gravecmb: 0x0300,
  26559. gravecomb: 0x0300,
  26560. gravedeva: 0x0953,
  26561. gravelowmod: 0x02CE,
  26562. gravemonospace: 0xFF40,
  26563. gravetonecmb: 0x0340,
  26564. greater: 0x003E,
  26565. greaterequal: 0x2265,
  26566. greaterequalorless: 0x22DB,
  26567. greatermonospace: 0xFF1E,
  26568. greaterorequivalent: 0x2273,
  26569. greaterorless: 0x2277,
  26570. greateroverequal: 0x2267,
  26571. greatersmall: 0xFE65,
  26572. gscript: 0x0261,
  26573. gstroke: 0x01E5,
  26574. guhiragana: 0x3050,
  26575. guillemotleft: 0x00AB,
  26576. guillemotright: 0x00BB,
  26577. guilsinglleft: 0x2039,
  26578. guilsinglright: 0x203A,
  26579. gukatakana: 0x30B0,
  26580. guramusquare: 0x3318,
  26581. gysquare: 0x33C9,
  26582. h: 0x0068,
  26583. haabkhasiancyrillic: 0x04A9,
  26584. haaltonearabic: 0x06C1,
  26585. habengali: 0x09B9,
  26586. hadescendercyrillic: 0x04B3,
  26587. hadeva: 0x0939,
  26588. hagujarati: 0x0AB9,
  26589. hagurmukhi: 0x0A39,
  26590. haharabic: 0x062D,
  26591. hahfinalarabic: 0xFEA2,
  26592. hahinitialarabic: 0xFEA3,
  26593. hahiragana: 0x306F,
  26594. hahmedialarabic: 0xFEA4,
  26595. haitusquare: 0x332A,
  26596. hakatakana: 0x30CF,
  26597. hakatakanahalfwidth: 0xFF8A,
  26598. halantgurmukhi: 0x0A4D,
  26599. hamzaarabic: 0x0621,
  26600. hamzalowarabic: 0x0621,
  26601. hangulfiller: 0x3164,
  26602. hardsigncyrillic: 0x044A,
  26603. harpoonleftbarbup: 0x21BC,
  26604. harpoonrightbarbup: 0x21C0,
  26605. hasquare: 0x33CA,
  26606. hatafpatah: 0x05B2,
  26607. hatafpatah16: 0x05B2,
  26608. hatafpatah23: 0x05B2,
  26609. hatafpatah2f: 0x05B2,
  26610. hatafpatahhebrew: 0x05B2,
  26611. hatafpatahnarrowhebrew: 0x05B2,
  26612. hatafpatahquarterhebrew: 0x05B2,
  26613. hatafpatahwidehebrew: 0x05B2,
  26614. hatafqamats: 0x05B3,
  26615. hatafqamats1b: 0x05B3,
  26616. hatafqamats28: 0x05B3,
  26617. hatafqamats34: 0x05B3,
  26618. hatafqamatshebrew: 0x05B3,
  26619. hatafqamatsnarrowhebrew: 0x05B3,
  26620. hatafqamatsquarterhebrew: 0x05B3,
  26621. hatafqamatswidehebrew: 0x05B3,
  26622. hatafsegol: 0x05B1,
  26623. hatafsegol17: 0x05B1,
  26624. hatafsegol24: 0x05B1,
  26625. hatafsegol30: 0x05B1,
  26626. hatafsegolhebrew: 0x05B1,
  26627. hatafsegolnarrowhebrew: 0x05B1,
  26628. hatafsegolquarterhebrew: 0x05B1,
  26629. hatafsegolwidehebrew: 0x05B1,
  26630. hbar: 0x0127,
  26631. hbopomofo: 0x310F,
  26632. hbrevebelow: 0x1E2B,
  26633. hcedilla: 0x1E29,
  26634. hcircle: 0x24D7,
  26635. hcircumflex: 0x0125,
  26636. hdieresis: 0x1E27,
  26637. hdotaccent: 0x1E23,
  26638. hdotbelow: 0x1E25,
  26639. he: 0x05D4,
  26640. heart: 0x2665,
  26641. heartsuitblack: 0x2665,
  26642. heartsuitwhite: 0x2661,
  26643. hedagesh: 0xFB34,
  26644. hedageshhebrew: 0xFB34,
  26645. hehaltonearabic: 0x06C1,
  26646. heharabic: 0x0647,
  26647. hehebrew: 0x05D4,
  26648. hehfinalaltonearabic: 0xFBA7,
  26649. hehfinalalttwoarabic: 0xFEEA,
  26650. hehfinalarabic: 0xFEEA,
  26651. hehhamzaabovefinalarabic: 0xFBA5,
  26652. hehhamzaaboveisolatedarabic: 0xFBA4,
  26653. hehinitialaltonearabic: 0xFBA8,
  26654. hehinitialarabic: 0xFEEB,
  26655. hehiragana: 0x3078,
  26656. hehmedialaltonearabic: 0xFBA9,
  26657. hehmedialarabic: 0xFEEC,
  26658. heiseierasquare: 0x337B,
  26659. hekatakana: 0x30D8,
  26660. hekatakanahalfwidth: 0xFF8D,
  26661. hekutaarusquare: 0x3336,
  26662. henghook: 0x0267,
  26663. herutusquare: 0x3339,
  26664. het: 0x05D7,
  26665. hethebrew: 0x05D7,
  26666. hhook: 0x0266,
  26667. hhooksuperior: 0x02B1,
  26668. hieuhacirclekorean: 0x327B,
  26669. hieuhaparenkorean: 0x321B,
  26670. hieuhcirclekorean: 0x326D,
  26671. hieuhkorean: 0x314E,
  26672. hieuhparenkorean: 0x320D,
  26673. hihiragana: 0x3072,
  26674. hikatakana: 0x30D2,
  26675. hikatakanahalfwidth: 0xFF8B,
  26676. hiriq: 0x05B4,
  26677. hiriq14: 0x05B4,
  26678. hiriq21: 0x05B4,
  26679. hiriq2d: 0x05B4,
  26680. hiriqhebrew: 0x05B4,
  26681. hiriqnarrowhebrew: 0x05B4,
  26682. hiriqquarterhebrew: 0x05B4,
  26683. hiriqwidehebrew: 0x05B4,
  26684. hlinebelow: 0x1E96,
  26685. hmonospace: 0xFF48,
  26686. hoarmenian: 0x0570,
  26687. hohipthai: 0x0E2B,
  26688. hohiragana: 0x307B,
  26689. hokatakana: 0x30DB,
  26690. hokatakanahalfwidth: 0xFF8E,
  26691. holam: 0x05B9,
  26692. holam19: 0x05B9,
  26693. holam26: 0x05B9,
  26694. holam32: 0x05B9,
  26695. holamhebrew: 0x05B9,
  26696. holamnarrowhebrew: 0x05B9,
  26697. holamquarterhebrew: 0x05B9,
  26698. holamwidehebrew: 0x05B9,
  26699. honokhukthai: 0x0E2E,
  26700. hookabovecomb: 0x0309,
  26701. hookcmb: 0x0309,
  26702. hookpalatalizedbelowcmb: 0x0321,
  26703. hookretroflexbelowcmb: 0x0322,
  26704. hoonsquare: 0x3342,
  26705. horicoptic: 0x03E9,
  26706. horizontalbar: 0x2015,
  26707. horncmb: 0x031B,
  26708. hotsprings: 0x2668,
  26709. house: 0x2302,
  26710. hparen: 0x24A3,
  26711. hsuperior: 0x02B0,
  26712. hturned: 0x0265,
  26713. huhiragana: 0x3075,
  26714. huiitosquare: 0x3333,
  26715. hukatakana: 0x30D5,
  26716. hukatakanahalfwidth: 0xFF8C,
  26717. hungarumlaut: 0x02DD,
  26718. hungarumlautcmb: 0x030B,
  26719. hv: 0x0195,
  26720. hyphen: 0x002D,
  26721. hypheninferior: 0xF6E5,
  26722. hyphenmonospace: 0xFF0D,
  26723. hyphensmall: 0xFE63,
  26724. hyphensuperior: 0xF6E6,
  26725. hyphentwo: 0x2010,
  26726. i: 0x0069,
  26727. iacute: 0x00ED,
  26728. iacyrillic: 0x044F,
  26729. ibengali: 0x0987,
  26730. ibopomofo: 0x3127,
  26731. ibreve: 0x012D,
  26732. icaron: 0x01D0,
  26733. icircle: 0x24D8,
  26734. icircumflex: 0x00EE,
  26735. icyrillic: 0x0456,
  26736. idblgrave: 0x0209,
  26737. ideographearthcircle: 0x328F,
  26738. ideographfirecircle: 0x328B,
  26739. ideographicallianceparen: 0x323F,
  26740. ideographiccallparen: 0x323A,
  26741. ideographiccentrecircle: 0x32A5,
  26742. ideographicclose: 0x3006,
  26743. ideographiccomma: 0x3001,
  26744. ideographiccommaleft: 0xFF64,
  26745. ideographiccongratulationparen: 0x3237,
  26746. ideographiccorrectcircle: 0x32A3,
  26747. ideographicearthparen: 0x322F,
  26748. ideographicenterpriseparen: 0x323D,
  26749. ideographicexcellentcircle: 0x329D,
  26750. ideographicfestivalparen: 0x3240,
  26751. ideographicfinancialcircle: 0x3296,
  26752. ideographicfinancialparen: 0x3236,
  26753. ideographicfireparen: 0x322B,
  26754. ideographichaveparen: 0x3232,
  26755. ideographichighcircle: 0x32A4,
  26756. ideographiciterationmark: 0x3005,
  26757. ideographiclaborcircle: 0x3298,
  26758. ideographiclaborparen: 0x3238,
  26759. ideographicleftcircle: 0x32A7,
  26760. ideographiclowcircle: 0x32A6,
  26761. ideographicmedicinecircle: 0x32A9,
  26762. ideographicmetalparen: 0x322E,
  26763. ideographicmoonparen: 0x322A,
  26764. ideographicnameparen: 0x3234,
  26765. ideographicperiod: 0x3002,
  26766. ideographicprintcircle: 0x329E,
  26767. ideographicreachparen: 0x3243,
  26768. ideographicrepresentparen: 0x3239,
  26769. ideographicresourceparen: 0x323E,
  26770. ideographicrightcircle: 0x32A8,
  26771. ideographicsecretcircle: 0x3299,
  26772. ideographicselfparen: 0x3242,
  26773. ideographicsocietyparen: 0x3233,
  26774. ideographicspace: 0x3000,
  26775. ideographicspecialparen: 0x3235,
  26776. ideographicstockparen: 0x3231,
  26777. ideographicstudyparen: 0x323B,
  26778. ideographicsunparen: 0x3230,
  26779. ideographicsuperviseparen: 0x323C,
  26780. ideographicwaterparen: 0x322C,
  26781. ideographicwoodparen: 0x322D,
  26782. ideographiczero: 0x3007,
  26783. ideographmetalcircle: 0x328E,
  26784. ideographmooncircle: 0x328A,
  26785. ideographnamecircle: 0x3294,
  26786. ideographsuncircle: 0x3290,
  26787. ideographwatercircle: 0x328C,
  26788. ideographwoodcircle: 0x328D,
  26789. ideva: 0x0907,
  26790. idieresis: 0x00EF,
  26791. idieresisacute: 0x1E2F,
  26792. idieresiscyrillic: 0x04E5,
  26793. idotbelow: 0x1ECB,
  26794. iebrevecyrillic: 0x04D7,
  26795. iecyrillic: 0x0435,
  26796. ieungacirclekorean: 0x3275,
  26797. ieungaparenkorean: 0x3215,
  26798. ieungcirclekorean: 0x3267,
  26799. ieungkorean: 0x3147,
  26800. ieungparenkorean: 0x3207,
  26801. igrave: 0x00EC,
  26802. igujarati: 0x0A87,
  26803. igurmukhi: 0x0A07,
  26804. ihiragana: 0x3044,
  26805. ihookabove: 0x1EC9,
  26806. iibengali: 0x0988,
  26807. iicyrillic: 0x0438,
  26808. iideva: 0x0908,
  26809. iigujarati: 0x0A88,
  26810. iigurmukhi: 0x0A08,
  26811. iimatragurmukhi: 0x0A40,
  26812. iinvertedbreve: 0x020B,
  26813. iishortcyrillic: 0x0439,
  26814. iivowelsignbengali: 0x09C0,
  26815. iivowelsigndeva: 0x0940,
  26816. iivowelsigngujarati: 0x0AC0,
  26817. ij: 0x0133,
  26818. ikatakana: 0x30A4,
  26819. ikatakanahalfwidth: 0xFF72,
  26820. ikorean: 0x3163,
  26821. ilde: 0x02DC,
  26822. iluyhebrew: 0x05AC,
  26823. imacron: 0x012B,
  26824. imacroncyrillic: 0x04E3,
  26825. imageorapproximatelyequal: 0x2253,
  26826. imatragurmukhi: 0x0A3F,
  26827. imonospace: 0xFF49,
  26828. increment: 0x2206,
  26829. infinity: 0x221E,
  26830. iniarmenian: 0x056B,
  26831. integral: 0x222B,
  26832. integralbottom: 0x2321,
  26833. integralbt: 0x2321,
  26834. integralex: 0xF8F5,
  26835. integraltop: 0x2320,
  26836. integraltp: 0x2320,
  26837. intersection: 0x2229,
  26838. intisquare: 0x3305,
  26839. invbullet: 0x25D8,
  26840. invcircle: 0x25D9,
  26841. invsmileface: 0x263B,
  26842. iocyrillic: 0x0451,
  26843. iogonek: 0x012F,
  26844. iota: 0x03B9,
  26845. iotadieresis: 0x03CA,
  26846. iotadieresistonos: 0x0390,
  26847. iotalatin: 0x0269,
  26848. iotatonos: 0x03AF,
  26849. iparen: 0x24A4,
  26850. irigurmukhi: 0x0A72,
  26851. ismallhiragana: 0x3043,
  26852. ismallkatakana: 0x30A3,
  26853. ismallkatakanahalfwidth: 0xFF68,
  26854. issharbengali: 0x09FA,
  26855. istroke: 0x0268,
  26856. isuperior: 0xF6ED,
  26857. iterationhiragana: 0x309D,
  26858. iterationkatakana: 0x30FD,
  26859. itilde: 0x0129,
  26860. itildebelow: 0x1E2D,
  26861. iubopomofo: 0x3129,
  26862. iucyrillic: 0x044E,
  26863. ivowelsignbengali: 0x09BF,
  26864. ivowelsigndeva: 0x093F,
  26865. ivowelsigngujarati: 0x0ABF,
  26866. izhitsacyrillic: 0x0475,
  26867. izhitsadblgravecyrillic: 0x0477,
  26868. j: 0x006A,
  26869. jaarmenian: 0x0571,
  26870. jabengali: 0x099C,
  26871. jadeva: 0x091C,
  26872. jagujarati: 0x0A9C,
  26873. jagurmukhi: 0x0A1C,
  26874. jbopomofo: 0x3110,
  26875. jcaron: 0x01F0,
  26876. jcircle: 0x24D9,
  26877. jcircumflex: 0x0135,
  26878. jcrossedtail: 0x029D,
  26879. jdotlessstroke: 0x025F,
  26880. jecyrillic: 0x0458,
  26881. jeemarabic: 0x062C,
  26882. jeemfinalarabic: 0xFE9E,
  26883. jeeminitialarabic: 0xFE9F,
  26884. jeemmedialarabic: 0xFEA0,
  26885. jeharabic: 0x0698,
  26886. jehfinalarabic: 0xFB8B,
  26887. jhabengali: 0x099D,
  26888. jhadeva: 0x091D,
  26889. jhagujarati: 0x0A9D,
  26890. jhagurmukhi: 0x0A1D,
  26891. jheharmenian: 0x057B,
  26892. jis: 0x3004,
  26893. jmonospace: 0xFF4A,
  26894. jparen: 0x24A5,
  26895. jsuperior: 0x02B2,
  26896. k: 0x006B,
  26897. kabashkircyrillic: 0x04A1,
  26898. kabengali: 0x0995,
  26899. kacute: 0x1E31,
  26900. kacyrillic: 0x043A,
  26901. kadescendercyrillic: 0x049B,
  26902. kadeva: 0x0915,
  26903. kaf: 0x05DB,
  26904. kafarabic: 0x0643,
  26905. kafdagesh: 0xFB3B,
  26906. kafdageshhebrew: 0xFB3B,
  26907. kaffinalarabic: 0xFEDA,
  26908. kafhebrew: 0x05DB,
  26909. kafinitialarabic: 0xFEDB,
  26910. kafmedialarabic: 0xFEDC,
  26911. kafrafehebrew: 0xFB4D,
  26912. kagujarati: 0x0A95,
  26913. kagurmukhi: 0x0A15,
  26914. kahiragana: 0x304B,
  26915. kahookcyrillic: 0x04C4,
  26916. kakatakana: 0x30AB,
  26917. kakatakanahalfwidth: 0xFF76,
  26918. kappa: 0x03BA,
  26919. kappasymbolgreek: 0x03F0,
  26920. kapyeounmieumkorean: 0x3171,
  26921. kapyeounphieuphkorean: 0x3184,
  26922. kapyeounpieupkorean: 0x3178,
  26923. kapyeounssangpieupkorean: 0x3179,
  26924. karoriisquare: 0x330D,
  26925. kashidaautoarabic: 0x0640,
  26926. kashidaautonosidebearingarabic: 0x0640,
  26927. kasmallkatakana: 0x30F5,
  26928. kasquare: 0x3384,
  26929. kasraarabic: 0x0650,
  26930. kasratanarabic: 0x064D,
  26931. kastrokecyrillic: 0x049F,
  26932. katahiraprolongmarkhalfwidth: 0xFF70,
  26933. kaverticalstrokecyrillic: 0x049D,
  26934. kbopomofo: 0x310E,
  26935. kcalsquare: 0x3389,
  26936. kcaron: 0x01E9,
  26937. kcedilla: 0x0137,
  26938. kcircle: 0x24DA,
  26939. kcommaaccent: 0x0137,
  26940. kdotbelow: 0x1E33,
  26941. keharmenian: 0x0584,
  26942. kehiragana: 0x3051,
  26943. kekatakana: 0x30B1,
  26944. kekatakanahalfwidth: 0xFF79,
  26945. kenarmenian: 0x056F,
  26946. kesmallkatakana: 0x30F6,
  26947. kgreenlandic: 0x0138,
  26948. khabengali: 0x0996,
  26949. khacyrillic: 0x0445,
  26950. khadeva: 0x0916,
  26951. khagujarati: 0x0A96,
  26952. khagurmukhi: 0x0A16,
  26953. khaharabic: 0x062E,
  26954. khahfinalarabic: 0xFEA6,
  26955. khahinitialarabic: 0xFEA7,
  26956. khahmedialarabic: 0xFEA8,
  26957. kheicoptic: 0x03E7,
  26958. khhadeva: 0x0959,
  26959. khhagurmukhi: 0x0A59,
  26960. khieukhacirclekorean: 0x3278,
  26961. khieukhaparenkorean: 0x3218,
  26962. khieukhcirclekorean: 0x326A,
  26963. khieukhkorean: 0x314B,
  26964. khieukhparenkorean: 0x320A,
  26965. khokhaithai: 0x0E02,
  26966. khokhonthai: 0x0E05,
  26967. khokhuatthai: 0x0E03,
  26968. khokhwaithai: 0x0E04,
  26969. khomutthai: 0x0E5B,
  26970. khook: 0x0199,
  26971. khorakhangthai: 0x0E06,
  26972. khzsquare: 0x3391,
  26973. kihiragana: 0x304D,
  26974. kikatakana: 0x30AD,
  26975. kikatakanahalfwidth: 0xFF77,
  26976. kiroguramusquare: 0x3315,
  26977. kiromeetorusquare: 0x3316,
  26978. kirosquare: 0x3314,
  26979. kiyeokacirclekorean: 0x326E,
  26980. kiyeokaparenkorean: 0x320E,
  26981. kiyeokcirclekorean: 0x3260,
  26982. kiyeokkorean: 0x3131,
  26983. kiyeokparenkorean: 0x3200,
  26984. kiyeoksioskorean: 0x3133,
  26985. kjecyrillic: 0x045C,
  26986. klinebelow: 0x1E35,
  26987. klsquare: 0x3398,
  26988. kmcubedsquare: 0x33A6,
  26989. kmonospace: 0xFF4B,
  26990. kmsquaredsquare: 0x33A2,
  26991. kohiragana: 0x3053,
  26992. kohmsquare: 0x33C0,
  26993. kokaithai: 0x0E01,
  26994. kokatakana: 0x30B3,
  26995. kokatakanahalfwidth: 0xFF7A,
  26996. kooposquare: 0x331E,
  26997. koppacyrillic: 0x0481,
  26998. koreanstandardsymbol: 0x327F,
  26999. koroniscmb: 0x0343,
  27000. kparen: 0x24A6,
  27001. kpasquare: 0x33AA,
  27002. ksicyrillic: 0x046F,
  27003. ktsquare: 0x33CF,
  27004. kturned: 0x029E,
  27005. kuhiragana: 0x304F,
  27006. kukatakana: 0x30AF,
  27007. kukatakanahalfwidth: 0xFF78,
  27008. kvsquare: 0x33B8,
  27009. kwsquare: 0x33BE,
  27010. l: 0x006C,
  27011. labengali: 0x09B2,
  27012. lacute: 0x013A,
  27013. ladeva: 0x0932,
  27014. lagujarati: 0x0AB2,
  27015. lagurmukhi: 0x0A32,
  27016. lakkhangyaothai: 0x0E45,
  27017. lamaleffinalarabic: 0xFEFC,
  27018. lamalefhamzaabovefinalarabic: 0xFEF8,
  27019. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  27020. lamalefhamzabelowfinalarabic: 0xFEFA,
  27021. lamalefhamzabelowisolatedarabic: 0xFEF9,
  27022. lamalefisolatedarabic: 0xFEFB,
  27023. lamalefmaddaabovefinalarabic: 0xFEF6,
  27024. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  27025. lamarabic: 0x0644,
  27026. lambda: 0x03BB,
  27027. lambdastroke: 0x019B,
  27028. lamed: 0x05DC,
  27029. lameddagesh: 0xFB3C,
  27030. lameddageshhebrew: 0xFB3C,
  27031. lamedhebrew: 0x05DC,
  27032. lamfinalarabic: 0xFEDE,
  27033. lamhahinitialarabic: 0xFCCA,
  27034. laminitialarabic: 0xFEDF,
  27035. lamjeeminitialarabic: 0xFCC9,
  27036. lamkhahinitialarabic: 0xFCCB,
  27037. lamlamhehisolatedarabic: 0xFDF2,
  27038. lammedialarabic: 0xFEE0,
  27039. lammeemhahinitialarabic: 0xFD88,
  27040. lammeeminitialarabic: 0xFCCC,
  27041. largecircle: 0x25EF,
  27042. lbar: 0x019A,
  27043. lbelt: 0x026C,
  27044. lbopomofo: 0x310C,
  27045. lcaron: 0x013E,
  27046. lcedilla: 0x013C,
  27047. lcircle: 0x24DB,
  27048. lcircumflexbelow: 0x1E3D,
  27049. lcommaaccent: 0x013C,
  27050. ldot: 0x0140,
  27051. ldotaccent: 0x0140,
  27052. ldotbelow: 0x1E37,
  27053. ldotbelowmacron: 0x1E39,
  27054. leftangleabovecmb: 0x031A,
  27055. lefttackbelowcmb: 0x0318,
  27056. less: 0x003C,
  27057. lessequal: 0x2264,
  27058. lessequalorgreater: 0x22DA,
  27059. lessmonospace: 0xFF1C,
  27060. lessorequivalent: 0x2272,
  27061. lessorgreater: 0x2276,
  27062. lessoverequal: 0x2266,
  27063. lesssmall: 0xFE64,
  27064. lezh: 0x026E,
  27065. lfblock: 0x258C,
  27066. lhookretroflex: 0x026D,
  27067. lira: 0x20A4,
  27068. liwnarmenian: 0x056C,
  27069. lj: 0x01C9,
  27070. ljecyrillic: 0x0459,
  27071. ll: 0xF6C0,
  27072. lladeva: 0x0933,
  27073. llagujarati: 0x0AB3,
  27074. llinebelow: 0x1E3B,
  27075. llladeva: 0x0934,
  27076. llvocalicbengali: 0x09E1,
  27077. llvocalicdeva: 0x0961,
  27078. llvocalicvowelsignbengali: 0x09E3,
  27079. llvocalicvowelsigndeva: 0x0963,
  27080. lmiddletilde: 0x026B,
  27081. lmonospace: 0xFF4C,
  27082. lmsquare: 0x33D0,
  27083. lochulathai: 0x0E2C,
  27084. logicaland: 0x2227,
  27085. logicalnot: 0x00AC,
  27086. logicalnotreversed: 0x2310,
  27087. logicalor: 0x2228,
  27088. lolingthai: 0x0E25,
  27089. longs: 0x017F,
  27090. lowlinecenterline: 0xFE4E,
  27091. lowlinecmb: 0x0332,
  27092. lowlinedashed: 0xFE4D,
  27093. lozenge: 0x25CA,
  27094. lparen: 0x24A7,
  27095. lslash: 0x0142,
  27096. lsquare: 0x2113,
  27097. lsuperior: 0xF6EE,
  27098. ltshade: 0x2591,
  27099. luthai: 0x0E26,
  27100. lvocalicbengali: 0x098C,
  27101. lvocalicdeva: 0x090C,
  27102. lvocalicvowelsignbengali: 0x09E2,
  27103. lvocalicvowelsigndeva: 0x0962,
  27104. lxsquare: 0x33D3,
  27105. m: 0x006D,
  27106. mabengali: 0x09AE,
  27107. macron: 0x00AF,
  27108. macronbelowcmb: 0x0331,
  27109. macroncmb: 0x0304,
  27110. macronlowmod: 0x02CD,
  27111. macronmonospace: 0xFFE3,
  27112. macute: 0x1E3F,
  27113. madeva: 0x092E,
  27114. magujarati: 0x0AAE,
  27115. magurmukhi: 0x0A2E,
  27116. mahapakhhebrew: 0x05A4,
  27117. mahapakhlefthebrew: 0x05A4,
  27118. mahiragana: 0x307E,
  27119. maichattawalowleftthai: 0xF895,
  27120. maichattawalowrightthai: 0xF894,
  27121. maichattawathai: 0x0E4B,
  27122. maichattawaupperleftthai: 0xF893,
  27123. maieklowleftthai: 0xF88C,
  27124. maieklowrightthai: 0xF88B,
  27125. maiekthai: 0x0E48,
  27126. maiekupperleftthai: 0xF88A,
  27127. maihanakatleftthai: 0xF884,
  27128. maihanakatthai: 0x0E31,
  27129. maitaikhuleftthai: 0xF889,
  27130. maitaikhuthai: 0x0E47,
  27131. maitholowleftthai: 0xF88F,
  27132. maitholowrightthai: 0xF88E,
  27133. maithothai: 0x0E49,
  27134. maithoupperleftthai: 0xF88D,
  27135. maitrilowleftthai: 0xF892,
  27136. maitrilowrightthai: 0xF891,
  27137. maitrithai: 0x0E4A,
  27138. maitriupperleftthai: 0xF890,
  27139. maiyamokthai: 0x0E46,
  27140. makatakana: 0x30DE,
  27141. makatakanahalfwidth: 0xFF8F,
  27142. male: 0x2642,
  27143. mansyonsquare: 0x3347,
  27144. maqafhebrew: 0x05BE,
  27145. mars: 0x2642,
  27146. masoracirclehebrew: 0x05AF,
  27147. masquare: 0x3383,
  27148. mbopomofo: 0x3107,
  27149. mbsquare: 0x33D4,
  27150. mcircle: 0x24DC,
  27151. mcubedsquare: 0x33A5,
  27152. mdotaccent: 0x1E41,
  27153. mdotbelow: 0x1E43,
  27154. meemarabic: 0x0645,
  27155. meemfinalarabic: 0xFEE2,
  27156. meeminitialarabic: 0xFEE3,
  27157. meemmedialarabic: 0xFEE4,
  27158. meemmeeminitialarabic: 0xFCD1,
  27159. meemmeemisolatedarabic: 0xFC48,
  27160. meetorusquare: 0x334D,
  27161. mehiragana: 0x3081,
  27162. meizierasquare: 0x337E,
  27163. mekatakana: 0x30E1,
  27164. mekatakanahalfwidth: 0xFF92,
  27165. mem: 0x05DE,
  27166. memdagesh: 0xFB3E,
  27167. memdageshhebrew: 0xFB3E,
  27168. memhebrew: 0x05DE,
  27169. menarmenian: 0x0574,
  27170. merkhahebrew: 0x05A5,
  27171. merkhakefulahebrew: 0x05A6,
  27172. merkhakefulalefthebrew: 0x05A6,
  27173. merkhalefthebrew: 0x05A5,
  27174. mhook: 0x0271,
  27175. mhzsquare: 0x3392,
  27176. middledotkatakanahalfwidth: 0xFF65,
  27177. middot: 0x00B7,
  27178. mieumacirclekorean: 0x3272,
  27179. mieumaparenkorean: 0x3212,
  27180. mieumcirclekorean: 0x3264,
  27181. mieumkorean: 0x3141,
  27182. mieumpansioskorean: 0x3170,
  27183. mieumparenkorean: 0x3204,
  27184. mieumpieupkorean: 0x316E,
  27185. mieumsioskorean: 0x316F,
  27186. mihiragana: 0x307F,
  27187. mikatakana: 0x30DF,
  27188. mikatakanahalfwidth: 0xFF90,
  27189. minus: 0x2212,
  27190. minusbelowcmb: 0x0320,
  27191. minuscircle: 0x2296,
  27192. minusmod: 0x02D7,
  27193. minusplus: 0x2213,
  27194. minute: 0x2032,
  27195. miribaarusquare: 0x334A,
  27196. mirisquare: 0x3349,
  27197. mlonglegturned: 0x0270,
  27198. mlsquare: 0x3396,
  27199. mmcubedsquare: 0x33A3,
  27200. mmonospace: 0xFF4D,
  27201. mmsquaredsquare: 0x339F,
  27202. mohiragana: 0x3082,
  27203. mohmsquare: 0x33C1,
  27204. mokatakana: 0x30E2,
  27205. mokatakanahalfwidth: 0xFF93,
  27206. molsquare: 0x33D6,
  27207. momathai: 0x0E21,
  27208. moverssquare: 0x33A7,
  27209. moverssquaredsquare: 0x33A8,
  27210. mparen: 0x24A8,
  27211. mpasquare: 0x33AB,
  27212. mssquare: 0x33B3,
  27213. msuperior: 0xF6EF,
  27214. mturned: 0x026F,
  27215. mu: 0x00B5,
  27216. mu1: 0x00B5,
  27217. muasquare: 0x3382,
  27218. muchgreater: 0x226B,
  27219. muchless: 0x226A,
  27220. mufsquare: 0x338C,
  27221. mugreek: 0x03BC,
  27222. mugsquare: 0x338D,
  27223. muhiragana: 0x3080,
  27224. mukatakana: 0x30E0,
  27225. mukatakanahalfwidth: 0xFF91,
  27226. mulsquare: 0x3395,
  27227. multiply: 0x00D7,
  27228. mumsquare: 0x339B,
  27229. munahhebrew: 0x05A3,
  27230. munahlefthebrew: 0x05A3,
  27231. musicalnote: 0x266A,
  27232. musicalnotedbl: 0x266B,
  27233. musicflatsign: 0x266D,
  27234. musicsharpsign: 0x266F,
  27235. mussquare: 0x33B2,
  27236. muvsquare: 0x33B6,
  27237. muwsquare: 0x33BC,
  27238. mvmegasquare: 0x33B9,
  27239. mvsquare: 0x33B7,
  27240. mwmegasquare: 0x33BF,
  27241. mwsquare: 0x33BD,
  27242. n: 0x006E,
  27243. nabengali: 0x09A8,
  27244. nabla: 0x2207,
  27245. nacute: 0x0144,
  27246. nadeva: 0x0928,
  27247. nagujarati: 0x0AA8,
  27248. nagurmukhi: 0x0A28,
  27249. nahiragana: 0x306A,
  27250. nakatakana: 0x30CA,
  27251. nakatakanahalfwidth: 0xFF85,
  27252. napostrophe: 0x0149,
  27253. nasquare: 0x3381,
  27254. nbopomofo: 0x310B,
  27255. nbspace: 0x00A0,
  27256. ncaron: 0x0148,
  27257. ncedilla: 0x0146,
  27258. ncircle: 0x24DD,
  27259. ncircumflexbelow: 0x1E4B,
  27260. ncommaaccent: 0x0146,
  27261. ndotaccent: 0x1E45,
  27262. ndotbelow: 0x1E47,
  27263. nehiragana: 0x306D,
  27264. nekatakana: 0x30CD,
  27265. nekatakanahalfwidth: 0xFF88,
  27266. newsheqelsign: 0x20AA,
  27267. nfsquare: 0x338B,
  27268. ngabengali: 0x0999,
  27269. ngadeva: 0x0919,
  27270. ngagujarati: 0x0A99,
  27271. ngagurmukhi: 0x0A19,
  27272. ngonguthai: 0x0E07,
  27273. nhiragana: 0x3093,
  27274. nhookleft: 0x0272,
  27275. nhookretroflex: 0x0273,
  27276. nieunacirclekorean: 0x326F,
  27277. nieunaparenkorean: 0x320F,
  27278. nieuncieuckorean: 0x3135,
  27279. nieuncirclekorean: 0x3261,
  27280. nieunhieuhkorean: 0x3136,
  27281. nieunkorean: 0x3134,
  27282. nieunpansioskorean: 0x3168,
  27283. nieunparenkorean: 0x3201,
  27284. nieunsioskorean: 0x3167,
  27285. nieuntikeutkorean: 0x3166,
  27286. nihiragana: 0x306B,
  27287. nikatakana: 0x30CB,
  27288. nikatakanahalfwidth: 0xFF86,
  27289. nikhahitleftthai: 0xF899,
  27290. nikhahitthai: 0x0E4D,
  27291. nine: 0x0039,
  27292. ninearabic: 0x0669,
  27293. ninebengali: 0x09EF,
  27294. ninecircle: 0x2468,
  27295. ninecircleinversesansserif: 0x2792,
  27296. ninedeva: 0x096F,
  27297. ninegujarati: 0x0AEF,
  27298. ninegurmukhi: 0x0A6F,
  27299. ninehackarabic: 0x0669,
  27300. ninehangzhou: 0x3029,
  27301. nineideographicparen: 0x3228,
  27302. nineinferior: 0x2089,
  27303. ninemonospace: 0xFF19,
  27304. nineoldstyle: 0xF739,
  27305. nineparen: 0x247C,
  27306. nineperiod: 0x2490,
  27307. ninepersian: 0x06F9,
  27308. nineroman: 0x2178,
  27309. ninesuperior: 0x2079,
  27310. nineteencircle: 0x2472,
  27311. nineteenparen: 0x2486,
  27312. nineteenperiod: 0x249A,
  27313. ninethai: 0x0E59,
  27314. nj: 0x01CC,
  27315. njecyrillic: 0x045A,
  27316. nkatakana: 0x30F3,
  27317. nkatakanahalfwidth: 0xFF9D,
  27318. nlegrightlong: 0x019E,
  27319. nlinebelow: 0x1E49,
  27320. nmonospace: 0xFF4E,
  27321. nmsquare: 0x339A,
  27322. nnabengali: 0x09A3,
  27323. nnadeva: 0x0923,
  27324. nnagujarati: 0x0AA3,
  27325. nnagurmukhi: 0x0A23,
  27326. nnnadeva: 0x0929,
  27327. nohiragana: 0x306E,
  27328. nokatakana: 0x30CE,
  27329. nokatakanahalfwidth: 0xFF89,
  27330. nonbreakingspace: 0x00A0,
  27331. nonenthai: 0x0E13,
  27332. nonuthai: 0x0E19,
  27333. noonarabic: 0x0646,
  27334. noonfinalarabic: 0xFEE6,
  27335. noonghunnaarabic: 0x06BA,
  27336. noonghunnafinalarabic: 0xFB9F,
  27337. nooninitialarabic: 0xFEE7,
  27338. noonjeeminitialarabic: 0xFCD2,
  27339. noonjeemisolatedarabic: 0xFC4B,
  27340. noonmedialarabic: 0xFEE8,
  27341. noonmeeminitialarabic: 0xFCD5,
  27342. noonmeemisolatedarabic: 0xFC4E,
  27343. noonnoonfinalarabic: 0xFC8D,
  27344. notcontains: 0x220C,
  27345. notelement: 0x2209,
  27346. notelementof: 0x2209,
  27347. notequal: 0x2260,
  27348. notgreater: 0x226F,
  27349. notgreaternorequal: 0x2271,
  27350. notgreaternorless: 0x2279,
  27351. notidentical: 0x2262,
  27352. notless: 0x226E,
  27353. notlessnorequal: 0x2270,
  27354. notparallel: 0x2226,
  27355. notprecedes: 0x2280,
  27356. notsubset: 0x2284,
  27357. notsucceeds: 0x2281,
  27358. notsuperset: 0x2285,
  27359. nowarmenian: 0x0576,
  27360. nparen: 0x24A9,
  27361. nssquare: 0x33B1,
  27362. nsuperior: 0x207F,
  27363. ntilde: 0x00F1,
  27364. nu: 0x03BD,
  27365. nuhiragana: 0x306C,
  27366. nukatakana: 0x30CC,
  27367. nukatakanahalfwidth: 0xFF87,
  27368. nuktabengali: 0x09BC,
  27369. nuktadeva: 0x093C,
  27370. nuktagujarati: 0x0ABC,
  27371. nuktagurmukhi: 0x0A3C,
  27372. numbersign: 0x0023,
  27373. numbersignmonospace: 0xFF03,
  27374. numbersignsmall: 0xFE5F,
  27375. numeralsigngreek: 0x0374,
  27376. numeralsignlowergreek: 0x0375,
  27377. numero: 0x2116,
  27378. nun: 0x05E0,
  27379. nundagesh: 0xFB40,
  27380. nundageshhebrew: 0xFB40,
  27381. nunhebrew: 0x05E0,
  27382. nvsquare: 0x33B5,
  27383. nwsquare: 0x33BB,
  27384. nyabengali: 0x099E,
  27385. nyadeva: 0x091E,
  27386. nyagujarati: 0x0A9E,
  27387. nyagurmukhi: 0x0A1E,
  27388. o: 0x006F,
  27389. oacute: 0x00F3,
  27390. oangthai: 0x0E2D,
  27391. obarred: 0x0275,
  27392. obarredcyrillic: 0x04E9,
  27393. obarreddieresiscyrillic: 0x04EB,
  27394. obengali: 0x0993,
  27395. obopomofo: 0x311B,
  27396. obreve: 0x014F,
  27397. ocandradeva: 0x0911,
  27398. ocandragujarati: 0x0A91,
  27399. ocandravowelsigndeva: 0x0949,
  27400. ocandravowelsigngujarati: 0x0AC9,
  27401. ocaron: 0x01D2,
  27402. ocircle: 0x24DE,
  27403. ocircumflex: 0x00F4,
  27404. ocircumflexacute: 0x1ED1,
  27405. ocircumflexdotbelow: 0x1ED9,
  27406. ocircumflexgrave: 0x1ED3,
  27407. ocircumflexhookabove: 0x1ED5,
  27408. ocircumflextilde: 0x1ED7,
  27409. ocyrillic: 0x043E,
  27410. odblacute: 0x0151,
  27411. odblgrave: 0x020D,
  27412. odeva: 0x0913,
  27413. odieresis: 0x00F6,
  27414. odieresiscyrillic: 0x04E7,
  27415. odotbelow: 0x1ECD,
  27416. oe: 0x0153,
  27417. oekorean: 0x315A,
  27418. ogonek: 0x02DB,
  27419. ogonekcmb: 0x0328,
  27420. ograve: 0x00F2,
  27421. ogujarati: 0x0A93,
  27422. oharmenian: 0x0585,
  27423. ohiragana: 0x304A,
  27424. ohookabove: 0x1ECF,
  27425. ohorn: 0x01A1,
  27426. ohornacute: 0x1EDB,
  27427. ohorndotbelow: 0x1EE3,
  27428. ohorngrave: 0x1EDD,
  27429. ohornhookabove: 0x1EDF,
  27430. ohorntilde: 0x1EE1,
  27431. ohungarumlaut: 0x0151,
  27432. oi: 0x01A3,
  27433. oinvertedbreve: 0x020F,
  27434. okatakana: 0x30AA,
  27435. okatakanahalfwidth: 0xFF75,
  27436. okorean: 0x3157,
  27437. olehebrew: 0x05AB,
  27438. omacron: 0x014D,
  27439. omacronacute: 0x1E53,
  27440. omacrongrave: 0x1E51,
  27441. omdeva: 0x0950,
  27442. omega: 0x03C9,
  27443. omega1: 0x03D6,
  27444. omegacyrillic: 0x0461,
  27445. omegalatinclosed: 0x0277,
  27446. omegaroundcyrillic: 0x047B,
  27447. omegatitlocyrillic: 0x047D,
  27448. omegatonos: 0x03CE,
  27449. omgujarati: 0x0AD0,
  27450. omicron: 0x03BF,
  27451. omicrontonos: 0x03CC,
  27452. omonospace: 0xFF4F,
  27453. one: 0x0031,
  27454. onearabic: 0x0661,
  27455. onebengali: 0x09E7,
  27456. onecircle: 0x2460,
  27457. onecircleinversesansserif: 0x278A,
  27458. onedeva: 0x0967,
  27459. onedotenleader: 0x2024,
  27460. oneeighth: 0x215B,
  27461. onefitted: 0xF6DC,
  27462. onegujarati: 0x0AE7,
  27463. onegurmukhi: 0x0A67,
  27464. onehackarabic: 0x0661,
  27465. onehalf: 0x00BD,
  27466. onehangzhou: 0x3021,
  27467. oneideographicparen: 0x3220,
  27468. oneinferior: 0x2081,
  27469. onemonospace: 0xFF11,
  27470. onenumeratorbengali: 0x09F4,
  27471. oneoldstyle: 0xF731,
  27472. oneparen: 0x2474,
  27473. oneperiod: 0x2488,
  27474. onepersian: 0x06F1,
  27475. onequarter: 0x00BC,
  27476. oneroman: 0x2170,
  27477. onesuperior: 0x00B9,
  27478. onethai: 0x0E51,
  27479. onethird: 0x2153,
  27480. oogonek: 0x01EB,
  27481. oogonekmacron: 0x01ED,
  27482. oogurmukhi: 0x0A13,
  27483. oomatragurmukhi: 0x0A4B,
  27484. oopen: 0x0254,
  27485. oparen: 0x24AA,
  27486. openbullet: 0x25E6,
  27487. option: 0x2325,
  27488. ordfeminine: 0x00AA,
  27489. ordmasculine: 0x00BA,
  27490. orthogonal: 0x221F,
  27491. oshortdeva: 0x0912,
  27492. oshortvowelsigndeva: 0x094A,
  27493. oslash: 0x00F8,
  27494. oslashacute: 0x01FF,
  27495. osmallhiragana: 0x3049,
  27496. osmallkatakana: 0x30A9,
  27497. osmallkatakanahalfwidth: 0xFF6B,
  27498. ostrokeacute: 0x01FF,
  27499. osuperior: 0xF6F0,
  27500. otcyrillic: 0x047F,
  27501. otilde: 0x00F5,
  27502. otildeacute: 0x1E4D,
  27503. otildedieresis: 0x1E4F,
  27504. oubopomofo: 0x3121,
  27505. overline: 0x203E,
  27506. overlinecenterline: 0xFE4A,
  27507. overlinecmb: 0x0305,
  27508. overlinedashed: 0xFE49,
  27509. overlinedblwavy: 0xFE4C,
  27510. overlinewavy: 0xFE4B,
  27511. overscore: 0x00AF,
  27512. ovowelsignbengali: 0x09CB,
  27513. ovowelsigndeva: 0x094B,
  27514. ovowelsigngujarati: 0x0ACB,
  27515. p: 0x0070,
  27516. paampssquare: 0x3380,
  27517. paasentosquare: 0x332B,
  27518. pabengali: 0x09AA,
  27519. pacute: 0x1E55,
  27520. padeva: 0x092A,
  27521. pagedown: 0x21DF,
  27522. pageup: 0x21DE,
  27523. pagujarati: 0x0AAA,
  27524. pagurmukhi: 0x0A2A,
  27525. pahiragana: 0x3071,
  27526. paiyannoithai: 0x0E2F,
  27527. pakatakana: 0x30D1,
  27528. palatalizationcyrilliccmb: 0x0484,
  27529. palochkacyrillic: 0x04C0,
  27530. pansioskorean: 0x317F,
  27531. paragraph: 0x00B6,
  27532. parallel: 0x2225,
  27533. parenleft: 0x0028,
  27534. parenleftaltonearabic: 0xFD3E,
  27535. parenleftbt: 0xF8ED,
  27536. parenleftex: 0xF8EC,
  27537. parenleftinferior: 0x208D,
  27538. parenleftmonospace: 0xFF08,
  27539. parenleftsmall: 0xFE59,
  27540. parenleftsuperior: 0x207D,
  27541. parenlefttp: 0xF8EB,
  27542. parenleftvertical: 0xFE35,
  27543. parenright: 0x0029,
  27544. parenrightaltonearabic: 0xFD3F,
  27545. parenrightbt: 0xF8F8,
  27546. parenrightex: 0xF8F7,
  27547. parenrightinferior: 0x208E,
  27548. parenrightmonospace: 0xFF09,
  27549. parenrightsmall: 0xFE5A,
  27550. parenrightsuperior: 0x207E,
  27551. parenrighttp: 0xF8F6,
  27552. parenrightvertical: 0xFE36,
  27553. partialdiff: 0x2202,
  27554. paseqhebrew: 0x05C0,
  27555. pashtahebrew: 0x0599,
  27556. pasquare: 0x33A9,
  27557. patah: 0x05B7,
  27558. patah11: 0x05B7,
  27559. patah1d: 0x05B7,
  27560. patah2a: 0x05B7,
  27561. patahhebrew: 0x05B7,
  27562. patahnarrowhebrew: 0x05B7,
  27563. patahquarterhebrew: 0x05B7,
  27564. patahwidehebrew: 0x05B7,
  27565. pazerhebrew: 0x05A1,
  27566. pbopomofo: 0x3106,
  27567. pcircle: 0x24DF,
  27568. pdotaccent: 0x1E57,
  27569. pe: 0x05E4,
  27570. pecyrillic: 0x043F,
  27571. pedagesh: 0xFB44,
  27572. pedageshhebrew: 0xFB44,
  27573. peezisquare: 0x333B,
  27574. pefinaldageshhebrew: 0xFB43,
  27575. peharabic: 0x067E,
  27576. peharmenian: 0x057A,
  27577. pehebrew: 0x05E4,
  27578. pehfinalarabic: 0xFB57,
  27579. pehinitialarabic: 0xFB58,
  27580. pehiragana: 0x307A,
  27581. pehmedialarabic: 0xFB59,
  27582. pekatakana: 0x30DA,
  27583. pemiddlehookcyrillic: 0x04A7,
  27584. perafehebrew: 0xFB4E,
  27585. percent: 0x0025,
  27586. percentarabic: 0x066A,
  27587. percentmonospace: 0xFF05,
  27588. percentsmall: 0xFE6A,
  27589. period: 0x002E,
  27590. periodarmenian: 0x0589,
  27591. periodcentered: 0x00B7,
  27592. periodhalfwidth: 0xFF61,
  27593. periodinferior: 0xF6E7,
  27594. periodmonospace: 0xFF0E,
  27595. periodsmall: 0xFE52,
  27596. periodsuperior: 0xF6E8,
  27597. perispomenigreekcmb: 0x0342,
  27598. perpendicular: 0x22A5,
  27599. perthousand: 0x2030,
  27600. peseta: 0x20A7,
  27601. pfsquare: 0x338A,
  27602. phabengali: 0x09AB,
  27603. phadeva: 0x092B,
  27604. phagujarati: 0x0AAB,
  27605. phagurmukhi: 0x0A2B,
  27606. phi: 0x03C6,
  27607. phi1: 0x03D5,
  27608. phieuphacirclekorean: 0x327A,
  27609. phieuphaparenkorean: 0x321A,
  27610. phieuphcirclekorean: 0x326C,
  27611. phieuphkorean: 0x314D,
  27612. phieuphparenkorean: 0x320C,
  27613. philatin: 0x0278,
  27614. phinthuthai: 0x0E3A,
  27615. phisymbolgreek: 0x03D5,
  27616. phook: 0x01A5,
  27617. phophanthai: 0x0E1E,
  27618. phophungthai: 0x0E1C,
  27619. phosamphaothai: 0x0E20,
  27620. pi: 0x03C0,
  27621. pieupacirclekorean: 0x3273,
  27622. pieupaparenkorean: 0x3213,
  27623. pieupcieuckorean: 0x3176,
  27624. pieupcirclekorean: 0x3265,
  27625. pieupkiyeokkorean: 0x3172,
  27626. pieupkorean: 0x3142,
  27627. pieupparenkorean: 0x3205,
  27628. pieupsioskiyeokkorean: 0x3174,
  27629. pieupsioskorean: 0x3144,
  27630. pieupsiostikeutkorean: 0x3175,
  27631. pieupthieuthkorean: 0x3177,
  27632. pieuptikeutkorean: 0x3173,
  27633. pihiragana: 0x3074,
  27634. pikatakana: 0x30D4,
  27635. pisymbolgreek: 0x03D6,
  27636. piwrarmenian: 0x0583,
  27637. plus: 0x002B,
  27638. plusbelowcmb: 0x031F,
  27639. pluscircle: 0x2295,
  27640. plusminus: 0x00B1,
  27641. plusmod: 0x02D6,
  27642. plusmonospace: 0xFF0B,
  27643. plussmall: 0xFE62,
  27644. plussuperior: 0x207A,
  27645. pmonospace: 0xFF50,
  27646. pmsquare: 0x33D8,
  27647. pohiragana: 0x307D,
  27648. pointingindexdownwhite: 0x261F,
  27649. pointingindexleftwhite: 0x261C,
  27650. pointingindexrightwhite: 0x261E,
  27651. pointingindexupwhite: 0x261D,
  27652. pokatakana: 0x30DD,
  27653. poplathai: 0x0E1B,
  27654. postalmark: 0x3012,
  27655. postalmarkface: 0x3020,
  27656. pparen: 0x24AB,
  27657. precedes: 0x227A,
  27658. prescription: 0x211E,
  27659. primemod: 0x02B9,
  27660. primereversed: 0x2035,
  27661. product: 0x220F,
  27662. projective: 0x2305,
  27663. prolongedkana: 0x30FC,
  27664. propellor: 0x2318,
  27665. propersubset: 0x2282,
  27666. propersuperset: 0x2283,
  27667. proportion: 0x2237,
  27668. proportional: 0x221D,
  27669. psi: 0x03C8,
  27670. psicyrillic: 0x0471,
  27671. psilipneumatacyrilliccmb: 0x0486,
  27672. pssquare: 0x33B0,
  27673. puhiragana: 0x3077,
  27674. pukatakana: 0x30D7,
  27675. pvsquare: 0x33B4,
  27676. pwsquare: 0x33BA,
  27677. q: 0x0071,
  27678. qadeva: 0x0958,
  27679. qadmahebrew: 0x05A8,
  27680. qafarabic: 0x0642,
  27681. qaffinalarabic: 0xFED6,
  27682. qafinitialarabic: 0xFED7,
  27683. qafmedialarabic: 0xFED8,
  27684. qamats: 0x05B8,
  27685. qamats10: 0x05B8,
  27686. qamats1a: 0x05B8,
  27687. qamats1c: 0x05B8,
  27688. qamats27: 0x05B8,
  27689. qamats29: 0x05B8,
  27690. qamats33: 0x05B8,
  27691. qamatsde: 0x05B8,
  27692. qamatshebrew: 0x05B8,
  27693. qamatsnarrowhebrew: 0x05B8,
  27694. qamatsqatanhebrew: 0x05B8,
  27695. qamatsqatannarrowhebrew: 0x05B8,
  27696. qamatsqatanquarterhebrew: 0x05B8,
  27697. qamatsqatanwidehebrew: 0x05B8,
  27698. qamatsquarterhebrew: 0x05B8,
  27699. qamatswidehebrew: 0x05B8,
  27700. qarneyparahebrew: 0x059F,
  27701. qbopomofo: 0x3111,
  27702. qcircle: 0x24E0,
  27703. qhook: 0x02A0,
  27704. qmonospace: 0xFF51,
  27705. qof: 0x05E7,
  27706. qofdagesh: 0xFB47,
  27707. qofdageshhebrew: 0xFB47,
  27708. qofhebrew: 0x05E7,
  27709. qparen: 0x24AC,
  27710. quarternote: 0x2669,
  27711. qubuts: 0x05BB,
  27712. qubuts18: 0x05BB,
  27713. qubuts25: 0x05BB,
  27714. qubuts31: 0x05BB,
  27715. qubutshebrew: 0x05BB,
  27716. qubutsnarrowhebrew: 0x05BB,
  27717. qubutsquarterhebrew: 0x05BB,
  27718. qubutswidehebrew: 0x05BB,
  27719. question: 0x003F,
  27720. questionarabic: 0x061F,
  27721. questionarmenian: 0x055E,
  27722. questiondown: 0x00BF,
  27723. questiondownsmall: 0xF7BF,
  27724. questiongreek: 0x037E,
  27725. questionmonospace: 0xFF1F,
  27726. questionsmall: 0xF73F,
  27727. quotedbl: 0x0022,
  27728. quotedblbase: 0x201E,
  27729. quotedblleft: 0x201C,
  27730. quotedblmonospace: 0xFF02,
  27731. quotedblprime: 0x301E,
  27732. quotedblprimereversed: 0x301D,
  27733. quotedblright: 0x201D,
  27734. quoteleft: 0x2018,
  27735. quoteleftreversed: 0x201B,
  27736. quotereversed: 0x201B,
  27737. quoteright: 0x2019,
  27738. quoterightn: 0x0149,
  27739. quotesinglbase: 0x201A,
  27740. quotesingle: 0x0027,
  27741. quotesinglemonospace: 0xFF07,
  27742. r: 0x0072,
  27743. raarmenian: 0x057C,
  27744. rabengali: 0x09B0,
  27745. racute: 0x0155,
  27746. radeva: 0x0930,
  27747. radical: 0x221A,
  27748. radicalex: 0xF8E5,
  27749. radoverssquare: 0x33AE,
  27750. radoverssquaredsquare: 0x33AF,
  27751. radsquare: 0x33AD,
  27752. rafe: 0x05BF,
  27753. rafehebrew: 0x05BF,
  27754. ragujarati: 0x0AB0,
  27755. ragurmukhi: 0x0A30,
  27756. rahiragana: 0x3089,
  27757. rakatakana: 0x30E9,
  27758. rakatakanahalfwidth: 0xFF97,
  27759. ralowerdiagonalbengali: 0x09F1,
  27760. ramiddlediagonalbengali: 0x09F0,
  27761. ramshorn: 0x0264,
  27762. ratio: 0x2236,
  27763. rbopomofo: 0x3116,
  27764. rcaron: 0x0159,
  27765. rcedilla: 0x0157,
  27766. rcircle: 0x24E1,
  27767. rcommaaccent: 0x0157,
  27768. rdblgrave: 0x0211,
  27769. rdotaccent: 0x1E59,
  27770. rdotbelow: 0x1E5B,
  27771. rdotbelowmacron: 0x1E5D,
  27772. referencemark: 0x203B,
  27773. reflexsubset: 0x2286,
  27774. reflexsuperset: 0x2287,
  27775. registered: 0x00AE,
  27776. registersans: 0xF8E8,
  27777. registerserif: 0xF6DA,
  27778. reharabic: 0x0631,
  27779. reharmenian: 0x0580,
  27780. rehfinalarabic: 0xFEAE,
  27781. rehiragana: 0x308C,
  27782. rekatakana: 0x30EC,
  27783. rekatakanahalfwidth: 0xFF9A,
  27784. resh: 0x05E8,
  27785. reshdageshhebrew: 0xFB48,
  27786. reshhebrew: 0x05E8,
  27787. reversedtilde: 0x223D,
  27788. reviahebrew: 0x0597,
  27789. reviamugrashhebrew: 0x0597,
  27790. revlogicalnot: 0x2310,
  27791. rfishhook: 0x027E,
  27792. rfishhookreversed: 0x027F,
  27793. rhabengali: 0x09DD,
  27794. rhadeva: 0x095D,
  27795. rho: 0x03C1,
  27796. rhook: 0x027D,
  27797. rhookturned: 0x027B,
  27798. rhookturnedsuperior: 0x02B5,
  27799. rhosymbolgreek: 0x03F1,
  27800. rhotichookmod: 0x02DE,
  27801. rieulacirclekorean: 0x3271,
  27802. rieulaparenkorean: 0x3211,
  27803. rieulcirclekorean: 0x3263,
  27804. rieulhieuhkorean: 0x3140,
  27805. rieulkiyeokkorean: 0x313A,
  27806. rieulkiyeoksioskorean: 0x3169,
  27807. rieulkorean: 0x3139,
  27808. rieulmieumkorean: 0x313B,
  27809. rieulpansioskorean: 0x316C,
  27810. rieulparenkorean: 0x3203,
  27811. rieulphieuphkorean: 0x313F,
  27812. rieulpieupkorean: 0x313C,
  27813. rieulpieupsioskorean: 0x316B,
  27814. rieulsioskorean: 0x313D,
  27815. rieulthieuthkorean: 0x313E,
  27816. rieultikeutkorean: 0x316A,
  27817. rieulyeorinhieuhkorean: 0x316D,
  27818. rightangle: 0x221F,
  27819. righttackbelowcmb: 0x0319,
  27820. righttriangle: 0x22BF,
  27821. rihiragana: 0x308A,
  27822. rikatakana: 0x30EA,
  27823. rikatakanahalfwidth: 0xFF98,
  27824. ring: 0x02DA,
  27825. ringbelowcmb: 0x0325,
  27826. ringcmb: 0x030A,
  27827. ringhalfleft: 0x02BF,
  27828. ringhalfleftarmenian: 0x0559,
  27829. ringhalfleftbelowcmb: 0x031C,
  27830. ringhalfleftcentered: 0x02D3,
  27831. ringhalfright: 0x02BE,
  27832. ringhalfrightbelowcmb: 0x0339,
  27833. ringhalfrightcentered: 0x02D2,
  27834. rinvertedbreve: 0x0213,
  27835. rittorusquare: 0x3351,
  27836. rlinebelow: 0x1E5F,
  27837. rlongleg: 0x027C,
  27838. rlonglegturned: 0x027A,
  27839. rmonospace: 0xFF52,
  27840. rohiragana: 0x308D,
  27841. rokatakana: 0x30ED,
  27842. rokatakanahalfwidth: 0xFF9B,
  27843. roruathai: 0x0E23,
  27844. rparen: 0x24AD,
  27845. rrabengali: 0x09DC,
  27846. rradeva: 0x0931,
  27847. rragurmukhi: 0x0A5C,
  27848. rreharabic: 0x0691,
  27849. rrehfinalarabic: 0xFB8D,
  27850. rrvocalicbengali: 0x09E0,
  27851. rrvocalicdeva: 0x0960,
  27852. rrvocalicgujarati: 0x0AE0,
  27853. rrvocalicvowelsignbengali: 0x09C4,
  27854. rrvocalicvowelsigndeva: 0x0944,
  27855. rrvocalicvowelsigngujarati: 0x0AC4,
  27856. rsuperior: 0xF6F1,
  27857. rtblock: 0x2590,
  27858. rturned: 0x0279,
  27859. rturnedsuperior: 0x02B4,
  27860. ruhiragana: 0x308B,
  27861. rukatakana: 0x30EB,
  27862. rukatakanahalfwidth: 0xFF99,
  27863. rupeemarkbengali: 0x09F2,
  27864. rupeesignbengali: 0x09F3,
  27865. rupiah: 0xF6DD,
  27866. ruthai: 0x0E24,
  27867. rvocalicbengali: 0x098B,
  27868. rvocalicdeva: 0x090B,
  27869. rvocalicgujarati: 0x0A8B,
  27870. rvocalicvowelsignbengali: 0x09C3,
  27871. rvocalicvowelsigndeva: 0x0943,
  27872. rvocalicvowelsigngujarati: 0x0AC3,
  27873. s: 0x0073,
  27874. sabengali: 0x09B8,
  27875. sacute: 0x015B,
  27876. sacutedotaccent: 0x1E65,
  27877. sadarabic: 0x0635,
  27878. sadeva: 0x0938,
  27879. sadfinalarabic: 0xFEBA,
  27880. sadinitialarabic: 0xFEBB,
  27881. sadmedialarabic: 0xFEBC,
  27882. sagujarati: 0x0AB8,
  27883. sagurmukhi: 0x0A38,
  27884. sahiragana: 0x3055,
  27885. sakatakana: 0x30B5,
  27886. sakatakanahalfwidth: 0xFF7B,
  27887. sallallahoualayhewasallamarabic: 0xFDFA,
  27888. samekh: 0x05E1,
  27889. samekhdagesh: 0xFB41,
  27890. samekhdageshhebrew: 0xFB41,
  27891. samekhhebrew: 0x05E1,
  27892. saraaathai: 0x0E32,
  27893. saraaethai: 0x0E41,
  27894. saraaimaimalaithai: 0x0E44,
  27895. saraaimaimuanthai: 0x0E43,
  27896. saraamthai: 0x0E33,
  27897. saraathai: 0x0E30,
  27898. saraethai: 0x0E40,
  27899. saraiileftthai: 0xF886,
  27900. saraiithai: 0x0E35,
  27901. saraileftthai: 0xF885,
  27902. saraithai: 0x0E34,
  27903. saraothai: 0x0E42,
  27904. saraueeleftthai: 0xF888,
  27905. saraueethai: 0x0E37,
  27906. saraueleftthai: 0xF887,
  27907. sarauethai: 0x0E36,
  27908. sarauthai: 0x0E38,
  27909. sarauuthai: 0x0E39,
  27910. sbopomofo: 0x3119,
  27911. scaron: 0x0161,
  27912. scarondotaccent: 0x1E67,
  27913. scedilla: 0x015F,
  27914. schwa: 0x0259,
  27915. schwacyrillic: 0x04D9,
  27916. schwadieresiscyrillic: 0x04DB,
  27917. schwahook: 0x025A,
  27918. scircle: 0x24E2,
  27919. scircumflex: 0x015D,
  27920. scommaaccent: 0x0219,
  27921. sdotaccent: 0x1E61,
  27922. sdotbelow: 0x1E63,
  27923. sdotbelowdotaccent: 0x1E69,
  27924. seagullbelowcmb: 0x033C,
  27925. second: 0x2033,
  27926. secondtonechinese: 0x02CA,
  27927. section: 0x00A7,
  27928. seenarabic: 0x0633,
  27929. seenfinalarabic: 0xFEB2,
  27930. seeninitialarabic: 0xFEB3,
  27931. seenmedialarabic: 0xFEB4,
  27932. segol: 0x05B6,
  27933. segol13: 0x05B6,
  27934. segol1f: 0x05B6,
  27935. segol2c: 0x05B6,
  27936. segolhebrew: 0x05B6,
  27937. segolnarrowhebrew: 0x05B6,
  27938. segolquarterhebrew: 0x05B6,
  27939. segoltahebrew: 0x0592,
  27940. segolwidehebrew: 0x05B6,
  27941. seharmenian: 0x057D,
  27942. sehiragana: 0x305B,
  27943. sekatakana: 0x30BB,
  27944. sekatakanahalfwidth: 0xFF7E,
  27945. semicolon: 0x003B,
  27946. semicolonarabic: 0x061B,
  27947. semicolonmonospace: 0xFF1B,
  27948. semicolonsmall: 0xFE54,
  27949. semivoicedmarkkana: 0x309C,
  27950. semivoicedmarkkanahalfwidth: 0xFF9F,
  27951. sentisquare: 0x3322,
  27952. sentosquare: 0x3323,
  27953. seven: 0x0037,
  27954. sevenarabic: 0x0667,
  27955. sevenbengali: 0x09ED,
  27956. sevencircle: 0x2466,
  27957. sevencircleinversesansserif: 0x2790,
  27958. sevendeva: 0x096D,
  27959. seveneighths: 0x215E,
  27960. sevengujarati: 0x0AED,
  27961. sevengurmukhi: 0x0A6D,
  27962. sevenhackarabic: 0x0667,
  27963. sevenhangzhou: 0x3027,
  27964. sevenideographicparen: 0x3226,
  27965. seveninferior: 0x2087,
  27966. sevenmonospace: 0xFF17,
  27967. sevenoldstyle: 0xF737,
  27968. sevenparen: 0x247A,
  27969. sevenperiod: 0x248E,
  27970. sevenpersian: 0x06F7,
  27971. sevenroman: 0x2176,
  27972. sevensuperior: 0x2077,
  27973. seventeencircle: 0x2470,
  27974. seventeenparen: 0x2484,
  27975. seventeenperiod: 0x2498,
  27976. seventhai: 0x0E57,
  27977. sfthyphen: 0x00AD,
  27978. shaarmenian: 0x0577,
  27979. shabengali: 0x09B6,
  27980. shacyrillic: 0x0448,
  27981. shaddaarabic: 0x0651,
  27982. shaddadammaarabic: 0xFC61,
  27983. shaddadammatanarabic: 0xFC5E,
  27984. shaddafathaarabic: 0xFC60,
  27985. shaddakasraarabic: 0xFC62,
  27986. shaddakasratanarabic: 0xFC5F,
  27987. shade: 0x2592,
  27988. shadedark: 0x2593,
  27989. shadelight: 0x2591,
  27990. shademedium: 0x2592,
  27991. shadeva: 0x0936,
  27992. shagujarati: 0x0AB6,
  27993. shagurmukhi: 0x0A36,
  27994. shalshelethebrew: 0x0593,
  27995. shbopomofo: 0x3115,
  27996. shchacyrillic: 0x0449,
  27997. sheenarabic: 0x0634,
  27998. sheenfinalarabic: 0xFEB6,
  27999. sheeninitialarabic: 0xFEB7,
  28000. sheenmedialarabic: 0xFEB8,
  28001. sheicoptic: 0x03E3,
  28002. sheqel: 0x20AA,
  28003. sheqelhebrew: 0x20AA,
  28004. sheva: 0x05B0,
  28005. sheva115: 0x05B0,
  28006. sheva15: 0x05B0,
  28007. sheva22: 0x05B0,
  28008. sheva2e: 0x05B0,
  28009. shevahebrew: 0x05B0,
  28010. shevanarrowhebrew: 0x05B0,
  28011. shevaquarterhebrew: 0x05B0,
  28012. shevawidehebrew: 0x05B0,
  28013. shhacyrillic: 0x04BB,
  28014. shimacoptic: 0x03ED,
  28015. shin: 0x05E9,
  28016. shindagesh: 0xFB49,
  28017. shindageshhebrew: 0xFB49,
  28018. shindageshshindot: 0xFB2C,
  28019. shindageshshindothebrew: 0xFB2C,
  28020. shindageshsindot: 0xFB2D,
  28021. shindageshsindothebrew: 0xFB2D,
  28022. shindothebrew: 0x05C1,
  28023. shinhebrew: 0x05E9,
  28024. shinshindot: 0xFB2A,
  28025. shinshindothebrew: 0xFB2A,
  28026. shinsindot: 0xFB2B,
  28027. shinsindothebrew: 0xFB2B,
  28028. shook: 0x0282,
  28029. sigma: 0x03C3,
  28030. sigma1: 0x03C2,
  28031. sigmafinal: 0x03C2,
  28032. sigmalunatesymbolgreek: 0x03F2,
  28033. sihiragana: 0x3057,
  28034. sikatakana: 0x30B7,
  28035. sikatakanahalfwidth: 0xFF7C,
  28036. siluqhebrew: 0x05BD,
  28037. siluqlefthebrew: 0x05BD,
  28038. similar: 0x223C,
  28039. sindothebrew: 0x05C2,
  28040. siosacirclekorean: 0x3274,
  28041. siosaparenkorean: 0x3214,
  28042. sioscieuckorean: 0x317E,
  28043. sioscirclekorean: 0x3266,
  28044. sioskiyeokkorean: 0x317A,
  28045. sioskorean: 0x3145,
  28046. siosnieunkorean: 0x317B,
  28047. siosparenkorean: 0x3206,
  28048. siospieupkorean: 0x317D,
  28049. siostikeutkorean: 0x317C,
  28050. six: 0x0036,
  28051. sixarabic: 0x0666,
  28052. sixbengali: 0x09EC,
  28053. sixcircle: 0x2465,
  28054. sixcircleinversesansserif: 0x278F,
  28055. sixdeva: 0x096C,
  28056. sixgujarati: 0x0AEC,
  28057. sixgurmukhi: 0x0A6C,
  28058. sixhackarabic: 0x0666,
  28059. sixhangzhou: 0x3026,
  28060. sixideographicparen: 0x3225,
  28061. sixinferior: 0x2086,
  28062. sixmonospace: 0xFF16,
  28063. sixoldstyle: 0xF736,
  28064. sixparen: 0x2479,
  28065. sixperiod: 0x248D,
  28066. sixpersian: 0x06F6,
  28067. sixroman: 0x2175,
  28068. sixsuperior: 0x2076,
  28069. sixteencircle: 0x246F,
  28070. sixteencurrencydenominatorbengali: 0x09F9,
  28071. sixteenparen: 0x2483,
  28072. sixteenperiod: 0x2497,
  28073. sixthai: 0x0E56,
  28074. slash: 0x002F,
  28075. slashmonospace: 0xFF0F,
  28076. slong: 0x017F,
  28077. slongdotaccent: 0x1E9B,
  28078. smileface: 0x263A,
  28079. smonospace: 0xFF53,
  28080. sofpasuqhebrew: 0x05C3,
  28081. softhyphen: 0x00AD,
  28082. softsigncyrillic: 0x044C,
  28083. sohiragana: 0x305D,
  28084. sokatakana: 0x30BD,
  28085. sokatakanahalfwidth: 0xFF7F,
  28086. soliduslongoverlaycmb: 0x0338,
  28087. solidusshortoverlaycmb: 0x0337,
  28088. sorusithai: 0x0E29,
  28089. sosalathai: 0x0E28,
  28090. sosothai: 0x0E0B,
  28091. sosuathai: 0x0E2A,
  28092. space: 0x0020,
  28093. spacehackarabic: 0x0020,
  28094. spade: 0x2660,
  28095. spadesuitblack: 0x2660,
  28096. spadesuitwhite: 0x2664,
  28097. sparen: 0x24AE,
  28098. squarebelowcmb: 0x033B,
  28099. squarecc: 0x33C4,
  28100. squarecm: 0x339D,
  28101. squarediagonalcrosshatchfill: 0x25A9,
  28102. squarehorizontalfill: 0x25A4,
  28103. squarekg: 0x338F,
  28104. squarekm: 0x339E,
  28105. squarekmcapital: 0x33CE,
  28106. squareln: 0x33D1,
  28107. squarelog: 0x33D2,
  28108. squaremg: 0x338E,
  28109. squaremil: 0x33D5,
  28110. squaremm: 0x339C,
  28111. squaremsquared: 0x33A1,
  28112. squareorthogonalcrosshatchfill: 0x25A6,
  28113. squareupperlefttolowerrightfill: 0x25A7,
  28114. squareupperrighttolowerleftfill: 0x25A8,
  28115. squareverticalfill: 0x25A5,
  28116. squarewhitewithsmallblack: 0x25A3,
  28117. srsquare: 0x33DB,
  28118. ssabengali: 0x09B7,
  28119. ssadeva: 0x0937,
  28120. ssagujarati: 0x0AB7,
  28121. ssangcieuckorean: 0x3149,
  28122. ssanghieuhkorean: 0x3185,
  28123. ssangieungkorean: 0x3180,
  28124. ssangkiyeokkorean: 0x3132,
  28125. ssangnieunkorean: 0x3165,
  28126. ssangpieupkorean: 0x3143,
  28127. ssangsioskorean: 0x3146,
  28128. ssangtikeutkorean: 0x3138,
  28129. ssuperior: 0xF6F2,
  28130. sterling: 0x00A3,
  28131. sterlingmonospace: 0xFFE1,
  28132. strokelongoverlaycmb: 0x0336,
  28133. strokeshortoverlaycmb: 0x0335,
  28134. subset: 0x2282,
  28135. subsetnotequal: 0x228A,
  28136. subsetorequal: 0x2286,
  28137. succeeds: 0x227B,
  28138. suchthat: 0x220B,
  28139. suhiragana: 0x3059,
  28140. sukatakana: 0x30B9,
  28141. sukatakanahalfwidth: 0xFF7D,
  28142. sukunarabic: 0x0652,
  28143. summation: 0x2211,
  28144. sun: 0x263C,
  28145. superset: 0x2283,
  28146. supersetnotequal: 0x228B,
  28147. supersetorequal: 0x2287,
  28148. svsquare: 0x33DC,
  28149. syouwaerasquare: 0x337C,
  28150. t: 0x0074,
  28151. tabengali: 0x09A4,
  28152. tackdown: 0x22A4,
  28153. tackleft: 0x22A3,
  28154. tadeva: 0x0924,
  28155. tagujarati: 0x0AA4,
  28156. tagurmukhi: 0x0A24,
  28157. taharabic: 0x0637,
  28158. tahfinalarabic: 0xFEC2,
  28159. tahinitialarabic: 0xFEC3,
  28160. tahiragana: 0x305F,
  28161. tahmedialarabic: 0xFEC4,
  28162. taisyouerasquare: 0x337D,
  28163. takatakana: 0x30BF,
  28164. takatakanahalfwidth: 0xFF80,
  28165. tatweelarabic: 0x0640,
  28166. tau: 0x03C4,
  28167. tav: 0x05EA,
  28168. tavdages: 0xFB4A,
  28169. tavdagesh: 0xFB4A,
  28170. tavdageshhebrew: 0xFB4A,
  28171. tavhebrew: 0x05EA,
  28172. tbar: 0x0167,
  28173. tbopomofo: 0x310A,
  28174. tcaron: 0x0165,
  28175. tccurl: 0x02A8,
  28176. tcedilla: 0x0163,
  28177. tcheharabic: 0x0686,
  28178. tchehfinalarabic: 0xFB7B,
  28179. tchehinitialarabic: 0xFB7C,
  28180. tchehmedialarabic: 0xFB7D,
  28181. tcircle: 0x24E3,
  28182. tcircumflexbelow: 0x1E71,
  28183. tcommaaccent: 0x0163,
  28184. tdieresis: 0x1E97,
  28185. tdotaccent: 0x1E6B,
  28186. tdotbelow: 0x1E6D,
  28187. tecyrillic: 0x0442,
  28188. tedescendercyrillic: 0x04AD,
  28189. teharabic: 0x062A,
  28190. tehfinalarabic: 0xFE96,
  28191. tehhahinitialarabic: 0xFCA2,
  28192. tehhahisolatedarabic: 0xFC0C,
  28193. tehinitialarabic: 0xFE97,
  28194. tehiragana: 0x3066,
  28195. tehjeeminitialarabic: 0xFCA1,
  28196. tehjeemisolatedarabic: 0xFC0B,
  28197. tehmarbutaarabic: 0x0629,
  28198. tehmarbutafinalarabic: 0xFE94,
  28199. tehmedialarabic: 0xFE98,
  28200. tehmeeminitialarabic: 0xFCA4,
  28201. tehmeemisolatedarabic: 0xFC0E,
  28202. tehnoonfinalarabic: 0xFC73,
  28203. tekatakana: 0x30C6,
  28204. tekatakanahalfwidth: 0xFF83,
  28205. telephone: 0x2121,
  28206. telephoneblack: 0x260E,
  28207. telishagedolahebrew: 0x05A0,
  28208. telishaqetanahebrew: 0x05A9,
  28209. tencircle: 0x2469,
  28210. tenideographicparen: 0x3229,
  28211. tenparen: 0x247D,
  28212. tenperiod: 0x2491,
  28213. tenroman: 0x2179,
  28214. tesh: 0x02A7,
  28215. tet: 0x05D8,
  28216. tetdagesh: 0xFB38,
  28217. tetdageshhebrew: 0xFB38,
  28218. tethebrew: 0x05D8,
  28219. tetsecyrillic: 0x04B5,
  28220. tevirhebrew: 0x059B,
  28221. tevirlefthebrew: 0x059B,
  28222. thabengali: 0x09A5,
  28223. thadeva: 0x0925,
  28224. thagujarati: 0x0AA5,
  28225. thagurmukhi: 0x0A25,
  28226. thalarabic: 0x0630,
  28227. thalfinalarabic: 0xFEAC,
  28228. thanthakhatlowleftthai: 0xF898,
  28229. thanthakhatlowrightthai: 0xF897,
  28230. thanthakhatthai: 0x0E4C,
  28231. thanthakhatupperleftthai: 0xF896,
  28232. theharabic: 0x062B,
  28233. thehfinalarabic: 0xFE9A,
  28234. thehinitialarabic: 0xFE9B,
  28235. thehmedialarabic: 0xFE9C,
  28236. thereexists: 0x2203,
  28237. therefore: 0x2234,
  28238. theta: 0x03B8,
  28239. theta1: 0x03D1,
  28240. thetasymbolgreek: 0x03D1,
  28241. thieuthacirclekorean: 0x3279,
  28242. thieuthaparenkorean: 0x3219,
  28243. thieuthcirclekorean: 0x326B,
  28244. thieuthkorean: 0x314C,
  28245. thieuthparenkorean: 0x320B,
  28246. thirteencircle: 0x246C,
  28247. thirteenparen: 0x2480,
  28248. thirteenperiod: 0x2494,
  28249. thonangmonthothai: 0x0E11,
  28250. thook: 0x01AD,
  28251. thophuthaothai: 0x0E12,
  28252. thorn: 0x00FE,
  28253. thothahanthai: 0x0E17,
  28254. thothanthai: 0x0E10,
  28255. thothongthai: 0x0E18,
  28256. thothungthai: 0x0E16,
  28257. thousandcyrillic: 0x0482,
  28258. thousandsseparatorarabic: 0x066C,
  28259. thousandsseparatorpersian: 0x066C,
  28260. three: 0x0033,
  28261. threearabic: 0x0663,
  28262. threebengali: 0x09E9,
  28263. threecircle: 0x2462,
  28264. threecircleinversesansserif: 0x278C,
  28265. threedeva: 0x0969,
  28266. threeeighths: 0x215C,
  28267. threegujarati: 0x0AE9,
  28268. threegurmukhi: 0x0A69,
  28269. threehackarabic: 0x0663,
  28270. threehangzhou: 0x3023,
  28271. threeideographicparen: 0x3222,
  28272. threeinferior: 0x2083,
  28273. threemonospace: 0xFF13,
  28274. threenumeratorbengali: 0x09F6,
  28275. threeoldstyle: 0xF733,
  28276. threeparen: 0x2476,
  28277. threeperiod: 0x248A,
  28278. threepersian: 0x06F3,
  28279. threequarters: 0x00BE,
  28280. threequartersemdash: 0xF6DE,
  28281. threeroman: 0x2172,
  28282. threesuperior: 0x00B3,
  28283. threethai: 0x0E53,
  28284. thzsquare: 0x3394,
  28285. tihiragana: 0x3061,
  28286. tikatakana: 0x30C1,
  28287. tikatakanahalfwidth: 0xFF81,
  28288. tikeutacirclekorean: 0x3270,
  28289. tikeutaparenkorean: 0x3210,
  28290. tikeutcirclekorean: 0x3262,
  28291. tikeutkorean: 0x3137,
  28292. tikeutparenkorean: 0x3202,
  28293. tilde: 0x02DC,
  28294. tildebelowcmb: 0x0330,
  28295. tildecmb: 0x0303,
  28296. tildecomb: 0x0303,
  28297. tildedoublecmb: 0x0360,
  28298. tildeoperator: 0x223C,
  28299. tildeoverlaycmb: 0x0334,
  28300. tildeverticalcmb: 0x033E,
  28301. timescircle: 0x2297,
  28302. tipehahebrew: 0x0596,
  28303. tipehalefthebrew: 0x0596,
  28304. tippigurmukhi: 0x0A70,
  28305. titlocyrilliccmb: 0x0483,
  28306. tiwnarmenian: 0x057F,
  28307. tlinebelow: 0x1E6F,
  28308. tmonospace: 0xFF54,
  28309. toarmenian: 0x0569,
  28310. tohiragana: 0x3068,
  28311. tokatakana: 0x30C8,
  28312. tokatakanahalfwidth: 0xFF84,
  28313. tonebarextrahighmod: 0x02E5,
  28314. tonebarextralowmod: 0x02E9,
  28315. tonebarhighmod: 0x02E6,
  28316. tonebarlowmod: 0x02E8,
  28317. tonebarmidmod: 0x02E7,
  28318. tonefive: 0x01BD,
  28319. tonesix: 0x0185,
  28320. tonetwo: 0x01A8,
  28321. tonos: 0x0384,
  28322. tonsquare: 0x3327,
  28323. topatakthai: 0x0E0F,
  28324. tortoiseshellbracketleft: 0x3014,
  28325. tortoiseshellbracketleftsmall: 0xFE5D,
  28326. tortoiseshellbracketleftvertical: 0xFE39,
  28327. tortoiseshellbracketright: 0x3015,
  28328. tortoiseshellbracketrightsmall: 0xFE5E,
  28329. tortoiseshellbracketrightvertical: 0xFE3A,
  28330. totaothai: 0x0E15,
  28331. tpalatalhook: 0x01AB,
  28332. tparen: 0x24AF,
  28333. trademark: 0x2122,
  28334. trademarksans: 0xF8EA,
  28335. trademarkserif: 0xF6DB,
  28336. tretroflexhook: 0x0288,
  28337. triagdn: 0x25BC,
  28338. triaglf: 0x25C4,
  28339. triagrt: 0x25BA,
  28340. triagup: 0x25B2,
  28341. ts: 0x02A6,
  28342. tsadi: 0x05E6,
  28343. tsadidagesh: 0xFB46,
  28344. tsadidageshhebrew: 0xFB46,
  28345. tsadihebrew: 0x05E6,
  28346. tsecyrillic: 0x0446,
  28347. tsere: 0x05B5,
  28348. tsere12: 0x05B5,
  28349. tsere1e: 0x05B5,
  28350. tsere2b: 0x05B5,
  28351. tserehebrew: 0x05B5,
  28352. tserenarrowhebrew: 0x05B5,
  28353. tserequarterhebrew: 0x05B5,
  28354. tserewidehebrew: 0x05B5,
  28355. tshecyrillic: 0x045B,
  28356. tsuperior: 0xF6F3,
  28357. ttabengali: 0x099F,
  28358. ttadeva: 0x091F,
  28359. ttagujarati: 0x0A9F,
  28360. ttagurmukhi: 0x0A1F,
  28361. tteharabic: 0x0679,
  28362. ttehfinalarabic: 0xFB67,
  28363. ttehinitialarabic: 0xFB68,
  28364. ttehmedialarabic: 0xFB69,
  28365. tthabengali: 0x09A0,
  28366. tthadeva: 0x0920,
  28367. tthagujarati: 0x0AA0,
  28368. tthagurmukhi: 0x0A20,
  28369. tturned: 0x0287,
  28370. tuhiragana: 0x3064,
  28371. tukatakana: 0x30C4,
  28372. tukatakanahalfwidth: 0xFF82,
  28373. tusmallhiragana: 0x3063,
  28374. tusmallkatakana: 0x30C3,
  28375. tusmallkatakanahalfwidth: 0xFF6F,
  28376. twelvecircle: 0x246B,
  28377. twelveparen: 0x247F,
  28378. twelveperiod: 0x2493,
  28379. twelveroman: 0x217B,
  28380. twentycircle: 0x2473,
  28381. twentyhangzhou: 0x5344,
  28382. twentyparen: 0x2487,
  28383. twentyperiod: 0x249B,
  28384. two: 0x0032,
  28385. twoarabic: 0x0662,
  28386. twobengali: 0x09E8,
  28387. twocircle: 0x2461,
  28388. twocircleinversesansserif: 0x278B,
  28389. twodeva: 0x0968,
  28390. twodotenleader: 0x2025,
  28391. twodotleader: 0x2025,
  28392. twodotleadervertical: 0xFE30,
  28393. twogujarati: 0x0AE8,
  28394. twogurmukhi: 0x0A68,
  28395. twohackarabic: 0x0662,
  28396. twohangzhou: 0x3022,
  28397. twoideographicparen: 0x3221,
  28398. twoinferior: 0x2082,
  28399. twomonospace: 0xFF12,
  28400. twonumeratorbengali: 0x09F5,
  28401. twooldstyle: 0xF732,
  28402. twoparen: 0x2475,
  28403. twoperiod: 0x2489,
  28404. twopersian: 0x06F2,
  28405. tworoman: 0x2171,
  28406. twostroke: 0x01BB,
  28407. twosuperior: 0x00B2,
  28408. twothai: 0x0E52,
  28409. twothirds: 0x2154,
  28410. u: 0x0075,
  28411. uacute: 0x00FA,
  28412. ubar: 0x0289,
  28413. ubengali: 0x0989,
  28414. ubopomofo: 0x3128,
  28415. ubreve: 0x016D,
  28416. ucaron: 0x01D4,
  28417. ucircle: 0x24E4,
  28418. ucircumflex: 0x00FB,
  28419. ucircumflexbelow: 0x1E77,
  28420. ucyrillic: 0x0443,
  28421. udattadeva: 0x0951,
  28422. udblacute: 0x0171,
  28423. udblgrave: 0x0215,
  28424. udeva: 0x0909,
  28425. udieresis: 0x00FC,
  28426. udieresisacute: 0x01D8,
  28427. udieresisbelow: 0x1E73,
  28428. udieresiscaron: 0x01DA,
  28429. udieresiscyrillic: 0x04F1,
  28430. udieresisgrave: 0x01DC,
  28431. udieresismacron: 0x01D6,
  28432. udotbelow: 0x1EE5,
  28433. ugrave: 0x00F9,
  28434. ugujarati: 0x0A89,
  28435. ugurmukhi: 0x0A09,
  28436. uhiragana: 0x3046,
  28437. uhookabove: 0x1EE7,
  28438. uhorn: 0x01B0,
  28439. uhornacute: 0x1EE9,
  28440. uhorndotbelow: 0x1EF1,
  28441. uhorngrave: 0x1EEB,
  28442. uhornhookabove: 0x1EED,
  28443. uhorntilde: 0x1EEF,
  28444. uhungarumlaut: 0x0171,
  28445. uhungarumlautcyrillic: 0x04F3,
  28446. uinvertedbreve: 0x0217,
  28447. ukatakana: 0x30A6,
  28448. ukatakanahalfwidth: 0xFF73,
  28449. ukcyrillic: 0x0479,
  28450. ukorean: 0x315C,
  28451. umacron: 0x016B,
  28452. umacroncyrillic: 0x04EF,
  28453. umacrondieresis: 0x1E7B,
  28454. umatragurmukhi: 0x0A41,
  28455. umonospace: 0xFF55,
  28456. underscore: 0x005F,
  28457. underscoredbl: 0x2017,
  28458. underscoremonospace: 0xFF3F,
  28459. underscorevertical: 0xFE33,
  28460. underscorewavy: 0xFE4F,
  28461. union: 0x222A,
  28462. universal: 0x2200,
  28463. uogonek: 0x0173,
  28464. uparen: 0x24B0,
  28465. upblock: 0x2580,
  28466. upperdothebrew: 0x05C4,
  28467. upsilon: 0x03C5,
  28468. upsilondieresis: 0x03CB,
  28469. upsilondieresistonos: 0x03B0,
  28470. upsilonlatin: 0x028A,
  28471. upsilontonos: 0x03CD,
  28472. uptackbelowcmb: 0x031D,
  28473. uptackmod: 0x02D4,
  28474. uragurmukhi: 0x0A73,
  28475. uring: 0x016F,
  28476. ushortcyrillic: 0x045E,
  28477. usmallhiragana: 0x3045,
  28478. usmallkatakana: 0x30A5,
  28479. usmallkatakanahalfwidth: 0xFF69,
  28480. ustraightcyrillic: 0x04AF,
  28481. ustraightstrokecyrillic: 0x04B1,
  28482. utilde: 0x0169,
  28483. utildeacute: 0x1E79,
  28484. utildebelow: 0x1E75,
  28485. uubengali: 0x098A,
  28486. uudeva: 0x090A,
  28487. uugujarati: 0x0A8A,
  28488. uugurmukhi: 0x0A0A,
  28489. uumatragurmukhi: 0x0A42,
  28490. uuvowelsignbengali: 0x09C2,
  28491. uuvowelsigndeva: 0x0942,
  28492. uuvowelsigngujarati: 0x0AC2,
  28493. uvowelsignbengali: 0x09C1,
  28494. uvowelsigndeva: 0x0941,
  28495. uvowelsigngujarati: 0x0AC1,
  28496. v: 0x0076,
  28497. vadeva: 0x0935,
  28498. vagujarati: 0x0AB5,
  28499. vagurmukhi: 0x0A35,
  28500. vakatakana: 0x30F7,
  28501. vav: 0x05D5,
  28502. vavdagesh: 0xFB35,
  28503. vavdagesh65: 0xFB35,
  28504. vavdageshhebrew: 0xFB35,
  28505. vavhebrew: 0x05D5,
  28506. vavholam: 0xFB4B,
  28507. vavholamhebrew: 0xFB4B,
  28508. vavvavhebrew: 0x05F0,
  28509. vavyodhebrew: 0x05F1,
  28510. vcircle: 0x24E5,
  28511. vdotbelow: 0x1E7F,
  28512. vecyrillic: 0x0432,
  28513. veharabic: 0x06A4,
  28514. vehfinalarabic: 0xFB6B,
  28515. vehinitialarabic: 0xFB6C,
  28516. vehmedialarabic: 0xFB6D,
  28517. vekatakana: 0x30F9,
  28518. venus: 0x2640,
  28519. verticalbar: 0x007C,
  28520. verticallineabovecmb: 0x030D,
  28521. verticallinebelowcmb: 0x0329,
  28522. verticallinelowmod: 0x02CC,
  28523. verticallinemod: 0x02C8,
  28524. vewarmenian: 0x057E,
  28525. vhook: 0x028B,
  28526. vikatakana: 0x30F8,
  28527. viramabengali: 0x09CD,
  28528. viramadeva: 0x094D,
  28529. viramagujarati: 0x0ACD,
  28530. visargabengali: 0x0983,
  28531. visargadeva: 0x0903,
  28532. visargagujarati: 0x0A83,
  28533. vmonospace: 0xFF56,
  28534. voarmenian: 0x0578,
  28535. voicediterationhiragana: 0x309E,
  28536. voicediterationkatakana: 0x30FE,
  28537. voicedmarkkana: 0x309B,
  28538. voicedmarkkanahalfwidth: 0xFF9E,
  28539. vokatakana: 0x30FA,
  28540. vparen: 0x24B1,
  28541. vtilde: 0x1E7D,
  28542. vturned: 0x028C,
  28543. vuhiragana: 0x3094,
  28544. vukatakana: 0x30F4,
  28545. w: 0x0077,
  28546. wacute: 0x1E83,
  28547. waekorean: 0x3159,
  28548. wahiragana: 0x308F,
  28549. wakatakana: 0x30EF,
  28550. wakatakanahalfwidth: 0xFF9C,
  28551. wakorean: 0x3158,
  28552. wasmallhiragana: 0x308E,
  28553. wasmallkatakana: 0x30EE,
  28554. wattosquare: 0x3357,
  28555. wavedash: 0x301C,
  28556. wavyunderscorevertical: 0xFE34,
  28557. wawarabic: 0x0648,
  28558. wawfinalarabic: 0xFEEE,
  28559. wawhamzaabovearabic: 0x0624,
  28560. wawhamzaabovefinalarabic: 0xFE86,
  28561. wbsquare: 0x33DD,
  28562. wcircle: 0x24E6,
  28563. wcircumflex: 0x0175,
  28564. wdieresis: 0x1E85,
  28565. wdotaccent: 0x1E87,
  28566. wdotbelow: 0x1E89,
  28567. wehiragana: 0x3091,
  28568. weierstrass: 0x2118,
  28569. wekatakana: 0x30F1,
  28570. wekorean: 0x315E,
  28571. weokorean: 0x315D,
  28572. wgrave: 0x1E81,
  28573. whitebullet: 0x25E6,
  28574. whitecircle: 0x25CB,
  28575. whitecircleinverse: 0x25D9,
  28576. whitecornerbracketleft: 0x300E,
  28577. whitecornerbracketleftvertical: 0xFE43,
  28578. whitecornerbracketright: 0x300F,
  28579. whitecornerbracketrightvertical: 0xFE44,
  28580. whitediamond: 0x25C7,
  28581. whitediamondcontainingblacksmalldiamond: 0x25C8,
  28582. whitedownpointingsmalltriangle: 0x25BF,
  28583. whitedownpointingtriangle: 0x25BD,
  28584. whiteleftpointingsmalltriangle: 0x25C3,
  28585. whiteleftpointingtriangle: 0x25C1,
  28586. whitelenticularbracketleft: 0x3016,
  28587. whitelenticularbracketright: 0x3017,
  28588. whiterightpointingsmalltriangle: 0x25B9,
  28589. whiterightpointingtriangle: 0x25B7,
  28590. whitesmallsquare: 0x25AB,
  28591. whitesmilingface: 0x263A,
  28592. whitesquare: 0x25A1,
  28593. whitestar: 0x2606,
  28594. whitetelephone: 0x260F,
  28595. whitetortoiseshellbracketleft: 0x3018,
  28596. whitetortoiseshellbracketright: 0x3019,
  28597. whiteuppointingsmalltriangle: 0x25B5,
  28598. whiteuppointingtriangle: 0x25B3,
  28599. wihiragana: 0x3090,
  28600. wikatakana: 0x30F0,
  28601. wikorean: 0x315F,
  28602. wmonospace: 0xFF57,
  28603. wohiragana: 0x3092,
  28604. wokatakana: 0x30F2,
  28605. wokatakanahalfwidth: 0xFF66,
  28606. won: 0x20A9,
  28607. wonmonospace: 0xFFE6,
  28608. wowaenthai: 0x0E27,
  28609. wparen: 0x24B2,
  28610. wring: 0x1E98,
  28611. wsuperior: 0x02B7,
  28612. wturned: 0x028D,
  28613. wynn: 0x01BF,
  28614. x: 0x0078,
  28615. xabovecmb: 0x033D,
  28616. xbopomofo: 0x3112,
  28617. xcircle: 0x24E7,
  28618. xdieresis: 0x1E8D,
  28619. xdotaccent: 0x1E8B,
  28620. xeharmenian: 0x056D,
  28621. xi: 0x03BE,
  28622. xmonospace: 0xFF58,
  28623. xparen: 0x24B3,
  28624. xsuperior: 0x02E3,
  28625. y: 0x0079,
  28626. yaadosquare: 0x334E,
  28627. yabengali: 0x09AF,
  28628. yacute: 0x00FD,
  28629. yadeva: 0x092F,
  28630. yaekorean: 0x3152,
  28631. yagujarati: 0x0AAF,
  28632. yagurmukhi: 0x0A2F,
  28633. yahiragana: 0x3084,
  28634. yakatakana: 0x30E4,
  28635. yakatakanahalfwidth: 0xFF94,
  28636. yakorean: 0x3151,
  28637. yamakkanthai: 0x0E4E,
  28638. yasmallhiragana: 0x3083,
  28639. yasmallkatakana: 0x30E3,
  28640. yasmallkatakanahalfwidth: 0xFF6C,
  28641. yatcyrillic: 0x0463,
  28642. ycircle: 0x24E8,
  28643. ycircumflex: 0x0177,
  28644. ydieresis: 0x00FF,
  28645. ydotaccent: 0x1E8F,
  28646. ydotbelow: 0x1EF5,
  28647. yeharabic: 0x064A,
  28648. yehbarreearabic: 0x06D2,
  28649. yehbarreefinalarabic: 0xFBAF,
  28650. yehfinalarabic: 0xFEF2,
  28651. yehhamzaabovearabic: 0x0626,
  28652. yehhamzaabovefinalarabic: 0xFE8A,
  28653. yehhamzaaboveinitialarabic: 0xFE8B,
  28654. yehhamzaabovemedialarabic: 0xFE8C,
  28655. yehinitialarabic: 0xFEF3,
  28656. yehmedialarabic: 0xFEF4,
  28657. yehmeeminitialarabic: 0xFCDD,
  28658. yehmeemisolatedarabic: 0xFC58,
  28659. yehnoonfinalarabic: 0xFC94,
  28660. yehthreedotsbelowarabic: 0x06D1,
  28661. yekorean: 0x3156,
  28662. yen: 0x00A5,
  28663. yenmonospace: 0xFFE5,
  28664. yeokorean: 0x3155,
  28665. yeorinhieuhkorean: 0x3186,
  28666. yerahbenyomohebrew: 0x05AA,
  28667. yerahbenyomolefthebrew: 0x05AA,
  28668. yericyrillic: 0x044B,
  28669. yerudieresiscyrillic: 0x04F9,
  28670. yesieungkorean: 0x3181,
  28671. yesieungpansioskorean: 0x3183,
  28672. yesieungsioskorean: 0x3182,
  28673. yetivhebrew: 0x059A,
  28674. ygrave: 0x1EF3,
  28675. yhook: 0x01B4,
  28676. yhookabove: 0x1EF7,
  28677. yiarmenian: 0x0575,
  28678. yicyrillic: 0x0457,
  28679. yikorean: 0x3162,
  28680. yinyang: 0x262F,
  28681. yiwnarmenian: 0x0582,
  28682. ymonospace: 0xFF59,
  28683. yod: 0x05D9,
  28684. yoddagesh: 0xFB39,
  28685. yoddageshhebrew: 0xFB39,
  28686. yodhebrew: 0x05D9,
  28687. yodyodhebrew: 0x05F2,
  28688. yodyodpatahhebrew: 0xFB1F,
  28689. yohiragana: 0x3088,
  28690. yoikorean: 0x3189,
  28691. yokatakana: 0x30E8,
  28692. yokatakanahalfwidth: 0xFF96,
  28693. yokorean: 0x315B,
  28694. yosmallhiragana: 0x3087,
  28695. yosmallkatakana: 0x30E7,
  28696. yosmallkatakanahalfwidth: 0xFF6E,
  28697. yotgreek: 0x03F3,
  28698. yoyaekorean: 0x3188,
  28699. yoyakorean: 0x3187,
  28700. yoyakthai: 0x0E22,
  28701. yoyingthai: 0x0E0D,
  28702. yparen: 0x24B4,
  28703. ypogegrammeni: 0x037A,
  28704. ypogegrammenigreekcmb: 0x0345,
  28705. yr: 0x01A6,
  28706. yring: 0x1E99,
  28707. ysuperior: 0x02B8,
  28708. ytilde: 0x1EF9,
  28709. yturned: 0x028E,
  28710. yuhiragana: 0x3086,
  28711. yuikorean: 0x318C,
  28712. yukatakana: 0x30E6,
  28713. yukatakanahalfwidth: 0xFF95,
  28714. yukorean: 0x3160,
  28715. yusbigcyrillic: 0x046B,
  28716. yusbigiotifiedcyrillic: 0x046D,
  28717. yuslittlecyrillic: 0x0467,
  28718. yuslittleiotifiedcyrillic: 0x0469,
  28719. yusmallhiragana: 0x3085,
  28720. yusmallkatakana: 0x30E5,
  28721. yusmallkatakanahalfwidth: 0xFF6D,
  28722. yuyekorean: 0x318B,
  28723. yuyeokorean: 0x318A,
  28724. yyabengali: 0x09DF,
  28725. yyadeva: 0x095F,
  28726. z: 0x007A,
  28727. zaarmenian: 0x0566,
  28728. zacute: 0x017A,
  28729. zadeva: 0x095B,
  28730. zagurmukhi: 0x0A5B,
  28731. zaharabic: 0x0638,
  28732. zahfinalarabic: 0xFEC6,
  28733. zahinitialarabic: 0xFEC7,
  28734. zahiragana: 0x3056,
  28735. zahmedialarabic: 0xFEC8,
  28736. zainarabic: 0x0632,
  28737. zainfinalarabic: 0xFEB0,
  28738. zakatakana: 0x30B6,
  28739. zaqefgadolhebrew: 0x0595,
  28740. zaqefqatanhebrew: 0x0594,
  28741. zarqahebrew: 0x0598,
  28742. zayin: 0x05D6,
  28743. zayindagesh: 0xFB36,
  28744. zayindageshhebrew: 0xFB36,
  28745. zayinhebrew: 0x05D6,
  28746. zbopomofo: 0x3117,
  28747. zcaron: 0x017E,
  28748. zcircle: 0x24E9,
  28749. zcircumflex: 0x1E91,
  28750. zcurl: 0x0291,
  28751. zdot: 0x017C,
  28752. zdotaccent: 0x017C,
  28753. zdotbelow: 0x1E93,
  28754. zecyrillic: 0x0437,
  28755. zedescendercyrillic: 0x0499,
  28756. zedieresiscyrillic: 0x04DF,
  28757. zehiragana: 0x305C,
  28758. zekatakana: 0x30BC,
  28759. zero: 0x0030,
  28760. zeroarabic: 0x0660,
  28761. zerobengali: 0x09E6,
  28762. zerodeva: 0x0966,
  28763. zerogujarati: 0x0AE6,
  28764. zerogurmukhi: 0x0A66,
  28765. zerohackarabic: 0x0660,
  28766. zeroinferior: 0x2080,
  28767. zeromonospace: 0xFF10,
  28768. zerooldstyle: 0xF730,
  28769. zeropersian: 0x06F0,
  28770. zerosuperior: 0x2070,
  28771. zerothai: 0x0E50,
  28772. zerowidthjoiner: 0xFEFF,
  28773. zerowidthnonjoiner: 0x200C,
  28774. zerowidthspace: 0x200B,
  28775. zeta: 0x03B6,
  28776. zhbopomofo: 0x3113,
  28777. zhearmenian: 0x056A,
  28778. zhebrevecyrillic: 0x04C2,
  28779. zhecyrillic: 0x0436,
  28780. zhedescendercyrillic: 0x0497,
  28781. zhedieresiscyrillic: 0x04DD,
  28782. zihiragana: 0x3058,
  28783. zikatakana: 0x30B8,
  28784. zinorhebrew: 0x05AE,
  28785. zlinebelow: 0x1E95,
  28786. zmonospace: 0xFF5A,
  28787. zohiragana: 0x305E,
  28788. zokatakana: 0x30BE,
  28789. zparen: 0x24B5,
  28790. zretroflexhook: 0x0290,
  28791. zstroke: 0x01B6,
  28792. zuhiragana: 0x305A,
  28793. zukatakana: 0x30BA,
  28794. '.notdef': 0x0000
  28795. };
  28796. var PDFImage = (function PDFImageClosure() {
  28797. /**
  28798. * Decode the image in the main thread if it supported. Resovles the promise
  28799. * when the image data is ready.
  28800. */
  28801. function handleImageData(handler, xref, res, image) {
  28802. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  28803. // For natively supported jpegs send them to the main thread for decoding.
  28804. var dict = image.dict;
  28805. var colorSpace = dict.get('ColorSpace', 'CS');
  28806. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28807. var numComps = colorSpace.numComps;
  28808. var resolvePromise;
  28809. handler.send('JpegDecode', [image.getIR(), numComps], function(message) {
  28810. var data = message.data;
  28811. var stream = new Stream(data, 0, data.length, image.dict);
  28812. resolvePromise(stream);
  28813. });
  28814. return new Promise(function (resolve) {
  28815. resolvePromise = resolve;
  28816. });
  28817. } else {
  28818. return Promise.resolve(image);
  28819. }
  28820. }
  28821. /**
  28822. * Decode and clamp a value. The formula is different from the spec because we
  28823. * don't decode to float range [0,1], we decode it in the [0,max] range.
  28824. */
  28825. function decodeAndClamp(value, addend, coefficient, max) {
  28826. value = addend + value * coefficient;
  28827. // Clamp the value to the range
  28828. return (value < 0 ? 0 : (value > max ? max : value));
  28829. }
  28830. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  28831. this.image = image;
  28832. var dict = image.dict;
  28833. if (dict.has('Filter')) {
  28834. var filter = dict.get('Filter').name;
  28835. if (filter === 'JPXDecode') {
  28836. var jpxImage = new JpxImage();
  28837. jpxImage.parseImageProperties(image.stream);
  28838. image.stream.reset();
  28839. image.bitsPerComponent = jpxImage.bitsPerComponent;
  28840. image.numComps = jpxImage.componentsCount;
  28841. } else if (filter === 'JBIG2Decode') {
  28842. image.bitsPerComponent = 1;
  28843. image.numComps = 1;
  28844. }
  28845. }
  28846. // TODO cache rendered images?
  28847. this.width = dict.get('Width', 'W');
  28848. this.height = dict.get('Height', 'H');
  28849. if (this.width < 1 || this.height < 1) {
  28850. error('Invalid image width: ' + this.width + ' or height: ' +
  28851. this.height);
  28852. }
  28853. this.interpolate = dict.get('Interpolate', 'I') || false;
  28854. this.imageMask = dict.get('ImageMask', 'IM') || false;
  28855. this.matte = dict.get('Matte') || false;
  28856. var bitsPerComponent = image.bitsPerComponent;
  28857. if (!bitsPerComponent) {
  28858. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  28859. if (!bitsPerComponent) {
  28860. if (this.imageMask) {
  28861. bitsPerComponent = 1;
  28862. } else {
  28863. error('Bits per component missing in image: ' + this.imageMask);
  28864. }
  28865. }
  28866. }
  28867. this.bpc = bitsPerComponent;
  28868. if (!this.imageMask) {
  28869. var colorSpace = dict.get('ColorSpace', 'CS');
  28870. if (!colorSpace) {
  28871. info('JPX images (which do not require color spaces)');
  28872. switch (image.numComps) {
  28873. case 1:
  28874. colorSpace = Name.get('DeviceGray');
  28875. break;
  28876. case 3:
  28877. colorSpace = Name.get('DeviceRGB');
  28878. break;
  28879. case 4:
  28880. colorSpace = Name.get('DeviceCMYK');
  28881. break;
  28882. default:
  28883. error('JPX images with ' + this.numComps +
  28884. ' color components not supported.');
  28885. }
  28886. }
  28887. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28888. this.numComps = this.colorSpace.numComps;
  28889. }
  28890. this.decode = dict.get('Decode', 'D');
  28891. this.needsDecode = false;
  28892. if (this.decode &&
  28893. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  28894. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  28895. this.needsDecode = true;
  28896. // Do some preprocessing to avoid more math.
  28897. var max = (1 << bitsPerComponent) - 1;
  28898. this.decodeCoefficients = [];
  28899. this.decodeAddends = [];
  28900. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  28901. var dmin = this.decode[i];
  28902. var dmax = this.decode[i + 1];
  28903. this.decodeCoefficients[j] = dmax - dmin;
  28904. this.decodeAddends[j] = max * dmin;
  28905. }
  28906. }
  28907. if (smask) {
  28908. this.smask = new PDFImage(xref, res, smask, false);
  28909. } else if (mask) {
  28910. if (isStream(mask)) {
  28911. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  28912. } else {
  28913. // Color key mask (just an array).
  28914. this.mask = mask;
  28915. }
  28916. }
  28917. }
  28918. /**
  28919. * Handles processing of image data and returns the Promise that is resolved
  28920. * with a PDFImage when the image is ready to be used.
  28921. */
  28922. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  28923. res, image, inline) {
  28924. var imagePromise = handleImageData(handler, xref, res, image);
  28925. var smaskPromise;
  28926. var maskPromise;
  28927. var smask = image.dict.get('SMask');
  28928. var mask = image.dict.get('Mask');
  28929. if (smask) {
  28930. smaskPromise = handleImageData(handler, xref, res, smask);
  28931. maskPromise = Promise.resolve(null);
  28932. } else {
  28933. smaskPromise = Promise.resolve(null);
  28934. if (mask) {
  28935. if (isStream(mask)) {
  28936. maskPromise = handleImageData(handler, xref, res, mask);
  28937. } else if (isArray(mask)) {
  28938. maskPromise = Promise.resolve(mask);
  28939. } else {
  28940. warn('Unsupported mask format.');
  28941. maskPromise = Promise.resolve(null);
  28942. }
  28943. } else {
  28944. maskPromise = Promise.resolve(null);
  28945. }
  28946. }
  28947. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  28948. function(results) {
  28949. var imageData = results[0];
  28950. var smaskData = results[1];
  28951. var maskData = results[2];
  28952. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  28953. });
  28954. };
  28955. /**
  28956. * Resize an image using the nearest neighbor algorithm. Currently only
  28957. * supports one and three component images.
  28958. * @param {TypedArray} pixels The original image with one component.
  28959. * @param {Number} bpc Number of bits per component.
  28960. * @param {Number} components Number of color components, 1 or 3 is supported.
  28961. * @param {Number} w1 Original width.
  28962. * @param {Number} h1 Original height.
  28963. * @param {Number} w2 New width.
  28964. * @param {Number} h2 New height.
  28965. * @param {TypedArray} dest (Optional) The destination buffer.
  28966. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  28967. * @return {TypedArray} Resized image data.
  28968. */
  28969. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  28970. w1, h1, w2, h2, dest, alpha01) {
  28971. if (components !== 1 && components !== 3) {
  28972. error('Unsupported component count for resizing.');
  28973. }
  28974. var length = w2 * h2 * components;
  28975. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  28976. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  28977. var xRatio = w1 / w2;
  28978. var yRatio = h1 / h2;
  28979. var i, j, py, newIndex = 0, oldIndex;
  28980. var xScaled = new Uint16Array(w2);
  28981. var w1Scanline = w1 * components;
  28982. if (alpha01 !== 1) {
  28983. alpha01 = 0;
  28984. }
  28985. for (j = 0; j < w2; j++) {
  28986. xScaled[j] = Math.floor(j * xRatio) * components;
  28987. }
  28988. if (components === 1) {
  28989. for (i = 0; i < h2; i++) {
  28990. py = Math.floor(i * yRatio) * w1Scanline;
  28991. for (j = 0; j < w2; j++) {
  28992. oldIndex = py + xScaled[j];
  28993. temp[newIndex++] = pixels[oldIndex];
  28994. }
  28995. }
  28996. } else if (components === 3) {
  28997. for (i = 0; i < h2; i++) {
  28998. py = Math.floor(i * yRatio) * w1Scanline;
  28999. for (j = 0; j < w2; j++) {
  29000. oldIndex = py + xScaled[j];
  29001. temp[newIndex++] = pixels[oldIndex++];
  29002. temp[newIndex++] = pixels[oldIndex++];
  29003. temp[newIndex++] = pixels[oldIndex++];
  29004. newIndex += alpha01;
  29005. }
  29006. }
  29007. }
  29008. return temp;
  29009. };
  29010. PDFImage.createMask =
  29011. function PDFImage_createMask(imgArray, width, height, canTransfer,
  29012. inverseDecode) {
  29013. // If imgArray came from a DecodeStream, we're safe to transfer it.
  29014. // Otherwise, copy it.
  29015. var actualLength = imgArray.byteLength;
  29016. var data;
  29017. if (canTransfer) {
  29018. data = imgArray;
  29019. } else {
  29020. data = new Uint8Array(actualLength);
  29021. data.set(imgArray);
  29022. }
  29023. // Invert if necessary. It's safe to modify the array -- whether it's the
  29024. // original or a copy, we're about to transfer it anyway, so nothing else
  29025. // in this thread can be relying on its contents.
  29026. if (inverseDecode) {
  29027. for (var i = 0; i < actualLength; i++) {
  29028. data[i] = ~data[i];
  29029. }
  29030. }
  29031. return {data: data, width: width, height: height};
  29032. };
  29033. PDFImage.prototype = {
  29034. get drawWidth() {
  29035. return Math.max(this.width,
  29036. this.smask && this.smask.width || 0,
  29037. this.mask && this.mask.width || 0);
  29038. },
  29039. get drawHeight() {
  29040. return Math.max(this.height,
  29041. this.smask && this.smask.height || 0,
  29042. this.mask && this.mask.height || 0);
  29043. },
  29044. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  29045. var bpc = this.bpc;
  29046. var numComps = this.numComps;
  29047. var decodeAddends = this.decodeAddends;
  29048. var decodeCoefficients = this.decodeCoefficients;
  29049. var max = (1 << bpc) - 1;
  29050. var i, ii;
  29051. if (bpc === 1) {
  29052. // If the buffer needed decode that means it just needs to be inverted.
  29053. for (i = 0, ii = buffer.length; i < ii; i++) {
  29054. buffer[i] = +!(buffer[i]);
  29055. }
  29056. return;
  29057. }
  29058. var index = 0;
  29059. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  29060. for (var j = 0; j < numComps; j++) {
  29061. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  29062. decodeCoefficients[j], max);
  29063. index++;
  29064. }
  29065. }
  29066. },
  29067. getComponents: function PDFImage_getComponents(buffer) {
  29068. var bpc = this.bpc;
  29069. // This image doesn't require any extra work.
  29070. if (bpc === 8) {
  29071. return buffer;
  29072. }
  29073. var width = this.width;
  29074. var height = this.height;
  29075. var numComps = this.numComps;
  29076. var length = width * height * numComps;
  29077. var bufferPos = 0;
  29078. var output = (bpc <= 8 ? new Uint8Array(length) :
  29079. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29080. var rowComps = width * numComps;
  29081. var max = (1 << bpc) - 1;
  29082. var i = 0, ii, buf;
  29083. if (bpc === 1) {
  29084. // Optimization for reading 1 bpc images.
  29085. var mask, loop1End, loop2End;
  29086. for (var j = 0; j < height; j++) {
  29087. loop1End = i + (rowComps & ~7);
  29088. loop2End = i + rowComps;
  29089. // unroll loop for all full bytes
  29090. while (i < loop1End) {
  29091. buf = buffer[bufferPos++];
  29092. output[i] = (buf >> 7) & 1;
  29093. output[i + 1] = (buf >> 6) & 1;
  29094. output[i + 2] = (buf >> 5) & 1;
  29095. output[i + 3] = (buf >> 4) & 1;
  29096. output[i + 4] = (buf >> 3) & 1;
  29097. output[i + 5] = (buf >> 2) & 1;
  29098. output[i + 6] = (buf >> 1) & 1;
  29099. output[i + 7] = buf & 1;
  29100. i += 8;
  29101. }
  29102. // handle remaing bits
  29103. if (i < loop2End) {
  29104. buf = buffer[bufferPos++];
  29105. mask = 128;
  29106. while (i < loop2End) {
  29107. output[i++] = +!!(buf & mask);
  29108. mask >>= 1;
  29109. }
  29110. }
  29111. }
  29112. } else {
  29113. // The general case that handles all other bpc values.
  29114. var bits = 0;
  29115. buf = 0;
  29116. for (i = 0, ii = length; i < ii; ++i) {
  29117. if (i % rowComps === 0) {
  29118. buf = 0;
  29119. bits = 0;
  29120. }
  29121. while (bits < bpc) {
  29122. buf = (buf << 8) | buffer[bufferPos++];
  29123. bits += 8;
  29124. }
  29125. var remainingBits = bits - bpc;
  29126. var value = buf >> remainingBits;
  29127. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  29128. buf = buf & ((1 << remainingBits) - 1);
  29129. bits = remainingBits;
  29130. }
  29131. }
  29132. return output;
  29133. },
  29134. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  29135. actualHeight, image) {
  29136. var smask = this.smask;
  29137. var mask = this.mask;
  29138. var alphaBuf, sw, sh, i, ii, j;
  29139. if (smask) {
  29140. sw = smask.width;
  29141. sh = smask.height;
  29142. alphaBuf = new Uint8Array(sw * sh);
  29143. smask.fillGrayBuffer(alphaBuf);
  29144. if (sw != width || sh != height) {
  29145. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  29146. height);
  29147. }
  29148. } else if (mask) {
  29149. if (mask instanceof PDFImage) {
  29150. sw = mask.width;
  29151. sh = mask.height;
  29152. alphaBuf = new Uint8Array(sw * sh);
  29153. mask.numComps = 1;
  29154. mask.fillGrayBuffer(alphaBuf);
  29155. // Need to invert values in rgbaBuf
  29156. for (i = 0, ii = sw * sh; i < ii; ++i) {
  29157. alphaBuf[i] = 255 - alphaBuf[i];
  29158. }
  29159. if (sw != width || sh != height) {
  29160. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  29161. height);
  29162. }
  29163. } else if (isArray(mask)) {
  29164. // Color key mask: if any of the compontents are outside the range
  29165. // then they should be painted.
  29166. alphaBuf = new Uint8Array(width * height);
  29167. var numComps = this.numComps;
  29168. for (i = 0, ii = width * height; i < ii; ++i) {
  29169. var opacity = 0;
  29170. var imageOffset = i * numComps;
  29171. for (j = 0; j < numComps; ++j) {
  29172. var color = image[imageOffset + j];
  29173. var maskOffset = j * 2;
  29174. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  29175. opacity = 255;
  29176. break;
  29177. }
  29178. }
  29179. alphaBuf[i] = opacity;
  29180. }
  29181. } else {
  29182. error('Unknown mask format.');
  29183. }
  29184. }
  29185. if (alphaBuf) {
  29186. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29187. rgbaBuf[j] = alphaBuf[i];
  29188. }
  29189. } else {
  29190. // No mask.
  29191. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29192. rgbaBuf[j] = 255;
  29193. }
  29194. }
  29195. },
  29196. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  29197. var matte = this.smask && this.smask.matte;
  29198. if (!matte) {
  29199. return;
  29200. }
  29201. function clamp(value) {
  29202. return (value < 0 ? 0 : (value > 255 ? 255 : value)) | 0;
  29203. }
  29204. var matteRgb = this.colorSpace.getRgb(matte, 0);
  29205. var length = width * height * 4;
  29206. for (var i = 0; i < length; i += 4) {
  29207. var alpha = buffer[i + 3];
  29208. if (alpha === 0) {
  29209. // according formula we have to get Infinity in all components
  29210. // making it white (tipical paper color) should be okay
  29211. buffer[i] = 255;
  29212. buffer[i + 1] = 255;
  29213. buffer[i + 2] = 255;
  29214. continue;
  29215. }
  29216. var k = 255 / alpha;
  29217. buffer[i] = clamp((buffer[i] - matteRgb[0]) * k + matteRgb[0]);
  29218. buffer[i + 1] = clamp((buffer[i + 1] - matteRgb[1]) * k + matteRgb[1]);
  29219. buffer[i + 2] = clamp((buffer[i + 2] - matteRgb[2]) * k + matteRgb[2]);
  29220. }
  29221. },
  29222. createImageData: function PDFImage_createImageData(forceRGBA) {
  29223. var drawWidth = this.drawWidth;
  29224. var drawHeight = this.drawHeight;
  29225. var imgData = { // other fields are filled in below
  29226. width: drawWidth,
  29227. height: drawHeight
  29228. };
  29229. var numComps = this.numComps;
  29230. var originalWidth = this.width;
  29231. var originalHeight = this.height;
  29232. var bpc = this.bpc;
  29233. // Rows start at byte boundary.
  29234. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  29235. var imgArray;
  29236. if (!forceRGBA) {
  29237. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  29238. // without any complications, we pass a same-sized copy to the main
  29239. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  29240. // of memory for many scanned documents. It's also much faster.
  29241. //
  29242. // Similarly, if it is a 24-bit-per pixel RGB image without any
  29243. // complications, we avoid expanding by 1.333x to RGBA form.
  29244. var kind;
  29245. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  29246. kind = ImageKind.GRAYSCALE_1BPP;
  29247. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  29248. kind = ImageKind.RGB_24BPP;
  29249. }
  29250. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  29251. drawWidth === originalWidth && drawHeight === originalHeight) {
  29252. imgData.kind = kind;
  29253. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29254. // If imgArray came from a DecodeStream, we're safe to transfer it
  29255. // (and thus neuter it) because it will constitute the entire
  29256. // DecodeStream's data. But if it came from a Stream, we need to
  29257. // copy it because it'll only be a portion of the Stream's data, and
  29258. // the rest will be read later on.
  29259. if (this.image instanceof DecodeStream) {
  29260. imgData.data = imgArray;
  29261. } else {
  29262. var newArray = new Uint8Array(imgArray.length);
  29263. newArray.set(imgArray);
  29264. imgData.data = newArray;
  29265. }
  29266. return imgData;
  29267. }
  29268. }
  29269. if (this.image instanceof JpegStream) {
  29270. imgData.kind = ImageKind.RGB_24BPP;
  29271. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  29272. drawWidth, drawHeight);
  29273. return imgData;
  29274. }
  29275. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29276. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  29277. var actualHeight = 0 | (imgArray.length / rowBytes *
  29278. drawHeight / originalHeight);
  29279. var comps = this.getComponents(imgArray);
  29280. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  29281. // more compact RGB_24BPP form if allowable.
  29282. var alpha01, maybeUndoPreblend;
  29283. if (!forceRGBA && !this.smask && !this.mask) {
  29284. imgData.kind = ImageKind.RGB_24BPP;
  29285. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  29286. alpha01 = 0;
  29287. maybeUndoPreblend = false;
  29288. } else {
  29289. imgData.kind = ImageKind.RGBA_32BPP;
  29290. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  29291. alpha01 = 1;
  29292. maybeUndoPreblend = true;
  29293. // Color key masking (opacity) must be performed before decoding.
  29294. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  29295. comps);
  29296. }
  29297. if (this.needsDecode) {
  29298. this.decodeBuffer(comps);
  29299. }
  29300. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  29301. drawWidth, drawHeight, actualHeight, bpc, comps,
  29302. alpha01);
  29303. if (maybeUndoPreblend) {
  29304. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  29305. }
  29306. return imgData;
  29307. },
  29308. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  29309. var numComps = this.numComps;
  29310. if (numComps != 1) {
  29311. error('Reading gray scale from a color image: ' + numComps);
  29312. }
  29313. var width = this.width;
  29314. var height = this.height;
  29315. var bpc = this.bpc;
  29316. // rows start at byte boundary
  29317. var rowBytes = (width * numComps * bpc + 7) >> 3;
  29318. var imgArray = this.getImageBytes(height * rowBytes);
  29319. var comps = this.getComponents(imgArray);
  29320. var i, length;
  29321. if (bpc === 1) {
  29322. // inline decoding (= inversion) for 1 bpc images
  29323. length = width * height;
  29324. if (this.needsDecode) {
  29325. // invert and scale to {0, 255}
  29326. for (i = 0; i < length; ++i) {
  29327. buffer[i] = (comps[i] - 1) & 255;
  29328. }
  29329. } else {
  29330. // scale to {0, 255}
  29331. for (i = 0; i < length; ++i) {
  29332. buffer[i] = (-comps[i]) & 255;
  29333. }
  29334. }
  29335. return;
  29336. }
  29337. if (this.needsDecode) {
  29338. this.decodeBuffer(comps);
  29339. }
  29340. length = width * height;
  29341. // we aren't using a colorspace so we need to scale the value
  29342. var scale = 255 / ((1 << bpc) - 1);
  29343. for (i = 0; i < length; ++i) {
  29344. buffer[i] = (scale * comps[i]) | 0;
  29345. }
  29346. },
  29347. getImageBytes: function PDFImage_getImageBytes(length,
  29348. drawWidth, drawHeight) {
  29349. this.image.reset();
  29350. this.image.drawWidth = drawWidth;
  29351. this.image.drawHeight = drawHeight;
  29352. return this.image.getBytes(length);
  29353. }
  29354. };
  29355. return PDFImage;
  29356. })();
  29357. // The Metrics object contains glyph widths (in glyph space units).
  29358. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  29359. // space unit corresponds to 1/1000th of text space unit.
  29360. var Metrics = {
  29361. 'Courier': 600,
  29362. 'Courier-Bold': 600,
  29363. 'Courier-BoldOblique': 600,
  29364. 'Courier-Oblique': 600,
  29365. 'Helvetica' : {
  29366. 'space': 278,
  29367. 'exclam': 278,
  29368. 'quotedbl': 355,
  29369. 'numbersign': 556,
  29370. 'dollar': 556,
  29371. 'percent': 889,
  29372. 'ampersand': 667,
  29373. 'quoteright': 222,
  29374. 'parenleft': 333,
  29375. 'parenright': 333,
  29376. 'asterisk': 389,
  29377. 'plus': 584,
  29378. 'comma': 278,
  29379. 'hyphen': 333,
  29380. 'period': 278,
  29381. 'slash': 278,
  29382. 'zero': 556,
  29383. 'one': 556,
  29384. 'two': 556,
  29385. 'three': 556,
  29386. 'four': 556,
  29387. 'five': 556,
  29388. 'six': 556,
  29389. 'seven': 556,
  29390. 'eight': 556,
  29391. 'nine': 556,
  29392. 'colon': 278,
  29393. 'semicolon': 278,
  29394. 'less': 584,
  29395. 'equal': 584,
  29396. 'greater': 584,
  29397. 'question': 556,
  29398. 'at': 1015,
  29399. 'A': 667,
  29400. 'B': 667,
  29401. 'C': 722,
  29402. 'D': 722,
  29403. 'E': 667,
  29404. 'F': 611,
  29405. 'G': 778,
  29406. 'H': 722,
  29407. 'I': 278,
  29408. 'J': 500,
  29409. 'K': 667,
  29410. 'L': 556,
  29411. 'M': 833,
  29412. 'N': 722,
  29413. 'O': 778,
  29414. 'P': 667,
  29415. 'Q': 778,
  29416. 'R': 722,
  29417. 'S': 667,
  29418. 'T': 611,
  29419. 'U': 722,
  29420. 'V': 667,
  29421. 'W': 944,
  29422. 'X': 667,
  29423. 'Y': 667,
  29424. 'Z': 611,
  29425. 'bracketleft': 278,
  29426. 'backslash': 278,
  29427. 'bracketright': 278,
  29428. 'asciicircum': 469,
  29429. 'underscore': 556,
  29430. 'quoteleft': 222,
  29431. 'a': 556,
  29432. 'b': 556,
  29433. 'c': 500,
  29434. 'd': 556,
  29435. 'e': 556,
  29436. 'f': 278,
  29437. 'g': 556,
  29438. 'h': 556,
  29439. 'i': 222,
  29440. 'j': 222,
  29441. 'k': 500,
  29442. 'l': 222,
  29443. 'm': 833,
  29444. 'n': 556,
  29445. 'o': 556,
  29446. 'p': 556,
  29447. 'q': 556,
  29448. 'r': 333,
  29449. 's': 500,
  29450. 't': 278,
  29451. 'u': 556,
  29452. 'v': 500,
  29453. 'w': 722,
  29454. 'x': 500,
  29455. 'y': 500,
  29456. 'z': 500,
  29457. 'braceleft': 334,
  29458. 'bar': 260,
  29459. 'braceright': 334,
  29460. 'asciitilde': 584,
  29461. 'exclamdown': 333,
  29462. 'cent': 556,
  29463. 'sterling': 556,
  29464. 'fraction': 167,
  29465. 'yen': 556,
  29466. 'florin': 556,
  29467. 'section': 556,
  29468. 'currency': 556,
  29469. 'quotesingle': 191,
  29470. 'quotedblleft': 333,
  29471. 'guillemotleft': 556,
  29472. 'guilsinglleft': 333,
  29473. 'guilsinglright': 333,
  29474. 'fi': 500,
  29475. 'fl': 500,
  29476. 'endash': 556,
  29477. 'dagger': 556,
  29478. 'daggerdbl': 556,
  29479. 'periodcentered': 278,
  29480. 'paragraph': 537,
  29481. 'bullet': 350,
  29482. 'quotesinglbase': 222,
  29483. 'quotedblbase': 333,
  29484. 'quotedblright': 333,
  29485. 'guillemotright': 556,
  29486. 'ellipsis': 1000,
  29487. 'perthousand': 1000,
  29488. 'questiondown': 611,
  29489. 'grave': 333,
  29490. 'acute': 333,
  29491. 'circumflex': 333,
  29492. 'tilde': 333,
  29493. 'macron': 333,
  29494. 'breve': 333,
  29495. 'dotaccent': 333,
  29496. 'dieresis': 333,
  29497. 'ring': 333,
  29498. 'cedilla': 333,
  29499. 'hungarumlaut': 333,
  29500. 'ogonek': 333,
  29501. 'caron': 333,
  29502. 'emdash': 1000,
  29503. 'AE': 1000,
  29504. 'ordfeminine': 370,
  29505. 'Lslash': 556,
  29506. 'Oslash': 778,
  29507. 'OE': 1000,
  29508. 'ordmasculine': 365,
  29509. 'ae': 889,
  29510. 'dotlessi': 278,
  29511. 'lslash': 222,
  29512. 'oslash': 611,
  29513. 'oe': 944,
  29514. 'germandbls': 611,
  29515. 'Idieresis': 278,
  29516. 'eacute': 556,
  29517. 'abreve': 556,
  29518. 'uhungarumlaut': 556,
  29519. 'ecaron': 556,
  29520. 'Ydieresis': 667,
  29521. 'divide': 584,
  29522. 'Yacute': 667,
  29523. 'Acircumflex': 667,
  29524. 'aacute': 556,
  29525. 'Ucircumflex': 722,
  29526. 'yacute': 500,
  29527. 'scommaaccent': 500,
  29528. 'ecircumflex': 556,
  29529. 'Uring': 722,
  29530. 'Udieresis': 722,
  29531. 'aogonek': 556,
  29532. 'Uacute': 722,
  29533. 'uogonek': 556,
  29534. 'Edieresis': 667,
  29535. 'Dcroat': 722,
  29536. 'commaaccent': 250,
  29537. 'copyright': 737,
  29538. 'Emacron': 667,
  29539. 'ccaron': 500,
  29540. 'aring': 556,
  29541. 'Ncommaaccent': 722,
  29542. 'lacute': 222,
  29543. 'agrave': 556,
  29544. 'Tcommaaccent': 611,
  29545. 'Cacute': 722,
  29546. 'atilde': 556,
  29547. 'Edotaccent': 667,
  29548. 'scaron': 500,
  29549. 'scedilla': 500,
  29550. 'iacute': 278,
  29551. 'lozenge': 471,
  29552. 'Rcaron': 722,
  29553. 'Gcommaaccent': 778,
  29554. 'ucircumflex': 556,
  29555. 'acircumflex': 556,
  29556. 'Amacron': 667,
  29557. 'rcaron': 333,
  29558. 'ccedilla': 500,
  29559. 'Zdotaccent': 611,
  29560. 'Thorn': 667,
  29561. 'Omacron': 778,
  29562. 'Racute': 722,
  29563. 'Sacute': 667,
  29564. 'dcaron': 643,
  29565. 'Umacron': 722,
  29566. 'uring': 556,
  29567. 'threesuperior': 333,
  29568. 'Ograve': 778,
  29569. 'Agrave': 667,
  29570. 'Abreve': 667,
  29571. 'multiply': 584,
  29572. 'uacute': 556,
  29573. 'Tcaron': 611,
  29574. 'partialdiff': 476,
  29575. 'ydieresis': 500,
  29576. 'Nacute': 722,
  29577. 'icircumflex': 278,
  29578. 'Ecircumflex': 667,
  29579. 'adieresis': 556,
  29580. 'edieresis': 556,
  29581. 'cacute': 500,
  29582. 'nacute': 556,
  29583. 'umacron': 556,
  29584. 'Ncaron': 722,
  29585. 'Iacute': 278,
  29586. 'plusminus': 584,
  29587. 'brokenbar': 260,
  29588. 'registered': 737,
  29589. 'Gbreve': 778,
  29590. 'Idotaccent': 278,
  29591. 'summation': 600,
  29592. 'Egrave': 667,
  29593. 'racute': 333,
  29594. 'omacron': 556,
  29595. 'Zacute': 611,
  29596. 'Zcaron': 611,
  29597. 'greaterequal': 549,
  29598. 'Eth': 722,
  29599. 'Ccedilla': 722,
  29600. 'lcommaaccent': 222,
  29601. 'tcaron': 317,
  29602. 'eogonek': 556,
  29603. 'Uogonek': 722,
  29604. 'Aacute': 667,
  29605. 'Adieresis': 667,
  29606. 'egrave': 556,
  29607. 'zacute': 500,
  29608. 'iogonek': 222,
  29609. 'Oacute': 778,
  29610. 'oacute': 556,
  29611. 'amacron': 556,
  29612. 'sacute': 500,
  29613. 'idieresis': 278,
  29614. 'Ocircumflex': 778,
  29615. 'Ugrave': 722,
  29616. 'Delta': 612,
  29617. 'thorn': 556,
  29618. 'twosuperior': 333,
  29619. 'Odieresis': 778,
  29620. 'mu': 556,
  29621. 'igrave': 278,
  29622. 'ohungarumlaut': 556,
  29623. 'Eogonek': 667,
  29624. 'dcroat': 556,
  29625. 'threequarters': 834,
  29626. 'Scedilla': 667,
  29627. 'lcaron': 299,
  29628. 'Kcommaaccent': 667,
  29629. 'Lacute': 556,
  29630. 'trademark': 1000,
  29631. 'edotaccent': 556,
  29632. 'Igrave': 278,
  29633. 'Imacron': 278,
  29634. 'Lcaron': 556,
  29635. 'onehalf': 834,
  29636. 'lessequal': 549,
  29637. 'ocircumflex': 556,
  29638. 'ntilde': 556,
  29639. 'Uhungarumlaut': 722,
  29640. 'Eacute': 667,
  29641. 'emacron': 556,
  29642. 'gbreve': 556,
  29643. 'onequarter': 834,
  29644. 'Scaron': 667,
  29645. 'Scommaaccent': 667,
  29646. 'Ohungarumlaut': 778,
  29647. 'degree': 400,
  29648. 'ograve': 556,
  29649. 'Ccaron': 722,
  29650. 'ugrave': 556,
  29651. 'radical': 453,
  29652. 'Dcaron': 722,
  29653. 'rcommaaccent': 333,
  29654. 'Ntilde': 722,
  29655. 'otilde': 556,
  29656. 'Rcommaaccent': 722,
  29657. 'Lcommaaccent': 556,
  29658. 'Atilde': 667,
  29659. 'Aogonek': 667,
  29660. 'Aring': 667,
  29661. 'Otilde': 778,
  29662. 'zdotaccent': 500,
  29663. 'Ecaron': 667,
  29664. 'Iogonek': 278,
  29665. 'kcommaaccent': 500,
  29666. 'minus': 584,
  29667. 'Icircumflex': 278,
  29668. 'ncaron': 556,
  29669. 'tcommaaccent': 278,
  29670. 'logicalnot': 584,
  29671. 'odieresis': 556,
  29672. 'udieresis': 556,
  29673. 'notequal': 549,
  29674. 'gcommaaccent': 556,
  29675. 'eth': 556,
  29676. 'zcaron': 500,
  29677. 'ncommaaccent': 556,
  29678. 'onesuperior': 333,
  29679. 'imacron': 278,
  29680. 'Euro': 556
  29681. },
  29682. 'Helvetica-Bold': {
  29683. 'space': 278,
  29684. 'exclam': 333,
  29685. 'quotedbl': 474,
  29686. 'numbersign': 556,
  29687. 'dollar': 556,
  29688. 'percent': 889,
  29689. 'ampersand': 722,
  29690. 'quoteright': 278,
  29691. 'parenleft': 333,
  29692. 'parenright': 333,
  29693. 'asterisk': 389,
  29694. 'plus': 584,
  29695. 'comma': 278,
  29696. 'hyphen': 333,
  29697. 'period': 278,
  29698. 'slash': 278,
  29699. 'zero': 556,
  29700. 'one': 556,
  29701. 'two': 556,
  29702. 'three': 556,
  29703. 'four': 556,
  29704. 'five': 556,
  29705. 'six': 556,
  29706. 'seven': 556,
  29707. 'eight': 556,
  29708. 'nine': 556,
  29709. 'colon': 333,
  29710. 'semicolon': 333,
  29711. 'less': 584,
  29712. 'equal': 584,
  29713. 'greater': 584,
  29714. 'question': 611,
  29715. 'at': 975,
  29716. 'A': 722,
  29717. 'B': 722,
  29718. 'C': 722,
  29719. 'D': 722,
  29720. 'E': 667,
  29721. 'F': 611,
  29722. 'G': 778,
  29723. 'H': 722,
  29724. 'I': 278,
  29725. 'J': 556,
  29726. 'K': 722,
  29727. 'L': 611,
  29728. 'M': 833,
  29729. 'N': 722,
  29730. 'O': 778,
  29731. 'P': 667,
  29732. 'Q': 778,
  29733. 'R': 722,
  29734. 'S': 667,
  29735. 'T': 611,
  29736. 'U': 722,
  29737. 'V': 667,
  29738. 'W': 944,
  29739. 'X': 667,
  29740. 'Y': 667,
  29741. 'Z': 611,
  29742. 'bracketleft': 333,
  29743. 'backslash': 278,
  29744. 'bracketright': 333,
  29745. 'asciicircum': 584,
  29746. 'underscore': 556,
  29747. 'quoteleft': 278,
  29748. 'a': 556,
  29749. 'b': 611,
  29750. 'c': 556,
  29751. 'd': 611,
  29752. 'e': 556,
  29753. 'f': 333,
  29754. 'g': 611,
  29755. 'h': 611,
  29756. 'i': 278,
  29757. 'j': 278,
  29758. 'k': 556,
  29759. 'l': 278,
  29760. 'm': 889,
  29761. 'n': 611,
  29762. 'o': 611,
  29763. 'p': 611,
  29764. 'q': 611,
  29765. 'r': 389,
  29766. 's': 556,
  29767. 't': 333,
  29768. 'u': 611,
  29769. 'v': 556,
  29770. 'w': 778,
  29771. 'x': 556,
  29772. 'y': 556,
  29773. 'z': 500,
  29774. 'braceleft': 389,
  29775. 'bar': 280,
  29776. 'braceright': 389,
  29777. 'asciitilde': 584,
  29778. 'exclamdown': 333,
  29779. 'cent': 556,
  29780. 'sterling': 556,
  29781. 'fraction': 167,
  29782. 'yen': 556,
  29783. 'florin': 556,
  29784. 'section': 556,
  29785. 'currency': 556,
  29786. 'quotesingle': 238,
  29787. 'quotedblleft': 500,
  29788. 'guillemotleft': 556,
  29789. 'guilsinglleft': 333,
  29790. 'guilsinglright': 333,
  29791. 'fi': 611,
  29792. 'fl': 611,
  29793. 'endash': 556,
  29794. 'dagger': 556,
  29795. 'daggerdbl': 556,
  29796. 'periodcentered': 278,
  29797. 'paragraph': 556,
  29798. 'bullet': 350,
  29799. 'quotesinglbase': 278,
  29800. 'quotedblbase': 500,
  29801. 'quotedblright': 500,
  29802. 'guillemotright': 556,
  29803. 'ellipsis': 1000,
  29804. 'perthousand': 1000,
  29805. 'questiondown': 611,
  29806. 'grave': 333,
  29807. 'acute': 333,
  29808. 'circumflex': 333,
  29809. 'tilde': 333,
  29810. 'macron': 333,
  29811. 'breve': 333,
  29812. 'dotaccent': 333,
  29813. 'dieresis': 333,
  29814. 'ring': 333,
  29815. 'cedilla': 333,
  29816. 'hungarumlaut': 333,
  29817. 'ogonek': 333,
  29818. 'caron': 333,
  29819. 'emdash': 1000,
  29820. 'AE': 1000,
  29821. 'ordfeminine': 370,
  29822. 'Lslash': 611,
  29823. 'Oslash': 778,
  29824. 'OE': 1000,
  29825. 'ordmasculine': 365,
  29826. 'ae': 889,
  29827. 'dotlessi': 278,
  29828. 'lslash': 278,
  29829. 'oslash': 611,
  29830. 'oe': 944,
  29831. 'germandbls': 611,
  29832. 'Idieresis': 278,
  29833. 'eacute': 556,
  29834. 'abreve': 556,
  29835. 'uhungarumlaut': 611,
  29836. 'ecaron': 556,
  29837. 'Ydieresis': 667,
  29838. 'divide': 584,
  29839. 'Yacute': 667,
  29840. 'Acircumflex': 722,
  29841. 'aacute': 556,
  29842. 'Ucircumflex': 722,
  29843. 'yacute': 556,
  29844. 'scommaaccent': 556,
  29845. 'ecircumflex': 556,
  29846. 'Uring': 722,
  29847. 'Udieresis': 722,
  29848. 'aogonek': 556,
  29849. 'Uacute': 722,
  29850. 'uogonek': 611,
  29851. 'Edieresis': 667,
  29852. 'Dcroat': 722,
  29853. 'commaaccent': 250,
  29854. 'copyright': 737,
  29855. 'Emacron': 667,
  29856. 'ccaron': 556,
  29857. 'aring': 556,
  29858. 'Ncommaaccent': 722,
  29859. 'lacute': 278,
  29860. 'agrave': 556,
  29861. 'Tcommaaccent': 611,
  29862. 'Cacute': 722,
  29863. 'atilde': 556,
  29864. 'Edotaccent': 667,
  29865. 'scaron': 556,
  29866. 'scedilla': 556,
  29867. 'iacute': 278,
  29868. 'lozenge': 494,
  29869. 'Rcaron': 722,
  29870. 'Gcommaaccent': 778,
  29871. 'ucircumflex': 611,
  29872. 'acircumflex': 556,
  29873. 'Amacron': 722,
  29874. 'rcaron': 389,
  29875. 'ccedilla': 556,
  29876. 'Zdotaccent': 611,
  29877. 'Thorn': 667,
  29878. 'Omacron': 778,
  29879. 'Racute': 722,
  29880. 'Sacute': 667,
  29881. 'dcaron': 743,
  29882. 'Umacron': 722,
  29883. 'uring': 611,
  29884. 'threesuperior': 333,
  29885. 'Ograve': 778,
  29886. 'Agrave': 722,
  29887. 'Abreve': 722,
  29888. 'multiply': 584,
  29889. 'uacute': 611,
  29890. 'Tcaron': 611,
  29891. 'partialdiff': 494,
  29892. 'ydieresis': 556,
  29893. 'Nacute': 722,
  29894. 'icircumflex': 278,
  29895. 'Ecircumflex': 667,
  29896. 'adieresis': 556,
  29897. 'edieresis': 556,
  29898. 'cacute': 556,
  29899. 'nacute': 611,
  29900. 'umacron': 611,
  29901. 'Ncaron': 722,
  29902. 'Iacute': 278,
  29903. 'plusminus': 584,
  29904. 'brokenbar': 280,
  29905. 'registered': 737,
  29906. 'Gbreve': 778,
  29907. 'Idotaccent': 278,
  29908. 'summation': 600,
  29909. 'Egrave': 667,
  29910. 'racute': 389,
  29911. 'omacron': 611,
  29912. 'Zacute': 611,
  29913. 'Zcaron': 611,
  29914. 'greaterequal': 549,
  29915. 'Eth': 722,
  29916. 'Ccedilla': 722,
  29917. 'lcommaaccent': 278,
  29918. 'tcaron': 389,
  29919. 'eogonek': 556,
  29920. 'Uogonek': 722,
  29921. 'Aacute': 722,
  29922. 'Adieresis': 722,
  29923. 'egrave': 556,
  29924. 'zacute': 500,
  29925. 'iogonek': 278,
  29926. 'Oacute': 778,
  29927. 'oacute': 611,
  29928. 'amacron': 556,
  29929. 'sacute': 556,
  29930. 'idieresis': 278,
  29931. 'Ocircumflex': 778,
  29932. 'Ugrave': 722,
  29933. 'Delta': 612,
  29934. 'thorn': 611,
  29935. 'twosuperior': 333,
  29936. 'Odieresis': 778,
  29937. 'mu': 611,
  29938. 'igrave': 278,
  29939. 'ohungarumlaut': 611,
  29940. 'Eogonek': 667,
  29941. 'dcroat': 611,
  29942. 'threequarters': 834,
  29943. 'Scedilla': 667,
  29944. 'lcaron': 400,
  29945. 'Kcommaaccent': 722,
  29946. 'Lacute': 611,
  29947. 'trademark': 1000,
  29948. 'edotaccent': 556,
  29949. 'Igrave': 278,
  29950. 'Imacron': 278,
  29951. 'Lcaron': 611,
  29952. 'onehalf': 834,
  29953. 'lessequal': 549,
  29954. 'ocircumflex': 611,
  29955. 'ntilde': 611,
  29956. 'Uhungarumlaut': 722,
  29957. 'Eacute': 667,
  29958. 'emacron': 556,
  29959. 'gbreve': 611,
  29960. 'onequarter': 834,
  29961. 'Scaron': 667,
  29962. 'Scommaaccent': 667,
  29963. 'Ohungarumlaut': 778,
  29964. 'degree': 400,
  29965. 'ograve': 611,
  29966. 'Ccaron': 722,
  29967. 'ugrave': 611,
  29968. 'radical': 549,
  29969. 'Dcaron': 722,
  29970. 'rcommaaccent': 389,
  29971. 'Ntilde': 722,
  29972. 'otilde': 611,
  29973. 'Rcommaaccent': 722,
  29974. 'Lcommaaccent': 611,
  29975. 'Atilde': 722,
  29976. 'Aogonek': 722,
  29977. 'Aring': 722,
  29978. 'Otilde': 778,
  29979. 'zdotaccent': 500,
  29980. 'Ecaron': 667,
  29981. 'Iogonek': 278,
  29982. 'kcommaaccent': 556,
  29983. 'minus': 584,
  29984. 'Icircumflex': 278,
  29985. 'ncaron': 611,
  29986. 'tcommaaccent': 333,
  29987. 'logicalnot': 584,
  29988. 'odieresis': 611,
  29989. 'udieresis': 611,
  29990. 'notequal': 549,
  29991. 'gcommaaccent': 611,
  29992. 'eth': 611,
  29993. 'zcaron': 500,
  29994. 'ncommaaccent': 611,
  29995. 'onesuperior': 333,
  29996. 'imacron': 278,
  29997. 'Euro': 556
  29998. },
  29999. 'Helvetica-BoldOblique': {
  30000. 'space': 278,
  30001. 'exclam': 333,
  30002. 'quotedbl': 474,
  30003. 'numbersign': 556,
  30004. 'dollar': 556,
  30005. 'percent': 889,
  30006. 'ampersand': 722,
  30007. 'quoteright': 278,
  30008. 'parenleft': 333,
  30009. 'parenright': 333,
  30010. 'asterisk': 389,
  30011. 'plus': 584,
  30012. 'comma': 278,
  30013. 'hyphen': 333,
  30014. 'period': 278,
  30015. 'slash': 278,
  30016. 'zero': 556,
  30017. 'one': 556,
  30018. 'two': 556,
  30019. 'three': 556,
  30020. 'four': 556,
  30021. 'five': 556,
  30022. 'six': 556,
  30023. 'seven': 556,
  30024. 'eight': 556,
  30025. 'nine': 556,
  30026. 'colon': 333,
  30027. 'semicolon': 333,
  30028. 'less': 584,
  30029. 'equal': 584,
  30030. 'greater': 584,
  30031. 'question': 611,
  30032. 'at': 975,
  30033. 'A': 722,
  30034. 'B': 722,
  30035. 'C': 722,
  30036. 'D': 722,
  30037. 'E': 667,
  30038. 'F': 611,
  30039. 'G': 778,
  30040. 'H': 722,
  30041. 'I': 278,
  30042. 'J': 556,
  30043. 'K': 722,
  30044. 'L': 611,
  30045. 'M': 833,
  30046. 'N': 722,
  30047. 'O': 778,
  30048. 'P': 667,
  30049. 'Q': 778,
  30050. 'R': 722,
  30051. 'S': 667,
  30052. 'T': 611,
  30053. 'U': 722,
  30054. 'V': 667,
  30055. 'W': 944,
  30056. 'X': 667,
  30057. 'Y': 667,
  30058. 'Z': 611,
  30059. 'bracketleft': 333,
  30060. 'backslash': 278,
  30061. 'bracketright': 333,
  30062. 'asciicircum': 584,
  30063. 'underscore': 556,
  30064. 'quoteleft': 278,
  30065. 'a': 556,
  30066. 'b': 611,
  30067. 'c': 556,
  30068. 'd': 611,
  30069. 'e': 556,
  30070. 'f': 333,
  30071. 'g': 611,
  30072. 'h': 611,
  30073. 'i': 278,
  30074. 'j': 278,
  30075. 'k': 556,
  30076. 'l': 278,
  30077. 'm': 889,
  30078. 'n': 611,
  30079. 'o': 611,
  30080. 'p': 611,
  30081. 'q': 611,
  30082. 'r': 389,
  30083. 's': 556,
  30084. 't': 333,
  30085. 'u': 611,
  30086. 'v': 556,
  30087. 'w': 778,
  30088. 'x': 556,
  30089. 'y': 556,
  30090. 'z': 500,
  30091. 'braceleft': 389,
  30092. 'bar': 280,
  30093. 'braceright': 389,
  30094. 'asciitilde': 584,
  30095. 'exclamdown': 333,
  30096. 'cent': 556,
  30097. 'sterling': 556,
  30098. 'fraction': 167,
  30099. 'yen': 556,
  30100. 'florin': 556,
  30101. 'section': 556,
  30102. 'currency': 556,
  30103. 'quotesingle': 238,
  30104. 'quotedblleft': 500,
  30105. 'guillemotleft': 556,
  30106. 'guilsinglleft': 333,
  30107. 'guilsinglright': 333,
  30108. 'fi': 611,
  30109. 'fl': 611,
  30110. 'endash': 556,
  30111. 'dagger': 556,
  30112. 'daggerdbl': 556,
  30113. 'periodcentered': 278,
  30114. 'paragraph': 556,
  30115. 'bullet': 350,
  30116. 'quotesinglbase': 278,
  30117. 'quotedblbase': 500,
  30118. 'quotedblright': 500,
  30119. 'guillemotright': 556,
  30120. 'ellipsis': 1000,
  30121. 'perthousand': 1000,
  30122. 'questiondown': 611,
  30123. 'grave': 333,
  30124. 'acute': 333,
  30125. 'circumflex': 333,
  30126. 'tilde': 333,
  30127. 'macron': 333,
  30128. 'breve': 333,
  30129. 'dotaccent': 333,
  30130. 'dieresis': 333,
  30131. 'ring': 333,
  30132. 'cedilla': 333,
  30133. 'hungarumlaut': 333,
  30134. 'ogonek': 333,
  30135. 'caron': 333,
  30136. 'emdash': 1000,
  30137. 'AE': 1000,
  30138. 'ordfeminine': 370,
  30139. 'Lslash': 611,
  30140. 'Oslash': 778,
  30141. 'OE': 1000,
  30142. 'ordmasculine': 365,
  30143. 'ae': 889,
  30144. 'dotlessi': 278,
  30145. 'lslash': 278,
  30146. 'oslash': 611,
  30147. 'oe': 944,
  30148. 'germandbls': 611,
  30149. 'Idieresis': 278,
  30150. 'eacute': 556,
  30151. 'abreve': 556,
  30152. 'uhungarumlaut': 611,
  30153. 'ecaron': 556,
  30154. 'Ydieresis': 667,
  30155. 'divide': 584,
  30156. 'Yacute': 667,
  30157. 'Acircumflex': 722,
  30158. 'aacute': 556,
  30159. 'Ucircumflex': 722,
  30160. 'yacute': 556,
  30161. 'scommaaccent': 556,
  30162. 'ecircumflex': 556,
  30163. 'Uring': 722,
  30164. 'Udieresis': 722,
  30165. 'aogonek': 556,
  30166. 'Uacute': 722,
  30167. 'uogonek': 611,
  30168. 'Edieresis': 667,
  30169. 'Dcroat': 722,
  30170. 'commaaccent': 250,
  30171. 'copyright': 737,
  30172. 'Emacron': 667,
  30173. 'ccaron': 556,
  30174. 'aring': 556,
  30175. 'Ncommaaccent': 722,
  30176. 'lacute': 278,
  30177. 'agrave': 556,
  30178. 'Tcommaaccent': 611,
  30179. 'Cacute': 722,
  30180. 'atilde': 556,
  30181. 'Edotaccent': 667,
  30182. 'scaron': 556,
  30183. 'scedilla': 556,
  30184. 'iacute': 278,
  30185. 'lozenge': 494,
  30186. 'Rcaron': 722,
  30187. 'Gcommaaccent': 778,
  30188. 'ucircumflex': 611,
  30189. 'acircumflex': 556,
  30190. 'Amacron': 722,
  30191. 'rcaron': 389,
  30192. 'ccedilla': 556,
  30193. 'Zdotaccent': 611,
  30194. 'Thorn': 667,
  30195. 'Omacron': 778,
  30196. 'Racute': 722,
  30197. 'Sacute': 667,
  30198. 'dcaron': 743,
  30199. 'Umacron': 722,
  30200. 'uring': 611,
  30201. 'threesuperior': 333,
  30202. 'Ograve': 778,
  30203. 'Agrave': 722,
  30204. 'Abreve': 722,
  30205. 'multiply': 584,
  30206. 'uacute': 611,
  30207. 'Tcaron': 611,
  30208. 'partialdiff': 494,
  30209. 'ydieresis': 556,
  30210. 'Nacute': 722,
  30211. 'icircumflex': 278,
  30212. 'Ecircumflex': 667,
  30213. 'adieresis': 556,
  30214. 'edieresis': 556,
  30215. 'cacute': 556,
  30216. 'nacute': 611,
  30217. 'umacron': 611,
  30218. 'Ncaron': 722,
  30219. 'Iacute': 278,
  30220. 'plusminus': 584,
  30221. 'brokenbar': 280,
  30222. 'registered': 737,
  30223. 'Gbreve': 778,
  30224. 'Idotaccent': 278,
  30225. 'summation': 600,
  30226. 'Egrave': 667,
  30227. 'racute': 389,
  30228. 'omacron': 611,
  30229. 'Zacute': 611,
  30230. 'Zcaron': 611,
  30231. 'greaterequal': 549,
  30232. 'Eth': 722,
  30233. 'Ccedilla': 722,
  30234. 'lcommaaccent': 278,
  30235. 'tcaron': 389,
  30236. 'eogonek': 556,
  30237. 'Uogonek': 722,
  30238. 'Aacute': 722,
  30239. 'Adieresis': 722,
  30240. 'egrave': 556,
  30241. 'zacute': 500,
  30242. 'iogonek': 278,
  30243. 'Oacute': 778,
  30244. 'oacute': 611,
  30245. 'amacron': 556,
  30246. 'sacute': 556,
  30247. 'idieresis': 278,
  30248. 'Ocircumflex': 778,
  30249. 'Ugrave': 722,
  30250. 'Delta': 612,
  30251. 'thorn': 611,
  30252. 'twosuperior': 333,
  30253. 'Odieresis': 778,
  30254. 'mu': 611,
  30255. 'igrave': 278,
  30256. 'ohungarumlaut': 611,
  30257. 'Eogonek': 667,
  30258. 'dcroat': 611,
  30259. 'threequarters': 834,
  30260. 'Scedilla': 667,
  30261. 'lcaron': 400,
  30262. 'Kcommaaccent': 722,
  30263. 'Lacute': 611,
  30264. 'trademark': 1000,
  30265. 'edotaccent': 556,
  30266. 'Igrave': 278,
  30267. 'Imacron': 278,
  30268. 'Lcaron': 611,
  30269. 'onehalf': 834,
  30270. 'lessequal': 549,
  30271. 'ocircumflex': 611,
  30272. 'ntilde': 611,
  30273. 'Uhungarumlaut': 722,
  30274. 'Eacute': 667,
  30275. 'emacron': 556,
  30276. 'gbreve': 611,
  30277. 'onequarter': 834,
  30278. 'Scaron': 667,
  30279. 'Scommaaccent': 667,
  30280. 'Ohungarumlaut': 778,
  30281. 'degree': 400,
  30282. 'ograve': 611,
  30283. 'Ccaron': 722,
  30284. 'ugrave': 611,
  30285. 'radical': 549,
  30286. 'Dcaron': 722,
  30287. 'rcommaaccent': 389,
  30288. 'Ntilde': 722,
  30289. 'otilde': 611,
  30290. 'Rcommaaccent': 722,
  30291. 'Lcommaaccent': 611,
  30292. 'Atilde': 722,
  30293. 'Aogonek': 722,
  30294. 'Aring': 722,
  30295. 'Otilde': 778,
  30296. 'zdotaccent': 500,
  30297. 'Ecaron': 667,
  30298. 'Iogonek': 278,
  30299. 'kcommaaccent': 556,
  30300. 'minus': 584,
  30301. 'Icircumflex': 278,
  30302. 'ncaron': 611,
  30303. 'tcommaaccent': 333,
  30304. 'logicalnot': 584,
  30305. 'odieresis': 611,
  30306. 'udieresis': 611,
  30307. 'notequal': 549,
  30308. 'gcommaaccent': 611,
  30309. 'eth': 611,
  30310. 'zcaron': 500,
  30311. 'ncommaaccent': 611,
  30312. 'onesuperior': 333,
  30313. 'imacron': 278,
  30314. 'Euro': 556
  30315. },
  30316. 'Helvetica-Oblique' : {
  30317. 'space': 278,
  30318. 'exclam': 278,
  30319. 'quotedbl': 355,
  30320. 'numbersign': 556,
  30321. 'dollar': 556,
  30322. 'percent': 889,
  30323. 'ampersand': 667,
  30324. 'quoteright': 222,
  30325. 'parenleft': 333,
  30326. 'parenright': 333,
  30327. 'asterisk': 389,
  30328. 'plus': 584,
  30329. 'comma': 278,
  30330. 'hyphen': 333,
  30331. 'period': 278,
  30332. 'slash': 278,
  30333. 'zero': 556,
  30334. 'one': 556,
  30335. 'two': 556,
  30336. 'three': 556,
  30337. 'four': 556,
  30338. 'five': 556,
  30339. 'six': 556,
  30340. 'seven': 556,
  30341. 'eight': 556,
  30342. 'nine': 556,
  30343. 'colon': 278,
  30344. 'semicolon': 278,
  30345. 'less': 584,
  30346. 'equal': 584,
  30347. 'greater': 584,
  30348. 'question': 556,
  30349. 'at': 1015,
  30350. 'A': 667,
  30351. 'B': 667,
  30352. 'C': 722,
  30353. 'D': 722,
  30354. 'E': 667,
  30355. 'F': 611,
  30356. 'G': 778,
  30357. 'H': 722,
  30358. 'I': 278,
  30359. 'J': 500,
  30360. 'K': 667,
  30361. 'L': 556,
  30362. 'M': 833,
  30363. 'N': 722,
  30364. 'O': 778,
  30365. 'P': 667,
  30366. 'Q': 778,
  30367. 'R': 722,
  30368. 'S': 667,
  30369. 'T': 611,
  30370. 'U': 722,
  30371. 'V': 667,
  30372. 'W': 944,
  30373. 'X': 667,
  30374. 'Y': 667,
  30375. 'Z': 611,
  30376. 'bracketleft': 278,
  30377. 'backslash': 278,
  30378. 'bracketright': 278,
  30379. 'asciicircum': 469,
  30380. 'underscore': 556,
  30381. 'quoteleft': 222,
  30382. 'a': 556,
  30383. 'b': 556,
  30384. 'c': 500,
  30385. 'd': 556,
  30386. 'e': 556,
  30387. 'f': 278,
  30388. 'g': 556,
  30389. 'h': 556,
  30390. 'i': 222,
  30391. 'j': 222,
  30392. 'k': 500,
  30393. 'l': 222,
  30394. 'm': 833,
  30395. 'n': 556,
  30396. 'o': 556,
  30397. 'p': 556,
  30398. 'q': 556,
  30399. 'r': 333,
  30400. 's': 500,
  30401. 't': 278,
  30402. 'u': 556,
  30403. 'v': 500,
  30404. 'w': 722,
  30405. 'x': 500,
  30406. 'y': 500,
  30407. 'z': 500,
  30408. 'braceleft': 334,
  30409. 'bar': 260,
  30410. 'braceright': 334,
  30411. 'asciitilde': 584,
  30412. 'exclamdown': 333,
  30413. 'cent': 556,
  30414. 'sterling': 556,
  30415. 'fraction': 167,
  30416. 'yen': 556,
  30417. 'florin': 556,
  30418. 'section': 556,
  30419. 'currency': 556,
  30420. 'quotesingle': 191,
  30421. 'quotedblleft': 333,
  30422. 'guillemotleft': 556,
  30423. 'guilsinglleft': 333,
  30424. 'guilsinglright': 333,
  30425. 'fi': 500,
  30426. 'fl': 500,
  30427. 'endash': 556,
  30428. 'dagger': 556,
  30429. 'daggerdbl': 556,
  30430. 'periodcentered': 278,
  30431. 'paragraph': 537,
  30432. 'bullet': 350,
  30433. 'quotesinglbase': 222,
  30434. 'quotedblbase': 333,
  30435. 'quotedblright': 333,
  30436. 'guillemotright': 556,
  30437. 'ellipsis': 1000,
  30438. 'perthousand': 1000,
  30439. 'questiondown': 611,
  30440. 'grave': 333,
  30441. 'acute': 333,
  30442. 'circumflex': 333,
  30443. 'tilde': 333,
  30444. 'macron': 333,
  30445. 'breve': 333,
  30446. 'dotaccent': 333,
  30447. 'dieresis': 333,
  30448. 'ring': 333,
  30449. 'cedilla': 333,
  30450. 'hungarumlaut': 333,
  30451. 'ogonek': 333,
  30452. 'caron': 333,
  30453. 'emdash': 1000,
  30454. 'AE': 1000,
  30455. 'ordfeminine': 370,
  30456. 'Lslash': 556,
  30457. 'Oslash': 778,
  30458. 'OE': 1000,
  30459. 'ordmasculine': 365,
  30460. 'ae': 889,
  30461. 'dotlessi': 278,
  30462. 'lslash': 222,
  30463. 'oslash': 611,
  30464. 'oe': 944,
  30465. 'germandbls': 611,
  30466. 'Idieresis': 278,
  30467. 'eacute': 556,
  30468. 'abreve': 556,
  30469. 'uhungarumlaut': 556,
  30470. 'ecaron': 556,
  30471. 'Ydieresis': 667,
  30472. 'divide': 584,
  30473. 'Yacute': 667,
  30474. 'Acircumflex': 667,
  30475. 'aacute': 556,
  30476. 'Ucircumflex': 722,
  30477. 'yacute': 500,
  30478. 'scommaaccent': 500,
  30479. 'ecircumflex': 556,
  30480. 'Uring': 722,
  30481. 'Udieresis': 722,
  30482. 'aogonek': 556,
  30483. 'Uacute': 722,
  30484. 'uogonek': 556,
  30485. 'Edieresis': 667,
  30486. 'Dcroat': 722,
  30487. 'commaaccent': 250,
  30488. 'copyright': 737,
  30489. 'Emacron': 667,
  30490. 'ccaron': 500,
  30491. 'aring': 556,
  30492. 'Ncommaaccent': 722,
  30493. 'lacute': 222,
  30494. 'agrave': 556,
  30495. 'Tcommaaccent': 611,
  30496. 'Cacute': 722,
  30497. 'atilde': 556,
  30498. 'Edotaccent': 667,
  30499. 'scaron': 500,
  30500. 'scedilla': 500,
  30501. 'iacute': 278,
  30502. 'lozenge': 471,
  30503. 'Rcaron': 722,
  30504. 'Gcommaaccent': 778,
  30505. 'ucircumflex': 556,
  30506. 'acircumflex': 556,
  30507. 'Amacron': 667,
  30508. 'rcaron': 333,
  30509. 'ccedilla': 500,
  30510. 'Zdotaccent': 611,
  30511. 'Thorn': 667,
  30512. 'Omacron': 778,
  30513. 'Racute': 722,
  30514. 'Sacute': 667,
  30515. 'dcaron': 643,
  30516. 'Umacron': 722,
  30517. 'uring': 556,
  30518. 'threesuperior': 333,
  30519. 'Ograve': 778,
  30520. 'Agrave': 667,
  30521. 'Abreve': 667,
  30522. 'multiply': 584,
  30523. 'uacute': 556,
  30524. 'Tcaron': 611,
  30525. 'partialdiff': 476,
  30526. 'ydieresis': 500,
  30527. 'Nacute': 722,
  30528. 'icircumflex': 278,
  30529. 'Ecircumflex': 667,
  30530. 'adieresis': 556,
  30531. 'edieresis': 556,
  30532. 'cacute': 500,
  30533. 'nacute': 556,
  30534. 'umacron': 556,
  30535. 'Ncaron': 722,
  30536. 'Iacute': 278,
  30537. 'plusminus': 584,
  30538. 'brokenbar': 260,
  30539. 'registered': 737,
  30540. 'Gbreve': 778,
  30541. 'Idotaccent': 278,
  30542. 'summation': 600,
  30543. 'Egrave': 667,
  30544. 'racute': 333,
  30545. 'omacron': 556,
  30546. 'Zacute': 611,
  30547. 'Zcaron': 611,
  30548. 'greaterequal': 549,
  30549. 'Eth': 722,
  30550. 'Ccedilla': 722,
  30551. 'lcommaaccent': 222,
  30552. 'tcaron': 317,
  30553. 'eogonek': 556,
  30554. 'Uogonek': 722,
  30555. 'Aacute': 667,
  30556. 'Adieresis': 667,
  30557. 'egrave': 556,
  30558. 'zacute': 500,
  30559. 'iogonek': 222,
  30560. 'Oacute': 778,
  30561. 'oacute': 556,
  30562. 'amacron': 556,
  30563. 'sacute': 500,
  30564. 'idieresis': 278,
  30565. 'Ocircumflex': 778,
  30566. 'Ugrave': 722,
  30567. 'Delta': 612,
  30568. 'thorn': 556,
  30569. 'twosuperior': 333,
  30570. 'Odieresis': 778,
  30571. 'mu': 556,
  30572. 'igrave': 278,
  30573. 'ohungarumlaut': 556,
  30574. 'Eogonek': 667,
  30575. 'dcroat': 556,
  30576. 'threequarters': 834,
  30577. 'Scedilla': 667,
  30578. 'lcaron': 299,
  30579. 'Kcommaaccent': 667,
  30580. 'Lacute': 556,
  30581. 'trademark': 1000,
  30582. 'edotaccent': 556,
  30583. 'Igrave': 278,
  30584. 'Imacron': 278,
  30585. 'Lcaron': 556,
  30586. 'onehalf': 834,
  30587. 'lessequal': 549,
  30588. 'ocircumflex': 556,
  30589. 'ntilde': 556,
  30590. 'Uhungarumlaut': 722,
  30591. 'Eacute': 667,
  30592. 'emacron': 556,
  30593. 'gbreve': 556,
  30594. 'onequarter': 834,
  30595. 'Scaron': 667,
  30596. 'Scommaaccent': 667,
  30597. 'Ohungarumlaut': 778,
  30598. 'degree': 400,
  30599. 'ograve': 556,
  30600. 'Ccaron': 722,
  30601. 'ugrave': 556,
  30602. 'radical': 453,
  30603. 'Dcaron': 722,
  30604. 'rcommaaccent': 333,
  30605. 'Ntilde': 722,
  30606. 'otilde': 556,
  30607. 'Rcommaaccent': 722,
  30608. 'Lcommaaccent': 556,
  30609. 'Atilde': 667,
  30610. 'Aogonek': 667,
  30611. 'Aring': 667,
  30612. 'Otilde': 778,
  30613. 'zdotaccent': 500,
  30614. 'Ecaron': 667,
  30615. 'Iogonek': 278,
  30616. 'kcommaaccent': 500,
  30617. 'minus': 584,
  30618. 'Icircumflex': 278,
  30619. 'ncaron': 556,
  30620. 'tcommaaccent': 278,
  30621. 'logicalnot': 584,
  30622. 'odieresis': 556,
  30623. 'udieresis': 556,
  30624. 'notequal': 549,
  30625. 'gcommaaccent': 556,
  30626. 'eth': 556,
  30627. 'zcaron': 500,
  30628. 'ncommaaccent': 556,
  30629. 'onesuperior': 333,
  30630. 'imacron': 278,
  30631. 'Euro': 556
  30632. },
  30633. 'Symbol': {
  30634. 'space': 250,
  30635. 'exclam': 333,
  30636. 'universal': 713,
  30637. 'numbersign': 500,
  30638. 'existential': 549,
  30639. 'percent': 833,
  30640. 'ampersand': 778,
  30641. 'suchthat': 439,
  30642. 'parenleft': 333,
  30643. 'parenright': 333,
  30644. 'asteriskmath': 500,
  30645. 'plus': 549,
  30646. 'comma': 250,
  30647. 'minus': 549,
  30648. 'period': 250,
  30649. 'slash': 278,
  30650. 'zero': 500,
  30651. 'one': 500,
  30652. 'two': 500,
  30653. 'three': 500,
  30654. 'four': 500,
  30655. 'five': 500,
  30656. 'six': 500,
  30657. 'seven': 500,
  30658. 'eight': 500,
  30659. 'nine': 500,
  30660. 'colon': 278,
  30661. 'semicolon': 278,
  30662. 'less': 549,
  30663. 'equal': 549,
  30664. 'greater': 549,
  30665. 'question': 444,
  30666. 'congruent': 549,
  30667. 'Alpha': 722,
  30668. 'Beta': 667,
  30669. 'Chi': 722,
  30670. 'Delta': 612,
  30671. 'Epsilon': 611,
  30672. 'Phi': 763,
  30673. 'Gamma': 603,
  30674. 'Eta': 722,
  30675. 'Iota': 333,
  30676. 'theta1': 631,
  30677. 'Kappa': 722,
  30678. 'Lambda': 686,
  30679. 'Mu': 889,
  30680. 'Nu': 722,
  30681. 'Omicron': 722,
  30682. 'Pi': 768,
  30683. 'Theta': 741,
  30684. 'Rho': 556,
  30685. 'Sigma': 592,
  30686. 'Tau': 611,
  30687. 'Upsilon': 690,
  30688. 'sigma1': 439,
  30689. 'Omega': 768,
  30690. 'Xi': 645,
  30691. 'Psi': 795,
  30692. 'Zeta': 611,
  30693. 'bracketleft': 333,
  30694. 'therefore': 863,
  30695. 'bracketright': 333,
  30696. 'perpendicular': 658,
  30697. 'underscore': 500,
  30698. 'radicalex': 500,
  30699. 'alpha': 631,
  30700. 'beta': 549,
  30701. 'chi': 549,
  30702. 'delta': 494,
  30703. 'epsilon': 439,
  30704. 'phi': 521,
  30705. 'gamma': 411,
  30706. 'eta': 603,
  30707. 'iota': 329,
  30708. 'phi1': 603,
  30709. 'kappa': 549,
  30710. 'lambda': 549,
  30711. 'mu': 576,
  30712. 'nu': 521,
  30713. 'omicron': 549,
  30714. 'pi': 549,
  30715. 'theta': 521,
  30716. 'rho': 549,
  30717. 'sigma': 603,
  30718. 'tau': 439,
  30719. 'upsilon': 576,
  30720. 'omega1': 713,
  30721. 'omega': 686,
  30722. 'xi': 493,
  30723. 'psi': 686,
  30724. 'zeta': 494,
  30725. 'braceleft': 480,
  30726. 'bar': 200,
  30727. 'braceright': 480,
  30728. 'similar': 549,
  30729. 'Euro': 750,
  30730. 'Upsilon1': 620,
  30731. 'minute': 247,
  30732. 'lessequal': 549,
  30733. 'fraction': 167,
  30734. 'infinity': 713,
  30735. 'florin': 500,
  30736. 'club': 753,
  30737. 'diamond': 753,
  30738. 'heart': 753,
  30739. 'spade': 753,
  30740. 'arrowboth': 1042,
  30741. 'arrowleft': 987,
  30742. 'arrowup': 603,
  30743. 'arrowright': 987,
  30744. 'arrowdown': 603,
  30745. 'degree': 400,
  30746. 'plusminus': 549,
  30747. 'second': 411,
  30748. 'greaterequal': 549,
  30749. 'multiply': 549,
  30750. 'proportional': 713,
  30751. 'partialdiff': 494,
  30752. 'bullet': 460,
  30753. 'divide': 549,
  30754. 'notequal': 549,
  30755. 'equivalence': 549,
  30756. 'approxequal': 549,
  30757. 'ellipsis': 1000,
  30758. 'arrowvertex': 603,
  30759. 'arrowhorizex': 1000,
  30760. 'carriagereturn': 658,
  30761. 'aleph': 823,
  30762. 'Ifraktur': 686,
  30763. 'Rfraktur': 795,
  30764. 'weierstrass': 987,
  30765. 'circlemultiply': 768,
  30766. 'circleplus': 768,
  30767. 'emptyset': 823,
  30768. 'intersection': 768,
  30769. 'union': 768,
  30770. 'propersuperset': 713,
  30771. 'reflexsuperset': 713,
  30772. 'notsubset': 713,
  30773. 'propersubset': 713,
  30774. 'reflexsubset': 713,
  30775. 'element': 713,
  30776. 'notelement': 713,
  30777. 'angle': 768,
  30778. 'gradient': 713,
  30779. 'registerserif': 790,
  30780. 'copyrightserif': 790,
  30781. 'trademarkserif': 890,
  30782. 'product': 823,
  30783. 'radical': 549,
  30784. 'dotmath': 250,
  30785. 'logicalnot': 713,
  30786. 'logicaland': 603,
  30787. 'logicalor': 603,
  30788. 'arrowdblboth': 1042,
  30789. 'arrowdblleft': 987,
  30790. 'arrowdblup': 603,
  30791. 'arrowdblright': 987,
  30792. 'arrowdbldown': 603,
  30793. 'lozenge': 494,
  30794. 'angleleft': 329,
  30795. 'registersans': 790,
  30796. 'copyrightsans': 790,
  30797. 'trademarksans': 786,
  30798. 'summation': 713,
  30799. 'parenlefttp': 384,
  30800. 'parenleftex': 384,
  30801. 'parenleftbt': 384,
  30802. 'bracketlefttp': 384,
  30803. 'bracketleftex': 384,
  30804. 'bracketleftbt': 384,
  30805. 'bracelefttp': 494,
  30806. 'braceleftmid': 494,
  30807. 'braceleftbt': 494,
  30808. 'braceex': 494,
  30809. 'angleright': 329,
  30810. 'integral': 274,
  30811. 'integraltp': 686,
  30812. 'integralex': 686,
  30813. 'integralbt': 686,
  30814. 'parenrighttp': 384,
  30815. 'parenrightex': 384,
  30816. 'parenrightbt': 384,
  30817. 'bracketrighttp': 384,
  30818. 'bracketrightex': 384,
  30819. 'bracketrightbt': 384,
  30820. 'bracerighttp': 494,
  30821. 'bracerightmid': 494,
  30822. 'bracerightbt': 494,
  30823. 'apple': 790
  30824. },
  30825. 'Times-Roman': {
  30826. 'space': 250,
  30827. 'exclam': 333,
  30828. 'quotedbl': 408,
  30829. 'numbersign': 500,
  30830. 'dollar': 500,
  30831. 'percent': 833,
  30832. 'ampersand': 778,
  30833. 'quoteright': 333,
  30834. 'parenleft': 333,
  30835. 'parenright': 333,
  30836. 'asterisk': 500,
  30837. 'plus': 564,
  30838. 'comma': 250,
  30839. 'hyphen': 333,
  30840. 'period': 250,
  30841. 'slash': 278,
  30842. 'zero': 500,
  30843. 'one': 500,
  30844. 'two': 500,
  30845. 'three': 500,
  30846. 'four': 500,
  30847. 'five': 500,
  30848. 'six': 500,
  30849. 'seven': 500,
  30850. 'eight': 500,
  30851. 'nine': 500,
  30852. 'colon': 278,
  30853. 'semicolon': 278,
  30854. 'less': 564,
  30855. 'equal': 564,
  30856. 'greater': 564,
  30857. 'question': 444,
  30858. 'at': 921,
  30859. 'A': 722,
  30860. 'B': 667,
  30861. 'C': 667,
  30862. 'D': 722,
  30863. 'E': 611,
  30864. 'F': 556,
  30865. 'G': 722,
  30866. 'H': 722,
  30867. 'I': 333,
  30868. 'J': 389,
  30869. 'K': 722,
  30870. 'L': 611,
  30871. 'M': 889,
  30872. 'N': 722,
  30873. 'O': 722,
  30874. 'P': 556,
  30875. 'Q': 722,
  30876. 'R': 667,
  30877. 'S': 556,
  30878. 'T': 611,
  30879. 'U': 722,
  30880. 'V': 722,
  30881. 'W': 944,
  30882. 'X': 722,
  30883. 'Y': 722,
  30884. 'Z': 611,
  30885. 'bracketleft': 333,
  30886. 'backslash': 278,
  30887. 'bracketright': 333,
  30888. 'asciicircum': 469,
  30889. 'underscore': 500,
  30890. 'quoteleft': 333,
  30891. 'a': 444,
  30892. 'b': 500,
  30893. 'c': 444,
  30894. 'd': 500,
  30895. 'e': 444,
  30896. 'f': 333,
  30897. 'g': 500,
  30898. 'h': 500,
  30899. 'i': 278,
  30900. 'j': 278,
  30901. 'k': 500,
  30902. 'l': 278,
  30903. 'm': 778,
  30904. 'n': 500,
  30905. 'o': 500,
  30906. 'p': 500,
  30907. 'q': 500,
  30908. 'r': 333,
  30909. 's': 389,
  30910. 't': 278,
  30911. 'u': 500,
  30912. 'v': 500,
  30913. 'w': 722,
  30914. 'x': 500,
  30915. 'y': 500,
  30916. 'z': 444,
  30917. 'braceleft': 480,
  30918. 'bar': 200,
  30919. 'braceright': 480,
  30920. 'asciitilde': 541,
  30921. 'exclamdown': 333,
  30922. 'cent': 500,
  30923. 'sterling': 500,
  30924. 'fraction': 167,
  30925. 'yen': 500,
  30926. 'florin': 500,
  30927. 'section': 500,
  30928. 'currency': 500,
  30929. 'quotesingle': 180,
  30930. 'quotedblleft': 444,
  30931. 'guillemotleft': 500,
  30932. 'guilsinglleft': 333,
  30933. 'guilsinglright': 333,
  30934. 'fi': 556,
  30935. 'fl': 556,
  30936. 'endash': 500,
  30937. 'dagger': 500,
  30938. 'daggerdbl': 500,
  30939. 'periodcentered': 250,
  30940. 'paragraph': 453,
  30941. 'bullet': 350,
  30942. 'quotesinglbase': 333,
  30943. 'quotedblbase': 444,
  30944. 'quotedblright': 444,
  30945. 'guillemotright': 500,
  30946. 'ellipsis': 1000,
  30947. 'perthousand': 1000,
  30948. 'questiondown': 444,
  30949. 'grave': 333,
  30950. 'acute': 333,
  30951. 'circumflex': 333,
  30952. 'tilde': 333,
  30953. 'macron': 333,
  30954. 'breve': 333,
  30955. 'dotaccent': 333,
  30956. 'dieresis': 333,
  30957. 'ring': 333,
  30958. 'cedilla': 333,
  30959. 'hungarumlaut': 333,
  30960. 'ogonek': 333,
  30961. 'caron': 333,
  30962. 'emdash': 1000,
  30963. 'AE': 889,
  30964. 'ordfeminine': 276,
  30965. 'Lslash': 611,
  30966. 'Oslash': 722,
  30967. 'OE': 889,
  30968. 'ordmasculine': 310,
  30969. 'ae': 667,
  30970. 'dotlessi': 278,
  30971. 'lslash': 278,
  30972. 'oslash': 500,
  30973. 'oe': 722,
  30974. 'germandbls': 500,
  30975. 'Idieresis': 333,
  30976. 'eacute': 444,
  30977. 'abreve': 444,
  30978. 'uhungarumlaut': 500,
  30979. 'ecaron': 444,
  30980. 'Ydieresis': 722,
  30981. 'divide': 564,
  30982. 'Yacute': 722,
  30983. 'Acircumflex': 722,
  30984. 'aacute': 444,
  30985. 'Ucircumflex': 722,
  30986. 'yacute': 500,
  30987. 'scommaaccent': 389,
  30988. 'ecircumflex': 444,
  30989. 'Uring': 722,
  30990. 'Udieresis': 722,
  30991. 'aogonek': 444,
  30992. 'Uacute': 722,
  30993. 'uogonek': 500,
  30994. 'Edieresis': 611,
  30995. 'Dcroat': 722,
  30996. 'commaaccent': 250,
  30997. 'copyright': 760,
  30998. 'Emacron': 611,
  30999. 'ccaron': 444,
  31000. 'aring': 444,
  31001. 'Ncommaaccent': 722,
  31002. 'lacute': 278,
  31003. 'agrave': 444,
  31004. 'Tcommaaccent': 611,
  31005. 'Cacute': 667,
  31006. 'atilde': 444,
  31007. 'Edotaccent': 611,
  31008. 'scaron': 389,
  31009. 'scedilla': 389,
  31010. 'iacute': 278,
  31011. 'lozenge': 471,
  31012. 'Rcaron': 667,
  31013. 'Gcommaaccent': 722,
  31014. 'ucircumflex': 500,
  31015. 'acircumflex': 444,
  31016. 'Amacron': 722,
  31017. 'rcaron': 333,
  31018. 'ccedilla': 444,
  31019. 'Zdotaccent': 611,
  31020. 'Thorn': 556,
  31021. 'Omacron': 722,
  31022. 'Racute': 667,
  31023. 'Sacute': 556,
  31024. 'dcaron': 588,
  31025. 'Umacron': 722,
  31026. 'uring': 500,
  31027. 'threesuperior': 300,
  31028. 'Ograve': 722,
  31029. 'Agrave': 722,
  31030. 'Abreve': 722,
  31031. 'multiply': 564,
  31032. 'uacute': 500,
  31033. 'Tcaron': 611,
  31034. 'partialdiff': 476,
  31035. 'ydieresis': 500,
  31036. 'Nacute': 722,
  31037. 'icircumflex': 278,
  31038. 'Ecircumflex': 611,
  31039. 'adieresis': 444,
  31040. 'edieresis': 444,
  31041. 'cacute': 444,
  31042. 'nacute': 500,
  31043. 'umacron': 500,
  31044. 'Ncaron': 722,
  31045. 'Iacute': 333,
  31046. 'plusminus': 564,
  31047. 'brokenbar': 200,
  31048. 'registered': 760,
  31049. 'Gbreve': 722,
  31050. 'Idotaccent': 333,
  31051. 'summation': 600,
  31052. 'Egrave': 611,
  31053. 'racute': 333,
  31054. 'omacron': 500,
  31055. 'Zacute': 611,
  31056. 'Zcaron': 611,
  31057. 'greaterequal': 549,
  31058. 'Eth': 722,
  31059. 'Ccedilla': 667,
  31060. 'lcommaaccent': 278,
  31061. 'tcaron': 326,
  31062. 'eogonek': 444,
  31063. 'Uogonek': 722,
  31064. 'Aacute': 722,
  31065. 'Adieresis': 722,
  31066. 'egrave': 444,
  31067. 'zacute': 444,
  31068. 'iogonek': 278,
  31069. 'Oacute': 722,
  31070. 'oacute': 500,
  31071. 'amacron': 444,
  31072. 'sacute': 389,
  31073. 'idieresis': 278,
  31074. 'Ocircumflex': 722,
  31075. 'Ugrave': 722,
  31076. 'Delta': 612,
  31077. 'thorn': 500,
  31078. 'twosuperior': 300,
  31079. 'Odieresis': 722,
  31080. 'mu': 500,
  31081. 'igrave': 278,
  31082. 'ohungarumlaut': 500,
  31083. 'Eogonek': 611,
  31084. 'dcroat': 500,
  31085. 'threequarters': 750,
  31086. 'Scedilla': 556,
  31087. 'lcaron': 344,
  31088. 'Kcommaaccent': 722,
  31089. 'Lacute': 611,
  31090. 'trademark': 980,
  31091. 'edotaccent': 444,
  31092. 'Igrave': 333,
  31093. 'Imacron': 333,
  31094. 'Lcaron': 611,
  31095. 'onehalf': 750,
  31096. 'lessequal': 549,
  31097. 'ocircumflex': 500,
  31098. 'ntilde': 500,
  31099. 'Uhungarumlaut': 722,
  31100. 'Eacute': 611,
  31101. 'emacron': 444,
  31102. 'gbreve': 500,
  31103. 'onequarter': 750,
  31104. 'Scaron': 556,
  31105. 'Scommaaccent': 556,
  31106. 'Ohungarumlaut': 722,
  31107. 'degree': 400,
  31108. 'ograve': 500,
  31109. 'Ccaron': 667,
  31110. 'ugrave': 500,
  31111. 'radical': 453,
  31112. 'Dcaron': 722,
  31113. 'rcommaaccent': 333,
  31114. 'Ntilde': 722,
  31115. 'otilde': 500,
  31116. 'Rcommaaccent': 667,
  31117. 'Lcommaaccent': 611,
  31118. 'Atilde': 722,
  31119. 'Aogonek': 722,
  31120. 'Aring': 722,
  31121. 'Otilde': 722,
  31122. 'zdotaccent': 444,
  31123. 'Ecaron': 611,
  31124. 'Iogonek': 333,
  31125. 'kcommaaccent': 500,
  31126. 'minus': 564,
  31127. 'Icircumflex': 333,
  31128. 'ncaron': 500,
  31129. 'tcommaaccent': 278,
  31130. 'logicalnot': 564,
  31131. 'odieresis': 500,
  31132. 'udieresis': 500,
  31133. 'notequal': 549,
  31134. 'gcommaaccent': 500,
  31135. 'eth': 500,
  31136. 'zcaron': 444,
  31137. 'ncommaaccent': 500,
  31138. 'onesuperior': 300,
  31139. 'imacron': 278,
  31140. 'Euro': 500
  31141. },
  31142. 'Times-Bold': {
  31143. 'space': 250,
  31144. 'exclam': 333,
  31145. 'quotedbl': 555,
  31146. 'numbersign': 500,
  31147. 'dollar': 500,
  31148. 'percent': 1000,
  31149. 'ampersand': 833,
  31150. 'quoteright': 333,
  31151. 'parenleft': 333,
  31152. 'parenright': 333,
  31153. 'asterisk': 500,
  31154. 'plus': 570,
  31155. 'comma': 250,
  31156. 'hyphen': 333,
  31157. 'period': 250,
  31158. 'slash': 278,
  31159. 'zero': 500,
  31160. 'one': 500,
  31161. 'two': 500,
  31162. 'three': 500,
  31163. 'four': 500,
  31164. 'five': 500,
  31165. 'six': 500,
  31166. 'seven': 500,
  31167. 'eight': 500,
  31168. 'nine': 500,
  31169. 'colon': 333,
  31170. 'semicolon': 333,
  31171. 'less': 570,
  31172. 'equal': 570,
  31173. 'greater': 570,
  31174. 'question': 500,
  31175. 'at': 930,
  31176. 'A': 722,
  31177. 'B': 667,
  31178. 'C': 722,
  31179. 'D': 722,
  31180. 'E': 667,
  31181. 'F': 611,
  31182. 'G': 778,
  31183. 'H': 778,
  31184. 'I': 389,
  31185. 'J': 500,
  31186. 'K': 778,
  31187. 'L': 667,
  31188. 'M': 944,
  31189. 'N': 722,
  31190. 'O': 778,
  31191. 'P': 611,
  31192. 'Q': 778,
  31193. 'R': 722,
  31194. 'S': 556,
  31195. 'T': 667,
  31196. 'U': 722,
  31197. 'V': 722,
  31198. 'W': 1000,
  31199. 'X': 722,
  31200. 'Y': 722,
  31201. 'Z': 667,
  31202. 'bracketleft': 333,
  31203. 'backslash': 278,
  31204. 'bracketright': 333,
  31205. 'asciicircum': 581,
  31206. 'underscore': 500,
  31207. 'quoteleft': 333,
  31208. 'a': 500,
  31209. 'b': 556,
  31210. 'c': 444,
  31211. 'd': 556,
  31212. 'e': 444,
  31213. 'f': 333,
  31214. 'g': 500,
  31215. 'h': 556,
  31216. 'i': 278,
  31217. 'j': 333,
  31218. 'k': 556,
  31219. 'l': 278,
  31220. 'm': 833,
  31221. 'n': 556,
  31222. 'o': 500,
  31223. 'p': 556,
  31224. 'q': 556,
  31225. 'r': 444,
  31226. 's': 389,
  31227. 't': 333,
  31228. 'u': 556,
  31229. 'v': 500,
  31230. 'w': 722,
  31231. 'x': 500,
  31232. 'y': 500,
  31233. 'z': 444,
  31234. 'braceleft': 394,
  31235. 'bar': 220,
  31236. 'braceright': 394,
  31237. 'asciitilde': 520,
  31238. 'exclamdown': 333,
  31239. 'cent': 500,
  31240. 'sterling': 500,
  31241. 'fraction': 167,
  31242. 'yen': 500,
  31243. 'florin': 500,
  31244. 'section': 500,
  31245. 'currency': 500,
  31246. 'quotesingle': 278,
  31247. 'quotedblleft': 500,
  31248. 'guillemotleft': 500,
  31249. 'guilsinglleft': 333,
  31250. 'guilsinglright': 333,
  31251. 'fi': 556,
  31252. 'fl': 556,
  31253. 'endash': 500,
  31254. 'dagger': 500,
  31255. 'daggerdbl': 500,
  31256. 'periodcentered': 250,
  31257. 'paragraph': 540,
  31258. 'bullet': 350,
  31259. 'quotesinglbase': 333,
  31260. 'quotedblbase': 500,
  31261. 'quotedblright': 500,
  31262. 'guillemotright': 500,
  31263. 'ellipsis': 1000,
  31264. 'perthousand': 1000,
  31265. 'questiondown': 500,
  31266. 'grave': 333,
  31267. 'acute': 333,
  31268. 'circumflex': 333,
  31269. 'tilde': 333,
  31270. 'macron': 333,
  31271. 'breve': 333,
  31272. 'dotaccent': 333,
  31273. 'dieresis': 333,
  31274. 'ring': 333,
  31275. 'cedilla': 333,
  31276. 'hungarumlaut': 333,
  31277. 'ogonek': 333,
  31278. 'caron': 333,
  31279. 'emdash': 1000,
  31280. 'AE': 1000,
  31281. 'ordfeminine': 300,
  31282. 'Lslash': 667,
  31283. 'Oslash': 778,
  31284. 'OE': 1000,
  31285. 'ordmasculine': 330,
  31286. 'ae': 722,
  31287. 'dotlessi': 278,
  31288. 'lslash': 278,
  31289. 'oslash': 500,
  31290. 'oe': 722,
  31291. 'germandbls': 556,
  31292. 'Idieresis': 389,
  31293. 'eacute': 444,
  31294. 'abreve': 500,
  31295. 'uhungarumlaut': 556,
  31296. 'ecaron': 444,
  31297. 'Ydieresis': 722,
  31298. 'divide': 570,
  31299. 'Yacute': 722,
  31300. 'Acircumflex': 722,
  31301. 'aacute': 500,
  31302. 'Ucircumflex': 722,
  31303. 'yacute': 500,
  31304. 'scommaaccent': 389,
  31305. 'ecircumflex': 444,
  31306. 'Uring': 722,
  31307. 'Udieresis': 722,
  31308. 'aogonek': 500,
  31309. 'Uacute': 722,
  31310. 'uogonek': 556,
  31311. 'Edieresis': 667,
  31312. 'Dcroat': 722,
  31313. 'commaaccent': 250,
  31314. 'copyright': 747,
  31315. 'Emacron': 667,
  31316. 'ccaron': 444,
  31317. 'aring': 500,
  31318. 'Ncommaaccent': 722,
  31319. 'lacute': 278,
  31320. 'agrave': 500,
  31321. 'Tcommaaccent': 667,
  31322. 'Cacute': 722,
  31323. 'atilde': 500,
  31324. 'Edotaccent': 667,
  31325. 'scaron': 389,
  31326. 'scedilla': 389,
  31327. 'iacute': 278,
  31328. 'lozenge': 494,
  31329. 'Rcaron': 722,
  31330. 'Gcommaaccent': 778,
  31331. 'ucircumflex': 556,
  31332. 'acircumflex': 500,
  31333. 'Amacron': 722,
  31334. 'rcaron': 444,
  31335. 'ccedilla': 444,
  31336. 'Zdotaccent': 667,
  31337. 'Thorn': 611,
  31338. 'Omacron': 778,
  31339. 'Racute': 722,
  31340. 'Sacute': 556,
  31341. 'dcaron': 672,
  31342. 'Umacron': 722,
  31343. 'uring': 556,
  31344. 'threesuperior': 300,
  31345. 'Ograve': 778,
  31346. 'Agrave': 722,
  31347. 'Abreve': 722,
  31348. 'multiply': 570,
  31349. 'uacute': 556,
  31350. 'Tcaron': 667,
  31351. 'partialdiff': 494,
  31352. 'ydieresis': 500,
  31353. 'Nacute': 722,
  31354. 'icircumflex': 278,
  31355. 'Ecircumflex': 667,
  31356. 'adieresis': 500,
  31357. 'edieresis': 444,
  31358. 'cacute': 444,
  31359. 'nacute': 556,
  31360. 'umacron': 556,
  31361. 'Ncaron': 722,
  31362. 'Iacute': 389,
  31363. 'plusminus': 570,
  31364. 'brokenbar': 220,
  31365. 'registered': 747,
  31366. 'Gbreve': 778,
  31367. 'Idotaccent': 389,
  31368. 'summation': 600,
  31369. 'Egrave': 667,
  31370. 'racute': 444,
  31371. 'omacron': 500,
  31372. 'Zacute': 667,
  31373. 'Zcaron': 667,
  31374. 'greaterequal': 549,
  31375. 'Eth': 722,
  31376. 'Ccedilla': 722,
  31377. 'lcommaaccent': 278,
  31378. 'tcaron': 416,
  31379. 'eogonek': 444,
  31380. 'Uogonek': 722,
  31381. 'Aacute': 722,
  31382. 'Adieresis': 722,
  31383. 'egrave': 444,
  31384. 'zacute': 444,
  31385. 'iogonek': 278,
  31386. 'Oacute': 778,
  31387. 'oacute': 500,
  31388. 'amacron': 500,
  31389. 'sacute': 389,
  31390. 'idieresis': 278,
  31391. 'Ocircumflex': 778,
  31392. 'Ugrave': 722,
  31393. 'Delta': 612,
  31394. 'thorn': 556,
  31395. 'twosuperior': 300,
  31396. 'Odieresis': 778,
  31397. 'mu': 556,
  31398. 'igrave': 278,
  31399. 'ohungarumlaut': 500,
  31400. 'Eogonek': 667,
  31401. 'dcroat': 556,
  31402. 'threequarters': 750,
  31403. 'Scedilla': 556,
  31404. 'lcaron': 394,
  31405. 'Kcommaaccent': 778,
  31406. 'Lacute': 667,
  31407. 'trademark': 1000,
  31408. 'edotaccent': 444,
  31409. 'Igrave': 389,
  31410. 'Imacron': 389,
  31411. 'Lcaron': 667,
  31412. 'onehalf': 750,
  31413. 'lessequal': 549,
  31414. 'ocircumflex': 500,
  31415. 'ntilde': 556,
  31416. 'Uhungarumlaut': 722,
  31417. 'Eacute': 667,
  31418. 'emacron': 444,
  31419. 'gbreve': 500,
  31420. 'onequarter': 750,
  31421. 'Scaron': 556,
  31422. 'Scommaaccent': 556,
  31423. 'Ohungarumlaut': 778,
  31424. 'degree': 400,
  31425. 'ograve': 500,
  31426. 'Ccaron': 722,
  31427. 'ugrave': 556,
  31428. 'radical': 549,
  31429. 'Dcaron': 722,
  31430. 'rcommaaccent': 444,
  31431. 'Ntilde': 722,
  31432. 'otilde': 500,
  31433. 'Rcommaaccent': 722,
  31434. 'Lcommaaccent': 667,
  31435. 'Atilde': 722,
  31436. 'Aogonek': 722,
  31437. 'Aring': 722,
  31438. 'Otilde': 778,
  31439. 'zdotaccent': 444,
  31440. 'Ecaron': 667,
  31441. 'Iogonek': 389,
  31442. 'kcommaaccent': 556,
  31443. 'minus': 570,
  31444. 'Icircumflex': 389,
  31445. 'ncaron': 556,
  31446. 'tcommaaccent': 333,
  31447. 'logicalnot': 570,
  31448. 'odieresis': 500,
  31449. 'udieresis': 556,
  31450. 'notequal': 549,
  31451. 'gcommaaccent': 500,
  31452. 'eth': 500,
  31453. 'zcaron': 444,
  31454. 'ncommaaccent': 556,
  31455. 'onesuperior': 300,
  31456. 'imacron': 278,
  31457. 'Euro': 500
  31458. },
  31459. 'Times-BoldItalic': {
  31460. 'space': 250,
  31461. 'exclam': 389,
  31462. 'quotedbl': 555,
  31463. 'numbersign': 500,
  31464. 'dollar': 500,
  31465. 'percent': 833,
  31466. 'ampersand': 778,
  31467. 'quoteright': 333,
  31468. 'parenleft': 333,
  31469. 'parenright': 333,
  31470. 'asterisk': 500,
  31471. 'plus': 570,
  31472. 'comma': 250,
  31473. 'hyphen': 333,
  31474. 'period': 250,
  31475. 'slash': 278,
  31476. 'zero': 500,
  31477. 'one': 500,
  31478. 'two': 500,
  31479. 'three': 500,
  31480. 'four': 500,
  31481. 'five': 500,
  31482. 'six': 500,
  31483. 'seven': 500,
  31484. 'eight': 500,
  31485. 'nine': 500,
  31486. 'colon': 333,
  31487. 'semicolon': 333,
  31488. 'less': 570,
  31489. 'equal': 570,
  31490. 'greater': 570,
  31491. 'question': 500,
  31492. 'at': 832,
  31493. 'A': 667,
  31494. 'B': 667,
  31495. 'C': 667,
  31496. 'D': 722,
  31497. 'E': 667,
  31498. 'F': 667,
  31499. 'G': 722,
  31500. 'H': 778,
  31501. 'I': 389,
  31502. 'J': 500,
  31503. 'K': 667,
  31504. 'L': 611,
  31505. 'M': 889,
  31506. 'N': 722,
  31507. 'O': 722,
  31508. 'P': 611,
  31509. 'Q': 722,
  31510. 'R': 667,
  31511. 'S': 556,
  31512. 'T': 611,
  31513. 'U': 722,
  31514. 'V': 667,
  31515. 'W': 889,
  31516. 'X': 667,
  31517. 'Y': 611,
  31518. 'Z': 611,
  31519. 'bracketleft': 333,
  31520. 'backslash': 278,
  31521. 'bracketright': 333,
  31522. 'asciicircum': 570,
  31523. 'underscore': 500,
  31524. 'quoteleft': 333,
  31525. 'a': 500,
  31526. 'b': 500,
  31527. 'c': 444,
  31528. 'd': 500,
  31529. 'e': 444,
  31530. 'f': 333,
  31531. 'g': 500,
  31532. 'h': 556,
  31533. 'i': 278,
  31534. 'j': 278,
  31535. 'k': 500,
  31536. 'l': 278,
  31537. 'm': 778,
  31538. 'n': 556,
  31539. 'o': 500,
  31540. 'p': 500,
  31541. 'q': 500,
  31542. 'r': 389,
  31543. 's': 389,
  31544. 't': 278,
  31545. 'u': 556,
  31546. 'v': 444,
  31547. 'w': 667,
  31548. 'x': 500,
  31549. 'y': 444,
  31550. 'z': 389,
  31551. 'braceleft': 348,
  31552. 'bar': 220,
  31553. 'braceright': 348,
  31554. 'asciitilde': 570,
  31555. 'exclamdown': 389,
  31556. 'cent': 500,
  31557. 'sterling': 500,
  31558. 'fraction': 167,
  31559. 'yen': 500,
  31560. 'florin': 500,
  31561. 'section': 500,
  31562. 'currency': 500,
  31563. 'quotesingle': 278,
  31564. 'quotedblleft': 500,
  31565. 'guillemotleft': 500,
  31566. 'guilsinglleft': 333,
  31567. 'guilsinglright': 333,
  31568. 'fi': 556,
  31569. 'fl': 556,
  31570. 'endash': 500,
  31571. 'dagger': 500,
  31572. 'daggerdbl': 500,
  31573. 'periodcentered': 250,
  31574. 'paragraph': 500,
  31575. 'bullet': 350,
  31576. 'quotesinglbase': 333,
  31577. 'quotedblbase': 500,
  31578. 'quotedblright': 500,
  31579. 'guillemotright': 500,
  31580. 'ellipsis': 1000,
  31581. 'perthousand': 1000,
  31582. 'questiondown': 500,
  31583. 'grave': 333,
  31584. 'acute': 333,
  31585. 'circumflex': 333,
  31586. 'tilde': 333,
  31587. 'macron': 333,
  31588. 'breve': 333,
  31589. 'dotaccent': 333,
  31590. 'dieresis': 333,
  31591. 'ring': 333,
  31592. 'cedilla': 333,
  31593. 'hungarumlaut': 333,
  31594. 'ogonek': 333,
  31595. 'caron': 333,
  31596. 'emdash': 1000,
  31597. 'AE': 944,
  31598. 'ordfeminine': 266,
  31599. 'Lslash': 611,
  31600. 'Oslash': 722,
  31601. 'OE': 944,
  31602. 'ordmasculine': 300,
  31603. 'ae': 722,
  31604. 'dotlessi': 278,
  31605. 'lslash': 278,
  31606. 'oslash': 500,
  31607. 'oe': 722,
  31608. 'germandbls': 500,
  31609. 'Idieresis': 389,
  31610. 'eacute': 444,
  31611. 'abreve': 500,
  31612. 'uhungarumlaut': 556,
  31613. 'ecaron': 444,
  31614. 'Ydieresis': 611,
  31615. 'divide': 570,
  31616. 'Yacute': 611,
  31617. 'Acircumflex': 667,
  31618. 'aacute': 500,
  31619. 'Ucircumflex': 722,
  31620. 'yacute': 444,
  31621. 'scommaaccent': 389,
  31622. 'ecircumflex': 444,
  31623. 'Uring': 722,
  31624. 'Udieresis': 722,
  31625. 'aogonek': 500,
  31626. 'Uacute': 722,
  31627. 'uogonek': 556,
  31628. 'Edieresis': 667,
  31629. 'Dcroat': 722,
  31630. 'commaaccent': 250,
  31631. 'copyright': 747,
  31632. 'Emacron': 667,
  31633. 'ccaron': 444,
  31634. 'aring': 500,
  31635. 'Ncommaaccent': 722,
  31636. 'lacute': 278,
  31637. 'agrave': 500,
  31638. 'Tcommaaccent': 611,
  31639. 'Cacute': 667,
  31640. 'atilde': 500,
  31641. 'Edotaccent': 667,
  31642. 'scaron': 389,
  31643. 'scedilla': 389,
  31644. 'iacute': 278,
  31645. 'lozenge': 494,
  31646. 'Rcaron': 667,
  31647. 'Gcommaaccent': 722,
  31648. 'ucircumflex': 556,
  31649. 'acircumflex': 500,
  31650. 'Amacron': 667,
  31651. 'rcaron': 389,
  31652. 'ccedilla': 444,
  31653. 'Zdotaccent': 611,
  31654. 'Thorn': 611,
  31655. 'Omacron': 722,
  31656. 'Racute': 667,
  31657. 'Sacute': 556,
  31658. 'dcaron': 608,
  31659. 'Umacron': 722,
  31660. 'uring': 556,
  31661. 'threesuperior': 300,
  31662. 'Ograve': 722,
  31663. 'Agrave': 667,
  31664. 'Abreve': 667,
  31665. 'multiply': 570,
  31666. 'uacute': 556,
  31667. 'Tcaron': 611,
  31668. 'partialdiff': 494,
  31669. 'ydieresis': 444,
  31670. 'Nacute': 722,
  31671. 'icircumflex': 278,
  31672. 'Ecircumflex': 667,
  31673. 'adieresis': 500,
  31674. 'edieresis': 444,
  31675. 'cacute': 444,
  31676. 'nacute': 556,
  31677. 'umacron': 556,
  31678. 'Ncaron': 722,
  31679. 'Iacute': 389,
  31680. 'plusminus': 570,
  31681. 'brokenbar': 220,
  31682. 'registered': 747,
  31683. 'Gbreve': 722,
  31684. 'Idotaccent': 389,
  31685. 'summation': 600,
  31686. 'Egrave': 667,
  31687. 'racute': 389,
  31688. 'omacron': 500,
  31689. 'Zacute': 611,
  31690. 'Zcaron': 611,
  31691. 'greaterequal': 549,
  31692. 'Eth': 722,
  31693. 'Ccedilla': 667,
  31694. 'lcommaaccent': 278,
  31695. 'tcaron': 366,
  31696. 'eogonek': 444,
  31697. 'Uogonek': 722,
  31698. 'Aacute': 667,
  31699. 'Adieresis': 667,
  31700. 'egrave': 444,
  31701. 'zacute': 389,
  31702. 'iogonek': 278,
  31703. 'Oacute': 722,
  31704. 'oacute': 500,
  31705. 'amacron': 500,
  31706. 'sacute': 389,
  31707. 'idieresis': 278,
  31708. 'Ocircumflex': 722,
  31709. 'Ugrave': 722,
  31710. 'Delta': 612,
  31711. 'thorn': 500,
  31712. 'twosuperior': 300,
  31713. 'Odieresis': 722,
  31714. 'mu': 576,
  31715. 'igrave': 278,
  31716. 'ohungarumlaut': 500,
  31717. 'Eogonek': 667,
  31718. 'dcroat': 500,
  31719. 'threequarters': 750,
  31720. 'Scedilla': 556,
  31721. 'lcaron': 382,
  31722. 'Kcommaaccent': 667,
  31723. 'Lacute': 611,
  31724. 'trademark': 1000,
  31725. 'edotaccent': 444,
  31726. 'Igrave': 389,
  31727. 'Imacron': 389,
  31728. 'Lcaron': 611,
  31729. 'onehalf': 750,
  31730. 'lessequal': 549,
  31731. 'ocircumflex': 500,
  31732. 'ntilde': 556,
  31733. 'Uhungarumlaut': 722,
  31734. 'Eacute': 667,
  31735. 'emacron': 444,
  31736. 'gbreve': 500,
  31737. 'onequarter': 750,
  31738. 'Scaron': 556,
  31739. 'Scommaaccent': 556,
  31740. 'Ohungarumlaut': 722,
  31741. 'degree': 400,
  31742. 'ograve': 500,
  31743. 'Ccaron': 667,
  31744. 'ugrave': 556,
  31745. 'radical': 549,
  31746. 'Dcaron': 722,
  31747. 'rcommaaccent': 389,
  31748. 'Ntilde': 722,
  31749. 'otilde': 500,
  31750. 'Rcommaaccent': 667,
  31751. 'Lcommaaccent': 611,
  31752. 'Atilde': 667,
  31753. 'Aogonek': 667,
  31754. 'Aring': 667,
  31755. 'Otilde': 722,
  31756. 'zdotaccent': 389,
  31757. 'Ecaron': 667,
  31758. 'Iogonek': 389,
  31759. 'kcommaaccent': 500,
  31760. 'minus': 606,
  31761. 'Icircumflex': 389,
  31762. 'ncaron': 556,
  31763. 'tcommaaccent': 278,
  31764. 'logicalnot': 606,
  31765. 'odieresis': 500,
  31766. 'udieresis': 556,
  31767. 'notequal': 549,
  31768. 'gcommaaccent': 500,
  31769. 'eth': 500,
  31770. 'zcaron': 389,
  31771. 'ncommaaccent': 556,
  31772. 'onesuperior': 300,
  31773. 'imacron': 278,
  31774. 'Euro': 500
  31775. },
  31776. 'Times-Italic': {
  31777. 'space': 250,
  31778. 'exclam': 333,
  31779. 'quotedbl': 420,
  31780. 'numbersign': 500,
  31781. 'dollar': 500,
  31782. 'percent': 833,
  31783. 'ampersand': 778,
  31784. 'quoteright': 333,
  31785. 'parenleft': 333,
  31786. 'parenright': 333,
  31787. 'asterisk': 500,
  31788. 'plus': 675,
  31789. 'comma': 250,
  31790. 'hyphen': 333,
  31791. 'period': 250,
  31792. 'slash': 278,
  31793. 'zero': 500,
  31794. 'one': 500,
  31795. 'two': 500,
  31796. 'three': 500,
  31797. 'four': 500,
  31798. 'five': 500,
  31799. 'six': 500,
  31800. 'seven': 500,
  31801. 'eight': 500,
  31802. 'nine': 500,
  31803. 'colon': 333,
  31804. 'semicolon': 333,
  31805. 'less': 675,
  31806. 'equal': 675,
  31807. 'greater': 675,
  31808. 'question': 500,
  31809. 'at': 920,
  31810. 'A': 611,
  31811. 'B': 611,
  31812. 'C': 667,
  31813. 'D': 722,
  31814. 'E': 611,
  31815. 'F': 611,
  31816. 'G': 722,
  31817. 'H': 722,
  31818. 'I': 333,
  31819. 'J': 444,
  31820. 'K': 667,
  31821. 'L': 556,
  31822. 'M': 833,
  31823. 'N': 667,
  31824. 'O': 722,
  31825. 'P': 611,
  31826. 'Q': 722,
  31827. 'R': 611,
  31828. 'S': 500,
  31829. 'T': 556,
  31830. 'U': 722,
  31831. 'V': 611,
  31832. 'W': 833,
  31833. 'X': 611,
  31834. 'Y': 556,
  31835. 'Z': 556,
  31836. 'bracketleft': 389,
  31837. 'backslash': 278,
  31838. 'bracketright': 389,
  31839. 'asciicircum': 422,
  31840. 'underscore': 500,
  31841. 'quoteleft': 333,
  31842. 'a': 500,
  31843. 'b': 500,
  31844. 'c': 444,
  31845. 'd': 500,
  31846. 'e': 444,
  31847. 'f': 278,
  31848. 'g': 500,
  31849. 'h': 500,
  31850. 'i': 278,
  31851. 'j': 278,
  31852. 'k': 444,
  31853. 'l': 278,
  31854. 'm': 722,
  31855. 'n': 500,
  31856. 'o': 500,
  31857. 'p': 500,
  31858. 'q': 500,
  31859. 'r': 389,
  31860. 's': 389,
  31861. 't': 278,
  31862. 'u': 500,
  31863. 'v': 444,
  31864. 'w': 667,
  31865. 'x': 444,
  31866. 'y': 444,
  31867. 'z': 389,
  31868. 'braceleft': 400,
  31869. 'bar': 275,
  31870. 'braceright': 400,
  31871. 'asciitilde': 541,
  31872. 'exclamdown': 389,
  31873. 'cent': 500,
  31874. 'sterling': 500,
  31875. 'fraction': 167,
  31876. 'yen': 500,
  31877. 'florin': 500,
  31878. 'section': 500,
  31879. 'currency': 500,
  31880. 'quotesingle': 214,
  31881. 'quotedblleft': 556,
  31882. 'guillemotleft': 500,
  31883. 'guilsinglleft': 333,
  31884. 'guilsinglright': 333,
  31885. 'fi': 500,
  31886. 'fl': 500,
  31887. 'endash': 500,
  31888. 'dagger': 500,
  31889. 'daggerdbl': 500,
  31890. 'periodcentered': 250,
  31891. 'paragraph': 523,
  31892. 'bullet': 350,
  31893. 'quotesinglbase': 333,
  31894. 'quotedblbase': 556,
  31895. 'quotedblright': 556,
  31896. 'guillemotright': 500,
  31897. 'ellipsis': 889,
  31898. 'perthousand': 1000,
  31899. 'questiondown': 500,
  31900. 'grave': 333,
  31901. 'acute': 333,
  31902. 'circumflex': 333,
  31903. 'tilde': 333,
  31904. 'macron': 333,
  31905. 'breve': 333,
  31906. 'dotaccent': 333,
  31907. 'dieresis': 333,
  31908. 'ring': 333,
  31909. 'cedilla': 333,
  31910. 'hungarumlaut': 333,
  31911. 'ogonek': 333,
  31912. 'caron': 333,
  31913. 'emdash': 889,
  31914. 'AE': 889,
  31915. 'ordfeminine': 276,
  31916. 'Lslash': 556,
  31917. 'Oslash': 722,
  31918. 'OE': 944,
  31919. 'ordmasculine': 310,
  31920. 'ae': 667,
  31921. 'dotlessi': 278,
  31922. 'lslash': 278,
  31923. 'oslash': 500,
  31924. 'oe': 667,
  31925. 'germandbls': 500,
  31926. 'Idieresis': 333,
  31927. 'eacute': 444,
  31928. 'abreve': 500,
  31929. 'uhungarumlaut': 500,
  31930. 'ecaron': 444,
  31931. 'Ydieresis': 556,
  31932. 'divide': 675,
  31933. 'Yacute': 556,
  31934. 'Acircumflex': 611,
  31935. 'aacute': 500,
  31936. 'Ucircumflex': 722,
  31937. 'yacute': 444,
  31938. 'scommaaccent': 389,
  31939. 'ecircumflex': 444,
  31940. 'Uring': 722,
  31941. 'Udieresis': 722,
  31942. 'aogonek': 500,
  31943. 'Uacute': 722,
  31944. 'uogonek': 500,
  31945. 'Edieresis': 611,
  31946. 'Dcroat': 722,
  31947. 'commaaccent': 250,
  31948. 'copyright': 760,
  31949. 'Emacron': 611,
  31950. 'ccaron': 444,
  31951. 'aring': 500,
  31952. 'Ncommaaccent': 667,
  31953. 'lacute': 278,
  31954. 'agrave': 500,
  31955. 'Tcommaaccent': 556,
  31956. 'Cacute': 667,
  31957. 'atilde': 500,
  31958. 'Edotaccent': 611,
  31959. 'scaron': 389,
  31960. 'scedilla': 389,
  31961. 'iacute': 278,
  31962. 'lozenge': 471,
  31963. 'Rcaron': 611,
  31964. 'Gcommaaccent': 722,
  31965. 'ucircumflex': 500,
  31966. 'acircumflex': 500,
  31967. 'Amacron': 611,
  31968. 'rcaron': 389,
  31969. 'ccedilla': 444,
  31970. 'Zdotaccent': 556,
  31971. 'Thorn': 611,
  31972. 'Omacron': 722,
  31973. 'Racute': 611,
  31974. 'Sacute': 500,
  31975. 'dcaron': 544,
  31976. 'Umacron': 722,
  31977. 'uring': 500,
  31978. 'threesuperior': 300,
  31979. 'Ograve': 722,
  31980. 'Agrave': 611,
  31981. 'Abreve': 611,
  31982. 'multiply': 675,
  31983. 'uacute': 500,
  31984. 'Tcaron': 556,
  31985. 'partialdiff': 476,
  31986. 'ydieresis': 444,
  31987. 'Nacute': 667,
  31988. 'icircumflex': 278,
  31989. 'Ecircumflex': 611,
  31990. 'adieresis': 500,
  31991. 'edieresis': 444,
  31992. 'cacute': 444,
  31993. 'nacute': 500,
  31994. 'umacron': 500,
  31995. 'Ncaron': 667,
  31996. 'Iacute': 333,
  31997. 'plusminus': 675,
  31998. 'brokenbar': 275,
  31999. 'registered': 760,
  32000. 'Gbreve': 722,
  32001. 'Idotaccent': 333,
  32002. 'summation': 600,
  32003. 'Egrave': 611,
  32004. 'racute': 389,
  32005. 'omacron': 500,
  32006. 'Zacute': 556,
  32007. 'Zcaron': 556,
  32008. 'greaterequal': 549,
  32009. 'Eth': 722,
  32010. 'Ccedilla': 667,
  32011. 'lcommaaccent': 278,
  32012. 'tcaron': 300,
  32013. 'eogonek': 444,
  32014. 'Uogonek': 722,
  32015. 'Aacute': 611,
  32016. 'Adieresis': 611,
  32017. 'egrave': 444,
  32018. 'zacute': 389,
  32019. 'iogonek': 278,
  32020. 'Oacute': 722,
  32021. 'oacute': 500,
  32022. 'amacron': 500,
  32023. 'sacute': 389,
  32024. 'idieresis': 278,
  32025. 'Ocircumflex': 722,
  32026. 'Ugrave': 722,
  32027. 'Delta': 612,
  32028. 'thorn': 500,
  32029. 'twosuperior': 300,
  32030. 'Odieresis': 722,
  32031. 'mu': 500,
  32032. 'igrave': 278,
  32033. 'ohungarumlaut': 500,
  32034. 'Eogonek': 611,
  32035. 'dcroat': 500,
  32036. 'threequarters': 750,
  32037. 'Scedilla': 500,
  32038. 'lcaron': 300,
  32039. 'Kcommaaccent': 667,
  32040. 'Lacute': 556,
  32041. 'trademark': 980,
  32042. 'edotaccent': 444,
  32043. 'Igrave': 333,
  32044. 'Imacron': 333,
  32045. 'Lcaron': 611,
  32046. 'onehalf': 750,
  32047. 'lessequal': 549,
  32048. 'ocircumflex': 500,
  32049. 'ntilde': 500,
  32050. 'Uhungarumlaut': 722,
  32051. 'Eacute': 611,
  32052. 'emacron': 444,
  32053. 'gbreve': 500,
  32054. 'onequarter': 750,
  32055. 'Scaron': 500,
  32056. 'Scommaaccent': 500,
  32057. 'Ohungarumlaut': 722,
  32058. 'degree': 400,
  32059. 'ograve': 500,
  32060. 'Ccaron': 667,
  32061. 'ugrave': 500,
  32062. 'radical': 453,
  32063. 'Dcaron': 722,
  32064. 'rcommaaccent': 389,
  32065. 'Ntilde': 667,
  32066. 'otilde': 500,
  32067. 'Rcommaaccent': 611,
  32068. 'Lcommaaccent': 556,
  32069. 'Atilde': 611,
  32070. 'Aogonek': 611,
  32071. 'Aring': 611,
  32072. 'Otilde': 722,
  32073. 'zdotaccent': 389,
  32074. 'Ecaron': 611,
  32075. 'Iogonek': 333,
  32076. 'kcommaaccent': 444,
  32077. 'minus': 675,
  32078. 'Icircumflex': 333,
  32079. 'ncaron': 500,
  32080. 'tcommaaccent': 278,
  32081. 'logicalnot': 675,
  32082. 'odieresis': 500,
  32083. 'udieresis': 500,
  32084. 'notequal': 549,
  32085. 'gcommaaccent': 500,
  32086. 'eth': 500,
  32087. 'zcaron': 389,
  32088. 'ncommaaccent': 500,
  32089. 'onesuperior': 300,
  32090. 'imacron': 278,
  32091. 'Euro': 500
  32092. },
  32093. 'ZapfDingbats': {
  32094. 'space': 278,
  32095. 'a1': 974,
  32096. 'a2': 961,
  32097. 'a202': 974,
  32098. 'a3': 980,
  32099. 'a4': 719,
  32100. 'a5': 789,
  32101. 'a119': 790,
  32102. 'a118': 791,
  32103. 'a117': 690,
  32104. 'a11': 960,
  32105. 'a12': 939,
  32106. 'a13': 549,
  32107. 'a14': 855,
  32108. 'a15': 911,
  32109. 'a16': 933,
  32110. 'a105': 911,
  32111. 'a17': 945,
  32112. 'a18': 974,
  32113. 'a19': 755,
  32114. 'a20': 846,
  32115. 'a21': 762,
  32116. 'a22': 761,
  32117. 'a23': 571,
  32118. 'a24': 677,
  32119. 'a25': 763,
  32120. 'a26': 760,
  32121. 'a27': 759,
  32122. 'a28': 754,
  32123. 'a6': 494,
  32124. 'a7': 552,
  32125. 'a8': 537,
  32126. 'a9': 577,
  32127. 'a10': 692,
  32128. 'a29': 786,
  32129. 'a30': 788,
  32130. 'a31': 788,
  32131. 'a32': 790,
  32132. 'a33': 793,
  32133. 'a34': 794,
  32134. 'a35': 816,
  32135. 'a36': 823,
  32136. 'a37': 789,
  32137. 'a38': 841,
  32138. 'a39': 823,
  32139. 'a40': 833,
  32140. 'a41': 816,
  32141. 'a42': 831,
  32142. 'a43': 923,
  32143. 'a44': 744,
  32144. 'a45': 723,
  32145. 'a46': 749,
  32146. 'a47': 790,
  32147. 'a48': 792,
  32148. 'a49': 695,
  32149. 'a50': 776,
  32150. 'a51': 768,
  32151. 'a52': 792,
  32152. 'a53': 759,
  32153. 'a54': 707,
  32154. 'a55': 708,
  32155. 'a56': 682,
  32156. 'a57': 701,
  32157. 'a58': 826,
  32158. 'a59': 815,
  32159. 'a60': 789,
  32160. 'a61': 789,
  32161. 'a62': 707,
  32162. 'a63': 687,
  32163. 'a64': 696,
  32164. 'a65': 689,
  32165. 'a66': 786,
  32166. 'a67': 787,
  32167. 'a68': 713,
  32168. 'a69': 791,
  32169. 'a70': 785,
  32170. 'a71': 791,
  32171. 'a72': 873,
  32172. 'a73': 761,
  32173. 'a74': 762,
  32174. 'a203': 762,
  32175. 'a75': 759,
  32176. 'a204': 759,
  32177. 'a76': 892,
  32178. 'a77': 892,
  32179. 'a78': 788,
  32180. 'a79': 784,
  32181. 'a81': 438,
  32182. 'a82': 138,
  32183. 'a83': 277,
  32184. 'a84': 415,
  32185. 'a97': 392,
  32186. 'a98': 392,
  32187. 'a99': 668,
  32188. 'a100': 668,
  32189. 'a89': 390,
  32190. 'a90': 390,
  32191. 'a93': 317,
  32192. 'a94': 317,
  32193. 'a91': 276,
  32194. 'a92': 276,
  32195. 'a205': 509,
  32196. 'a85': 509,
  32197. 'a206': 410,
  32198. 'a86': 410,
  32199. 'a87': 234,
  32200. 'a88': 234,
  32201. 'a95': 334,
  32202. 'a96': 334,
  32203. 'a101': 732,
  32204. 'a102': 544,
  32205. 'a103': 544,
  32206. 'a104': 910,
  32207. 'a106': 667,
  32208. 'a107': 760,
  32209. 'a108': 760,
  32210. 'a112': 776,
  32211. 'a111': 595,
  32212. 'a110': 694,
  32213. 'a109': 626,
  32214. 'a120': 788,
  32215. 'a121': 788,
  32216. 'a122': 788,
  32217. 'a123': 788,
  32218. 'a124': 788,
  32219. 'a125': 788,
  32220. 'a126': 788,
  32221. 'a127': 788,
  32222. 'a128': 788,
  32223. 'a129': 788,
  32224. 'a130': 788,
  32225. 'a131': 788,
  32226. 'a132': 788,
  32227. 'a133': 788,
  32228. 'a134': 788,
  32229. 'a135': 788,
  32230. 'a136': 788,
  32231. 'a137': 788,
  32232. 'a138': 788,
  32233. 'a139': 788,
  32234. 'a140': 788,
  32235. 'a141': 788,
  32236. 'a142': 788,
  32237. 'a143': 788,
  32238. 'a144': 788,
  32239. 'a145': 788,
  32240. 'a146': 788,
  32241. 'a147': 788,
  32242. 'a148': 788,
  32243. 'a149': 788,
  32244. 'a150': 788,
  32245. 'a151': 788,
  32246. 'a152': 788,
  32247. 'a153': 788,
  32248. 'a154': 788,
  32249. 'a155': 788,
  32250. 'a156': 788,
  32251. 'a157': 788,
  32252. 'a158': 788,
  32253. 'a159': 788,
  32254. 'a160': 894,
  32255. 'a161': 838,
  32256. 'a163': 1016,
  32257. 'a164': 458,
  32258. 'a196': 748,
  32259. 'a165': 924,
  32260. 'a192': 748,
  32261. 'a166': 918,
  32262. 'a167': 927,
  32263. 'a168': 928,
  32264. 'a169': 928,
  32265. 'a170': 834,
  32266. 'a171': 873,
  32267. 'a172': 828,
  32268. 'a173': 924,
  32269. 'a162': 924,
  32270. 'a174': 917,
  32271. 'a175': 930,
  32272. 'a176': 931,
  32273. 'a177': 463,
  32274. 'a178': 883,
  32275. 'a179': 836,
  32276. 'a193': 836,
  32277. 'a180': 867,
  32278. 'a199': 867,
  32279. 'a181': 696,
  32280. 'a200': 696,
  32281. 'a182': 874,
  32282. 'a201': 874,
  32283. 'a183': 760,
  32284. 'a184': 946,
  32285. 'a197': 771,
  32286. 'a185': 865,
  32287. 'a194': 771,
  32288. 'a198': 888,
  32289. 'a186': 967,
  32290. 'a195': 888,
  32291. 'a187': 831,
  32292. 'a188': 873,
  32293. 'a189': 927,
  32294. 'a190': 970,
  32295. 'a191': 918
  32296. }
  32297. };
  32298. var EOF = {};
  32299. function isEOF(v) {
  32300. return (v == EOF);
  32301. }
  32302. var Parser = (function ParserClosure() {
  32303. function Parser(lexer, allowStreams, xref) {
  32304. this.lexer = lexer;
  32305. this.allowStreams = allowStreams;
  32306. this.xref = xref;
  32307. this.imageCache = {
  32308. length: 0,
  32309. adler32: 0,
  32310. stream: null
  32311. };
  32312. this.refill();
  32313. }
  32314. Parser.prototype = {
  32315. refill: function Parser_refill() {
  32316. this.buf1 = this.lexer.getObj();
  32317. this.buf2 = this.lexer.getObj();
  32318. },
  32319. shift: function Parser_shift() {
  32320. if (isCmd(this.buf2, 'ID')) {
  32321. this.buf1 = this.buf2;
  32322. this.buf2 = null;
  32323. } else {
  32324. this.buf1 = this.buf2;
  32325. this.buf2 = this.lexer.getObj();
  32326. }
  32327. },
  32328. getObj: function Parser_getObj(cipherTransform) {
  32329. if (isCmd(this.buf1, 'BI')) { // inline image
  32330. this.shift();
  32331. return this.makeInlineImage(cipherTransform);
  32332. }
  32333. if (isCmd(this.buf1, '[')) { // array
  32334. this.shift();
  32335. var array = [];
  32336. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  32337. array.push(this.getObj(cipherTransform));
  32338. }
  32339. if (isEOF(this.buf1)) {
  32340. error('End of file inside array');
  32341. }
  32342. this.shift();
  32343. return array;
  32344. }
  32345. if (isCmd(this.buf1, '<<')) { // dictionary or stream
  32346. this.shift();
  32347. var dict = new Dict(this.xref);
  32348. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  32349. if (!isName(this.buf1)) {
  32350. info('Malformed dictionary: key must be a name object');
  32351. this.shift();
  32352. continue;
  32353. }
  32354. var key = this.buf1.name;
  32355. this.shift();
  32356. if (isEOF(this.buf1)) {
  32357. break;
  32358. }
  32359. dict.set(key, this.getObj(cipherTransform));
  32360. }
  32361. if (isEOF(this.buf1)) {
  32362. error('End of file inside dictionary');
  32363. }
  32364. // Stream objects are not allowed inside content streams or
  32365. // object streams.
  32366. if (isCmd(this.buf2, 'stream')) {
  32367. return (this.allowStreams ?
  32368. this.makeStream(dict, cipherTransform) : dict);
  32369. }
  32370. this.shift();
  32371. return dict;
  32372. }
  32373. if (isInt(this.buf1)) { // indirect reference or integer
  32374. var num = this.buf1;
  32375. this.shift();
  32376. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  32377. var ref = new Ref(num, this.buf1);
  32378. this.shift();
  32379. this.shift();
  32380. return ref;
  32381. }
  32382. return num;
  32383. }
  32384. if (isString(this.buf1)) { // string
  32385. var str = this.buf1;
  32386. this.shift();
  32387. if (cipherTransform) {
  32388. str = cipherTransform.decryptString(str);
  32389. }
  32390. return str;
  32391. }
  32392. // simple object
  32393. var obj = this.buf1;
  32394. this.shift();
  32395. return obj;
  32396. },
  32397. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  32398. var lexer = this.lexer;
  32399. var stream = lexer.stream;
  32400. // parse dictionary
  32401. var dict = new Dict(null);
  32402. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  32403. if (!isName(this.buf1)) {
  32404. error('Dictionary key must be a name object');
  32405. }
  32406. var key = this.buf1.name;
  32407. this.shift();
  32408. if (isEOF(this.buf1)) {
  32409. break;
  32410. }
  32411. dict.set(key, this.getObj(cipherTransform));
  32412. }
  32413. // parse image stream
  32414. var startPos = stream.pos;
  32415. // searching for the /EI\s/
  32416. var state = 0, ch, i, ii;
  32417. while (state != 4 && (ch = stream.getByte()) !== -1) {
  32418. switch (ch | 0) {
  32419. case 0x20:
  32420. case 0x0D:
  32421. case 0x0A:
  32422. // let's check next five bytes to be ASCII... just be sure
  32423. var followingBytes = stream.peekBytes(5);
  32424. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  32425. ch = followingBytes[i];
  32426. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  32427. // not a LF, CR, SPACE or any visible ASCII character
  32428. state = 0;
  32429. break; // some binary stuff found, resetting the state
  32430. }
  32431. }
  32432. state = (state === 3 ? 4 : 0);
  32433. break;
  32434. case 0x45:
  32435. state = 2;
  32436. break;
  32437. case 0x49:
  32438. state = (state === 2 ? 3 : 0);
  32439. break;
  32440. default:
  32441. state = 0;
  32442. break;
  32443. }
  32444. }
  32445. var length = (stream.pos - 4) - startPos;
  32446. var imageStream = stream.makeSubStream(startPos, length, dict);
  32447. // trying to cache repeat images, first we are trying to "warm up" caching
  32448. // using length, then comparing adler32
  32449. var MAX_LENGTH_TO_CACHE = 1000;
  32450. var cacheImage = false, adler32;
  32451. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  32452. var imageBytes = imageStream.getBytes();
  32453. imageStream.reset();
  32454. var a = 1;
  32455. var b = 0;
  32456. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  32457. a = (a + (imageBytes[i] & 0xff)) % 65521;
  32458. b = (b + a) % 65521;
  32459. }
  32460. adler32 = (b << 16) | a;
  32461. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  32462. this.buf2 = Cmd.get('EI');
  32463. this.shift();
  32464. this.imageCache.stream.reset();
  32465. return this.imageCache.stream;
  32466. }
  32467. cacheImage = true;
  32468. }
  32469. if (!cacheImage && !this.imageCache.stream) {
  32470. this.imageCache.length = length;
  32471. this.imageCache.stream = null;
  32472. }
  32473. if (cipherTransform) {
  32474. imageStream = cipherTransform.createStream(imageStream, length);
  32475. }
  32476. imageStream = this.filter(imageStream, dict, length);
  32477. imageStream.dict = dict;
  32478. if (cacheImage) {
  32479. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  32480. this.imageCache.adler32 = adler32;
  32481. this.imageCache.stream = imageStream;
  32482. }
  32483. this.buf2 = Cmd.get('EI');
  32484. this.shift();
  32485. return imageStream;
  32486. },
  32487. fetchIfRef: function Parser_fetchIfRef(obj) {
  32488. // not relying on the xref.fetchIfRef -- xref might not be set
  32489. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  32490. },
  32491. makeStream: function Parser_makeStream(dict, cipherTransform) {
  32492. var lexer = this.lexer;
  32493. var stream = lexer.stream;
  32494. // get stream start position
  32495. lexer.skipToNextLine();
  32496. var pos = stream.pos - 1;
  32497. // get length
  32498. var length = this.fetchIfRef(dict.get('Length'));
  32499. if (!isInt(length)) {
  32500. info('Bad ' + length + ' attribute in stream');
  32501. length = 0;
  32502. }
  32503. // skip over the stream data
  32504. stream.pos = pos + length;
  32505. lexer.nextChar();
  32506. this.shift(); // '>>'
  32507. this.shift(); // 'stream'
  32508. if (!isCmd(this.buf1, 'endstream')) {
  32509. // bad stream length, scanning for endstream
  32510. stream.pos = pos;
  32511. var SCAN_BLOCK_SIZE = 2048;
  32512. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  32513. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  32514. 0x61, 0x6D];
  32515. var skipped = 0, found = false, i, j;
  32516. while (stream.pos < stream.end) {
  32517. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  32518. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  32519. found = false;
  32520. for (i = 0, j = 0; i < scanLength; i++) {
  32521. var b = scanBytes[i];
  32522. if (b !== ENDSTREAM_SIGNATURE[j]) {
  32523. i -= j;
  32524. j = 0;
  32525. } else {
  32526. j++;
  32527. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  32528. i++;
  32529. found = true;
  32530. break;
  32531. }
  32532. }
  32533. }
  32534. if (found) {
  32535. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  32536. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  32537. break;
  32538. }
  32539. skipped += scanLength;
  32540. stream.pos += scanLength;
  32541. }
  32542. if (!found) {
  32543. error('Missing endstream');
  32544. }
  32545. length = skipped;
  32546. lexer.nextChar();
  32547. this.shift();
  32548. this.shift();
  32549. }
  32550. this.shift(); // 'endstream'
  32551. stream = stream.makeSubStream(pos, length, dict);
  32552. if (cipherTransform) {
  32553. stream = cipherTransform.createStream(stream, length);
  32554. }
  32555. stream = this.filter(stream, dict, length);
  32556. stream.dict = dict;
  32557. return stream;
  32558. },
  32559. filter: function Parser_filter(stream, dict, length) {
  32560. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  32561. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  32562. if (isName(filter)) {
  32563. return this.makeFilter(stream, filter.name, length, params);
  32564. }
  32565. var maybeLength = length;
  32566. if (isArray(filter)) {
  32567. var filterArray = filter;
  32568. var paramsArray = params;
  32569. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  32570. filter = filterArray[i];
  32571. if (!isName(filter)) {
  32572. error('Bad filter name: ' + filter);
  32573. }
  32574. params = null;
  32575. if (isArray(paramsArray) && (i in paramsArray)) {
  32576. params = paramsArray[i];
  32577. }
  32578. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  32579. // after the first stream the length variable is invalid
  32580. maybeLength = null;
  32581. }
  32582. }
  32583. return stream;
  32584. },
  32585. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  32586. if (stream.dict.get('Length') === 0) {
  32587. return new NullStream(stream);
  32588. }
  32589. if (name == 'FlateDecode' || name == 'Fl') {
  32590. if (params) {
  32591. return new PredictorStream(new FlateStream(stream, maybeLength),
  32592. maybeLength, params);
  32593. }
  32594. return new FlateStream(stream, maybeLength);
  32595. }
  32596. if (name == 'LZWDecode' || name == 'LZW') {
  32597. var earlyChange = 1;
  32598. if (params) {
  32599. if (params.has('EarlyChange')) {
  32600. earlyChange = params.get('EarlyChange');
  32601. }
  32602. return new PredictorStream(
  32603. new LZWStream(stream, maybeLength, earlyChange),
  32604. maybeLength, params);
  32605. }
  32606. return new LZWStream(stream, maybeLength, earlyChange);
  32607. }
  32608. if (name == 'DCTDecode' || name == 'DCT') {
  32609. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  32610. }
  32611. if (name == 'JPXDecode' || name == 'JPX') {
  32612. return new JpxStream(stream, maybeLength, stream.dict);
  32613. }
  32614. if (name == 'ASCII85Decode' || name == 'A85') {
  32615. return new Ascii85Stream(stream, maybeLength);
  32616. }
  32617. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  32618. return new AsciiHexStream(stream, maybeLength);
  32619. }
  32620. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  32621. return new CCITTFaxStream(stream, maybeLength, params);
  32622. }
  32623. if (name == 'RunLengthDecode' || name == 'RL') {
  32624. return new RunLengthStream(stream, maybeLength);
  32625. }
  32626. if (name == 'JBIG2Decode') {
  32627. return new Jbig2Stream(stream, maybeLength, stream.dict);
  32628. }
  32629. warn('filter "' + name + '" not supported yet');
  32630. return stream;
  32631. }
  32632. };
  32633. return Parser;
  32634. })();
  32635. var Lexer = (function LexerClosure() {
  32636. function Lexer(stream, knownCommands) {
  32637. this.stream = stream;
  32638. this.nextChar();
  32639. // While lexing, we build up many strings one char at a time. Using += for
  32640. // this can result in lots of garbage strings. It's better to build an
  32641. // array of single-char strings and then join() them together at the end.
  32642. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  32643. // purpose uses less memory than using a new array for each string.
  32644. this.strBuf = [];
  32645. // The PDFs might have "glued" commands with other commands, operands or
  32646. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  32647. // commands and their prefixes. The prefixes are built the following way:
  32648. // if there a command that is a prefix of the other valid command or
  32649. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  32650. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  32651. // other commands or literals as a prefix. The knowCommands is optional.
  32652. this.knownCommands = knownCommands;
  32653. }
  32654. Lexer.isSpace = function Lexer_isSpace(ch) {
  32655. // Space is one of the following characters: SPACE, TAB, CR or LF.
  32656. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  32657. };
  32658. // A '1' in this array means the character is white space. A '1' or
  32659. // '2' means the character ends a name or command.
  32660. var specialChars = [
  32661. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  32662. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  32663. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  32664. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  32665. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  32666. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  32667. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  32668. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  32669. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  32670. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  32671. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  32672. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  32673. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  32674. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  32675. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  32676. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  32677. ];
  32678. function toHexDigit(ch) {
  32679. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  32680. return ch & 0x0F;
  32681. }
  32682. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  32683. // 'A'-'F', 'a'-'f'
  32684. return (ch & 0x0F) + 9;
  32685. }
  32686. return -1;
  32687. }
  32688. Lexer.prototype = {
  32689. nextChar: function Lexer_nextChar() {
  32690. return (this.currentChar = this.stream.getByte());
  32691. },
  32692. peekChar: function Lexer_peekChar() {
  32693. return this.stream.peekBytes(1)[0];
  32694. },
  32695. getNumber: function Lexer_getNumber() {
  32696. var ch = this.currentChar;
  32697. var eNotation = false;
  32698. var divideBy = 0; // different from 0 if it's a floating point value
  32699. var sign = 1;
  32700. if (ch === 0x2D) { // '-'
  32701. sign = -1;
  32702. ch = this.nextChar();
  32703. } else if (ch === 0x2B) { // '+'
  32704. ch = this.nextChar();
  32705. }
  32706. if (ch === 0x2E) { // '.'
  32707. divideBy = 10;
  32708. ch = this.nextChar();
  32709. }
  32710. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32711. error('Invalid number: ' + String.fromCharCode(ch));
  32712. return 0;
  32713. }
  32714. var baseValue = ch - 0x30; // '0'
  32715. var powerValue = 0;
  32716. var powerValueSign = 1;
  32717. while ((ch = this.nextChar()) >= 0) {
  32718. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  32719. var currentDigit = ch - 0x30; // '0'
  32720. if (eNotation) { // We are after an 'e' or 'E'
  32721. powerValue = powerValue * 10 + currentDigit;
  32722. } else {
  32723. if (divideBy !== 0) { // We are after a point
  32724. divideBy *= 10;
  32725. }
  32726. baseValue = baseValue * 10 + currentDigit;
  32727. }
  32728. } else if (ch === 0x2E) { // '.'
  32729. if (divideBy === 0) {
  32730. divideBy = 1;
  32731. } else {
  32732. // A number can have only one '.'
  32733. break;
  32734. }
  32735. } else if (ch === 0x2D) { // '-'
  32736. // ignore minus signs in the middle of numbers to match
  32737. // Adobe's behavior
  32738. warn('Badly formated number');
  32739. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  32740. // 'E' can be either a scientific notation or the beginning of a new
  32741. // operator
  32742. ch = this.peekChar();
  32743. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  32744. powerValueSign = (ch === 0x2D) ? -1 : 1;
  32745. this.nextChar(); // Consume the sign character
  32746. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32747. // The 'E' must be the beginning of a new operator
  32748. break;
  32749. }
  32750. eNotation = true;
  32751. } else {
  32752. // the last character doesn't belong to us
  32753. break;
  32754. }
  32755. }
  32756. if (divideBy !== 0) {
  32757. baseValue /= divideBy;
  32758. }
  32759. if (eNotation) {
  32760. baseValue *= Math.pow(10, powerValueSign * powerValue);
  32761. }
  32762. return sign * baseValue;
  32763. },
  32764. getString: function Lexer_getString() {
  32765. var numParen = 1;
  32766. var done = false;
  32767. var strBuf = this.strBuf;
  32768. strBuf.length = 0;
  32769. var ch = this.nextChar();
  32770. while (true) {
  32771. var charBuffered = false;
  32772. switch (ch | 0) {
  32773. case -1:
  32774. warn('Unterminated string');
  32775. done = true;
  32776. break;
  32777. case 0x28: // '('
  32778. ++numParen;
  32779. strBuf.push('(');
  32780. break;
  32781. case 0x29: // ')'
  32782. if (--numParen === 0) {
  32783. this.nextChar(); // consume strings ')'
  32784. done = true;
  32785. } else {
  32786. strBuf.push(')');
  32787. }
  32788. break;
  32789. case 0x5C: // '\\'
  32790. ch = this.nextChar();
  32791. switch (ch) {
  32792. case -1:
  32793. warn('Unterminated string');
  32794. done = true;
  32795. break;
  32796. case 0x6E: // 'n'
  32797. strBuf.push('\n');
  32798. break;
  32799. case 0x72: // 'r'
  32800. strBuf.push('\r');
  32801. break;
  32802. case 0x74: // 't'
  32803. strBuf.push('\t');
  32804. break;
  32805. case 0x62: // 'b'
  32806. strBuf.push('\b');
  32807. break;
  32808. case 0x66: // 'f'
  32809. strBuf.push('\f');
  32810. break;
  32811. case 0x5C: // '\'
  32812. case 0x28: // '('
  32813. case 0x29: // ')'
  32814. strBuf.push(String.fromCharCode(ch));
  32815. break;
  32816. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  32817. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  32818. var x = ch & 0x0F;
  32819. ch = this.nextChar();
  32820. charBuffered = true;
  32821. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32822. x = (x << 3) + (ch & 0x0F);
  32823. ch = this.nextChar();
  32824. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32825. charBuffered = false;
  32826. x = (x << 3) + (ch & 0x0F);
  32827. }
  32828. }
  32829. strBuf.push(String.fromCharCode(x));
  32830. break;
  32831. case 0x0D: // CR
  32832. if (this.peekChar() === 0x0A) { // LF
  32833. this.nextChar();
  32834. }
  32835. break;
  32836. case 0x0A: // LF
  32837. break;
  32838. default:
  32839. strBuf.push(String.fromCharCode(ch));
  32840. break;
  32841. }
  32842. break;
  32843. default:
  32844. strBuf.push(String.fromCharCode(ch));
  32845. break;
  32846. }
  32847. if (done) {
  32848. break;
  32849. }
  32850. if (!charBuffered) {
  32851. ch = this.nextChar();
  32852. }
  32853. }
  32854. return strBuf.join('');
  32855. },
  32856. getName: function Lexer_getName() {
  32857. var ch;
  32858. var strBuf = this.strBuf;
  32859. strBuf.length = 0;
  32860. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  32861. if (ch === 0x23) { // '#'
  32862. ch = this.nextChar();
  32863. var x = toHexDigit(ch);
  32864. if (x != -1) {
  32865. var x2 = toHexDigit(this.nextChar());
  32866. if (x2 == -1) {
  32867. error('Illegal digit in hex char in name: ' + x2);
  32868. }
  32869. strBuf.push(String.fromCharCode((x << 4) | x2));
  32870. } else {
  32871. strBuf.push('#', String.fromCharCode(ch));
  32872. }
  32873. } else {
  32874. strBuf.push(String.fromCharCode(ch));
  32875. }
  32876. }
  32877. if (strBuf.length > 128) {
  32878. error('Warning: name token is longer than allowed by the spec: ' +
  32879. strBuf.length);
  32880. }
  32881. return Name.get(strBuf.join(''));
  32882. },
  32883. getHexString: function Lexer_getHexString() {
  32884. var strBuf = this.strBuf;
  32885. strBuf.length = 0;
  32886. var ch = this.currentChar;
  32887. var isFirstHex = true;
  32888. var firstDigit;
  32889. var secondDigit;
  32890. while (true) {
  32891. if (ch < 0) {
  32892. warn('Unterminated hex string');
  32893. break;
  32894. } else if (ch === 0x3E) { // '>'
  32895. this.nextChar();
  32896. break;
  32897. } else if (specialChars[ch] === 1) {
  32898. ch = this.nextChar();
  32899. continue;
  32900. } else {
  32901. if (isFirstHex) {
  32902. firstDigit = toHexDigit(ch);
  32903. if (firstDigit === -1) {
  32904. warn('Ignoring invalid character "' + ch + '" in hex string');
  32905. ch = this.nextChar();
  32906. continue;
  32907. }
  32908. } else {
  32909. secondDigit = toHexDigit(ch);
  32910. if (secondDigit === -1) {
  32911. warn('Ignoring invalid character "' + ch + '" in hex string');
  32912. ch = this.nextChar();
  32913. continue;
  32914. }
  32915. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  32916. }
  32917. isFirstHex = !isFirstHex;
  32918. ch = this.nextChar();
  32919. }
  32920. }
  32921. return strBuf.join('');
  32922. },
  32923. getObj: function Lexer_getObj() {
  32924. // skip whitespace and comments
  32925. var comment = false;
  32926. var ch = this.currentChar;
  32927. while (true) {
  32928. if (ch < 0) {
  32929. return EOF;
  32930. }
  32931. if (comment) {
  32932. if (ch === 0x0A || ch == 0x0D) { // LF, CR
  32933. comment = false;
  32934. }
  32935. } else if (ch === 0x25) { // '%'
  32936. comment = true;
  32937. } else if (specialChars[ch] !== 1) {
  32938. break;
  32939. }
  32940. ch = this.nextChar();
  32941. }
  32942. // start reading token
  32943. switch (ch | 0) {
  32944. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  32945. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  32946. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  32947. return this.getNumber();
  32948. case 0x28: // '('
  32949. return this.getString();
  32950. case 0x2F: // '/'
  32951. return this.getName();
  32952. // array punctuation
  32953. case 0x5B: // '['
  32954. this.nextChar();
  32955. return Cmd.get('[');
  32956. case 0x5D: // ']'
  32957. this.nextChar();
  32958. return Cmd.get(']');
  32959. // hex string or dict punctuation
  32960. case 0x3C: // '<'
  32961. ch = this.nextChar();
  32962. if (ch === 0x3C) {
  32963. // dict punctuation
  32964. this.nextChar();
  32965. return Cmd.get('<<');
  32966. }
  32967. return this.getHexString();
  32968. // dict punctuation
  32969. case 0x3E: // '>'
  32970. ch = this.nextChar();
  32971. if (ch === 0x3E) {
  32972. this.nextChar();
  32973. return Cmd.get('>>');
  32974. }
  32975. return Cmd.get('>');
  32976. case 0x7B: // '{'
  32977. this.nextChar();
  32978. return Cmd.get('{');
  32979. case 0x7D: // '}'
  32980. this.nextChar();
  32981. return Cmd.get('}');
  32982. case 0x29: // ')'
  32983. error('Illegal character: ' + ch);
  32984. break;
  32985. }
  32986. // command
  32987. var str = String.fromCharCode(ch);
  32988. var knownCommands = this.knownCommands;
  32989. var knownCommandFound = knownCommands && (str in knownCommands);
  32990. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  32991. // stop if known command is found and next character does not make
  32992. // the str a command
  32993. var possibleCommand = str + String.fromCharCode(ch);
  32994. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  32995. break;
  32996. }
  32997. if (str.length == 128) {
  32998. error('Command token too long: ' + str.length);
  32999. }
  33000. str = possibleCommand;
  33001. knownCommandFound = knownCommands && (str in knownCommands);
  33002. }
  33003. if (str == 'true') {
  33004. return true;
  33005. }
  33006. if (str == 'false') {
  33007. return false;
  33008. }
  33009. if (str == 'null') {
  33010. return null;
  33011. }
  33012. return Cmd.get(str);
  33013. },
  33014. skipToNextLine: function Lexer_skipToNextLine() {
  33015. var ch = this.currentChar;
  33016. while (ch >= 0) {
  33017. if (ch === 0x0D) { // CR
  33018. ch = this.nextChar();
  33019. if (ch === 0x0A) { // LF
  33020. this.nextChar();
  33021. }
  33022. break;
  33023. } else if (ch === 0x0A) { // LF
  33024. this.nextChar();
  33025. break;
  33026. }
  33027. ch = this.nextChar();
  33028. }
  33029. }
  33030. };
  33031. return Lexer;
  33032. })();
  33033. var Linearization = (function LinearizationClosure() {
  33034. function Linearization(stream) {
  33035. this.parser = new Parser(new Lexer(stream), false, null);
  33036. var obj1 = this.parser.getObj();
  33037. var obj2 = this.parser.getObj();
  33038. var obj3 = this.parser.getObj();
  33039. this.linDict = this.parser.getObj();
  33040. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  33041. isDict(this.linDict)) {
  33042. var obj = this.linDict.get('Linearized');
  33043. if (!(isNum(obj) && obj > 0)) {
  33044. this.linDict = null;
  33045. }
  33046. }
  33047. }
  33048. Linearization.prototype = {
  33049. getInt: function Linearization_getInt(name) {
  33050. var linDict = this.linDict;
  33051. var obj;
  33052. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  33053. return obj;
  33054. }
  33055. error('"' + name + '" field in linearization table is invalid');
  33056. },
  33057. getHint: function Linearization_getHint(index) {
  33058. var linDict = this.linDict;
  33059. var obj1, obj2;
  33060. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  33061. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  33062. return obj2;
  33063. }
  33064. error('Hints table in linearization table is invalid: ' + index);
  33065. },
  33066. get length() {
  33067. if (!isDict(this.linDict)) {
  33068. return 0;
  33069. }
  33070. return this.getInt('L');
  33071. },
  33072. get hintsOffset() {
  33073. return this.getHint(0);
  33074. },
  33075. get hintsLength() {
  33076. return this.getHint(1);
  33077. },
  33078. get hintsOffset2() {
  33079. return this.getHint(2);
  33080. },
  33081. get hintsLenth2() {
  33082. return this.getHint(3);
  33083. },
  33084. get objectNumberFirst() {
  33085. return this.getInt('O');
  33086. },
  33087. get endFirst() {
  33088. return this.getInt('E');
  33089. },
  33090. get numPages() {
  33091. return this.getInt('N');
  33092. },
  33093. get mainXRefEntriesOffset() {
  33094. return this.getInt('T');
  33095. },
  33096. get pageFirst() {
  33097. return this.getInt('P');
  33098. }
  33099. };
  33100. return Linearization;
  33101. })();
  33102. var PostScriptParser = (function PostScriptParserClosure() {
  33103. function PostScriptParser(lexer) {
  33104. this.lexer = lexer;
  33105. this.operators = [];
  33106. this.token = null;
  33107. this.prev = null;
  33108. }
  33109. PostScriptParser.prototype = {
  33110. nextToken: function PostScriptParser_nextToken() {
  33111. this.prev = this.token;
  33112. this.token = this.lexer.getToken();
  33113. },
  33114. accept: function PostScriptParser_accept(type) {
  33115. if (this.token.type == type) {
  33116. this.nextToken();
  33117. return true;
  33118. }
  33119. return false;
  33120. },
  33121. expect: function PostScriptParser_expect(type) {
  33122. if (this.accept(type)) {
  33123. return true;
  33124. }
  33125. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  33126. type + '.');
  33127. },
  33128. parse: function PostScriptParser_parse() {
  33129. this.nextToken();
  33130. this.expect(PostScriptTokenTypes.LBRACE);
  33131. this.parseBlock();
  33132. this.expect(PostScriptTokenTypes.RBRACE);
  33133. return this.operators;
  33134. },
  33135. parseBlock: function PostScriptParser_parseBlock() {
  33136. while (true) {
  33137. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  33138. this.operators.push(this.prev.value);
  33139. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  33140. this.operators.push(this.prev.value);
  33141. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33142. this.parseCondition();
  33143. } else {
  33144. return;
  33145. }
  33146. }
  33147. },
  33148. parseCondition: function PostScriptParser_parseCondition() {
  33149. // Add two place holders that will be updated later
  33150. var conditionLocation = this.operators.length;
  33151. this.operators.push(null, null);
  33152. this.parseBlock();
  33153. this.expect(PostScriptTokenTypes.RBRACE);
  33154. if (this.accept(PostScriptTokenTypes.IF)) {
  33155. // The true block is right after the 'if' so it just falls through on
  33156. // true else it jumps and skips the true block.
  33157. this.operators[conditionLocation] = this.operators.length;
  33158. this.operators[conditionLocation + 1] = 'jz';
  33159. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33160. var jumpLocation = this.operators.length;
  33161. this.operators.push(null, null);
  33162. var endOfTrue = this.operators.length;
  33163. this.parseBlock();
  33164. this.expect(PostScriptTokenTypes.RBRACE);
  33165. this.expect(PostScriptTokenTypes.IFELSE);
  33166. // The jump is added at the end of the true block to skip the false
  33167. // block.
  33168. this.operators[jumpLocation] = this.operators.length;
  33169. this.operators[jumpLocation + 1] = 'j';
  33170. this.operators[conditionLocation] = endOfTrue;
  33171. this.operators[conditionLocation + 1] = 'jz';
  33172. } else {
  33173. error('PS Function: error parsing conditional.');
  33174. }
  33175. }
  33176. };
  33177. return PostScriptParser;
  33178. })();
  33179. var PostScriptTokenTypes = {
  33180. LBRACE: 0,
  33181. RBRACE: 1,
  33182. NUMBER: 2,
  33183. OPERATOR: 3,
  33184. IF: 4,
  33185. IFELSE: 5
  33186. };
  33187. var PostScriptToken = (function PostScriptTokenClosure() {
  33188. function PostScriptToken(type, value) {
  33189. this.type = type;
  33190. this.value = value;
  33191. }
  33192. var opCache = {};
  33193. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  33194. var opValue = opCache[op];
  33195. if (opValue) {
  33196. return opValue;
  33197. }
  33198. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  33199. };
  33200. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  33201. '{');
  33202. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  33203. '}');
  33204. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  33205. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  33206. 'IFELSE');
  33207. return PostScriptToken;
  33208. })();
  33209. var PostScriptLexer = (function PostScriptLexerClosure() {
  33210. function PostScriptLexer(stream) {
  33211. this.stream = stream;
  33212. this.nextChar();
  33213. }
  33214. PostScriptLexer.prototype = {
  33215. nextChar: function PostScriptLexer_nextChar() {
  33216. return (this.currentChar = this.stream.getByte());
  33217. },
  33218. getToken: function PostScriptLexer_getToken() {
  33219. var comment = false;
  33220. var ch = this.currentChar;
  33221. // skip comments
  33222. while (true) {
  33223. if (ch < 0) {
  33224. return EOF;
  33225. }
  33226. if (comment) {
  33227. if (ch === 0x0A || ch === 0x0D) {
  33228. comment = false;
  33229. }
  33230. } else if (ch == 0x25) { // '%'
  33231. comment = true;
  33232. } else if (!Lexer.isSpace(ch)) {
  33233. break;
  33234. }
  33235. ch = this.nextChar();
  33236. }
  33237. switch (ch | 0) {
  33238. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33239. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33240. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33241. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  33242. this.getNumber());
  33243. case 0x7B: // '{'
  33244. this.nextChar();
  33245. return PostScriptToken.LBRACE;
  33246. case 0x7D: // '}'
  33247. this.nextChar();
  33248. return PostScriptToken.RBRACE;
  33249. }
  33250. // operator
  33251. var str = String.fromCharCode(ch);
  33252. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  33253. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  33254. str += String.fromCharCode(ch);
  33255. }
  33256. switch (str.toLowerCase()) {
  33257. case 'if':
  33258. return PostScriptToken.IF;
  33259. case 'ifelse':
  33260. return PostScriptToken.IFELSE;
  33261. default:
  33262. return PostScriptToken.getOperator(str);
  33263. }
  33264. },
  33265. getNumber: function PostScriptLexer_getNumber() {
  33266. var ch = this.currentChar;
  33267. var str = String.fromCharCode(ch);
  33268. while ((ch = this.nextChar()) >= 0) {
  33269. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  33270. ch === 0x2D || ch === 0x2E) { // '-', '.'
  33271. str += String.fromCharCode(ch);
  33272. } else {
  33273. break;
  33274. }
  33275. }
  33276. var value = parseFloat(str);
  33277. if (isNaN(value)) {
  33278. error('Invalid floating point number: ' + value);
  33279. }
  33280. return value;
  33281. }
  33282. };
  33283. return PostScriptLexer;
  33284. })();
  33285. var Stream = (function StreamClosure() {
  33286. function Stream(arrayBuffer, start, length, dict) {
  33287. this.bytes = (arrayBuffer instanceof Uint8Array ?
  33288. arrayBuffer : new Uint8Array(arrayBuffer));
  33289. this.start = start || 0;
  33290. this.pos = this.start;
  33291. this.end = (start + length) || this.bytes.length;
  33292. this.dict = dict;
  33293. }
  33294. // required methods for a stream. if a particular stream does not
  33295. // implement these, an error should be thrown
  33296. Stream.prototype = {
  33297. get length() {
  33298. return this.end - this.start;
  33299. },
  33300. getByte: function Stream_getByte() {
  33301. if (this.pos >= this.end) {
  33302. return -1;
  33303. }
  33304. return this.bytes[this.pos++];
  33305. },
  33306. getUint16: function Stream_getUint16() {
  33307. var b0 = this.getByte();
  33308. var b1 = this.getByte();
  33309. return (b0 << 8) + b1;
  33310. },
  33311. getInt32: function Stream_getInt32() {
  33312. var b0 = this.getByte();
  33313. var b1 = this.getByte();
  33314. var b2 = this.getByte();
  33315. var b3 = this.getByte();
  33316. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33317. },
  33318. // returns subarray of original buffer
  33319. // should only be read
  33320. getBytes: function Stream_getBytes(length) {
  33321. var bytes = this.bytes;
  33322. var pos = this.pos;
  33323. var strEnd = this.end;
  33324. if (!length) {
  33325. return bytes.subarray(pos, strEnd);
  33326. }
  33327. var end = pos + length;
  33328. if (end > strEnd) {
  33329. end = strEnd;
  33330. }
  33331. this.pos = end;
  33332. return bytes.subarray(pos, end);
  33333. },
  33334. peekBytes: function Stream_peekBytes(length) {
  33335. var bytes = this.getBytes(length);
  33336. this.pos -= bytes.length;
  33337. return bytes;
  33338. },
  33339. skip: function Stream_skip(n) {
  33340. if (!n) {
  33341. n = 1;
  33342. }
  33343. this.pos += n;
  33344. },
  33345. reset: function Stream_reset() {
  33346. this.pos = this.start;
  33347. },
  33348. moveStart: function Stream_moveStart() {
  33349. this.start = this.pos;
  33350. },
  33351. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  33352. return new Stream(this.bytes.buffer, start, length, dict);
  33353. },
  33354. isStream: true
  33355. };
  33356. return Stream;
  33357. })();
  33358. var StringStream = (function StringStreamClosure() {
  33359. function StringStream(str) {
  33360. var length = str.length;
  33361. var bytes = new Uint8Array(length);
  33362. for (var n = 0; n < length; ++n) {
  33363. bytes[n] = str.charCodeAt(n);
  33364. }
  33365. Stream.call(this, bytes);
  33366. }
  33367. StringStream.prototype = Stream.prototype;
  33368. return StringStream;
  33369. })();
  33370. // super class for the decoding streams
  33371. var DecodeStream = (function DecodeStreamClosure() {
  33372. function DecodeStream(maybeMinBufferLength) {
  33373. this.pos = 0;
  33374. this.bufferLength = 0;
  33375. this.eof = false;
  33376. this.buffer = null;
  33377. this.minBufferLength = 512;
  33378. if (maybeMinBufferLength) {
  33379. // Compute the first power of two that is as big as maybeMinBufferLength.
  33380. while (this.minBufferLength < maybeMinBufferLength) {
  33381. this.minBufferLength *= 2;
  33382. }
  33383. }
  33384. }
  33385. DecodeStream.prototype = {
  33386. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  33387. var buffer = this.buffer;
  33388. var current;
  33389. if (buffer) {
  33390. current = buffer.byteLength;
  33391. if (requested <= current) {
  33392. return buffer;
  33393. }
  33394. } else {
  33395. current = 0;
  33396. }
  33397. var size = this.minBufferLength;
  33398. while (size < requested) {
  33399. size *= 2;
  33400. }
  33401. var buffer2 = new Uint8Array(size);
  33402. for (var i = 0; i < current; ++i) {
  33403. buffer2[i] = buffer[i];
  33404. }
  33405. return (this.buffer = buffer2);
  33406. },
  33407. getByte: function DecodeStream_getByte() {
  33408. var pos = this.pos;
  33409. while (this.bufferLength <= pos) {
  33410. if (this.eof) {
  33411. return -1;
  33412. }
  33413. this.readBlock();
  33414. }
  33415. return this.buffer[this.pos++];
  33416. },
  33417. getUint16: function DecodeStream_getUint16() {
  33418. var b0 = this.getByte();
  33419. var b1 = this.getByte();
  33420. return (b0 << 8) + b1;
  33421. },
  33422. getInt32: function DecodeStream_getInt32() {
  33423. var b0 = this.getByte();
  33424. var b1 = this.getByte();
  33425. var b2 = this.getByte();
  33426. var b3 = this.getByte();
  33427. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33428. },
  33429. getBytes: function DecodeStream_getBytes(length) {
  33430. var end, pos = this.pos;
  33431. if (length) {
  33432. this.ensureBuffer(pos + length);
  33433. end = pos + length;
  33434. while (!this.eof && this.bufferLength < end) {
  33435. this.readBlock();
  33436. }
  33437. var bufEnd = this.bufferLength;
  33438. if (end > bufEnd) {
  33439. end = bufEnd;
  33440. }
  33441. } else {
  33442. while (!this.eof) {
  33443. this.readBlock();
  33444. }
  33445. end = this.bufferLength;
  33446. // checking if bufferLength is still 0 then
  33447. // the buffer has to be initialized
  33448. if (!end) {
  33449. this.buffer = new Uint8Array(0);
  33450. }
  33451. }
  33452. this.pos = end;
  33453. return this.buffer.subarray(pos, end);
  33454. },
  33455. peekBytes: function DecodeStream_peekBytes(length) {
  33456. var bytes = this.getBytes(length);
  33457. this.pos -= bytes.length;
  33458. return bytes;
  33459. },
  33460. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  33461. var end = start + length;
  33462. while (this.bufferLength <= end && !this.eof) {
  33463. this.readBlock();
  33464. }
  33465. return new Stream(this.buffer, start, length, dict);
  33466. },
  33467. skip: function Stream_skip(n) {
  33468. if (!n) {
  33469. n = 1;
  33470. }
  33471. this.pos += n;
  33472. },
  33473. reset: function DecodeStream_reset() {
  33474. this.pos = 0;
  33475. },
  33476. getBaseStreams: function DecodeStream_getBaseStreams() {
  33477. if (this.str && this.str.getBaseStreams) {
  33478. return this.str.getBaseStreams();
  33479. }
  33480. return [];
  33481. }
  33482. };
  33483. return DecodeStream;
  33484. })();
  33485. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  33486. function StreamsSequenceStream(streams) {
  33487. this.streams = streams;
  33488. DecodeStream.call(this, /* maybeLength = */ null);
  33489. }
  33490. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  33491. StreamsSequenceStream.prototype.readBlock =
  33492. function streamSequenceStreamReadBlock() {
  33493. var streams = this.streams;
  33494. if (streams.length === 0) {
  33495. this.eof = true;
  33496. return;
  33497. }
  33498. var stream = streams.shift();
  33499. var chunk = stream.getBytes();
  33500. var bufferLength = this.bufferLength;
  33501. var newLength = bufferLength + chunk.length;
  33502. var buffer = this.ensureBuffer(newLength);
  33503. buffer.set(chunk, bufferLength);
  33504. this.bufferLength = newLength;
  33505. };
  33506. StreamsSequenceStream.prototype.getBaseStreams =
  33507. function StreamsSequenceStream_getBaseStreams() {
  33508. var baseStreams = [];
  33509. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  33510. var stream = this.streams[i];
  33511. if (stream.getBaseStreams) {
  33512. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  33513. }
  33514. }
  33515. return baseStreams;
  33516. };
  33517. return StreamsSequenceStream;
  33518. })();
  33519. var FlateStream = (function FlateStreamClosure() {
  33520. var codeLenCodeMap = new Uint32Array([
  33521. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  33522. ]);
  33523. var lengthDecode = new Uint32Array([
  33524. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  33525. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  33526. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  33527. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  33528. ]);
  33529. var distDecode = new Uint32Array([
  33530. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  33531. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  33532. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  33533. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  33534. ]);
  33535. var fixedLitCodeTab = [new Uint32Array([
  33536. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  33537. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  33538. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  33539. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  33540. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  33541. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  33542. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  33543. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  33544. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  33545. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  33546. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  33547. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  33548. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  33549. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  33550. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  33551. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  33552. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  33553. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  33554. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  33555. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  33556. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  33557. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  33558. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  33559. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  33560. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  33561. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  33562. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  33563. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  33564. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  33565. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  33566. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  33567. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  33568. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  33569. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  33570. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  33571. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  33572. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  33573. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  33574. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  33575. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  33576. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  33577. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  33578. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  33579. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  33580. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  33581. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  33582. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  33583. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  33584. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  33585. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  33586. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  33587. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  33588. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  33589. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  33590. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  33591. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  33592. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  33593. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  33594. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  33595. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  33596. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  33597. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  33598. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  33599. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  33600. ]), 9];
  33601. var fixedDistCodeTab = [new Uint32Array([
  33602. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  33603. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  33604. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  33605. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  33606. ]), 5];
  33607. function FlateStream(str, maybeLength) {
  33608. this.str = str;
  33609. this.dict = str.dict;
  33610. var cmf = str.getByte();
  33611. var flg = str.getByte();
  33612. if (cmf == -1 || flg == -1) {
  33613. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  33614. }
  33615. if ((cmf & 0x0f) != 0x08) {
  33616. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  33617. }
  33618. if ((((cmf << 8) + flg) % 31) !== 0) {
  33619. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  33620. }
  33621. if (flg & 0x20) {
  33622. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  33623. }
  33624. this.codeSize = 0;
  33625. this.codeBuf = 0;
  33626. DecodeStream.call(this, maybeLength);
  33627. }
  33628. FlateStream.prototype = Object.create(DecodeStream.prototype);
  33629. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  33630. var str = this.str;
  33631. var codeSize = this.codeSize;
  33632. var codeBuf = this.codeBuf;
  33633. var b;
  33634. while (codeSize < bits) {
  33635. if ((b = str.getByte()) === -1) {
  33636. error('Bad encoding in flate stream');
  33637. }
  33638. codeBuf |= b << codeSize;
  33639. codeSize += 8;
  33640. }
  33641. b = codeBuf & ((1 << bits) - 1);
  33642. this.codeBuf = codeBuf >> bits;
  33643. this.codeSize = codeSize -= bits;
  33644. return b;
  33645. };
  33646. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  33647. var str = this.str;
  33648. var codes = table[0];
  33649. var maxLen = table[1];
  33650. var codeSize = this.codeSize;
  33651. var codeBuf = this.codeBuf;
  33652. while (codeSize < maxLen) {
  33653. var b;
  33654. if ((b = str.getByte()) === -1) {
  33655. error('Bad encoding in flate stream');
  33656. }
  33657. codeBuf |= (b << codeSize);
  33658. codeSize += 8;
  33659. }
  33660. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  33661. var codeLen = code >> 16;
  33662. var codeVal = code & 0xffff;
  33663. if (codeSize === 0 || codeSize < codeLen || codeLen === 0) {
  33664. error('Bad encoding in flate stream');
  33665. }
  33666. this.codeBuf = (codeBuf >> codeLen);
  33667. this.codeSize = (codeSize - codeLen);
  33668. return codeVal;
  33669. };
  33670. FlateStream.prototype.generateHuffmanTable =
  33671. function flateStreamGenerateHuffmanTable(lengths) {
  33672. var n = lengths.length;
  33673. // find max code length
  33674. var maxLen = 0;
  33675. var i;
  33676. for (i = 0; i < n; ++i) {
  33677. if (lengths[i] > maxLen) {
  33678. maxLen = lengths[i];
  33679. }
  33680. }
  33681. // build the table
  33682. var size = 1 << maxLen;
  33683. var codes = new Uint32Array(size);
  33684. for (var len = 1, code = 0, skip = 2;
  33685. len <= maxLen;
  33686. ++len, code <<= 1, skip <<= 1) {
  33687. for (var val = 0; val < n; ++val) {
  33688. if (lengths[val] == len) {
  33689. // bit-reverse the code
  33690. var code2 = 0;
  33691. var t = code;
  33692. for (i = 0; i < len; ++i) {
  33693. code2 = (code2 << 1) | (t & 1);
  33694. t >>= 1;
  33695. }
  33696. // fill the table entries
  33697. for (i = code2; i < size; i += skip) {
  33698. codes[i] = (len << 16) | val;
  33699. }
  33700. ++code;
  33701. }
  33702. }
  33703. }
  33704. return [codes, maxLen];
  33705. };
  33706. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  33707. var buffer, len;
  33708. var str = this.str;
  33709. // read block header
  33710. var hdr = this.getBits(3);
  33711. if (hdr & 1) {
  33712. this.eof = true;
  33713. }
  33714. hdr >>= 1;
  33715. if (hdr === 0) { // uncompressed block
  33716. var b;
  33717. if ((b = str.getByte()) === -1) {
  33718. error('Bad block header in flate stream');
  33719. }
  33720. var blockLen = b;
  33721. if ((b = str.getByte()) === -1) {
  33722. error('Bad block header in flate stream');
  33723. }
  33724. blockLen |= (b << 8);
  33725. if ((b = str.getByte()) === -1) {
  33726. error('Bad block header in flate stream');
  33727. }
  33728. var check = b;
  33729. if ((b = str.getByte()) === -1) {
  33730. error('Bad block header in flate stream');
  33731. }
  33732. check |= (b << 8);
  33733. if (check != (~blockLen & 0xffff) &&
  33734. (blockLen !== 0 || check !== 0)) {
  33735. // Ignoring error for bad "empty" block (see issue 1277)
  33736. error('Bad uncompressed block length in flate stream');
  33737. }
  33738. this.codeBuf = 0;
  33739. this.codeSize = 0;
  33740. var bufferLength = this.bufferLength;
  33741. buffer = this.ensureBuffer(bufferLength + blockLen);
  33742. var end = bufferLength + blockLen;
  33743. this.bufferLength = end;
  33744. if (blockLen === 0) {
  33745. if (str.peekBytes(1).length === 0) {
  33746. this.eof = true;
  33747. }
  33748. } else {
  33749. for (var n = bufferLength; n < end; ++n) {
  33750. if ((b = str.getByte()) === -1) {
  33751. this.eof = true;
  33752. break;
  33753. }
  33754. buffer[n] = b;
  33755. }
  33756. }
  33757. return;
  33758. }
  33759. var litCodeTable;
  33760. var distCodeTable;
  33761. if (hdr == 1) { // compressed block, fixed codes
  33762. litCodeTable = fixedLitCodeTab;
  33763. distCodeTable = fixedDistCodeTab;
  33764. } else if (hdr == 2) { // compressed block, dynamic codes
  33765. var numLitCodes = this.getBits(5) + 257;
  33766. var numDistCodes = this.getBits(5) + 1;
  33767. var numCodeLenCodes = this.getBits(4) + 4;
  33768. // build the code lengths code table
  33769. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  33770. var i;
  33771. for (i = 0; i < numCodeLenCodes; ++i) {
  33772. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  33773. }
  33774. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  33775. // build the literal and distance code tables
  33776. len = 0;
  33777. i = 0;
  33778. var codes = numLitCodes + numDistCodes;
  33779. var codeLengths = new Uint8Array(codes);
  33780. var bitsLength, bitsOffset, what;
  33781. while (i < codes) {
  33782. var code = this.getCode(codeLenCodeTab);
  33783. if (code == 16) {
  33784. bitsLength = 2; bitsOffset = 3; what = len;
  33785. } else if (code == 17) {
  33786. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  33787. } else if (code == 18) {
  33788. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  33789. } else {
  33790. codeLengths[i++] = len = code;
  33791. continue;
  33792. }
  33793. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  33794. while (repeatLength-- > 0) {
  33795. codeLengths[i++] = what;
  33796. }
  33797. }
  33798. litCodeTable =
  33799. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  33800. distCodeTable =
  33801. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  33802. } else {
  33803. error('Unknown block type in flate stream');
  33804. }
  33805. buffer = this.buffer;
  33806. var limit = buffer ? buffer.length : 0;
  33807. var pos = this.bufferLength;
  33808. while (true) {
  33809. var code1 = this.getCode(litCodeTable);
  33810. if (code1 < 256) {
  33811. if (pos + 1 >= limit) {
  33812. buffer = this.ensureBuffer(pos + 1);
  33813. limit = buffer.length;
  33814. }
  33815. buffer[pos++] = code1;
  33816. continue;
  33817. }
  33818. if (code1 == 256) {
  33819. this.bufferLength = pos;
  33820. return;
  33821. }
  33822. code1 -= 257;
  33823. code1 = lengthDecode[code1];
  33824. var code2 = code1 >> 16;
  33825. if (code2 > 0) {
  33826. code2 = this.getBits(code2);
  33827. }
  33828. len = (code1 & 0xffff) + code2;
  33829. code1 = this.getCode(distCodeTable);
  33830. code1 = distDecode[code1];
  33831. code2 = code1 >> 16;
  33832. if (code2 > 0) {
  33833. code2 = this.getBits(code2);
  33834. }
  33835. var dist = (code1 & 0xffff) + code2;
  33836. if (pos + len >= limit) {
  33837. buffer = this.ensureBuffer(pos + len);
  33838. limit = buffer.length;
  33839. }
  33840. for (var k = 0; k < len; ++k, ++pos) {
  33841. buffer[pos] = buffer[pos - dist];
  33842. }
  33843. }
  33844. };
  33845. return FlateStream;
  33846. })();
  33847. var PredictorStream = (function PredictorStreamClosure() {
  33848. function PredictorStream(str, maybeLength, params) {
  33849. var predictor = this.predictor = params.get('Predictor') || 1;
  33850. if (predictor <= 1) {
  33851. return str; // no prediction
  33852. }
  33853. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  33854. error('Unsupported predictor: ' + predictor);
  33855. }
  33856. if (predictor === 2) {
  33857. this.readBlock = this.readBlockTiff;
  33858. } else {
  33859. this.readBlock = this.readBlockPng;
  33860. }
  33861. this.str = str;
  33862. this.dict = str.dict;
  33863. var colors = this.colors = params.get('Colors') || 1;
  33864. var bits = this.bits = params.get('BitsPerComponent') || 8;
  33865. var columns = this.columns = params.get('Columns') || 1;
  33866. this.pixBytes = (colors * bits + 7) >> 3;
  33867. this.rowBytes = (columns * colors * bits + 7) >> 3;
  33868. DecodeStream.call(this, maybeLength);
  33869. return this;
  33870. }
  33871. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  33872. PredictorStream.prototype.readBlockTiff =
  33873. function predictorStreamReadBlockTiff() {
  33874. var rowBytes = this.rowBytes;
  33875. var bufferLength = this.bufferLength;
  33876. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33877. var bits = this.bits;
  33878. var colors = this.colors;
  33879. var rawBytes = this.str.getBytes(rowBytes);
  33880. this.eof = !rawBytes.length;
  33881. if (this.eof) {
  33882. return;
  33883. }
  33884. var inbuf = 0, outbuf = 0;
  33885. var inbits = 0, outbits = 0;
  33886. var pos = bufferLength;
  33887. var i;
  33888. if (bits === 1) {
  33889. for (i = 0; i < rowBytes; ++i) {
  33890. var c = rawBytes[i];
  33891. inbuf = (inbuf << 8) | c;
  33892. // bitwise addition is exclusive or
  33893. // first shift inbuf and then add
  33894. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  33895. // truncate inbuf (assumes colors < 16)
  33896. inbuf &= 0xFFFF;
  33897. }
  33898. } else if (bits === 8) {
  33899. for (i = 0; i < colors; ++i) {
  33900. buffer[pos++] = rawBytes[i];
  33901. }
  33902. for (; i < rowBytes; ++i) {
  33903. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  33904. pos++;
  33905. }
  33906. } else {
  33907. var compArray = new Uint8Array(colors + 1);
  33908. var bitMask = (1 << bits) - 1;
  33909. var j = 0, k = bufferLength;
  33910. var columns = this.columns;
  33911. for (i = 0; i < columns; ++i) {
  33912. for (var kk = 0; kk < colors; ++kk) {
  33913. if (inbits < bits) {
  33914. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  33915. inbits += 8;
  33916. }
  33917. compArray[kk] = (compArray[kk] +
  33918. (inbuf >> (inbits - bits))) & bitMask;
  33919. inbits -= bits;
  33920. outbuf = (outbuf << bits) | compArray[kk];
  33921. outbits += bits;
  33922. if (outbits >= 8) {
  33923. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  33924. outbits -= 8;
  33925. }
  33926. }
  33927. }
  33928. if (outbits > 0) {
  33929. buffer[k++] = (outbuf << (8 - outbits)) +
  33930. (inbuf & ((1 << (8 - outbits)) - 1));
  33931. }
  33932. }
  33933. this.bufferLength += rowBytes;
  33934. };
  33935. PredictorStream.prototype.readBlockPng =
  33936. function predictorStreamReadBlockPng() {
  33937. var rowBytes = this.rowBytes;
  33938. var pixBytes = this.pixBytes;
  33939. var predictor = this.str.getByte();
  33940. var rawBytes = this.str.getBytes(rowBytes);
  33941. this.eof = !rawBytes.length;
  33942. if (this.eof) {
  33943. return;
  33944. }
  33945. var bufferLength = this.bufferLength;
  33946. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33947. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  33948. if (prevRow.length === 0) {
  33949. prevRow = new Uint8Array(rowBytes);
  33950. }
  33951. var i, j = bufferLength, up, c;
  33952. switch (predictor) {
  33953. case 0:
  33954. for (i = 0; i < rowBytes; ++i) {
  33955. buffer[j++] = rawBytes[i];
  33956. }
  33957. break;
  33958. case 1:
  33959. for (i = 0; i < pixBytes; ++i) {
  33960. buffer[j++] = rawBytes[i];
  33961. }
  33962. for (; i < rowBytes; ++i) {
  33963. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  33964. j++;
  33965. }
  33966. break;
  33967. case 2:
  33968. for (i = 0; i < rowBytes; ++i) {
  33969. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  33970. }
  33971. break;
  33972. case 3:
  33973. for (i = 0; i < pixBytes; ++i) {
  33974. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  33975. }
  33976. for (; i < rowBytes; ++i) {
  33977. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  33978. rawBytes[i]) & 0xFF;
  33979. j++;
  33980. }
  33981. break;
  33982. case 4:
  33983. // we need to save the up left pixels values. the simplest way
  33984. // is to create a new buffer
  33985. for (i = 0; i < pixBytes; ++i) {
  33986. up = prevRow[i];
  33987. c = rawBytes[i];
  33988. buffer[j++] = up + c;
  33989. }
  33990. for (; i < rowBytes; ++i) {
  33991. up = prevRow[i];
  33992. var upLeft = prevRow[i - pixBytes];
  33993. var left = buffer[j - pixBytes];
  33994. var p = left + up - upLeft;
  33995. var pa = p - left;
  33996. if (pa < 0) {
  33997. pa = -pa;
  33998. }
  33999. var pb = p - up;
  34000. if (pb < 0) {
  34001. pb = -pb;
  34002. }
  34003. var pc = p - upLeft;
  34004. if (pc < 0) {
  34005. pc = -pc;
  34006. }
  34007. c = rawBytes[i];
  34008. if (pa <= pb && pa <= pc) {
  34009. buffer[j++] = left + c;
  34010. } else if (pb <= pc) {
  34011. buffer[j++] = up + c;
  34012. } else {
  34013. buffer[j++] = upLeft + c;
  34014. }
  34015. }
  34016. break;
  34017. default:
  34018. error('Unsupported predictor: ' + predictor);
  34019. }
  34020. this.bufferLength += rowBytes;
  34021. };
  34022. return PredictorStream;
  34023. })();
  34024. /**
  34025. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  34026. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  34027. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  34028. * a library to decode these images and the stream behaves like all the other
  34029. * DecodeStreams.
  34030. */
  34031. var JpegStream = (function JpegStreamClosure() {
  34032. function JpegStream(stream, maybeLength, dict, xref) {
  34033. // TODO: per poppler, some images may have 'junk' before that
  34034. // need to be removed
  34035. this.stream = stream;
  34036. this.maybeLength = maybeLength;
  34037. this.dict = dict;
  34038. DecodeStream.call(this, maybeLength);
  34039. }
  34040. JpegStream.prototype = Object.create(DecodeStream.prototype);
  34041. Object.defineProperty(JpegStream.prototype, 'bytes', {
  34042. get: function JpegStream_bytes() {
  34043. // If this.maybeLength is null, we'll get the entire stream.
  34044. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34045. },
  34046. configurable: true
  34047. });
  34048. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  34049. if (this.bufferLength) {
  34050. return;
  34051. }
  34052. try {
  34053. var jpegImage = new JpegImage();
  34054. if (this.colorTransform != -1) {
  34055. jpegImage.colorTransform = this.colorTransform;
  34056. }
  34057. jpegImage.parse(this.bytes);
  34058. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  34059. /* forceRGBoutput = */true);
  34060. this.buffer = data;
  34061. this.bufferLength = data.length;
  34062. this.eof = true;
  34063. } catch (e) {
  34064. error('JPEG error: ' + e);
  34065. }
  34066. };
  34067. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  34068. this.ensureBuffer();
  34069. return this.buffer;
  34070. };
  34071. JpegStream.prototype.getIR = function JpegStream_getIR() {
  34072. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  34073. };
  34074. /**
  34075. * Checks if the image can be decoded and displayed by the browser without any
  34076. * further processing such as color space conversions.
  34077. */
  34078. JpegStream.prototype.isNativelySupported =
  34079. function JpegStream_isNativelySupported(xref, res) {
  34080. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34081. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  34082. };
  34083. /**
  34084. * Checks if the image can be decoded by the browser.
  34085. */
  34086. JpegStream.prototype.isNativelyDecodable =
  34087. function JpegStream_isNativelyDecodable(xref, res) {
  34088. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34089. var numComps = cs.numComps;
  34090. return numComps == 1 || numComps == 3;
  34091. };
  34092. return JpegStream;
  34093. })();
  34094. /**
  34095. * For JPEG 2000's we use a library to decode these images and
  34096. * the stream behaves like all the other DecodeStreams.
  34097. */
  34098. var JpxStream = (function JpxStreamClosure() {
  34099. function JpxStream(stream, maybeLength, dict) {
  34100. this.stream = stream;
  34101. this.maybeLength = maybeLength;
  34102. this.dict = dict;
  34103. DecodeStream.call(this, maybeLength);
  34104. }
  34105. JpxStream.prototype = Object.create(DecodeStream.prototype);
  34106. Object.defineProperty(JpxStream.prototype, 'bytes', {
  34107. get: function JpxStream_bytes() {
  34108. // If this.maybeLength is null, we'll get the entire stream.
  34109. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34110. },
  34111. configurable: true
  34112. });
  34113. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  34114. if (this.bufferLength) {
  34115. return;
  34116. }
  34117. var jpxImage = new JpxImage();
  34118. jpxImage.parse(this.bytes);
  34119. var width = jpxImage.width;
  34120. var height = jpxImage.height;
  34121. var componentsCount = jpxImage.componentsCount;
  34122. var tileCount = jpxImage.tiles.length;
  34123. if (tileCount === 1) {
  34124. this.buffer = jpxImage.tiles[0].items;
  34125. } else {
  34126. var data = new Uint8Array(width * height * componentsCount);
  34127. for (var k = 0; k < tileCount; k++) {
  34128. var tileComponents = jpxImage.tiles[k];
  34129. var tileWidth = tileComponents.width;
  34130. var tileHeight = tileComponents.height;
  34131. var tileLeft = tileComponents.left;
  34132. var tileTop = tileComponents.top;
  34133. var src = tileComponents.items;
  34134. var srcPosition = 0;
  34135. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  34136. var imgRowSize = width * componentsCount;
  34137. var tileRowSize = tileWidth * componentsCount;
  34138. for (var j = 0; j < tileHeight; j++) {
  34139. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  34140. data.set(rowBytes, dataPosition);
  34141. srcPosition += tileRowSize;
  34142. dataPosition += imgRowSize;
  34143. }
  34144. }
  34145. this.buffer = data;
  34146. }
  34147. this.bufferLength = this.buffer.length;
  34148. this.eof = true;
  34149. };
  34150. return JpxStream;
  34151. })();
  34152. /**
  34153. * For JBIG2's we use a library to decode these images and
  34154. * the stream behaves like all the other DecodeStreams.
  34155. */
  34156. var Jbig2Stream = (function Jbig2StreamClosure() {
  34157. function Jbig2Stream(stream, maybeLength, dict) {
  34158. this.stream = stream;
  34159. this.maybeLength = maybeLength;
  34160. this.dict = dict;
  34161. DecodeStream.call(this, maybeLength);
  34162. }
  34163. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  34164. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  34165. get: function Jbig2Stream_bytes() {
  34166. // If this.maybeLength is null, we'll get the entire stream.
  34167. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34168. },
  34169. configurable: true
  34170. });
  34171. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  34172. if (this.bufferLength) {
  34173. return;
  34174. }
  34175. var jbig2Image = new Jbig2Image();
  34176. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  34177. // According to the PDF specification, DecodeParms can be either
  34178. // a dictionary, or an array whose elements are dictionaries.
  34179. if (isArray(decodeParams)) {
  34180. if (decodeParams.length > 1) {
  34181. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  34182. 'not supported.');
  34183. }
  34184. decodeParams = decodeParams[0];
  34185. }
  34186. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  34187. var globalsStream = decodeParams.get('JBIG2Globals');
  34188. var globals = globalsStream.getBytes();
  34189. chunks.push({data: globals, start: 0, end: globals.length});
  34190. }
  34191. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  34192. var data = jbig2Image.parseChunks(chunks);
  34193. var dataLength = data.length;
  34194. // JBIG2 had black as 1 and white as 0, inverting the colors
  34195. for (var i = 0; i < dataLength; i++) {
  34196. data[i] ^= 0xFF;
  34197. }
  34198. this.buffer = data;
  34199. this.bufferLength = dataLength;
  34200. this.eof = true;
  34201. };
  34202. return Jbig2Stream;
  34203. })();
  34204. var DecryptStream = (function DecryptStreamClosure() {
  34205. function DecryptStream(str, maybeLength, decrypt) {
  34206. this.str = str;
  34207. this.dict = str.dict;
  34208. this.decrypt = decrypt;
  34209. this.nextChunk = null;
  34210. this.initialized = false;
  34211. DecodeStream.call(this, maybeLength);
  34212. }
  34213. var chunkSize = 512;
  34214. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  34215. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  34216. var chunk;
  34217. if (this.initialized) {
  34218. chunk = this.nextChunk;
  34219. } else {
  34220. chunk = this.str.getBytes(chunkSize);
  34221. this.initialized = true;
  34222. }
  34223. if (!chunk || chunk.length === 0) {
  34224. this.eof = true;
  34225. return;
  34226. }
  34227. this.nextChunk = this.str.getBytes(chunkSize);
  34228. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  34229. var decrypt = this.decrypt;
  34230. chunk = decrypt(chunk, !hasMoreData);
  34231. var bufferLength = this.bufferLength;
  34232. var i, n = chunk.length;
  34233. var buffer = this.ensureBuffer(bufferLength + n);
  34234. for (i = 0; i < n; i++) {
  34235. buffer[bufferLength++] = chunk[i];
  34236. }
  34237. this.bufferLength = bufferLength;
  34238. };
  34239. return DecryptStream;
  34240. })();
  34241. var Ascii85Stream = (function Ascii85StreamClosure() {
  34242. function Ascii85Stream(str, maybeLength) {
  34243. this.str = str;
  34244. this.dict = str.dict;
  34245. this.input = new Uint8Array(5);
  34246. // Most streams increase in size when decoded, but Ascii85 streams
  34247. // typically shrink by ~20%.
  34248. if (maybeLength) {
  34249. maybeLength = 0.8 * maybeLength;
  34250. }
  34251. DecodeStream.call(this, maybeLength);
  34252. }
  34253. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  34254. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  34255. var TILDA_CHAR = 0x7E; // '~'
  34256. var Z_LOWER_CHAR = 0x7A; // 'z'
  34257. var EOF = -1;
  34258. var str = this.str;
  34259. var c = str.getByte();
  34260. while (Lexer.isSpace(c)) {
  34261. c = str.getByte();
  34262. }
  34263. if (c === EOF || c === TILDA_CHAR) {
  34264. this.eof = true;
  34265. return;
  34266. }
  34267. var bufferLength = this.bufferLength, buffer;
  34268. var i;
  34269. // special code for z
  34270. if (c == Z_LOWER_CHAR) {
  34271. buffer = this.ensureBuffer(bufferLength + 4);
  34272. for (i = 0; i < 4; ++i) {
  34273. buffer[bufferLength + i] = 0;
  34274. }
  34275. this.bufferLength += 4;
  34276. } else {
  34277. var input = this.input;
  34278. input[0] = c;
  34279. for (i = 1; i < 5; ++i) {
  34280. c = str.getByte();
  34281. while (Lexer.isSpace(c)) {
  34282. c = str.getByte();
  34283. }
  34284. input[i] = c;
  34285. if (c === EOF || c == TILDA_CHAR) {
  34286. break;
  34287. }
  34288. }
  34289. buffer = this.ensureBuffer(bufferLength + i - 1);
  34290. this.bufferLength += i - 1;
  34291. // partial ending;
  34292. if (i < 5) {
  34293. for (; i < 5; ++i) {
  34294. input[i] = 0x21 + 84;
  34295. }
  34296. this.eof = true;
  34297. }
  34298. var t = 0;
  34299. for (i = 0; i < 5; ++i) {
  34300. t = t * 85 + (input[i] - 0x21);
  34301. }
  34302. for (i = 3; i >= 0; --i) {
  34303. buffer[bufferLength + i] = t & 0xFF;
  34304. t >>= 8;
  34305. }
  34306. }
  34307. };
  34308. return Ascii85Stream;
  34309. })();
  34310. var AsciiHexStream = (function AsciiHexStreamClosure() {
  34311. function AsciiHexStream(str, maybeLength) {
  34312. this.str = str;
  34313. this.dict = str.dict;
  34314. this.firstDigit = -1;
  34315. // Most streams increase in size when decoded, but AsciiHex streams shrink
  34316. // by 50%.
  34317. if (maybeLength) {
  34318. maybeLength = 0.5 * maybeLength;
  34319. }
  34320. DecodeStream.call(this, maybeLength);
  34321. }
  34322. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  34323. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  34324. var UPSTREAM_BLOCK_SIZE = 8000;
  34325. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  34326. if (!bytes.length) {
  34327. this.eof = true;
  34328. return;
  34329. }
  34330. var maxDecodeLength = (bytes.length + 1) >> 1;
  34331. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  34332. var bufferLength = this.bufferLength;
  34333. var firstDigit = this.firstDigit;
  34334. for (var i = 0, ii = bytes.length; i < ii; i++) {
  34335. var ch = bytes[i], digit;
  34336. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34337. digit = ch & 0x0F;
  34338. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34339. // 'A'-'Z', 'a'-'z'
  34340. digit = (ch & 0x0F) + 9;
  34341. } else if (ch === 0x3E) { // '>'
  34342. this.eof = true;
  34343. break;
  34344. } else { // probably whitespace
  34345. continue; // ignoring
  34346. }
  34347. if (firstDigit < 0) {
  34348. firstDigit = digit;
  34349. } else {
  34350. buffer[bufferLength++] = (firstDigit << 4) | digit;
  34351. firstDigit = -1;
  34352. }
  34353. }
  34354. if (firstDigit >= 0 && this.eof) {
  34355. // incomplete byte
  34356. buffer[bufferLength++] = (firstDigit << 4);
  34357. firstDigit = -1;
  34358. }
  34359. this.firstDigit = firstDigit;
  34360. this.bufferLength = bufferLength;
  34361. };
  34362. return AsciiHexStream;
  34363. })();
  34364. var RunLengthStream = (function RunLengthStreamClosure() {
  34365. function RunLengthStream(str, maybeLength) {
  34366. this.str = str;
  34367. this.dict = str.dict;
  34368. DecodeStream.call(this, maybeLength);
  34369. }
  34370. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  34371. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  34372. // The repeatHeader has following format. The first byte defines type of run
  34373. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  34374. // (in addition to the second byte from the header), n = 129 through 255 -
  34375. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  34376. var repeatHeader = this.str.getBytes(2);
  34377. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  34378. this.eof = true;
  34379. return;
  34380. }
  34381. var buffer;
  34382. var bufferLength = this.bufferLength;
  34383. var n = repeatHeader[0];
  34384. if (n < 128) {
  34385. // copy n bytes
  34386. buffer = this.ensureBuffer(bufferLength + n + 1);
  34387. buffer[bufferLength++] = repeatHeader[1];
  34388. if (n > 0) {
  34389. var source = this.str.getBytes(n);
  34390. buffer.set(source, bufferLength);
  34391. bufferLength += n;
  34392. }
  34393. } else {
  34394. n = 257 - n;
  34395. var b = repeatHeader[1];
  34396. buffer = this.ensureBuffer(bufferLength + n + 1);
  34397. for (var i = 0; i < n; i++) {
  34398. buffer[bufferLength++] = b;
  34399. }
  34400. }
  34401. this.bufferLength = bufferLength;
  34402. };
  34403. return RunLengthStream;
  34404. })();
  34405. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  34406. var ccittEOL = -2;
  34407. var twoDimPass = 0;
  34408. var twoDimHoriz = 1;
  34409. var twoDimVert0 = 2;
  34410. var twoDimVertR1 = 3;
  34411. var twoDimVertL1 = 4;
  34412. var twoDimVertR2 = 5;
  34413. var twoDimVertL2 = 6;
  34414. var twoDimVertR3 = 7;
  34415. var twoDimVertL3 = 8;
  34416. var twoDimTable = [
  34417. [-1, -1], [-1, -1], // 000000x
  34418. [7, twoDimVertL3], // 0000010
  34419. [7, twoDimVertR3], // 0000011
  34420. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  34421. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  34422. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  34423. [4, twoDimPass], [4, twoDimPass],
  34424. [4, twoDimPass], [4, twoDimPass],
  34425. [4, twoDimPass], [4, twoDimPass],
  34426. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  34427. [3, twoDimHoriz], [3, twoDimHoriz],
  34428. [3, twoDimHoriz], [3, twoDimHoriz],
  34429. [3, twoDimHoriz], [3, twoDimHoriz],
  34430. [3, twoDimHoriz], [3, twoDimHoriz],
  34431. [3, twoDimHoriz], [3, twoDimHoriz],
  34432. [3, twoDimHoriz], [3, twoDimHoriz],
  34433. [3, twoDimHoriz], [3, twoDimHoriz],
  34434. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  34435. [3, twoDimVertL1], [3, twoDimVertL1],
  34436. [3, twoDimVertL1], [3, twoDimVertL1],
  34437. [3, twoDimVertL1], [3, twoDimVertL1],
  34438. [3, twoDimVertL1], [3, twoDimVertL1],
  34439. [3, twoDimVertL1], [3, twoDimVertL1],
  34440. [3, twoDimVertL1], [3, twoDimVertL1],
  34441. [3, twoDimVertL1], [3, twoDimVertL1],
  34442. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  34443. [3, twoDimVertR1], [3, twoDimVertR1],
  34444. [3, twoDimVertR1], [3, twoDimVertR1],
  34445. [3, twoDimVertR1], [3, twoDimVertR1],
  34446. [3, twoDimVertR1], [3, twoDimVertR1],
  34447. [3, twoDimVertR1], [3, twoDimVertR1],
  34448. [3, twoDimVertR1], [3, twoDimVertR1],
  34449. [3, twoDimVertR1], [3, twoDimVertR1],
  34450. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  34451. [1, twoDimVert0], [1, twoDimVert0],
  34452. [1, twoDimVert0], [1, twoDimVert0],
  34453. [1, twoDimVert0], [1, twoDimVert0],
  34454. [1, twoDimVert0], [1, twoDimVert0],
  34455. [1, twoDimVert0], [1, twoDimVert0],
  34456. [1, twoDimVert0], [1, twoDimVert0],
  34457. [1, twoDimVert0], [1, twoDimVert0],
  34458. [1, twoDimVert0], [1, twoDimVert0],
  34459. [1, twoDimVert0], [1, twoDimVert0],
  34460. [1, twoDimVert0], [1, twoDimVert0],
  34461. [1, twoDimVert0], [1, twoDimVert0],
  34462. [1, twoDimVert0], [1, twoDimVert0],
  34463. [1, twoDimVert0], [1, twoDimVert0],
  34464. [1, twoDimVert0], [1, twoDimVert0],
  34465. [1, twoDimVert0], [1, twoDimVert0],
  34466. [1, twoDimVert0], [1, twoDimVert0],
  34467. [1, twoDimVert0], [1, twoDimVert0],
  34468. [1, twoDimVert0], [1, twoDimVert0],
  34469. [1, twoDimVert0], [1, twoDimVert0],
  34470. [1, twoDimVert0], [1, twoDimVert0],
  34471. [1, twoDimVert0], [1, twoDimVert0],
  34472. [1, twoDimVert0], [1, twoDimVert0],
  34473. [1, twoDimVert0], [1, twoDimVert0],
  34474. [1, twoDimVert0], [1, twoDimVert0],
  34475. [1, twoDimVert0], [1, twoDimVert0],
  34476. [1, twoDimVert0], [1, twoDimVert0],
  34477. [1, twoDimVert0], [1, twoDimVert0],
  34478. [1, twoDimVert0], [1, twoDimVert0],
  34479. [1, twoDimVert0], [1, twoDimVert0],
  34480. [1, twoDimVert0], [1, twoDimVert0],
  34481. [1, twoDimVert0], [1, twoDimVert0]
  34482. ];
  34483. var whiteTable1 = [
  34484. [-1, -1], // 00000
  34485. [12, ccittEOL], // 00001
  34486. [-1, -1], [-1, -1], // 0001x
  34487. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  34488. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  34489. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  34490. [11, 1792], [11, 1792], // 1000x
  34491. [12, 1984], // 10010
  34492. [12, 2048], // 10011
  34493. [12, 2112], // 10100
  34494. [12, 2176], // 10101
  34495. [12, 2240], // 10110
  34496. [12, 2304], // 10111
  34497. [11, 1856], [11, 1856], // 1100x
  34498. [11, 1920], [11, 1920], // 1101x
  34499. [12, 2368], // 11100
  34500. [12, 2432], // 11101
  34501. [12, 2496], // 11110
  34502. [12, 2560] // 11111
  34503. ];
  34504. var whiteTable2 = [
  34505. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  34506. [8, 29], [8, 29], // 00000010x
  34507. [8, 30], [8, 30], // 00000011x
  34508. [8, 45], [8, 45], // 00000100x
  34509. [8, 46], [8, 46], // 00000101x
  34510. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  34511. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  34512. [8, 47], [8, 47], // 00001010x
  34513. [8, 48], [8, 48], // 00001011x
  34514. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  34515. [6, 13], [6, 13], [6, 13], [6, 13],
  34516. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  34517. [8, 33], [8, 33], // 00010010x
  34518. [8, 34], [8, 34], // 00010011x
  34519. [8, 35], [8, 35], // 00010100x
  34520. [8, 36], [8, 36], // 00010101x
  34521. [8, 37], [8, 37], // 00010110x
  34522. [8, 38], [8, 38], // 00010111x
  34523. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  34524. [8, 31], [8, 31], // 00011010x
  34525. [8, 32], [8, 32], // 00011011x
  34526. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  34527. [6, 1], [6, 1], [6, 1], [6, 1],
  34528. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  34529. [6, 12], [6, 12], [6, 12], [6, 12],
  34530. [8, 53], [8, 53], // 00100100x
  34531. [8, 54], [8, 54], // 00100101x
  34532. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  34533. [8, 39], [8, 39], // 00101000x
  34534. [8, 40], [8, 40], // 00101001x
  34535. [8, 41], [8, 41], // 00101010x
  34536. [8, 42], [8, 42], // 00101011x
  34537. [8, 43], [8, 43], // 00101100x
  34538. [8, 44], [8, 44], // 00101101x
  34539. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  34540. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  34541. [8, 61], [8, 61], // 00110010x
  34542. [8, 62], [8, 62], // 00110011x
  34543. [8, 63], [8, 63], // 00110100x
  34544. [8, 0], [8, 0], // 00110101x
  34545. [8, 320], [8, 320], // 00110110x
  34546. [8, 384], [8, 384], // 00110111x
  34547. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  34548. [5, 10], [5, 10], [5, 10], [5, 10],
  34549. [5, 10], [5, 10], [5, 10], [5, 10],
  34550. [5, 10], [5, 10], [5, 10], [5, 10],
  34551. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  34552. [5, 11], [5, 11], [5, 11], [5, 11],
  34553. [5, 11], [5, 11], [5, 11], [5, 11],
  34554. [5, 11], [5, 11], [5, 11], [5, 11],
  34555. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  34556. [8, 59], [8, 59], // 01001010x
  34557. [8, 60], [8, 60], // 01001011x
  34558. [9, 1472], // 010011000
  34559. [9, 1536], // 010011001
  34560. [9, 1600], // 010011010
  34561. [9, 1728], // 010011011
  34562. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  34563. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  34564. [8, 49], [8, 49], // 01010010x
  34565. [8, 50], [8, 50], // 01010011x
  34566. [8, 51], [8, 51], // 01010100x
  34567. [8, 52], [8, 52], // 01010101x
  34568. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  34569. [8, 55], [8, 55], // 01011000x
  34570. [8, 56], [8, 56], // 01011001x
  34571. [8, 57], [8, 57], // 01011010x
  34572. [8, 58], [8, 58], // 01011011x
  34573. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  34574. [6, 192], [6, 192], [6, 192], [6, 192],
  34575. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  34576. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  34577. [8, 448], [8, 448], // 01100100x
  34578. [8, 512], [8, 512], // 01100101x
  34579. [9, 704], // 011001100
  34580. [9, 768], // 011001101
  34581. [8, 640], [8, 640], // 01100111x
  34582. [8, 576], [8, 576], // 01101000x
  34583. [9, 832], // 011010010
  34584. [9, 896], // 011010011
  34585. [9, 960], // 011010100
  34586. [9, 1024], // 011010101
  34587. [9, 1088], // 011010110
  34588. [9, 1152], // 011010111
  34589. [9, 1216], // 011011000
  34590. [9, 1280], // 011011001
  34591. [9, 1344], // 011011010
  34592. [9, 1408], // 011011011
  34593. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  34594. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  34595. [4, 2], [4, 2], [4, 2], [4, 2],
  34596. [4, 2], [4, 2], [4, 2], [4, 2],
  34597. [4, 2], [4, 2], [4, 2], [4, 2],
  34598. [4, 2], [4, 2], [4, 2], [4, 2],
  34599. [4, 2], [4, 2], [4, 2], [4, 2],
  34600. [4, 2], [4, 2], [4, 2], [4, 2],
  34601. [4, 2], [4, 2], [4, 2], [4, 2],
  34602. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  34603. [4, 3], [4, 3], [4, 3], [4, 3],
  34604. [4, 3], [4, 3], [4, 3], [4, 3],
  34605. [4, 3], [4, 3], [4, 3], [4, 3],
  34606. [4, 3], [4, 3], [4, 3], [4, 3],
  34607. [4, 3], [4, 3], [4, 3], [4, 3],
  34608. [4, 3], [4, 3], [4, 3], [4, 3],
  34609. [4, 3], [4, 3], [4, 3], [4, 3],
  34610. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  34611. [5, 128], [5, 128], [5, 128], [5, 128],
  34612. [5, 128], [5, 128], [5, 128], [5, 128],
  34613. [5, 128], [5, 128], [5, 128], [5, 128],
  34614. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  34615. [5, 8], [5, 8], [5, 8], [5, 8],
  34616. [5, 8], [5, 8], [5, 8], [5, 8],
  34617. [5, 8], [5, 8], [5, 8], [5, 8],
  34618. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  34619. [5, 9], [5, 9], [5, 9], [5, 9],
  34620. [5, 9], [5, 9], [5, 9], [5, 9],
  34621. [5, 9], [5, 9], [5, 9], [5, 9],
  34622. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  34623. [6, 16], [6, 16], [6, 16], [6, 16],
  34624. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  34625. [6, 17], [6, 17], [6, 17], [6, 17],
  34626. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  34627. [4, 4], [4, 4], [4, 4], [4, 4],
  34628. [4, 4], [4, 4], [4, 4], [4, 4],
  34629. [4, 4], [4, 4], [4, 4], [4, 4],
  34630. [4, 4], [4, 4], [4, 4], [4, 4],
  34631. [4, 4], [4, 4], [4, 4], [4, 4],
  34632. [4, 4], [4, 4], [4, 4], [4, 4],
  34633. [4, 4], [4, 4], [4, 4], [4, 4],
  34634. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  34635. [4, 5], [4, 5], [4, 5], [4, 5],
  34636. [4, 5], [4, 5], [4, 5], [4, 5],
  34637. [4, 5], [4, 5], [4, 5], [4, 5],
  34638. [4, 5], [4, 5], [4, 5], [4, 5],
  34639. [4, 5], [4, 5], [4, 5], [4, 5],
  34640. [4, 5], [4, 5], [4, 5], [4, 5],
  34641. [4, 5], [4, 5], [4, 5], [4, 5],
  34642. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  34643. [6, 14], [6, 14], [6, 14], [6, 14],
  34644. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  34645. [6, 15], [6, 15], [6, 15], [6, 15],
  34646. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  34647. [5, 64], [5, 64], [5, 64], [5, 64],
  34648. [5, 64], [5, 64], [5, 64], [5, 64],
  34649. [5, 64], [5, 64], [5, 64], [5, 64],
  34650. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  34651. [4, 6], [4, 6], [4, 6], [4, 6],
  34652. [4, 6], [4, 6], [4, 6], [4, 6],
  34653. [4, 6], [4, 6], [4, 6], [4, 6],
  34654. [4, 6], [4, 6], [4, 6], [4, 6],
  34655. [4, 6], [4, 6], [4, 6], [4, 6],
  34656. [4, 6], [4, 6], [4, 6], [4, 6],
  34657. [4, 6], [4, 6], [4, 6], [4, 6],
  34658. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  34659. [4, 7], [4, 7], [4, 7], [4, 7],
  34660. [4, 7], [4, 7], [4, 7], [4, 7],
  34661. [4, 7], [4, 7], [4, 7], [4, 7],
  34662. [4, 7], [4, 7], [4, 7], [4, 7],
  34663. [4, 7], [4, 7], [4, 7], [4, 7],
  34664. [4, 7], [4, 7], [4, 7], [4, 7],
  34665. [4, 7], [4, 7], [4, 7], [4, 7]
  34666. ];
  34667. var blackTable1 = [
  34668. [-1, -1], [-1, -1], // 000000000000x
  34669. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  34670. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  34671. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  34672. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  34673. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  34674. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  34675. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  34676. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  34677. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  34678. [12, 1984], [12, 1984], // 000000010010x
  34679. [12, 2048], [12, 2048], // 000000010011x
  34680. [12, 2112], [12, 2112], // 000000010100x
  34681. [12, 2176], [12, 2176], // 000000010101x
  34682. [12, 2240], [12, 2240], // 000000010110x
  34683. [12, 2304], [12, 2304], // 000000010111x
  34684. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  34685. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  34686. [12, 2368], [12, 2368], // 000000011100x
  34687. [12, 2432], [12, 2432], // 000000011101x
  34688. [12, 2496], [12, 2496], // 000000011110x
  34689. [12, 2560], [12, 2560], // 000000011111x
  34690. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  34691. [10, 18], [10, 18], [10, 18], [10, 18],
  34692. [12, 52], [12, 52], // 000000100100x
  34693. [13, 640], // 0000001001010
  34694. [13, 704], // 0000001001011
  34695. [13, 768], // 0000001001100
  34696. [13, 832], // 0000001001101
  34697. [12, 55], [12, 55], // 000000100111x
  34698. [12, 56], [12, 56], // 000000101000x
  34699. [13, 1280], // 0000001010010
  34700. [13, 1344], // 0000001010011
  34701. [13, 1408], // 0000001010100
  34702. [13, 1472], // 0000001010101
  34703. [12, 59], [12, 59], // 000000101011x
  34704. [12, 60], [12, 60], // 000000101100x
  34705. [13, 1536], // 0000001011010
  34706. [13, 1600], // 0000001011011
  34707. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  34708. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  34709. [13, 1664], // 0000001100100
  34710. [13, 1728], // 0000001100101
  34711. [12, 320], [12, 320], // 000000110011x
  34712. [12, 384], [12, 384], // 000000110100x
  34713. [12, 448], [12, 448], // 000000110101x
  34714. [13, 512], // 0000001101100
  34715. [13, 576], // 0000001101101
  34716. [12, 53], [12, 53], // 000000110111x
  34717. [12, 54], [12, 54], // 000000111000x
  34718. [13, 896], // 0000001110010
  34719. [13, 960], // 0000001110011
  34720. [13, 1024], // 0000001110100
  34721. [13, 1088], // 0000001110101
  34722. [13, 1152], // 0000001110110
  34723. [13, 1216], // 0000001110111
  34724. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  34725. [10, 64], [10, 64], [10, 64], [10, 64]
  34726. ];
  34727. var blackTable2 = [
  34728. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  34729. [8, 13], [8, 13], [8, 13], [8, 13],
  34730. [8, 13], [8, 13], [8, 13], [8, 13],
  34731. [8, 13], [8, 13], [8, 13], [8, 13],
  34732. [11, 23], [11, 23], // 00000101000x
  34733. [12, 50], // 000001010010
  34734. [12, 51], // 000001010011
  34735. [12, 44], // 000001010100
  34736. [12, 45], // 000001010101
  34737. [12, 46], // 000001010110
  34738. [12, 47], // 000001010111
  34739. [12, 57], // 000001011000
  34740. [12, 58], // 000001011001
  34741. [12, 61], // 000001011010
  34742. [12, 256], // 000001011011
  34743. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  34744. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  34745. [12, 48], // 000001100100
  34746. [12, 49], // 000001100101
  34747. [12, 62], // 000001100110
  34748. [12, 63], // 000001100111
  34749. [12, 30], // 000001101000
  34750. [12, 31], // 000001101001
  34751. [12, 32], // 000001101010
  34752. [12, 33], // 000001101011
  34753. [12, 40], // 000001101100
  34754. [12, 41], // 000001101101
  34755. [11, 22], [11, 22], // 00000110111x
  34756. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  34757. [8, 14], [8, 14], [8, 14], [8, 14],
  34758. [8, 14], [8, 14], [8, 14], [8, 14],
  34759. [8, 14], [8, 14], [8, 14], [8, 14],
  34760. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  34761. [7, 10], [7, 10], [7, 10], [7, 10],
  34762. [7, 10], [7, 10], [7, 10], [7, 10],
  34763. [7, 10], [7, 10], [7, 10], [7, 10],
  34764. [7, 10], [7, 10], [7, 10], [7, 10],
  34765. [7, 10], [7, 10], [7, 10], [7, 10],
  34766. [7, 10], [7, 10], [7, 10], [7, 10],
  34767. [7, 10], [7, 10], [7, 10], [7, 10],
  34768. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  34769. [7, 11], [7, 11], [7, 11], [7, 11],
  34770. [7, 11], [7, 11], [7, 11], [7, 11],
  34771. [7, 11], [7, 11], [7, 11], [7, 11],
  34772. [7, 11], [7, 11], [7, 11], [7, 11],
  34773. [7, 11], [7, 11], [7, 11], [7, 11],
  34774. [7, 11], [7, 11], [7, 11], [7, 11],
  34775. [7, 11], [7, 11], [7, 11], [7, 11],
  34776. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  34777. [9, 15], [9, 15], [9, 15], [9, 15],
  34778. [12, 128], // 000011001000
  34779. [12, 192], // 000011001001
  34780. [12, 26], // 000011001010
  34781. [12, 27], // 000011001011
  34782. [12, 28], // 000011001100
  34783. [12, 29], // 000011001101
  34784. [11, 19], [11, 19], // 00001100111x
  34785. [11, 20], [11, 20], // 00001101000x
  34786. [12, 34], // 000011010010
  34787. [12, 35], // 000011010011
  34788. [12, 36], // 000011010100
  34789. [12, 37], // 000011010101
  34790. [12, 38], // 000011010110
  34791. [12, 39], // 000011010111
  34792. [11, 21], [11, 21], // 00001101100x
  34793. [12, 42], // 000011011010
  34794. [12, 43], // 000011011011
  34795. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  34796. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  34797. [7, 12], [7, 12], [7, 12], [7, 12],
  34798. [7, 12], [7, 12], [7, 12], [7, 12],
  34799. [7, 12], [7, 12], [7, 12], [7, 12],
  34800. [7, 12], [7, 12], [7, 12], [7, 12],
  34801. [7, 12], [7, 12], [7, 12], [7, 12],
  34802. [7, 12], [7, 12], [7, 12], [7, 12],
  34803. [7, 12], [7, 12], [7, 12], [7, 12]
  34804. ];
  34805. var blackTable3 = [
  34806. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  34807. [6, 9], // 000100
  34808. [6, 8], // 000101
  34809. [5, 7], [5, 7], // 00011x
  34810. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  34811. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  34812. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  34813. [3, 1], [3, 1], [3, 1], [3, 1],
  34814. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  34815. [3, 4], [3, 4], [3, 4], [3, 4],
  34816. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  34817. [2, 3], [2, 3], [2, 3], [2, 3],
  34818. [2, 3], [2, 3], [2, 3], [2, 3],
  34819. [2, 3], [2, 3], [2, 3], [2, 3],
  34820. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  34821. [2, 2], [2, 2], [2, 2], [2, 2],
  34822. [2, 2], [2, 2], [2, 2], [2, 2],
  34823. [2, 2], [2, 2], [2, 2], [2, 2]
  34824. ];
  34825. function CCITTFaxStream(str, maybeLength, params) {
  34826. this.str = str;
  34827. this.dict = str.dict;
  34828. params = params || Dict.empty;
  34829. this.encoding = params.get('K') || 0;
  34830. this.eoline = params.get('EndOfLine') || false;
  34831. this.byteAlign = params.get('EncodedByteAlign') || false;
  34832. this.columns = params.get('Columns') || 1728;
  34833. this.rows = params.get('Rows') || 0;
  34834. var eoblock = params.get('EndOfBlock');
  34835. if (eoblock === null || eoblock === undefined) {
  34836. eoblock = true;
  34837. }
  34838. this.eoblock = eoblock;
  34839. this.black = params.get('BlackIs1') || false;
  34840. this.codingLine = new Uint32Array(this.columns + 1);
  34841. this.refLine = new Uint32Array(this.columns + 2);
  34842. this.codingLine[0] = this.columns;
  34843. this.codingPos = 0;
  34844. this.row = 0;
  34845. this.nextLine2D = this.encoding < 0;
  34846. this.inputBits = 0;
  34847. this.inputBuf = 0;
  34848. this.outputBits = 0;
  34849. var code1;
  34850. while ((code1 = this.lookBits(12)) === 0) {
  34851. this.eatBits(1);
  34852. }
  34853. if (code1 == 1) {
  34854. this.eatBits(12);
  34855. }
  34856. if (this.encoding > 0) {
  34857. this.nextLine2D = !this.lookBits(1);
  34858. this.eatBits(1);
  34859. }
  34860. DecodeStream.call(this, maybeLength);
  34861. }
  34862. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  34863. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  34864. while (!this.eof) {
  34865. var c = this.lookChar();
  34866. this.ensureBuffer(this.bufferLength + 1);
  34867. this.buffer[this.bufferLength++] = c;
  34868. }
  34869. };
  34870. CCITTFaxStream.prototype.addPixels =
  34871. function ccittFaxStreamAddPixels(a1, blackPixels) {
  34872. var codingLine = this.codingLine;
  34873. var codingPos = this.codingPos;
  34874. if (a1 > codingLine[codingPos]) {
  34875. if (a1 > this.columns) {
  34876. info('row is wrong length');
  34877. this.err = true;
  34878. a1 = this.columns;
  34879. }
  34880. if ((codingPos & 1) ^ blackPixels) {
  34881. ++codingPos;
  34882. }
  34883. codingLine[codingPos] = a1;
  34884. }
  34885. this.codingPos = codingPos;
  34886. };
  34887. CCITTFaxStream.prototype.addPixelsNeg =
  34888. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  34889. var codingLine = this.codingLine;
  34890. var codingPos = this.codingPos;
  34891. if (a1 > codingLine[codingPos]) {
  34892. if (a1 > this.columns) {
  34893. info('row is wrong length');
  34894. this.err = true;
  34895. a1 = this.columns;
  34896. }
  34897. if ((codingPos & 1) ^ blackPixels) {
  34898. ++codingPos;
  34899. }
  34900. codingLine[codingPos] = a1;
  34901. } else if (a1 < codingLine[codingPos]) {
  34902. if (a1 < 0) {
  34903. info('invalid code');
  34904. this.err = true;
  34905. a1 = 0;
  34906. }
  34907. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  34908. --codingPos;
  34909. }
  34910. codingLine[codingPos] = a1;
  34911. }
  34912. this.codingPos = codingPos;
  34913. };
  34914. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  34915. var refLine = this.refLine;
  34916. var codingLine = this.codingLine;
  34917. var columns = this.columns;
  34918. var refPos, blackPixels, bits, i;
  34919. if (this.outputBits === 0) {
  34920. if (this.eof) {
  34921. return null;
  34922. }
  34923. this.err = false;
  34924. var code1, code2, code3;
  34925. if (this.nextLine2D) {
  34926. for (i = 0; codingLine[i] < columns; ++i) {
  34927. refLine[i] = codingLine[i];
  34928. }
  34929. refLine[i++] = columns;
  34930. refLine[i] = columns;
  34931. codingLine[0] = 0;
  34932. this.codingPos = 0;
  34933. refPos = 0;
  34934. blackPixels = 0;
  34935. while (codingLine[this.codingPos] < columns) {
  34936. code1 = this.getTwoDimCode();
  34937. switch (code1) {
  34938. case twoDimPass:
  34939. this.addPixels(refLine[refPos + 1], blackPixels);
  34940. if (refLine[refPos + 1] < columns) {
  34941. refPos += 2;
  34942. }
  34943. break;
  34944. case twoDimHoriz:
  34945. code1 = code2 = 0;
  34946. if (blackPixels) {
  34947. do {
  34948. code1 += (code3 = this.getBlackCode());
  34949. } while (code3 >= 64);
  34950. do {
  34951. code2 += (code3 = this.getWhiteCode());
  34952. } while (code3 >= 64);
  34953. } else {
  34954. do {
  34955. code1 += (code3 = this.getWhiteCode());
  34956. } while (code3 >= 64);
  34957. do {
  34958. code2 += (code3 = this.getBlackCode());
  34959. } while (code3 >= 64);
  34960. }
  34961. this.addPixels(codingLine[this.codingPos] +
  34962. code1, blackPixels);
  34963. if (codingLine[this.codingPos] < columns) {
  34964. this.addPixels(codingLine[this.codingPos] + code2,
  34965. blackPixels ^ 1);
  34966. }
  34967. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34968. refLine[refPos] < columns) {
  34969. refPos += 2;
  34970. }
  34971. break;
  34972. case twoDimVertR3:
  34973. this.addPixels(refLine[refPos] + 3, blackPixels);
  34974. blackPixels ^= 1;
  34975. if (codingLine[this.codingPos] < columns) {
  34976. ++refPos;
  34977. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34978. refLine[refPos] < columns) {
  34979. refPos += 2;
  34980. }
  34981. }
  34982. break;
  34983. case twoDimVertR2:
  34984. this.addPixels(refLine[refPos] + 2, blackPixels);
  34985. blackPixels ^= 1;
  34986. if (codingLine[this.codingPos] < columns) {
  34987. ++refPos;
  34988. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34989. refLine[refPos] < columns) {
  34990. refPos += 2;
  34991. }
  34992. }
  34993. break;
  34994. case twoDimVertR1:
  34995. this.addPixels(refLine[refPos] + 1, blackPixels);
  34996. blackPixels ^= 1;
  34997. if (codingLine[this.codingPos] < columns) {
  34998. ++refPos;
  34999. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35000. refLine[refPos] < columns) {
  35001. refPos += 2;
  35002. }
  35003. }
  35004. break;
  35005. case twoDimVert0:
  35006. this.addPixels(refLine[refPos], blackPixels);
  35007. blackPixels ^= 1;
  35008. if (codingLine[this.codingPos] < columns) {
  35009. ++refPos;
  35010. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35011. refLine[refPos] < columns) {
  35012. refPos += 2;
  35013. }
  35014. }
  35015. break;
  35016. case twoDimVertL3:
  35017. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  35018. blackPixels ^= 1;
  35019. if (codingLine[this.codingPos] < columns) {
  35020. if (refPos > 0) {
  35021. --refPos;
  35022. } else {
  35023. ++refPos;
  35024. }
  35025. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35026. refLine[refPos] < columns) {
  35027. refPos += 2;
  35028. }
  35029. }
  35030. break;
  35031. case twoDimVertL2:
  35032. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  35033. blackPixels ^= 1;
  35034. if (codingLine[this.codingPos] < columns) {
  35035. if (refPos > 0) {
  35036. --refPos;
  35037. } else {
  35038. ++refPos;
  35039. }
  35040. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35041. refLine[refPos] < columns) {
  35042. refPos += 2;
  35043. }
  35044. }
  35045. break;
  35046. case twoDimVertL1:
  35047. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  35048. blackPixels ^= 1;
  35049. if (codingLine[this.codingPos] < columns) {
  35050. if (refPos > 0) {
  35051. --refPos;
  35052. } else {
  35053. ++refPos;
  35054. }
  35055. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35056. refLine[refPos] < columns) {
  35057. refPos += 2;
  35058. }
  35059. }
  35060. break;
  35061. case EOF:
  35062. this.addPixels(columns, 0);
  35063. this.eof = true;
  35064. break;
  35065. default:
  35066. info('bad 2d code');
  35067. this.addPixels(columns, 0);
  35068. this.err = true;
  35069. }
  35070. }
  35071. } else {
  35072. codingLine[0] = 0;
  35073. this.codingPos = 0;
  35074. blackPixels = 0;
  35075. while (codingLine[this.codingPos] < columns) {
  35076. code1 = 0;
  35077. if (blackPixels) {
  35078. do {
  35079. code1 += (code3 = this.getBlackCode());
  35080. } while (code3 >= 64);
  35081. } else {
  35082. do {
  35083. code1 += (code3 = this.getWhiteCode());
  35084. } while (code3 >= 64);
  35085. }
  35086. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  35087. blackPixels ^= 1;
  35088. }
  35089. }
  35090. if (this.byteAlign) {
  35091. this.inputBits &= ~7;
  35092. }
  35093. var gotEOL = false;
  35094. if (!this.eoblock && this.row == this.rows - 1) {
  35095. this.eof = true;
  35096. } else {
  35097. code1 = this.lookBits(12);
  35098. while (code1 === 0) {
  35099. this.eatBits(1);
  35100. code1 = this.lookBits(12);
  35101. }
  35102. if (code1 == 1) {
  35103. this.eatBits(12);
  35104. gotEOL = true;
  35105. } else if (code1 == EOF) {
  35106. this.eof = true;
  35107. }
  35108. }
  35109. if (!this.eof && this.encoding > 0) {
  35110. this.nextLine2D = !this.lookBits(1);
  35111. this.eatBits(1);
  35112. }
  35113. if (this.eoblock && gotEOL) {
  35114. code1 = this.lookBits(12);
  35115. if (code1 == 1) {
  35116. this.eatBits(12);
  35117. if (this.encoding > 0) {
  35118. this.lookBits(1);
  35119. this.eatBits(1);
  35120. }
  35121. if (this.encoding >= 0) {
  35122. for (i = 0; i < 4; ++i) {
  35123. code1 = this.lookBits(12);
  35124. if (code1 != 1) {
  35125. info('bad rtc code: ' + code1);
  35126. }
  35127. this.eatBits(12);
  35128. if (this.encoding > 0) {
  35129. this.lookBits(1);
  35130. this.eatBits(1);
  35131. }
  35132. }
  35133. }
  35134. this.eof = true;
  35135. }
  35136. } else if (this.err && this.eoline) {
  35137. while (true) {
  35138. code1 = this.lookBits(13);
  35139. if (code1 == EOF) {
  35140. this.eof = true;
  35141. return null;
  35142. }
  35143. if ((code1 >> 1) == 1) {
  35144. break;
  35145. }
  35146. this.eatBits(1);
  35147. }
  35148. this.eatBits(12);
  35149. if (this.encoding > 0) {
  35150. this.eatBits(1);
  35151. this.nextLine2D = !(code1 & 1);
  35152. }
  35153. }
  35154. if (codingLine[0] > 0) {
  35155. this.outputBits = codingLine[this.codingPos = 0];
  35156. } else {
  35157. this.outputBits = codingLine[this.codingPos = 1];
  35158. }
  35159. this.row++;
  35160. }
  35161. var c;
  35162. if (this.outputBits >= 8) {
  35163. c = (this.codingPos & 1) ? 0 : 0xFF;
  35164. this.outputBits -= 8;
  35165. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  35166. this.codingPos++;
  35167. this.outputBits = (codingLine[this.codingPos] -
  35168. codingLine[this.codingPos - 1]);
  35169. }
  35170. } else {
  35171. bits = 8;
  35172. c = 0;
  35173. do {
  35174. if (this.outputBits > bits) {
  35175. c <<= bits;
  35176. if (!(this.codingPos & 1)) {
  35177. c |= 0xFF >> (8 - bits);
  35178. }
  35179. this.outputBits -= bits;
  35180. bits = 0;
  35181. } else {
  35182. c <<= this.outputBits;
  35183. if (!(this.codingPos & 1)) {
  35184. c |= 0xFF >> (8 - this.outputBits);
  35185. }
  35186. bits -= this.outputBits;
  35187. this.outputBits = 0;
  35188. if (codingLine[this.codingPos] < columns) {
  35189. this.codingPos++;
  35190. this.outputBits = (codingLine[this.codingPos] -
  35191. codingLine[this.codingPos - 1]);
  35192. } else if (bits > 0) {
  35193. c <<= bits;
  35194. bits = 0;
  35195. }
  35196. }
  35197. } while (bits);
  35198. }
  35199. if (this.black) {
  35200. c ^= 0xFF;
  35201. }
  35202. return c;
  35203. };
  35204. // This functions returns the code found from the table.
  35205. // The start and end parameters set the boundaries for searching the table.
  35206. // The limit parameter is optional. Function returns an array with three
  35207. // values. The first array element indicates whether a valid code is being
  35208. // returned. The second array element is the actual code. The third array
  35209. // element indicates whether EOF was reached.
  35210. CCITTFaxStream.prototype.findTableCode =
  35211. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  35212. var limitValue = limit || 0;
  35213. for (var i = start; i <= end; ++i) {
  35214. var code = this.lookBits(i);
  35215. if (code == EOF) {
  35216. return [true, 1, false];
  35217. }
  35218. if (i < end) {
  35219. code <<= end - i;
  35220. }
  35221. if (!limitValue || code >= limitValue) {
  35222. var p = table[code - limitValue];
  35223. if (p[0] == i) {
  35224. this.eatBits(i);
  35225. return [true, p[1], true];
  35226. }
  35227. }
  35228. }
  35229. return [false, 0, false];
  35230. };
  35231. CCITTFaxStream.prototype.getTwoDimCode =
  35232. function ccittFaxStreamGetTwoDimCode() {
  35233. var code = 0;
  35234. var p;
  35235. if (this.eoblock) {
  35236. code = this.lookBits(7);
  35237. p = twoDimTable[code];
  35238. if (p && p[0] > 0) {
  35239. this.eatBits(p[0]);
  35240. return p[1];
  35241. }
  35242. } else {
  35243. var result = this.findTableCode(1, 7, twoDimTable);
  35244. if (result[0] && result[2]) {
  35245. return result[1];
  35246. }
  35247. }
  35248. info('Bad two dim code');
  35249. return EOF;
  35250. };
  35251. CCITTFaxStream.prototype.getWhiteCode =
  35252. function ccittFaxStreamGetWhiteCode() {
  35253. var code = 0;
  35254. var p;
  35255. if (this.eoblock) {
  35256. code = this.lookBits(12);
  35257. if (code == EOF) {
  35258. return 1;
  35259. }
  35260. if ((code >> 5) === 0) {
  35261. p = whiteTable1[code];
  35262. } else {
  35263. p = whiteTable2[code >> 3];
  35264. }
  35265. if (p[0] > 0) {
  35266. this.eatBits(p[0]);
  35267. return p[1];
  35268. }
  35269. } else {
  35270. var result = this.findTableCode(1, 9, whiteTable2);
  35271. if (result[0]) {
  35272. return result[1];
  35273. }
  35274. result = this.findTableCode(11, 12, whiteTable1);
  35275. if (result[0]) {
  35276. return result[1];
  35277. }
  35278. }
  35279. info('bad white code');
  35280. this.eatBits(1);
  35281. return 1;
  35282. };
  35283. CCITTFaxStream.prototype.getBlackCode =
  35284. function ccittFaxStreamGetBlackCode() {
  35285. var code, p;
  35286. if (this.eoblock) {
  35287. code = this.lookBits(13);
  35288. if (code == EOF) {
  35289. return 1;
  35290. }
  35291. if ((code >> 7) === 0) {
  35292. p = blackTable1[code];
  35293. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  35294. p = blackTable2[(code >> 1) - 64];
  35295. } else {
  35296. p = blackTable3[code >> 7];
  35297. }
  35298. if (p[0] > 0) {
  35299. this.eatBits(p[0]);
  35300. return p[1];
  35301. }
  35302. } else {
  35303. var result = this.findTableCode(2, 6, blackTable3);
  35304. if (result[0]) {
  35305. return result[1];
  35306. }
  35307. result = this.findTableCode(7, 12, blackTable2, 64);
  35308. if (result[0]) {
  35309. return result[1];
  35310. }
  35311. result = this.findTableCode(10, 13, blackTable1);
  35312. if (result[0]) {
  35313. return result[1];
  35314. }
  35315. }
  35316. info('bad black code');
  35317. this.eatBits(1);
  35318. return 1;
  35319. };
  35320. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  35321. var c;
  35322. while (this.inputBits < n) {
  35323. if ((c = this.str.getByte()) === -1) {
  35324. if (this.inputBits === 0) {
  35325. return EOF;
  35326. }
  35327. return ((this.inputBuf << (n - this.inputBits)) &
  35328. (0xFFFF >> (16 - n)));
  35329. }
  35330. this.inputBuf = (this.inputBuf << 8) + c;
  35331. this.inputBits += 8;
  35332. }
  35333. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  35334. };
  35335. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  35336. if ((this.inputBits -= n) < 0) {
  35337. this.inputBits = 0;
  35338. }
  35339. };
  35340. return CCITTFaxStream;
  35341. })();
  35342. var LZWStream = (function LZWStreamClosure() {
  35343. function LZWStream(str, maybeLength, earlyChange) {
  35344. this.str = str;
  35345. this.dict = str.dict;
  35346. this.cachedData = 0;
  35347. this.bitsCached = 0;
  35348. var maxLzwDictionarySize = 4096;
  35349. var lzwState = {
  35350. earlyChange: earlyChange,
  35351. codeLength: 9,
  35352. nextCode: 258,
  35353. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  35354. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  35355. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  35356. currentSequence: new Uint8Array(maxLzwDictionarySize),
  35357. currentSequenceLength: 0
  35358. };
  35359. for (var i = 0; i < 256; ++i) {
  35360. lzwState.dictionaryValues[i] = i;
  35361. lzwState.dictionaryLengths[i] = 1;
  35362. }
  35363. this.lzwState = lzwState;
  35364. DecodeStream.call(this, maybeLength);
  35365. }
  35366. LZWStream.prototype = Object.create(DecodeStream.prototype);
  35367. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  35368. var bitsCached = this.bitsCached;
  35369. var cachedData = this.cachedData;
  35370. while (bitsCached < n) {
  35371. var c = this.str.getByte();
  35372. if (c === -1) {
  35373. this.eof = true;
  35374. return null;
  35375. }
  35376. cachedData = (cachedData << 8) | c;
  35377. bitsCached += 8;
  35378. }
  35379. this.bitsCached = (bitsCached -= n);
  35380. this.cachedData = cachedData;
  35381. this.lastCode = null;
  35382. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  35383. };
  35384. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  35385. var blockSize = 512;
  35386. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  35387. var i, j, q;
  35388. var lzwState = this.lzwState;
  35389. if (!lzwState) {
  35390. return; // eof was found
  35391. }
  35392. var earlyChange = lzwState.earlyChange;
  35393. var nextCode = lzwState.nextCode;
  35394. var dictionaryValues = lzwState.dictionaryValues;
  35395. var dictionaryLengths = lzwState.dictionaryLengths;
  35396. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  35397. var codeLength = lzwState.codeLength;
  35398. var prevCode = lzwState.prevCode;
  35399. var currentSequence = lzwState.currentSequence;
  35400. var currentSequenceLength = lzwState.currentSequenceLength;
  35401. var decodedLength = 0;
  35402. var currentBufferLength = this.bufferLength;
  35403. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35404. for (i = 0; i < blockSize; i++) {
  35405. var code = this.readBits(codeLength);
  35406. var hasPrev = currentSequenceLength > 0;
  35407. if (code < 256) {
  35408. currentSequence[0] = code;
  35409. currentSequenceLength = 1;
  35410. } else if (code >= 258) {
  35411. if (code < nextCode) {
  35412. currentSequenceLength = dictionaryLengths[code];
  35413. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  35414. currentSequence[j] = dictionaryValues[q];
  35415. q = dictionaryPrevCodes[q];
  35416. }
  35417. } else {
  35418. currentSequence[currentSequenceLength++] = currentSequence[0];
  35419. }
  35420. } else if (code == 256) {
  35421. codeLength = 9;
  35422. nextCode = 258;
  35423. currentSequenceLength = 0;
  35424. continue;
  35425. } else {
  35426. this.eof = true;
  35427. delete this.lzwState;
  35428. break;
  35429. }
  35430. if (hasPrev) {
  35431. dictionaryPrevCodes[nextCode] = prevCode;
  35432. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  35433. dictionaryValues[nextCode] = currentSequence[0];
  35434. nextCode++;
  35435. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  35436. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  35437. 0.6931471805599453 + 1, 12) | 0;
  35438. }
  35439. prevCode = code;
  35440. decodedLength += currentSequenceLength;
  35441. if (estimatedDecodedSize < decodedLength) {
  35442. do {
  35443. estimatedDecodedSize += decodedSizeDelta;
  35444. } while (estimatedDecodedSize < decodedLength);
  35445. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35446. }
  35447. for (j = 0; j < currentSequenceLength; j++) {
  35448. buffer[currentBufferLength++] = currentSequence[j];
  35449. }
  35450. }
  35451. lzwState.nextCode = nextCode;
  35452. lzwState.codeLength = codeLength;
  35453. lzwState.prevCode = prevCode;
  35454. lzwState.currentSequenceLength = currentSequenceLength;
  35455. this.bufferLength = currentBufferLength;
  35456. };
  35457. return LZWStream;
  35458. })();
  35459. var NullStream = (function NullStreamClosure() {
  35460. function NullStream() {
  35461. Stream.call(this, new Uint8Array(0));
  35462. }
  35463. NullStream.prototype = Stream.prototype;
  35464. return NullStream;
  35465. })();
  35466. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  35467. setup: function wphSetup(handler) {
  35468. var pdfManager;
  35469. function loadDocument(recoveryMode) {
  35470. var loadDocumentPromise = new LegacyPromise();
  35471. var parseSuccess = function parseSuccess() {
  35472. var numPagesPromise = pdfManager.ensureDoc('numPages');
  35473. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  35474. var outlinePromise = pdfManager.ensureCatalog('documentOutline');
  35475. var infoPromise = pdfManager.ensureDoc('documentInfo');
  35476. var metadataPromise = pdfManager.ensureCatalog('metadata');
  35477. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  35478. var javaScriptPromise = pdfManager.ensureCatalog('javaScript');
  35479. Promise.all([numPagesPromise, fingerprintPromise, outlinePromise,
  35480. infoPromise, metadataPromise, encryptedPromise,
  35481. javaScriptPromise]).then(function onDocReady(results) {
  35482. var doc = {
  35483. numPages: results[0],
  35484. fingerprint: results[1],
  35485. outline: results[2],
  35486. info: results[3],
  35487. metadata: results[4],
  35488. encrypted: !!results[5],
  35489. javaScript: results[6]
  35490. };
  35491. loadDocumentPromise.resolve(doc);
  35492. },
  35493. parseFailure);
  35494. };
  35495. var parseFailure = function parseFailure(e) {
  35496. loadDocumentPromise.reject(e);
  35497. };
  35498. pdfManager.ensureDoc('checkHeader', []).then(function() {
  35499. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  35500. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  35501. parseSuccess, parseFailure);
  35502. }, parseFailure);
  35503. }, parseFailure);
  35504. return loadDocumentPromise;
  35505. }
  35506. function getPdfManager(data) {
  35507. var pdfManagerPromise = new LegacyPromise();
  35508. var source = data.source;
  35509. var disableRange = data.disableRange;
  35510. if (source.data) {
  35511. try {
  35512. pdfManager = new LocalPdfManager(source.data, source.password);
  35513. pdfManagerPromise.resolve();
  35514. } catch (ex) {
  35515. pdfManagerPromise.reject(ex);
  35516. }
  35517. return pdfManagerPromise;
  35518. } else if (source.chunkedViewerLoading) {
  35519. try {
  35520. pdfManager = new NetworkPdfManager(source, handler);
  35521. pdfManagerPromise.resolve();
  35522. } catch (ex) {
  35523. pdfManagerPromise.reject(ex);
  35524. }
  35525. return pdfManagerPromise;
  35526. }
  35527. var networkManager = new NetworkManager(source.url, {
  35528. httpHeaders: source.httpHeaders,
  35529. withCredentials: source.withCredentials
  35530. });
  35531. var fullRequestXhrId = networkManager.requestFull({
  35532. onHeadersReceived: function onHeadersReceived() {
  35533. if (disableRange) {
  35534. return;
  35535. }
  35536. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  35537. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  35538. return;
  35539. }
  35540. var contentEncoding =
  35541. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  35542. if (contentEncoding !== 'identity') {
  35543. return;
  35544. }
  35545. var length = fullRequestXhr.getResponseHeader('Content-Length');
  35546. length = parseInt(length, 10);
  35547. if (!isInt(length)) {
  35548. return;
  35549. }
  35550. source.length = length;
  35551. if (length <= 2 * RANGE_CHUNK_SIZE) {
  35552. // The file size is smaller than the size of two chunks, so it does
  35553. // not make any sense to abort the request and retry with a range
  35554. // request.
  35555. return;
  35556. }
  35557. // NOTE: by cancelling the full request, and then issuing range
  35558. // requests, there will be an issue for sites where you can only
  35559. // request the pdf once. However, if this is the case, then the
  35560. // server should not be returning that it can support range requests.
  35561. networkManager.abortRequest(fullRequestXhrId);
  35562. try {
  35563. pdfManager = new NetworkPdfManager(source, handler);
  35564. pdfManagerPromise.resolve(pdfManager);
  35565. } catch (ex) {
  35566. pdfManagerPromise.reject(ex);
  35567. }
  35568. },
  35569. onDone: function onDone(args) {
  35570. // the data is array, instantiating directly from it
  35571. try {
  35572. pdfManager = new LocalPdfManager(args.chunk, source.password);
  35573. pdfManagerPromise.resolve();
  35574. } catch (ex) {
  35575. pdfManagerPromise.reject(ex);
  35576. }
  35577. },
  35578. onError: function onError(status) {
  35579. if (status == 404) {
  35580. var exception = new MissingPDFException('Missing PDF "' +
  35581. source.url + '".');
  35582. handler.send('MissingPDF', { exception: exception });
  35583. } else {
  35584. handler.send('DocError', 'Unexpected server response (' +
  35585. status + ') while retrieving PDF "' +
  35586. source.url + '".');
  35587. }
  35588. },
  35589. onProgress: function onProgress(evt) {
  35590. handler.send('DocProgress', {
  35591. loaded: evt.loaded,
  35592. total: evt.lengthComputable ? evt.total : source.length
  35593. });
  35594. }
  35595. });
  35596. return pdfManagerPromise;
  35597. }
  35598. handler.on('test', function wphSetupTest(data) {
  35599. // check if Uint8Array can be sent to worker
  35600. if (!(data instanceof Uint8Array)) {
  35601. handler.send('test', false);
  35602. return;
  35603. }
  35604. // making sure postMessage transfers are working
  35605. var supportTransfers = data[0] === 255;
  35606. handler.postMessageTransfers = supportTransfers;
  35607. // check if the response property is supported by xhr
  35608. var xhr = new XMLHttpRequest();
  35609. var responseExists = 'response' in xhr;
  35610. // check if the property is actually implemented
  35611. try {
  35612. var dummy = xhr.responseType;
  35613. } catch (e) {
  35614. responseExists = false;
  35615. }
  35616. if (!responseExists) {
  35617. handler.send('test', false);
  35618. return;
  35619. }
  35620. handler.send('test', {
  35621. supportTypedArray: true,
  35622. supportTransfers: supportTransfers
  35623. });
  35624. });
  35625. handler.on('GetDocRequest', function wphSetupDoc(data) {
  35626. var onSuccess = function(doc) {
  35627. handler.send('GetDoc', { pdfInfo: doc });
  35628. };
  35629. var onFailure = function(e) {
  35630. if (e instanceof PasswordException) {
  35631. if (e.code === PasswordResponses.NEED_PASSWORD) {
  35632. handler.send('NeedPassword', {
  35633. exception: e
  35634. });
  35635. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  35636. handler.send('IncorrectPassword', {
  35637. exception: e
  35638. });
  35639. }
  35640. } else if (e instanceof InvalidPDFException) {
  35641. handler.send('InvalidPDF', {
  35642. exception: e
  35643. });
  35644. } else if (e instanceof MissingPDFException) {
  35645. handler.send('MissingPDF', {
  35646. exception: e
  35647. });
  35648. } else {
  35649. handler.send('UnknownError', {
  35650. exception: new UnknownErrorException(e.message, e.toString())
  35651. });
  35652. }
  35653. };
  35654. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  35655. -1 : data.maxImageSize;
  35656. PDFJS.disableFontFace = data.disableFontFace;
  35657. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  35658. PDFJS.verbosity = data.verbosity;
  35659. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  35660. null : data.cMapUrl;
  35661. PDFJS.cMapPacked = data.cMapPacked === true;
  35662. getPdfManager(data).then(function () {
  35663. pdfManager.onLoadedStream().then(function(stream) {
  35664. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  35665. });
  35666. }).then(function pdfManagerReady() {
  35667. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  35668. // Try again with recoveryMode == true
  35669. if (!(ex instanceof XRefParseException)) {
  35670. if (ex instanceof PasswordException) {
  35671. // after password exception prepare to receive a new password
  35672. // to repeat loading
  35673. pdfManager.passwordChangedPromise = new LegacyPromise();
  35674. pdfManager.passwordChangedPromise.then(pdfManagerReady);
  35675. }
  35676. onFailure(ex);
  35677. return;
  35678. }
  35679. pdfManager.requestLoadedStream();
  35680. pdfManager.onLoadedStream().then(function() {
  35681. loadDocument(true).then(onSuccess, onFailure);
  35682. });
  35683. }, onFailure);
  35684. }, onFailure);
  35685. });
  35686. handler.on('GetPageRequest', function wphSetupGetPage(data) {
  35687. var pageIndex = data.pageIndex;
  35688. pdfManager.getPage(pageIndex).then(function(page) {
  35689. var rotatePromise = pdfManager.ensure(page, 'rotate');
  35690. var refPromise = pdfManager.ensure(page, 'ref');
  35691. var viewPromise = pdfManager.ensure(page, 'view');
  35692. Promise.all([rotatePromise, refPromise, viewPromise]).then(
  35693. function(results) {
  35694. var page = {
  35695. pageIndex: data.pageIndex,
  35696. rotate: results[0],
  35697. ref: results[1],
  35698. view: results[2]
  35699. };
  35700. handler.send('GetPage', { pageInfo: page });
  35701. });
  35702. });
  35703. });
  35704. handler.on('GetPageIndex', function wphSetupGetPageIndex(data, deferred) {
  35705. var ref = new Ref(data.ref.num, data.ref.gen);
  35706. var catalog = pdfManager.pdfDocument.catalog;
  35707. catalog.getPageIndex(ref).then(function (pageIndex) {
  35708. deferred.resolve(pageIndex);
  35709. }, deferred.reject);
  35710. });
  35711. handler.on('GetDestinations',
  35712. function wphSetupGetDestinations(data, deferred) {
  35713. pdfManager.ensureCatalog('destinations').then(function(destinations) {
  35714. deferred.resolve(destinations);
  35715. });
  35716. }
  35717. );
  35718. handler.on('GetAttachments',
  35719. function wphSetupGetAttachments(data, deferred) {
  35720. pdfManager.ensureCatalog('attachments').then(function(attachments) {
  35721. deferred.resolve(attachments);
  35722. }, deferred.reject);
  35723. }
  35724. );
  35725. handler.on('GetData', function wphSetupGetData(data, deferred) {
  35726. pdfManager.requestLoadedStream();
  35727. pdfManager.onLoadedStream().then(function(stream) {
  35728. deferred.resolve(stream.bytes);
  35729. });
  35730. });
  35731. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  35732. pdfManager.updatePassword(data);
  35733. });
  35734. handler.on('GetAnnotationsRequest', function wphSetupGetAnnotations(data) {
  35735. pdfManager.getPage(data.pageIndex).then(function(page) {
  35736. pdfManager.ensure(page, 'getAnnotationsData', []).then(
  35737. function(annotationsData) {
  35738. handler.send('GetAnnotations', {
  35739. pageIndex: data.pageIndex,
  35740. annotations: annotationsData
  35741. });
  35742. }
  35743. );
  35744. });
  35745. });
  35746. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  35747. pdfManager.getPage(data.pageIndex).then(function(page) {
  35748. var pageNum = data.pageIndex + 1;
  35749. var start = Date.now();
  35750. // Pre compile the pdf page and fetch the fonts/images.
  35751. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  35752. info('page=' + pageNum + ' - getOperatorList: time=' +
  35753. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  35754. }, function(e) {
  35755. var minimumStackMessage =
  35756. 'worker.js: while trying to getPage() and getOperatorList()';
  35757. var wrappedException;
  35758. // Turn the error into an obj that can be serialized
  35759. if (typeof e === 'string') {
  35760. wrappedException = {
  35761. message: e,
  35762. stack: minimumStackMessage
  35763. };
  35764. } else if (typeof e === 'object') {
  35765. wrappedException = {
  35766. message: e.message || e.toString(),
  35767. stack: e.stack || minimumStackMessage
  35768. };
  35769. } else {
  35770. wrappedException = {
  35771. message: 'Unknown exception type: ' + (typeof e),
  35772. stack: minimumStackMessage
  35773. };
  35774. }
  35775. handler.send('PageError', {
  35776. pageNum: pageNum,
  35777. error: wrappedException,
  35778. intent: data.intent
  35779. });
  35780. });
  35781. });
  35782. }, this);
  35783. handler.on('GetTextContent', function wphExtractText(data, deferred) {
  35784. pdfManager.getPage(data.pageIndex).then(function(page) {
  35785. var pageNum = data.pageIndex + 1;
  35786. var start = Date.now();
  35787. page.extractTextContent().then(function(textContent) {
  35788. deferred.resolve(textContent);
  35789. info('text indexing: page=' + pageNum + ' - time=' +
  35790. (Date.now() - start) + 'ms');
  35791. }, function (e) {
  35792. // Skip errored pages
  35793. deferred.reject(e);
  35794. });
  35795. });
  35796. });
  35797. handler.on('Cleanup', function wphCleanup(data, deferred) {
  35798. pdfManager.cleanup();
  35799. deferred.resolve(true);
  35800. });
  35801. handler.on('Terminate', function wphTerminate(data, deferred) {
  35802. pdfManager.terminate();
  35803. deferred.resolve();
  35804. });
  35805. }
  35806. };
  35807. var consoleTimer = {};
  35808. var workerConsole = {
  35809. log: function log() {
  35810. var args = Array.prototype.slice.call(arguments);
  35811. globalScope.postMessage({
  35812. action: 'console_log',
  35813. data: args
  35814. });
  35815. },
  35816. error: function error() {
  35817. var args = Array.prototype.slice.call(arguments);
  35818. globalScope.postMessage({
  35819. action: 'console_error',
  35820. data: args
  35821. });
  35822. throw 'pdf.js execution error';
  35823. },
  35824. time: function time(name) {
  35825. consoleTimer[name] = Date.now();
  35826. },
  35827. timeEnd: function timeEnd(name) {
  35828. var time = consoleTimer[name];
  35829. if (!time) {
  35830. error('Unknown timer name ' + name);
  35831. }
  35832. this.log('Timer:', name, Date.now() - time);
  35833. }
  35834. };
  35835. // Worker thread?
  35836. if (typeof window === 'undefined') {
  35837. if (!('console' in globalScope)) {
  35838. globalScope.console = workerConsole;
  35839. }
  35840. // Listen for unsupported features so we can pass them on to the main thread.
  35841. PDFJS.UnsupportedManager.listen(function (msg) {
  35842. globalScope.postMessage({
  35843. action: '_unsupported_feature',
  35844. data: msg
  35845. });
  35846. });
  35847. var handler = new MessageHandler('worker_processor', this);
  35848. WorkerMessageHandler.setup(handler);
  35849. }
  35850. /* This class implements the QM Coder decoding as defined in
  35851. * JPEG 2000 Part I Final Committee Draft Version 1.0
  35852. * Annex C.3 Arithmetic decoding procedure
  35853. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  35854. *
  35855. * The arithmetic decoder is used in conjunction with context models to decode
  35856. * JPEG2000 and JBIG2 streams.
  35857. */
  35858. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  35859. // Table C-2
  35860. var QeTable = [
  35861. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  35862. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  35863. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  35864. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  35865. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  35866. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  35867. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  35868. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  35869. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  35870. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  35871. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  35872. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  35873. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  35874. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  35875. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  35876. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  35877. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  35878. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  35879. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  35880. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  35881. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  35882. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  35883. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  35884. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  35885. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  35886. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  35887. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  35888. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  35889. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  35890. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  35891. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  35892. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  35893. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  35894. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  35895. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  35896. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  35897. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  35898. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  35899. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  35900. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  35901. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  35902. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  35903. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  35904. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  35905. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  35906. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  35907. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  35908. ];
  35909. // C.3.5 Initialisation of the decoder (INITDEC)
  35910. function ArithmeticDecoder(data, start, end) {
  35911. this.data = data;
  35912. this.bp = start;
  35913. this.dataEnd = end;
  35914. this.chigh = data[start];
  35915. this.clow = 0;
  35916. this.byteIn();
  35917. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  35918. this.clow = (this.clow << 7) & 0xFFFF;
  35919. this.ct -= 7;
  35920. this.a = 0x8000;
  35921. }
  35922. ArithmeticDecoder.prototype = {
  35923. // C.3.4 Compressed data input (BYTEIN)
  35924. byteIn: function ArithmeticDecoder_byteIn() {
  35925. var data = this.data;
  35926. var bp = this.bp;
  35927. if (data[bp] == 0xFF) {
  35928. var b1 = data[bp + 1];
  35929. if (b1 > 0x8F) {
  35930. this.clow += 0xFF00;
  35931. this.ct = 8;
  35932. } else {
  35933. bp++;
  35934. this.clow += (data[bp] << 9);
  35935. this.ct = 7;
  35936. this.bp = bp;
  35937. }
  35938. } else {
  35939. bp++;
  35940. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  35941. this.ct = 8;
  35942. this.bp = bp;
  35943. }
  35944. if (this.clow > 0xFFFF) {
  35945. this.chigh += (this.clow >> 16);
  35946. this.clow &= 0xFFFF;
  35947. }
  35948. },
  35949. // C.3.2 Decoding a decision (DECODE)
  35950. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  35951. // contexts are packed into 1 byte:
  35952. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  35953. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  35954. var qeTableIcx = QeTable[cx_index];
  35955. var qeIcx = qeTableIcx.qe;
  35956. var d;
  35957. var a = this.a - qeIcx;
  35958. if (this.chigh < qeIcx) {
  35959. // exchangeLps
  35960. if (a < qeIcx) {
  35961. a = qeIcx;
  35962. d = cx_mps;
  35963. cx_index = qeTableIcx.nmps;
  35964. } else {
  35965. a = qeIcx;
  35966. d = 1 ^ cx_mps;
  35967. if (qeTableIcx.switchFlag === 1) {
  35968. cx_mps = d;
  35969. }
  35970. cx_index = qeTableIcx.nlps;
  35971. }
  35972. } else {
  35973. this.chigh -= qeIcx;
  35974. if ((a & 0x8000) !== 0) {
  35975. this.a = a;
  35976. return cx_mps;
  35977. }
  35978. // exchangeMps
  35979. if (a < qeIcx) {
  35980. d = 1 ^ cx_mps;
  35981. if (qeTableIcx.switchFlag === 1) {
  35982. cx_mps = d;
  35983. }
  35984. cx_index = qeTableIcx.nlps;
  35985. } else {
  35986. d = cx_mps;
  35987. cx_index = qeTableIcx.nmps;
  35988. }
  35989. }
  35990. // C.3.3 renormD;
  35991. do {
  35992. if (this.ct === 0) {
  35993. this.byteIn();
  35994. }
  35995. a <<= 1;
  35996. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  35997. this.clow = (this.clow << 1) & 0xFFFF;
  35998. this.ct--;
  35999. } while ((a & 0x8000) === 0);
  36000. this.a = a;
  36001. contexts[pos] = cx_index << 1 | cx_mps;
  36002. return d;
  36003. }
  36004. };
  36005. return ArithmeticDecoder;
  36006. })();
  36007. var JpegImage = (function jpegImage() {
  36008. var dctZigZag = new Int32Array([
  36009. 0,
  36010. 1, 8,
  36011. 16, 9, 2,
  36012. 3, 10, 17, 24,
  36013. 32, 25, 18, 11, 4,
  36014. 5, 12, 19, 26, 33, 40,
  36015. 48, 41, 34, 27, 20, 13, 6,
  36016. 7, 14, 21, 28, 35, 42, 49, 56,
  36017. 57, 50, 43, 36, 29, 22, 15,
  36018. 23, 30, 37, 44, 51, 58,
  36019. 59, 52, 45, 38, 31,
  36020. 39, 46, 53, 60,
  36021. 61, 54, 47,
  36022. 55, 62,
  36023. 63
  36024. ]);
  36025. var dctCos1 = 4017; // cos(pi/16)
  36026. var dctSin1 = 799; // sin(pi/16)
  36027. var dctCos3 = 3406; // cos(3*pi/16)
  36028. var dctSin3 = 2276; // sin(3*pi/16)
  36029. var dctCos6 = 1567; // cos(6*pi/16)
  36030. var dctSin6 = 3784; // sin(6*pi/16)
  36031. var dctSqrt2 = 5793; // sqrt(2)
  36032. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  36033. function constructor() {
  36034. }
  36035. function buildHuffmanTable(codeLengths, values) {
  36036. var k = 0, code = [], i, j, length = 16;
  36037. while (length > 0 && !codeLengths[length - 1]) {
  36038. length--;
  36039. }
  36040. code.push({children: [], index: 0});
  36041. var p = code[0], q;
  36042. for (i = 0; i < length; i++) {
  36043. for (j = 0; j < codeLengths[i]; j++) {
  36044. p = code.pop();
  36045. p.children[p.index] = values[k];
  36046. while (p.index > 0) {
  36047. p = code.pop();
  36048. }
  36049. p.index++;
  36050. code.push(p);
  36051. while (code.length <= i) {
  36052. code.push(q = {children: [], index: 0});
  36053. p.children[p.index] = q.children;
  36054. p = q;
  36055. }
  36056. k++;
  36057. }
  36058. if (i + 1 < length) {
  36059. // p here points to last code
  36060. code.push(q = {children: [], index: 0});
  36061. p.children[p.index] = q.children;
  36062. p = q;
  36063. }
  36064. }
  36065. return code[0].children;
  36066. }
  36067. function getBlockBufferOffset(component, row, col) {
  36068. return 64 * ((component.blocksPerLine + 1) * row + col);
  36069. }
  36070. function decodeScan(data, offset,
  36071. frame, components, resetInterval,
  36072. spectralStart, spectralEnd,
  36073. successivePrev, successive) {
  36074. var precision = frame.precision;
  36075. var samplesPerLine = frame.samplesPerLine;
  36076. var scanLines = frame.scanLines;
  36077. var mcusPerLine = frame.mcusPerLine;
  36078. var progressive = frame.progressive;
  36079. var maxH = frame.maxH, maxV = frame.maxV;
  36080. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36081. function readBit() {
  36082. if (bitsCount > 0) {
  36083. bitsCount--;
  36084. return (bitsData >> bitsCount) & 1;
  36085. }
  36086. bitsData = data[offset++];
  36087. if (bitsData == 0xFF) {
  36088. var nextByte = data[offset++];
  36089. if (nextByte) {
  36090. throw 'unexpected marker: ' +
  36091. ((bitsData << 8) | nextByte).toString(16);
  36092. }
  36093. // unstuff 0
  36094. }
  36095. bitsCount = 7;
  36096. return bitsData >>> 7;
  36097. }
  36098. function decodeHuffman(tree) {
  36099. var node = tree;
  36100. var bit;
  36101. while ((bit = readBit()) !== null) {
  36102. node = node[bit];
  36103. if (typeof node === 'number') {
  36104. return node;
  36105. }
  36106. if (typeof node !== 'object') {
  36107. throw 'invalid huffman sequence';
  36108. }
  36109. }
  36110. return null;
  36111. }
  36112. function receive(length) {
  36113. var n = 0;
  36114. while (length > 0) {
  36115. var bit = readBit();
  36116. if (bit === null) {
  36117. return;
  36118. }
  36119. n = (n << 1) | bit;
  36120. length--;
  36121. }
  36122. return n;
  36123. }
  36124. function receiveAndExtend(length) {
  36125. var n = receive(length);
  36126. if (n >= 1 << (length - 1)) {
  36127. return n;
  36128. }
  36129. return n + (-1 << length) + 1;
  36130. }
  36131. function decodeBaseline(component, offset) {
  36132. var t = decodeHuffman(component.huffmanTableDC);
  36133. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36134. component.blockData[offset] = (component.pred += diff);
  36135. var k = 1;
  36136. while (k < 64) {
  36137. var rs = decodeHuffman(component.huffmanTableAC);
  36138. var s = rs & 15, r = rs >> 4;
  36139. if (s === 0) {
  36140. if (r < 15) {
  36141. break;
  36142. }
  36143. k += 16;
  36144. continue;
  36145. }
  36146. k += r;
  36147. var z = dctZigZag[k];
  36148. component.blockData[offset + z] = receiveAndExtend(s);
  36149. k++;
  36150. }
  36151. }
  36152. function decodeDCFirst(component, offset) {
  36153. var t = decodeHuffman(component.huffmanTableDC);
  36154. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  36155. component.blockData[offset] = (component.pred += diff);
  36156. }
  36157. function decodeDCSuccessive(component, offset) {
  36158. component.blockData[offset] |= readBit() << successive;
  36159. }
  36160. var eobrun = 0;
  36161. function decodeACFirst(component, offset) {
  36162. if (eobrun > 0) {
  36163. eobrun--;
  36164. return;
  36165. }
  36166. var k = spectralStart, e = spectralEnd;
  36167. while (k <= e) {
  36168. var rs = decodeHuffman(component.huffmanTableAC);
  36169. var s = rs & 15, r = rs >> 4;
  36170. if (s === 0) {
  36171. if (r < 15) {
  36172. eobrun = receive(r) + (1 << r) - 1;
  36173. break;
  36174. }
  36175. k += 16;
  36176. continue;
  36177. }
  36178. k += r;
  36179. var z = dctZigZag[k];
  36180. component.blockData[offset + z] =
  36181. receiveAndExtend(s) * (1 << successive);
  36182. k++;
  36183. }
  36184. }
  36185. var successiveACState = 0, successiveACNextValue;
  36186. function decodeACSuccessive(component, offset) {
  36187. var k = spectralStart;
  36188. var e = spectralEnd;
  36189. var r = 0;
  36190. var s;
  36191. var rs;
  36192. while (k <= e) {
  36193. var z = dctZigZag[k];
  36194. switch (successiveACState) {
  36195. case 0: // initial state
  36196. rs = decodeHuffman(component.huffmanTableAC);
  36197. s = rs & 15;
  36198. r = rs >> 4;
  36199. if (s === 0) {
  36200. if (r < 15) {
  36201. eobrun = receive(r) + (1 << r);
  36202. successiveACState = 4;
  36203. } else {
  36204. r = 16;
  36205. successiveACState = 1;
  36206. }
  36207. } else {
  36208. if (s !== 1) {
  36209. throw 'invalid ACn encoding';
  36210. }
  36211. successiveACNextValue = receiveAndExtend(s);
  36212. successiveACState = r ? 2 : 3;
  36213. }
  36214. continue;
  36215. case 1: // skipping r zero items
  36216. case 2:
  36217. if (component.blockData[offset + z]) {
  36218. component.blockData[offset + z] += (readBit() << successive);
  36219. } else {
  36220. r--;
  36221. if (r === 0) {
  36222. successiveACState = successiveACState == 2 ? 3 : 0;
  36223. }
  36224. }
  36225. break;
  36226. case 3: // set value for a zero item
  36227. if (component.blockData[offset + z]) {
  36228. component.blockData[offset + z] += (readBit() << successive);
  36229. } else {
  36230. component.blockData[offset + z] =
  36231. successiveACNextValue << successive;
  36232. successiveACState = 0;
  36233. }
  36234. break;
  36235. case 4: // eob
  36236. if (component.blockData[offset + z]) {
  36237. component.blockData[offset + z] += (readBit() << successive);
  36238. }
  36239. break;
  36240. }
  36241. k++;
  36242. }
  36243. if (successiveACState === 4) {
  36244. eobrun--;
  36245. if (eobrun === 0) {
  36246. successiveACState = 0;
  36247. }
  36248. }
  36249. }
  36250. function decodeMcu(component, decode, mcu, row, col) {
  36251. var mcuRow = (mcu / mcusPerLine) | 0;
  36252. var mcuCol = mcu % mcusPerLine;
  36253. var blockRow = mcuRow * component.v + row;
  36254. var blockCol = mcuCol * component.h + col;
  36255. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36256. decode(component, offset);
  36257. }
  36258. function decodeBlock(component, decode, mcu) {
  36259. var blockRow = (mcu / component.blocksPerLine) | 0;
  36260. var blockCol = mcu % component.blocksPerLine;
  36261. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36262. decode(component, offset);
  36263. }
  36264. var componentsLength = components.length;
  36265. var component, i, j, k, n;
  36266. var decodeFn;
  36267. if (progressive) {
  36268. if (spectralStart === 0) {
  36269. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  36270. } else {
  36271. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  36272. }
  36273. } else {
  36274. decodeFn = decodeBaseline;
  36275. }
  36276. var mcu = 0, marker;
  36277. var mcuExpected;
  36278. if (componentsLength == 1) {
  36279. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  36280. } else {
  36281. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  36282. }
  36283. if (!resetInterval) {
  36284. resetInterval = mcuExpected;
  36285. }
  36286. var h, v;
  36287. while (mcu < mcuExpected) {
  36288. // reset interval stuff
  36289. for (i = 0; i < componentsLength; i++) {
  36290. components[i].pred = 0;
  36291. }
  36292. eobrun = 0;
  36293. if (componentsLength == 1) {
  36294. component = components[0];
  36295. for (n = 0; n < resetInterval; n++) {
  36296. decodeBlock(component, decodeFn, mcu);
  36297. mcu++;
  36298. }
  36299. } else {
  36300. for (n = 0; n < resetInterval; n++) {
  36301. for (i = 0; i < componentsLength; i++) {
  36302. component = components[i];
  36303. h = component.h;
  36304. v = component.v;
  36305. for (j = 0; j < v; j++) {
  36306. for (k = 0; k < h; k++) {
  36307. decodeMcu(component, decodeFn, mcu, j, k);
  36308. }
  36309. }
  36310. }
  36311. mcu++;
  36312. }
  36313. }
  36314. // find marker
  36315. bitsCount = 0;
  36316. marker = (data[offset] << 8) | data[offset + 1];
  36317. if (marker <= 0xFF00) {
  36318. throw 'marker was not found';
  36319. }
  36320. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  36321. offset += 2;
  36322. } else {
  36323. break;
  36324. }
  36325. }
  36326. return offset - startOffset;
  36327. }
  36328. // A port of poppler's IDCT method which in turn is taken from:
  36329. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  36330. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  36331. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  36332. // 988-991.
  36333. function quantizeAndInverse(component, blockBufferOffset, p) {
  36334. var qt = component.quantizationTable;
  36335. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  36336. var i;
  36337. // dequant
  36338. for (i = 0; i < 64; i++) {
  36339. p[i] = component.blockData[blockBufferOffset + i] * qt[i];
  36340. }
  36341. // inverse DCT on rows
  36342. for (i = 0; i < 8; ++i) {
  36343. var row = 8 * i;
  36344. // check for all-zero AC coefficients
  36345. if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0 &&
  36346. p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0 &&
  36347. p[7 + row] === 0) {
  36348. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  36349. p[0 + row] = t;
  36350. p[1 + row] = t;
  36351. p[2 + row] = t;
  36352. p[3 + row] = t;
  36353. p[4 + row] = t;
  36354. p[5 + row] = t;
  36355. p[6 + row] = t;
  36356. p[7 + row] = t;
  36357. continue;
  36358. }
  36359. // stage 4
  36360. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  36361. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  36362. v2 = p[2 + row];
  36363. v3 = p[6 + row];
  36364. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  36365. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  36366. v5 = p[3 + row] << 4;
  36367. v6 = p[5 + row] << 4;
  36368. // stage 3
  36369. t = (v0 - v1+ 1) >> 1;
  36370. v0 = (v0 + v1 + 1) >> 1;
  36371. v1 = t;
  36372. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  36373. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  36374. v3 = t;
  36375. t = (v4 - v6 + 1) >> 1;
  36376. v4 = (v4 + v6 + 1) >> 1;
  36377. v6 = t;
  36378. t = (v7 + v5 + 1) >> 1;
  36379. v5 = (v7 - v5 + 1) >> 1;
  36380. v7 = t;
  36381. // stage 2
  36382. t = (v0 - v3 + 1) >> 1;
  36383. v0 = (v0 + v3 + 1) >> 1;
  36384. v3 = t;
  36385. t = (v1 - v2 + 1) >> 1;
  36386. v1 = (v1 + v2 + 1) >> 1;
  36387. v2 = t;
  36388. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36389. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36390. v7 = t;
  36391. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36392. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36393. v6 = t;
  36394. // stage 1
  36395. p[0 + row] = v0 + v7;
  36396. p[7 + row] = v0 - v7;
  36397. p[1 + row] = v1 + v6;
  36398. p[6 + row] = v1 - v6;
  36399. p[2 + row] = v2 + v5;
  36400. p[5 + row] = v2 - v5;
  36401. p[3 + row] = v3 + v4;
  36402. p[4 + row] = v3 - v4;
  36403. }
  36404. // inverse DCT on columns
  36405. for (i = 0; i < 8; ++i) {
  36406. var col = i;
  36407. // check for all-zero AC coefficients
  36408. if (p[1*8 + col] === 0 && p[2*8 + col] === 0 && p[3*8 + col] === 0 &&
  36409. p[4*8 + col] === 0 && p[5*8 + col] === 0 && p[6*8 + col] === 0 &&
  36410. p[7*8 + col] === 0) {
  36411. t = (dctSqrt2 * p[i+0] + 8192) >> 14;
  36412. p[0*8 + col] = t;
  36413. p[1*8 + col] = t;
  36414. p[2*8 + col] = t;
  36415. p[3*8 + col] = t;
  36416. p[4*8 + col] = t;
  36417. p[5*8 + col] = t;
  36418. p[6*8 + col] = t;
  36419. p[7*8 + col] = t;
  36420. continue;
  36421. }
  36422. // stage 4
  36423. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  36424. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  36425. v2 = p[2*8 + col];
  36426. v3 = p[6*8 + col];
  36427. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  36428. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  36429. v5 = p[3*8 + col];
  36430. v6 = p[5*8 + col];
  36431. // stage 3
  36432. t = (v0 - v1 + 1) >> 1;
  36433. v0 = (v0 + v1 + 1) >> 1;
  36434. v1 = t;
  36435. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  36436. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  36437. v3 = t;
  36438. t = (v4 - v6 + 1) >> 1;
  36439. v4 = (v4 + v6 + 1) >> 1;
  36440. v6 = t;
  36441. t = (v7 + v5 + 1) >> 1;
  36442. v5 = (v7 - v5 + 1) >> 1;
  36443. v7 = t;
  36444. // stage 2
  36445. t = (v0 - v3 + 1) >> 1;
  36446. v0 = (v0 + v3 + 1) >> 1;
  36447. v3 = t;
  36448. t = (v1 - v2 + 1) >> 1;
  36449. v1 = (v1 + v2 + 1) >> 1;
  36450. v2 = t;
  36451. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36452. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36453. v7 = t;
  36454. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36455. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36456. v6 = t;
  36457. // stage 1
  36458. p[0*8 + col] = v0 + v7;
  36459. p[7*8 + col] = v0 - v7;
  36460. p[1*8 + col] = v1 + v6;
  36461. p[6*8 + col] = v1 - v6;
  36462. p[2*8 + col] = v2 + v5;
  36463. p[5*8 + col] = v2 - v5;
  36464. p[3*8 + col] = v3 + v4;
  36465. p[4*8 + col] = v3 - v4;
  36466. }
  36467. // convert to 8-bit integers
  36468. for (i = 0; i < 64; ++i) {
  36469. var index = blockBufferOffset + i;
  36470. var q = p[i];
  36471. q = (q <= -2056) ? 0 : (q >= 2024) ? 255 : (q + 2056) >> 4;
  36472. component.blockData[index] = q;
  36473. }
  36474. }
  36475. function buildComponentData(frame, component) {
  36476. var lines = [];
  36477. var blocksPerLine = component.blocksPerLine;
  36478. var blocksPerColumn = component.blocksPerColumn;
  36479. var samplesPerLine = blocksPerLine << 3;
  36480. var computationBuffer = new Int32Array(64);
  36481. var i, j, ll = 0;
  36482. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36483. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36484. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36485. quantizeAndInverse(component, offset, computationBuffer);
  36486. }
  36487. }
  36488. return component.blockData;
  36489. }
  36490. function clamp0to255(a) {
  36491. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  36492. }
  36493. constructor.prototype = {
  36494. parse: function parse(data) {
  36495. function readUint16() {
  36496. var value = (data[offset] << 8) | data[offset + 1];
  36497. offset += 2;
  36498. return value;
  36499. }
  36500. function readDataBlock() {
  36501. var length = readUint16();
  36502. var array = data.subarray(offset, offset + length - 2);
  36503. offset += array.length;
  36504. return array;
  36505. }
  36506. function prepareComponents(frame) {
  36507. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  36508. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  36509. for (var i = 0; i < frame.components.length; i++) {
  36510. component = frame.components[i];
  36511. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  36512. component.h / frame.maxH);
  36513. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  36514. component.v / frame.maxV);
  36515. var blocksPerLineForMcu = mcusPerLine * component.h;
  36516. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  36517. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  36518. (blocksPerLineForMcu + 1);
  36519. component.blockData = new Int16Array(blocksBufferSize);
  36520. component.blocksPerLine = blocksPerLine;
  36521. component.blocksPerColumn = blocksPerColumn;
  36522. }
  36523. frame.mcusPerLine = mcusPerLine;
  36524. frame.mcusPerColumn = mcusPerColumn;
  36525. }
  36526. var offset = 0, length = data.length;
  36527. var jfif = null;
  36528. var adobe = null;
  36529. var pixels = null;
  36530. var frame, resetInterval;
  36531. var quantizationTables = [];
  36532. var huffmanTablesAC = [], huffmanTablesDC = [];
  36533. var fileMarker = readUint16();
  36534. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  36535. throw 'SOI not found';
  36536. }
  36537. fileMarker = readUint16();
  36538. while (fileMarker != 0xFFD9) { // EOI (End of image)
  36539. var i, j, l;
  36540. switch(fileMarker) {
  36541. case 0xFFE0: // APP0 (Application Specific)
  36542. case 0xFFE1: // APP1
  36543. case 0xFFE2: // APP2
  36544. case 0xFFE3: // APP3
  36545. case 0xFFE4: // APP4
  36546. case 0xFFE5: // APP5
  36547. case 0xFFE6: // APP6
  36548. case 0xFFE7: // APP7
  36549. case 0xFFE8: // APP8
  36550. case 0xFFE9: // APP9
  36551. case 0xFFEA: // APP10
  36552. case 0xFFEB: // APP11
  36553. case 0xFFEC: // APP12
  36554. case 0xFFED: // APP13
  36555. case 0xFFEE: // APP14
  36556. case 0xFFEF: // APP15
  36557. case 0xFFFE: // COM (Comment)
  36558. var appData = readDataBlock();
  36559. if (fileMarker === 0xFFE0) {
  36560. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  36561. appData[2] === 0x49 && appData[3] === 0x46 &&
  36562. appData[4] === 0) { // 'JFIF\x00'
  36563. jfif = {
  36564. version: { major: appData[5], minor: appData[6] },
  36565. densityUnits: appData[7],
  36566. xDensity: (appData[8] << 8) | appData[9],
  36567. yDensity: (appData[10] << 8) | appData[11],
  36568. thumbWidth: appData[12],
  36569. thumbHeight: appData[13],
  36570. thumbData: appData.subarray(14, 14 +
  36571. 3 * appData[12] * appData[13])
  36572. };
  36573. }
  36574. }
  36575. // TODO APP1 - Exif
  36576. if (fileMarker === 0xFFEE) {
  36577. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  36578. appData[2] === 0x6F && appData[3] === 0x62 &&
  36579. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  36580. adobe = {
  36581. version: appData[6],
  36582. flags0: (appData[7] << 8) | appData[8],
  36583. flags1: (appData[9] << 8) | appData[10],
  36584. transformCode: appData[11]
  36585. };
  36586. }
  36587. }
  36588. break;
  36589. case 0xFFDB: // DQT (Define Quantization Tables)
  36590. var quantizationTablesLength = readUint16();
  36591. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  36592. var z;
  36593. while (offset < quantizationTablesEnd) {
  36594. var quantizationTableSpec = data[offset++];
  36595. var tableData = new Int32Array(64);
  36596. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  36597. for (j = 0; j < 64; j++) {
  36598. z = dctZigZag[j];
  36599. tableData[z] = data[offset++];
  36600. }
  36601. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  36602. for (j = 0; j < 64; j++) {
  36603. z = dctZigZag[j];
  36604. tableData[z] = readUint16();
  36605. }
  36606. } else {
  36607. throw 'DQT: invalid table spec';
  36608. }
  36609. quantizationTables[quantizationTableSpec & 15] = tableData;
  36610. }
  36611. break;
  36612. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  36613. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  36614. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  36615. if (frame) {
  36616. throw 'Only single frame JPEGs supported';
  36617. }
  36618. readUint16(); // skip data length
  36619. frame = {};
  36620. frame.extended = (fileMarker === 0xFFC1);
  36621. frame.progressive = (fileMarker === 0xFFC2);
  36622. frame.precision = data[offset++];
  36623. frame.scanLines = readUint16();
  36624. frame.samplesPerLine = readUint16();
  36625. frame.components = [];
  36626. frame.componentIds = {};
  36627. var componentsCount = data[offset++], componentId;
  36628. var maxH = 0, maxV = 0;
  36629. for (i = 0; i < componentsCount; i++) {
  36630. componentId = data[offset];
  36631. var h = data[offset + 1] >> 4;
  36632. var v = data[offset + 1] & 15;
  36633. if (maxH < h) {
  36634. maxH = h;
  36635. }
  36636. if (maxV < v) {
  36637. maxV = v;
  36638. }
  36639. var qId = data[offset + 2];
  36640. l = frame.components.push({
  36641. h: h,
  36642. v: v,
  36643. quantizationTable: quantizationTables[qId]
  36644. });
  36645. frame.componentIds[componentId] = l - 1;
  36646. offset += 3;
  36647. }
  36648. frame.maxH = maxH;
  36649. frame.maxV = maxV;
  36650. prepareComponents(frame);
  36651. break;
  36652. case 0xFFC4: // DHT (Define Huffman Tables)
  36653. var huffmanLength = readUint16();
  36654. for (i = 2; i < huffmanLength;) {
  36655. var huffmanTableSpec = data[offset++];
  36656. var codeLengths = new Uint8Array(16);
  36657. var codeLengthSum = 0;
  36658. for (j = 0; j < 16; j++, offset++) {
  36659. codeLengthSum += (codeLengths[j] = data[offset]);
  36660. }
  36661. var huffmanValues = new Uint8Array(codeLengthSum);
  36662. for (j = 0; j < codeLengthSum; j++, offset++) {
  36663. huffmanValues[j] = data[offset];
  36664. }
  36665. i += 17 + codeLengthSum;
  36666. ((huffmanTableSpec >> 4) === 0 ?
  36667. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  36668. buildHuffmanTable(codeLengths, huffmanValues);
  36669. }
  36670. break;
  36671. case 0xFFDD: // DRI (Define Restart Interval)
  36672. readUint16(); // skip data length
  36673. resetInterval = readUint16();
  36674. break;
  36675. case 0xFFDA: // SOS (Start of Scan)
  36676. var scanLength = readUint16();
  36677. var selectorsCount = data[offset++];
  36678. var components = [], component;
  36679. for (i = 0; i < selectorsCount; i++) {
  36680. var componentIndex = frame.componentIds[data[offset++]];
  36681. component = frame.components[componentIndex];
  36682. var tableSpec = data[offset++];
  36683. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  36684. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  36685. components.push(component);
  36686. }
  36687. var spectralStart = data[offset++];
  36688. var spectralEnd = data[offset++];
  36689. var successiveApproximation = data[offset++];
  36690. var processed = decodeScan(data, offset,
  36691. frame, components, resetInterval,
  36692. spectralStart, spectralEnd,
  36693. successiveApproximation >> 4, successiveApproximation & 15);
  36694. offset += processed;
  36695. break;
  36696. default:
  36697. if (data[offset - 3] == 0xFF &&
  36698. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  36699. // could be incorrect encoding -- last 0xFF byte of the previous
  36700. // block was eaten by the encoder
  36701. offset -= 3;
  36702. break;
  36703. }
  36704. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  36705. }
  36706. fileMarker = readUint16();
  36707. }
  36708. this.width = frame.samplesPerLine;
  36709. this.height = frame.scanLines;
  36710. this.jfif = jfif;
  36711. this.adobe = adobe;
  36712. this.components = [];
  36713. for (i = 0; i < frame.components.length; i++) {
  36714. component = frame.components[i];
  36715. this.components.push({
  36716. output: buildComponentData(frame, component),
  36717. scaleX: component.h / frame.maxH,
  36718. scaleY: component.v / frame.maxV,
  36719. blocksPerLine: component.blocksPerLine,
  36720. blocksPerColumn: component.blocksPerColumn
  36721. });
  36722. }
  36723. this.numComponents = this.components.length;
  36724. },
  36725. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  36726. var scaleX = this.width / width, scaleY = this.height / height;
  36727. var component, componentScaleX, componentScaleY;
  36728. var x, y, i;
  36729. var offset = 0;
  36730. var Y, Cb, Cr, K, C, M, Ye, R, G, B;
  36731. var colorTransform;
  36732. var numComponents = this.components.length;
  36733. var dataLength = width * height * numComponents;
  36734. var data = new Uint8Array(dataLength);
  36735. var componentLine;
  36736. // lineData is reused for all components. Assume first component is
  36737. // the biggest
  36738. var lineData = new Uint8Array((this.components[0].blocksPerLine << 3) *
  36739. this.components[0].blocksPerColumn * 8);
  36740. // First construct image data ...
  36741. for (i = 0; i < numComponents; i++) {
  36742. component = this.components[i];
  36743. var blocksPerLine = component.blocksPerLine;
  36744. var blocksPerColumn = component.blocksPerColumn;
  36745. var samplesPerLine = blocksPerLine << 3;
  36746. var j, k, ll = 0;
  36747. var sample;
  36748. var lineOffset = 0;
  36749. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36750. var scanLine = blockRow << 3;
  36751. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36752. var bufferOffset = getBlockBufferOffset(component,
  36753. blockRow, blockCol);
  36754. offset = 0;
  36755. sample = blockCol << 3;
  36756. for (j = 0; j < 8; j++) {
  36757. lineOffset = (scanLine + j) * samplesPerLine;
  36758. for (k = 0; k < 8; k++) {
  36759. lineData[lineOffset + sample + k] =
  36760. component.output[bufferOffset + offset++];
  36761. }
  36762. }
  36763. }
  36764. }
  36765. componentScaleX = component.scaleX * scaleX;
  36766. componentScaleY = component.scaleY * scaleY;
  36767. offset = i;
  36768. var cx, cy;
  36769. var index;
  36770. for (y = 0; y < height; y++) {
  36771. for (x = 0; x < width; x++) {
  36772. cy = 0 | (y * componentScaleY);
  36773. cx = 0 | (x * componentScaleX);
  36774. index = cy * samplesPerLine + cx;
  36775. data[offset] = lineData[index];
  36776. offset += numComponents;
  36777. }
  36778. }
  36779. }
  36780. return data;
  36781. },
  36782. _isColorConversionNeeded: function isColorConversionNeeded() {
  36783. if (this.adobe && this.adobe.transformCode) {
  36784. // The adobe transform marker overrides any previous setting
  36785. return true;
  36786. } else if (this.numComponents == 3) {
  36787. return true;
  36788. } else if (typeof this.colorTransform !== 'undefined') {
  36789. return !!this.colorTransform;
  36790. } else {
  36791. return false;
  36792. }
  36793. },
  36794. _convertYccToRgb: function convertYccToRgb(data) {
  36795. var Y, Cb, Cr;
  36796. for (var i = 0; i < data.length; i += this.numComponents) {
  36797. Y = data[i ];
  36798. Cb = data[i + 1];
  36799. Cr = data[i + 2];
  36800. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  36801. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  36802. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  36803. }
  36804. return data;
  36805. },
  36806. _convertYcckToRgb: function convertYcckToRgb(data) {
  36807. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  36808. var offset = 0;
  36809. for (var i = 0; i < data.length; i += this.numComponents) {
  36810. Y = data[i];
  36811. Cb = data[i + 1];
  36812. Cr = data[i + 2];
  36813. k = data[i + 3];
  36814. CbCb = Cb * Cb;
  36815. CbCr = Cb * Cr;
  36816. CbY = Cb * Y;
  36817. Cbk = Cb * k;
  36818. CrCr = Cr * Cr;
  36819. Crk = Cr * k;
  36820. CrY = Cr * Y;
  36821. YY = Y * Y;
  36822. Yk = Y * k;
  36823. kk = k * k;
  36824. var r = - 122.67195406894 -
  36825. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  36826. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  36827. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  36828. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  36829. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  36830. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  36831. 0.000336197177618394 * kk + 0.484791561490776 * k;
  36832. var g = 107.268039397724 +
  36833. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  36834. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  36835. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  36836. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  36837. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  36838. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  36839. 0.000318913117588328 * kk - 0.213742400323665 * k;
  36840. var b = - 20.810012546947 -
  36841. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  36842. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  36843. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  36844. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  36845. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  36846. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  36847. 0.000343531996510555 * kk + 0.24165260232407 * k;
  36848. data[offset++] = clamp0to255(r);
  36849. data[offset++] = clamp0to255(g);
  36850. data[offset++] = clamp0to255(b);
  36851. }
  36852. return data;
  36853. },
  36854. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  36855. var Y, Cb, Cr;
  36856. for (var i = 0; i < data.length; i += this.numComponents) {
  36857. Y = data[i];
  36858. Cb = data[i + 1];
  36859. Cr = data[i + 2];
  36860. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  36861. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  36862. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  36863. // K in data[i + 3] is unchanged
  36864. }
  36865. return data;
  36866. },
  36867. _convertCmykToRgb: function convertCmykToRgb(data) {
  36868. var c, m, y, k;
  36869. var offset = 0;
  36870. for (var i = 0; i < data.length; i += this.numComponents) {
  36871. c = data[i ] * 0.00392156862745098;
  36872. m = data[i + 1] * 0.00392156862745098;
  36873. y = data[i + 2] * 0.00392156862745098;
  36874. k = data[i + 3] * 0.00392156862745098;
  36875. var r =
  36876. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  36877. 18.82290502165302 * y + 212.25662451639585 * k +
  36878. -285.2331026137004) +
  36879. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  36880. -17.873870861415444 * k - 5.497006427196366) +
  36881. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  36882. 17.5119270841813) +
  36883. k * (-21.86122147463605 * k - 189.48180835922747) + 255;
  36884. var g =
  36885. c * (8.841041422036149 * c + 60.118027045597366 * m +
  36886. 6.871425592049007 * y + 31.159100130055922 * k +
  36887. -79.2970844816548) +
  36888. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  36889. 131.35250912493976 * k - 190.9453302588951) +
  36890. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.8674158255588) +
  36891. k * (-20.737325471181034 * k - 187.80453709719578) + 255;
  36892. var b =
  36893. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  36894. 30.89978309703729 * y - 0.23883238689178934 * k +
  36895. -14.183576799673286) +
  36896. m * (10.49593273432072 * m + 63.02378494754052 * y +
  36897. 50.606957656360734 * k - 112.23884253719248) +
  36898. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  36899. -193.58209356861505) +
  36900. k * (-22.33816807309886 * k - 180.12613974708367) + 255;
  36901. data[offset++] = clamp0to255(r);
  36902. data[offset++] = clamp0to255(g);
  36903. data[offset++] = clamp0to255(b);
  36904. }
  36905. return data;
  36906. },
  36907. getData: function getData(width, height, forceRGBoutput) {
  36908. var i;
  36909. var Y, Cb, Cr, K, C, M, Ye, R, G, B;
  36910. var colorTransform;
  36911. if (this.numComponents > 4) {
  36912. throw 'Unsupported color mode';
  36913. }
  36914. // type of data: Uint8Array(width * height * numComponents)
  36915. var data = this._getLinearizedBlockData(width, height);
  36916. if (this.numComponents === 3) {
  36917. return this._convertYccToRgb(data);
  36918. } else if (this.numComponents === 4) {
  36919. if (this._isColorConversionNeeded()) {
  36920. if (forceRGBoutput) {
  36921. return this._convertYcckToRgb(data);
  36922. } else {
  36923. return this._convertYcckToCmyk(data);
  36924. }
  36925. } else {
  36926. return this._convertCmykToRgb(data);
  36927. }
  36928. }
  36929. return data;
  36930. }
  36931. };
  36932. return constructor;
  36933. })();
  36934. var JpxImage = (function JpxImageClosure() {
  36935. // Table E.1
  36936. var SubbandsGainLog2 = {
  36937. 'LL': 0,
  36938. 'LH': 1,
  36939. 'HL': 1,
  36940. 'HH': 2
  36941. };
  36942. function JpxImage() {
  36943. this.failOnCorruptedImage = false;
  36944. }
  36945. JpxImage.prototype = {
  36946. load: function JpxImage_load(url) {
  36947. var xhr = new XMLHttpRequest();
  36948. xhr.open('GET', url, true);
  36949. xhr.responseType = 'arraybuffer';
  36950. xhr.onload = (function() {
  36951. // TODO catch parse error
  36952. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  36953. this.parse(data);
  36954. if (this.onload) {
  36955. this.onload();
  36956. }
  36957. }).bind(this);
  36958. xhr.send(null);
  36959. },
  36960. parse: function JpxImage_parse(data) {
  36961. var head = readUint16(data, 0);
  36962. // No box header, immediate start of codestream (SOC)
  36963. if (head === 0xFF4F) {
  36964. this.parseCodestream(data, 0, data.length);
  36965. return;
  36966. }
  36967. var position = 0, length = data.length;
  36968. while (position < length) {
  36969. var headerSize = 8;
  36970. var lbox = readUint32(data, position);
  36971. var tbox = readUint32(data, position + 4);
  36972. position += headerSize;
  36973. if (lbox === 1) {
  36974. // XLBox: read UInt64 according to spec.
  36975. // JavaScript's int precision of 53 bit should be sufficient here.
  36976. lbox = readUint32(data, position) * 4294967296 +
  36977. readUint32(data, position + 4);
  36978. position += 8;
  36979. headerSize += 8;
  36980. }
  36981. if (lbox === 0) {
  36982. lbox = length - position + headerSize;
  36983. }
  36984. if (lbox < headerSize) {
  36985. error('JPX error: Invalid box field size');
  36986. }
  36987. var dataLength = lbox - headerSize;
  36988. var jumpDataLength = true;
  36989. switch (tbox) {
  36990. case 0x6A501A1A: // 'jP\032\032'
  36991. // TODO
  36992. break;
  36993. case 0x6A703268: // 'jp2h'
  36994. jumpDataLength = false; // parsing child boxes
  36995. break;
  36996. case 0x636F6C72: // 'colr'
  36997. // TODO
  36998. break;
  36999. case 0x6A703263: // 'jp2c'
  37000. this.parseCodestream(data, position, position + dataLength);
  37001. break;
  37002. }
  37003. if (jumpDataLength) {
  37004. position += dataLength;
  37005. }
  37006. }
  37007. },
  37008. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  37009. try {
  37010. var newByte = stream.getByte();
  37011. while (newByte >= 0) {
  37012. var oldByte = newByte;
  37013. newByte = stream.getByte();
  37014. var code = (oldByte << 8) | newByte;
  37015. // Image and tile size (SIZ)
  37016. if (code == 0xFF51) {
  37017. stream.skip(4);
  37018. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  37019. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  37020. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  37021. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  37022. stream.skip(16);
  37023. var Csiz = stream.getUint16(); // Byte 36
  37024. this.width = Xsiz - XOsiz;
  37025. this.height = Ysiz - YOsiz;
  37026. this.componentsCount = Csiz;
  37027. // Results are always returned as Uint8Arrays
  37028. this.bitsPerComponent = 8;
  37029. return;
  37030. }
  37031. }
  37032. throw 'No size marker found in JPX stream';
  37033. } catch (e) {
  37034. if (this.failOnCorruptedImage) {
  37035. error('JPX error: ' + e);
  37036. } else {
  37037. warn('JPX error: ' + e + '. Trying to recover');
  37038. }
  37039. }
  37040. },
  37041. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  37042. var context = {};
  37043. try {
  37044. var position = start;
  37045. while (position + 1 < end) {
  37046. var code = readUint16(data, position);
  37047. position += 2;
  37048. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  37049. switch (code) {
  37050. case 0xFF4F: // Start of codestream (SOC)
  37051. context.mainHeader = true;
  37052. break;
  37053. case 0xFFD9: // End of codestream (EOC)
  37054. break;
  37055. case 0xFF51: // Image and tile size (SIZ)
  37056. length = readUint16(data, position);
  37057. var siz = {};
  37058. siz.Xsiz = readUint32(data, position + 4);
  37059. siz.Ysiz = readUint32(data, position + 8);
  37060. siz.XOsiz = readUint32(data, position + 12);
  37061. siz.YOsiz = readUint32(data, position + 16);
  37062. siz.XTsiz = readUint32(data, position + 20);
  37063. siz.YTsiz = readUint32(data, position + 24);
  37064. siz.XTOsiz = readUint32(data, position + 28);
  37065. siz.YTOsiz = readUint32(data, position + 32);
  37066. var componentsCount = readUint16(data, position + 36);
  37067. siz.Csiz = componentsCount;
  37068. var components = [];
  37069. j = position + 38;
  37070. for (var i = 0; i < componentsCount; i++) {
  37071. var component = {
  37072. precision: (data[j] & 0x7F) + 1,
  37073. isSigned: !!(data[j] & 0x80),
  37074. XRsiz: data[j + 1],
  37075. YRsiz: data[j + 1]
  37076. };
  37077. calculateComponentDimensions(component, siz);
  37078. components.push(component);
  37079. }
  37080. context.SIZ = siz;
  37081. context.components = components;
  37082. calculateTileGrids(context, components);
  37083. context.QCC = [];
  37084. context.COC = [];
  37085. break;
  37086. case 0xFF5C: // Quantization default (QCD)
  37087. length = readUint16(data, position);
  37088. var qcd = {};
  37089. j = position + 2;
  37090. sqcd = data[j++];
  37091. switch (sqcd & 0x1F) {
  37092. case 0:
  37093. spqcdSize = 8;
  37094. scalarExpounded = true;
  37095. break;
  37096. case 1:
  37097. spqcdSize = 16;
  37098. scalarExpounded = false;
  37099. break;
  37100. case 2:
  37101. spqcdSize = 16;
  37102. scalarExpounded = true;
  37103. break;
  37104. default:
  37105. throw 'Invalid SQcd value ' + sqcd;
  37106. }
  37107. qcd.noQuantization = (spqcdSize == 8);
  37108. qcd.scalarExpounded = scalarExpounded;
  37109. qcd.guardBits = sqcd >> 5;
  37110. spqcds = [];
  37111. while (j < length + position) {
  37112. var spqcd = {};
  37113. if (spqcdSize == 8) {
  37114. spqcd.epsilon = data[j++] >> 3;
  37115. spqcd.mu = 0;
  37116. } else {
  37117. spqcd.epsilon = data[j] >> 3;
  37118. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37119. j += 2;
  37120. }
  37121. spqcds.push(spqcd);
  37122. }
  37123. qcd.SPqcds = spqcds;
  37124. if (context.mainHeader) {
  37125. context.QCD = qcd;
  37126. } else {
  37127. context.currentTile.QCD = qcd;
  37128. context.currentTile.QCC = [];
  37129. }
  37130. break;
  37131. case 0xFF5D: // Quantization component (QCC)
  37132. length = readUint16(data, position);
  37133. var qcc = {};
  37134. j = position + 2;
  37135. var cqcc;
  37136. if (context.SIZ.Csiz < 257) {
  37137. cqcc = data[j++];
  37138. } else {
  37139. cqcc = readUint16(data, j);
  37140. j += 2;
  37141. }
  37142. sqcd = data[j++];
  37143. switch (sqcd & 0x1F) {
  37144. case 0:
  37145. spqcdSize = 8;
  37146. scalarExpounded = true;
  37147. break;
  37148. case 1:
  37149. spqcdSize = 16;
  37150. scalarExpounded = false;
  37151. break;
  37152. case 2:
  37153. spqcdSize = 16;
  37154. scalarExpounded = true;
  37155. break;
  37156. default:
  37157. throw 'Invalid SQcd value ' + sqcd;
  37158. }
  37159. qcc.noQuantization = (spqcdSize == 8);
  37160. qcc.scalarExpounded = scalarExpounded;
  37161. qcc.guardBits = sqcd >> 5;
  37162. spqcds = [];
  37163. while (j < (length + position)) {
  37164. spqcd = {};
  37165. if (spqcdSize == 8) {
  37166. spqcd.epsilon = data[j++] >> 3;
  37167. spqcd.mu = 0;
  37168. } else {
  37169. spqcd.epsilon = data[j] >> 3;
  37170. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37171. j += 2;
  37172. }
  37173. spqcds.push(spqcd);
  37174. }
  37175. qcc.SPqcds = spqcds;
  37176. if (context.mainHeader) {
  37177. context.QCC[cqcc] = qcc;
  37178. } else {
  37179. context.currentTile.QCC[cqcc] = qcc;
  37180. }
  37181. break;
  37182. case 0xFF52: // Coding style default (COD)
  37183. length = readUint16(data, position);
  37184. var cod = {};
  37185. j = position + 2;
  37186. var scod = data[j++];
  37187. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  37188. cod.sopMarkerUsed = !!(scod & 2);
  37189. cod.ephMarkerUsed = !!(scod & 4);
  37190. cod.progressionOrder = data[j++];
  37191. cod.layersCount = readUint16(data, j);
  37192. j += 2;
  37193. cod.multipleComponentTransform = data[j++];
  37194. cod.decompositionLevelsCount = data[j++];
  37195. cod.xcb = (data[j++] & 0xF) + 2;
  37196. cod.ycb = (data[j++] & 0xF) + 2;
  37197. var blockStyle = data[j++];
  37198. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  37199. cod.resetContextProbabilities = !!(blockStyle & 2);
  37200. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  37201. cod.verticalyStripe = !!(blockStyle & 8);
  37202. cod.predictableTermination = !!(blockStyle & 16);
  37203. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  37204. cod.reversibleTransformation = data[j++];
  37205. if (cod.entropyCoderWithCustomPrecincts) {
  37206. var precinctsSizes = [];
  37207. while (j < length + position) {
  37208. var precinctsSize = data[j++];
  37209. precinctsSizes.push({
  37210. PPx: precinctsSize & 0xF,
  37211. PPy: precinctsSize >> 4
  37212. });
  37213. }
  37214. cod.precinctsSizes = precinctsSizes;
  37215. }
  37216. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  37217. cod.selectiveArithmeticCodingBypass ||
  37218. cod.resetContextProbabilities ||
  37219. cod.terminationOnEachCodingPass ||
  37220. cod.verticalyStripe || cod.predictableTermination) {
  37221. throw 'Unsupported COD options: ' +
  37222. globalScope.JSON.stringify(cod);
  37223. }
  37224. if (context.mainHeader) {
  37225. context.COD = cod;
  37226. } else {
  37227. context.currentTile.COD = cod;
  37228. context.currentTile.COC = [];
  37229. }
  37230. break;
  37231. case 0xFF90: // Start of tile-part (SOT)
  37232. length = readUint16(data, position);
  37233. tile = {};
  37234. tile.index = readUint16(data, position + 2);
  37235. tile.length = readUint32(data, position + 4);
  37236. tile.dataEnd = tile.length + position - 2;
  37237. tile.partIndex = data[position + 8];
  37238. tile.partsCount = data[position + 9];
  37239. context.mainHeader = false;
  37240. if (tile.partIndex === 0) {
  37241. // reset component specific settings
  37242. tile.COD = context.COD;
  37243. tile.COC = context.COC.slice(0); // clone of the global COC
  37244. tile.QCD = context.QCD;
  37245. tile.QCC = context.QCC.slice(0); // clone of the global COC
  37246. }
  37247. context.currentTile = tile;
  37248. break;
  37249. case 0xFF93: // Start of data (SOD)
  37250. tile = context.currentTile;
  37251. if (tile.partIndex === 0) {
  37252. initializeTile(context, tile.index);
  37253. buildPackets(context);
  37254. }
  37255. // moving to the end of the data
  37256. length = tile.dataEnd - position;
  37257. parseTilePackets(context, data, position, length);
  37258. break;
  37259. case 0xFF64: // Comment (COM)
  37260. length = readUint16(data, position);
  37261. // skipping content
  37262. break;
  37263. case 0xFF53: // Coding style component (COC)
  37264. throw 'Codestream code 0xFF53 (COC) is not implemented';
  37265. default:
  37266. throw 'Unknown codestream code: ' + code.toString(16);
  37267. }
  37268. position += length;
  37269. }
  37270. } catch (e) {
  37271. if (this.failOnCorruptedImage) {
  37272. error('JPX error: ' + e);
  37273. } else {
  37274. warn('JPX error: ' + e + '. Trying to recover');
  37275. }
  37276. }
  37277. this.tiles = transformComponents(context);
  37278. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  37279. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  37280. this.componentsCount = context.SIZ.Csiz;
  37281. }
  37282. };
  37283. function calculateComponentDimensions(component, siz) {
  37284. // Section B.2 Component mapping
  37285. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  37286. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  37287. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  37288. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  37289. component.width = component.x1 - component.x0;
  37290. component.height = component.y1 - component.y0;
  37291. }
  37292. function calculateTileGrids(context, components) {
  37293. var siz = context.SIZ;
  37294. // Section B.3 Division into tile and tile-components
  37295. var tile, tiles = [];
  37296. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  37297. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  37298. for (var q = 0; q < numYtiles; q++) {
  37299. for (var p = 0; p < numXtiles; p++) {
  37300. tile = {};
  37301. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  37302. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  37303. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  37304. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  37305. tile.width = tile.tx1 - tile.tx0;
  37306. tile.height = tile.ty1 - tile.ty0;
  37307. tile.components = [];
  37308. tiles.push(tile);
  37309. }
  37310. }
  37311. context.tiles = tiles;
  37312. var componentsCount = siz.Csiz;
  37313. for (var i = 0, ii = componentsCount; i < ii; i++) {
  37314. var component = components[i];
  37315. for (var j = 0, jj = tiles.length; j < jj; j++) {
  37316. var tileComponent = {};
  37317. tile = tiles[j];
  37318. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  37319. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  37320. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  37321. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  37322. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  37323. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  37324. tile.components[i] = tileComponent;
  37325. }
  37326. }
  37327. }
  37328. function getBlocksDimensions(context, component, r) {
  37329. var codOrCoc = component.codingStyleParameters;
  37330. var result = {};
  37331. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  37332. result.PPx = 15;
  37333. result.PPy = 15;
  37334. } else {
  37335. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  37336. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  37337. }
  37338. // calculate codeblock size as described in section B.7
  37339. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  37340. Math.min(codOrCoc.xcb, result.PPx));
  37341. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  37342. Math.min(codOrCoc.ycb, result.PPy));
  37343. return result;
  37344. }
  37345. function buildPrecincts(context, resolution, dimensions) {
  37346. // Section B.6 Division resolution to precincts
  37347. var precinctWidth = 1 << dimensions.PPx;
  37348. var precinctHeight = 1 << dimensions.PPy;
  37349. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  37350. Math.ceil(resolution.trx1 / precinctWidth) -
  37351. Math.floor(resolution.trx0 / precinctWidth) : 0);
  37352. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  37353. Math.ceil(resolution.try1 / precinctHeight) -
  37354. Math.floor(resolution.try0 / precinctHeight) : 0);
  37355. var numprecincts = numprecinctswide * numprecinctshigh;
  37356. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  37357. precinctWidth;
  37358. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  37359. precinctHeight;
  37360. resolution.precinctParameters = {
  37361. precinctXOffset: precinctXOffset,
  37362. precinctYOffset: precinctYOffset,
  37363. precinctWidth: precinctWidth,
  37364. precinctHeight: precinctHeight,
  37365. numprecinctswide: numprecinctswide,
  37366. numprecinctshigh: numprecinctshigh,
  37367. numprecincts: numprecincts
  37368. };
  37369. }
  37370. function buildCodeblocks(context, subband, dimensions) {
  37371. // Section B.7 Division sub-band into code-blocks
  37372. var xcb_ = dimensions.xcb_;
  37373. var ycb_ = dimensions.ycb_;
  37374. var codeblockWidth = 1 << xcb_;
  37375. var codeblockHeight = 1 << ycb_;
  37376. var cbx0 = subband.tbx0 >> xcb_;
  37377. var cby0 = subband.tby0 >> ycb_;
  37378. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  37379. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  37380. var precinctParameters = subband.resolution.precinctParameters;
  37381. var codeblocks = [];
  37382. var precincts = [];
  37383. var i, j, codeblock, precinctNumber;
  37384. for (j = cby0; j < cby1; j++) {
  37385. for (i = cbx0; i < cbx1; i++) {
  37386. codeblock = {
  37387. cbx: i,
  37388. cby: j,
  37389. tbx0: codeblockWidth * i,
  37390. tby0: codeblockHeight * j,
  37391. tbx1: codeblockWidth * (i + 1),
  37392. tby1: codeblockHeight * (j + 1)
  37393. };
  37394. // calculate precinct number
  37395. var pi = Math.floor((codeblock.tbx0 -
  37396. precinctParameters.precinctXOffset) /
  37397. precinctParameters.precinctWidth);
  37398. var pj = Math.floor((codeblock.tby0 -
  37399. precinctParameters.precinctYOffset) /
  37400. precinctParameters.precinctHeight);
  37401. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  37402. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  37403. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  37404. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  37405. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  37406. codeblock.precinctNumber = precinctNumber;
  37407. codeblock.subbandType = subband.type;
  37408. codeblock.Lblock = 3;
  37409. codeblocks.push(codeblock);
  37410. // building precinct for the sub-band
  37411. var precinct = precincts[precinctNumber];
  37412. if (precinct !== undefined) {
  37413. if (i < precinct.cbxMin) {
  37414. precinct.cbxMin = i;
  37415. } else if (i > precinct.cbxMax) {
  37416. precinct.cbxMax = i;
  37417. }
  37418. if (j < precinct.cbyMin) {
  37419. precinct.cbxMin = j;
  37420. } else if (j > precinct.cbyMax) {
  37421. precinct.cbyMax = j;
  37422. }
  37423. } else {
  37424. precincts[precinctNumber] = precinct = {
  37425. cbxMin: i,
  37426. cbyMin: j,
  37427. cbxMax: i,
  37428. cbyMax: j
  37429. };
  37430. }
  37431. codeblock.precinct = precinct;
  37432. }
  37433. }
  37434. subband.codeblockParameters = {
  37435. codeblockWidth: xcb_,
  37436. codeblockHeight: ycb_,
  37437. numcodeblockwide: cbx1 - cbx0 + 1,
  37438. numcodeblockhigh: cby1 - cby1 + 1
  37439. };
  37440. subband.codeblocks = codeblocks;
  37441. subband.precincts = precincts;
  37442. }
  37443. function createPacket(resolution, precinctNumber, layerNumber) {
  37444. var precinctCodeblocks = [];
  37445. // Section B.10.8 Order of info in packet
  37446. var subbands = resolution.subbands;
  37447. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  37448. for (var i = 0, ii = subbands.length; i < ii; i++) {
  37449. var subband = subbands[i];
  37450. var codeblocks = subband.codeblocks;
  37451. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  37452. var codeblock = codeblocks[j];
  37453. if (codeblock.precinctNumber != precinctNumber) {
  37454. continue;
  37455. }
  37456. precinctCodeblocks.push(codeblock);
  37457. }
  37458. }
  37459. return {
  37460. layerNumber: layerNumber,
  37461. codeblocks: precinctCodeblocks
  37462. };
  37463. }
  37464. function LayerResolutionComponentPositionIterator(context) {
  37465. var siz = context.SIZ;
  37466. var tileIndex = context.currentTile.index;
  37467. var tile = context.tiles[tileIndex];
  37468. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37469. var componentsCount = siz.Csiz;
  37470. var maxDecompositionLevelsCount = 0;
  37471. for (var q = 0; q < componentsCount; q++) {
  37472. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37473. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37474. }
  37475. var l = 0, r = 0, i = 0, k = 0;
  37476. this.nextPacket = function JpxImage_nextPacket() {
  37477. // Section B.12.1.1 Layer-resolution-component-position
  37478. for (; l < layersCount; l++) {
  37479. for (; r <= maxDecompositionLevelsCount; r++) {
  37480. for (; i < componentsCount; i++) {
  37481. var component = tile.components[i];
  37482. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37483. continue;
  37484. }
  37485. var resolution = component.resolutions[r];
  37486. var numprecincts = resolution.precinctParameters.numprecincts;
  37487. for (; k < numprecincts;) {
  37488. var packet = createPacket(resolution, k, l);
  37489. k++;
  37490. return packet;
  37491. }
  37492. k = 0;
  37493. }
  37494. i = 0;
  37495. }
  37496. r = 0;
  37497. }
  37498. throw 'Out of packets';
  37499. };
  37500. }
  37501. function ResolutionLayerComponentPositionIterator(context) {
  37502. var siz = context.SIZ;
  37503. var tileIndex = context.currentTile.index;
  37504. var tile = context.tiles[tileIndex];
  37505. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37506. var componentsCount = siz.Csiz;
  37507. var maxDecompositionLevelsCount = 0;
  37508. for (var q = 0; q < componentsCount; q++) {
  37509. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37510. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37511. }
  37512. var r = 0, l = 0, i = 0, k = 0;
  37513. this.nextPacket = function JpxImage_nextPacket() {
  37514. // Section B.12.1.2 Resolution-layer-component-position
  37515. for (; r <= maxDecompositionLevelsCount; r++) {
  37516. for (; l < layersCount; l++) {
  37517. for (; i < componentsCount; i++) {
  37518. var component = tile.components[i];
  37519. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37520. continue;
  37521. }
  37522. var resolution = component.resolutions[r];
  37523. var numprecincts = resolution.precinctParameters.numprecincts;
  37524. for (; k < numprecincts;) {
  37525. var packet = createPacket(resolution, k, l);
  37526. k++;
  37527. return packet;
  37528. }
  37529. k = 0;
  37530. }
  37531. i = 0;
  37532. }
  37533. l = 0;
  37534. }
  37535. throw 'Out of packets';
  37536. };
  37537. }
  37538. function buildPackets(context) {
  37539. var siz = context.SIZ;
  37540. var tileIndex = context.currentTile.index;
  37541. var tile = context.tiles[tileIndex];
  37542. var componentsCount = siz.Csiz;
  37543. // Creating resolutions and sub-bands for each component
  37544. for (var c = 0; c < componentsCount; c++) {
  37545. var component = tile.components[c];
  37546. var decompositionLevelsCount =
  37547. component.codingStyleParameters.decompositionLevelsCount;
  37548. // Section B.5 Resolution levels and sub-bands
  37549. var resolutions = [];
  37550. var subbands = [];
  37551. for (var r = 0; r <= decompositionLevelsCount; r++) {
  37552. var blocksDimensions = getBlocksDimensions(context, component, r);
  37553. var resolution = {};
  37554. var scale = 1 << (decompositionLevelsCount - r);
  37555. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  37556. resolution.try0 = Math.ceil(component.tcy0 / scale);
  37557. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  37558. resolution.try1 = Math.ceil(component.tcy1 / scale);
  37559. buildPrecincts(context, resolution, blocksDimensions);
  37560. resolutions.push(resolution);
  37561. var subband;
  37562. if (r === 0) {
  37563. // one sub-band (LL) with last decomposition
  37564. subband = {};
  37565. subband.type = 'LL';
  37566. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  37567. subband.tby0 = Math.ceil(component.tcy0 / scale);
  37568. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  37569. subband.tby1 = Math.ceil(component.tcy1 / scale);
  37570. subband.resolution = resolution;
  37571. buildCodeblocks(context, subband, blocksDimensions);
  37572. subbands.push(subband);
  37573. resolution.subbands = [subband];
  37574. } else {
  37575. var bscale = 1 << (decompositionLevelsCount - r + 1);
  37576. var resolutionSubbands = [];
  37577. // three sub-bands (HL, LH and HH) with rest of decompositions
  37578. subband = {};
  37579. subband.type = 'HL';
  37580. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37581. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  37582. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37583. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  37584. subband.resolution = resolution;
  37585. buildCodeblocks(context, subband, blocksDimensions);
  37586. subbands.push(subband);
  37587. resolutionSubbands.push(subband);
  37588. subband = {};
  37589. subband.type = 'LH';
  37590. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  37591. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37592. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  37593. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37594. subband.resolution = resolution;
  37595. buildCodeblocks(context, subband, blocksDimensions);
  37596. subbands.push(subband);
  37597. resolutionSubbands.push(subband);
  37598. subband = {};
  37599. subband.type = 'HH';
  37600. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37601. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37602. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37603. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37604. subband.resolution = resolution;
  37605. buildCodeblocks(context, subband, blocksDimensions);
  37606. subbands.push(subband);
  37607. resolutionSubbands.push(subband);
  37608. resolution.subbands = resolutionSubbands;
  37609. }
  37610. }
  37611. component.resolutions = resolutions;
  37612. component.subbands = subbands;
  37613. }
  37614. // Generate the packets sequence
  37615. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  37616. switch (progressionOrder) {
  37617. case 0:
  37618. tile.packetsIterator =
  37619. new LayerResolutionComponentPositionIterator(context);
  37620. break;
  37621. case 1:
  37622. tile.packetsIterator =
  37623. new ResolutionLayerComponentPositionIterator(context);
  37624. break;
  37625. default:
  37626. throw 'Unsupported progression order ' + progressionOrder;
  37627. }
  37628. }
  37629. function parseTilePackets(context, data, offset, dataLength) {
  37630. var position = 0;
  37631. var buffer, bufferSize = 0, skipNextBit = false;
  37632. function readBits(count) {
  37633. while (bufferSize < count) {
  37634. var b = data[offset + position];
  37635. position++;
  37636. if (skipNextBit) {
  37637. buffer = (buffer << 7) | b;
  37638. bufferSize += 7;
  37639. skipNextBit = false;
  37640. } else {
  37641. buffer = (buffer << 8) | b;
  37642. bufferSize += 8;
  37643. }
  37644. if (b == 0xFF) {
  37645. skipNextBit = true;
  37646. }
  37647. }
  37648. bufferSize -= count;
  37649. return (buffer >>> bufferSize) & ((1 << count) - 1);
  37650. }
  37651. function alignToByte() {
  37652. bufferSize = 0;
  37653. if (skipNextBit) {
  37654. position++;
  37655. skipNextBit = false;
  37656. }
  37657. }
  37658. function readCodingpasses() {
  37659. if (readBits(1) === 0) {
  37660. return 1;
  37661. }
  37662. if (readBits(1) === 0) {
  37663. return 2;
  37664. }
  37665. var value = readBits(2);
  37666. if (value < 3) {
  37667. return value + 3;
  37668. }
  37669. value = readBits(5);
  37670. if (value < 31) {
  37671. return value + 6;
  37672. }
  37673. value = readBits(7);
  37674. return value + 37;
  37675. }
  37676. var tileIndex = context.currentTile.index;
  37677. var tile = context.tiles[tileIndex];
  37678. var packetsIterator = tile.packetsIterator;
  37679. while (position < dataLength) {
  37680. var packet = packetsIterator.nextPacket();
  37681. if (!readBits(1)) {
  37682. alignToByte();
  37683. continue;
  37684. }
  37685. var layerNumber = packet.layerNumber;
  37686. var queue = [], codeblock;
  37687. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  37688. codeblock = packet.codeblocks[i];
  37689. var precinct = codeblock.precinct;
  37690. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  37691. var codeblockRow = codeblock.cby - precinct.cbyMin;
  37692. var codeblockIncluded = false;
  37693. var firstTimeInclusion = false;
  37694. var valueReady;
  37695. if ('included' in codeblock) {
  37696. codeblockIncluded = !!readBits(1);
  37697. } else {
  37698. // reading inclusion tree
  37699. precinct = codeblock.precinct;
  37700. var inclusionTree, zeroBitPlanesTree;
  37701. if ('inclusionTree' in precinct) {
  37702. inclusionTree = precinct.inclusionTree;
  37703. } else {
  37704. // building inclusion and zero bit-planes trees
  37705. var width = precinct.cbxMax - precinct.cbxMin + 1;
  37706. var height = precinct.cbyMax - precinct.cbyMin + 1;
  37707. inclusionTree = new InclusionTree(width, height, layerNumber);
  37708. zeroBitPlanesTree = new TagTree(width, height);
  37709. precinct.inclusionTree = inclusionTree;
  37710. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  37711. }
  37712. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  37713. while (true) {
  37714. if (readBits(1)) {
  37715. valueReady = !inclusionTree.nextLevel();
  37716. if (valueReady) {
  37717. codeblock.included = true;
  37718. codeblockIncluded = firstTimeInclusion = true;
  37719. break;
  37720. }
  37721. } else {
  37722. inclusionTree.incrementValue(layerNumber);
  37723. break;
  37724. }
  37725. }
  37726. }
  37727. }
  37728. if (!codeblockIncluded) {
  37729. continue;
  37730. }
  37731. if (firstTimeInclusion) {
  37732. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  37733. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  37734. while (true) {
  37735. if (readBits(1)) {
  37736. valueReady = !zeroBitPlanesTree.nextLevel();
  37737. if (valueReady) {
  37738. break;
  37739. }
  37740. } else {
  37741. zeroBitPlanesTree.incrementValue();
  37742. }
  37743. }
  37744. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  37745. }
  37746. var codingpasses = readCodingpasses();
  37747. while (readBits(1)) {
  37748. codeblock.Lblock++;
  37749. }
  37750. var codingpassesLog2 = log2(codingpasses);
  37751. // rounding down log2
  37752. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  37753. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  37754. var codedDataLength = readBits(bits);
  37755. queue.push({
  37756. codeblock: codeblock,
  37757. codingpasses: codingpasses,
  37758. dataLength: codedDataLength
  37759. });
  37760. }
  37761. alignToByte();
  37762. while (queue.length > 0) {
  37763. var packetItem = queue.shift();
  37764. codeblock = packetItem.codeblock;
  37765. if (!('data' in codeblock)) {
  37766. codeblock.data = [];
  37767. }
  37768. codeblock.data.push({
  37769. data: data,
  37770. start: offset + position,
  37771. end: offset + position + packetItem.dataLength,
  37772. codingpasses: packetItem.codingpasses
  37773. });
  37774. position += packetItem.dataLength;
  37775. }
  37776. }
  37777. return position;
  37778. }
  37779. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  37780. delta, mb, reversible, segmentationSymbolUsed) {
  37781. var x0 = subband.tbx0;
  37782. var y0 = subband.tby0;
  37783. var width = subband.tbx1 - subband.tbx0;
  37784. var codeblocks = subband.codeblocks;
  37785. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  37786. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  37787. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  37788. var codeblock = codeblocks[i];
  37789. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  37790. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  37791. if (blockWidth === 0 || blockHeight === 0) {
  37792. continue;
  37793. }
  37794. if (!('data' in codeblock)) {
  37795. continue;
  37796. }
  37797. var bitModel, currentCodingpassType;
  37798. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  37799. codeblock.zeroBitPlanes, mb);
  37800. currentCodingpassType = 2; // first bit plane starts from cleanup
  37801. // collect data
  37802. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  37803. var j, jj, dataItem;
  37804. for (j = 0, jj = data.length; j < jj; j++) {
  37805. dataItem = data[j];
  37806. totalLength += dataItem.end - dataItem.start;
  37807. codingpasses += dataItem.codingpasses;
  37808. }
  37809. var encodedData = new Uint8Array(totalLength);
  37810. var position = 0;
  37811. for (j = 0, jj = data.length; j < jj; j++) {
  37812. dataItem = data[j];
  37813. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  37814. encodedData.set(chunk, position);
  37815. position += chunk.length;
  37816. }
  37817. // decoding the item
  37818. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  37819. bitModel.setDecoder(decoder);
  37820. for (j = 0; j < codingpasses; j++) {
  37821. switch (currentCodingpassType) {
  37822. case 0:
  37823. bitModel.runSignificancePropogationPass();
  37824. break;
  37825. case 1:
  37826. bitModel.runMagnitudeRefinementPass();
  37827. break;
  37828. case 2:
  37829. bitModel.runCleanupPass();
  37830. if (segmentationSymbolUsed) {
  37831. bitModel.checkSegmentationSymbol();
  37832. }
  37833. break;
  37834. }
  37835. currentCodingpassType = (currentCodingpassType + 1) % 3;
  37836. }
  37837. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  37838. var sign = bitModel.coefficentsSign;
  37839. var magnitude = bitModel.coefficentsMagnitude;
  37840. var bitsDecoded = bitModel.bitsDecoded;
  37841. var magnitudeCorrection = reversible ? 0 : 0.5;
  37842. var k, n, nb;
  37843. position = 0;
  37844. // Do the interleaving of Section F.3.3 here, so we do not need
  37845. // to copy later. LL level is not interleaved, just copied.
  37846. var interleave = (subband.type !== 'LL');
  37847. for (j = 0; j < blockHeight; j++) {
  37848. var row = (offset / width) | 0; // row in the non-interleaved subband
  37849. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  37850. for (k = 0; k < blockWidth; k++) {
  37851. n = magnitude[position];
  37852. if (n !== 0) {
  37853. n = (n + magnitudeCorrection) * delta;
  37854. if (sign[position] !== 0) {
  37855. n = -n;
  37856. }
  37857. nb = bitsDecoded[position];
  37858. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  37859. if (reversible && (nb >= mb)) {
  37860. coefficients[pos] = n;
  37861. } else {
  37862. coefficients[pos] = n * (1 << (mb - nb));
  37863. }
  37864. }
  37865. offset++;
  37866. position++;
  37867. }
  37868. offset += width - blockWidth;
  37869. }
  37870. }
  37871. }
  37872. function transformTile(context, tile, c) {
  37873. var component = tile.components[c];
  37874. var codingStyleParameters = component.codingStyleParameters;
  37875. var quantizationParameters = component.quantizationParameters;
  37876. var decompositionLevelsCount =
  37877. codingStyleParameters.decompositionLevelsCount;
  37878. var spqcds = quantizationParameters.SPqcds;
  37879. var scalarExpounded = quantizationParameters.scalarExpounded;
  37880. var guardBits = quantizationParameters.guardBits;
  37881. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  37882. var precision = context.components[c].precision;
  37883. var reversible = codingStyleParameters.reversibleTransformation;
  37884. var transform = (reversible ? new ReversibleTransform() :
  37885. new IrreversibleTransform());
  37886. var subbandCoefficients = [];
  37887. var b = 0;
  37888. for (var i = 0; i <= decompositionLevelsCount; i++) {
  37889. var resolution = component.resolutions[i];
  37890. var width = resolution.trx1 - resolution.trx0;
  37891. var height = resolution.try1 - resolution.try0;
  37892. // Allocate space for the whole sublevel.
  37893. var coefficients = new Float32Array(width * height);
  37894. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  37895. var mu, epsilon;
  37896. if (!scalarExpounded) {
  37897. // formula E-5
  37898. mu = spqcds[0].mu;
  37899. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  37900. } else {
  37901. mu = spqcds[b].mu;
  37902. epsilon = spqcds[b].epsilon;
  37903. b++;
  37904. }
  37905. var subband = resolution.subbands[j];
  37906. var gainLog2 = SubbandsGainLog2[subband.type];
  37907. // calulate quantization coefficient (Section E.1.1.1)
  37908. var delta = (reversible ? 1 :
  37909. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  37910. var mb = (guardBits + epsilon - 1);
  37911. // In the first resolution level, copyCoefficients will fill the
  37912. // whole array with coefficients. In the succeding passes,
  37913. // copyCoefficients will consecutively fill in the values that belong
  37914. // to the interleaved positions of the HL, LH, and HH coefficients.
  37915. // The LL coefficients will then be interleaved in Transform.iterate().
  37916. copyCoefficients(coefficients, width, height, subband, delta, mb,
  37917. reversible, segmentationSymbolUsed);
  37918. }
  37919. subbandCoefficients.push({
  37920. width: width,
  37921. height: height,
  37922. items: coefficients
  37923. });
  37924. }
  37925. var result = transform.calculate(subbandCoefficients,
  37926. component.tcx0, component.tcy0);
  37927. return {
  37928. left: component.tcx0,
  37929. top: component.tcy0,
  37930. width: result.width,
  37931. height: result.height,
  37932. items: result.items
  37933. };
  37934. }
  37935. function transformComponents(context) {
  37936. var siz = context.SIZ;
  37937. var components = context.components;
  37938. var componentsCount = siz.Csiz;
  37939. var resultImages = [];
  37940. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  37941. var tile = context.tiles[i];
  37942. var transformedTiles = [];
  37943. var c;
  37944. for (c = 0; c < componentsCount; c++) {
  37945. transformedTiles[c] = transformTile(context, tile, c);
  37946. }
  37947. var tile0 = transformedTiles[0];
  37948. var out = new Uint8Array(tile0.items.length * componentsCount);
  37949. var result = {
  37950. left: tile0.left,
  37951. top: tile0.top,
  37952. width: tile0.width,
  37953. height: tile0.height,
  37954. items: out
  37955. };
  37956. // Section G.2.2 Inverse multi component transform
  37957. var shift, offset, max, min;
  37958. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  37959. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  37960. var fourComponents = componentsCount === 4;
  37961. var y0items = transformedTiles[0].items;
  37962. var y1items = transformedTiles[1].items;
  37963. var y2items = transformedTiles[2].items;
  37964. var y3items = fourComponents ? transformedTiles[3].items : null;
  37965. // HACK: The multiple component transform formulas below assume that
  37966. // all components have the same precision. With this in mind, we
  37967. // compute shift and offset only once.
  37968. shift = components[0].precision - 8;
  37969. offset = (128 << shift) + 0.5;
  37970. max = (127.5 * (1 << shift));
  37971. min = -max;
  37972. var component0 = tile.components[0];
  37973. if (!component0.codingStyleParameters.reversibleTransformation) {
  37974. // inverse irreversible multiple component transform
  37975. for (j = 0, jj = y0items.length; j < jj; ++j) {
  37976. y0 = y0items[j];
  37977. y1 = y1items[j];
  37978. y2 = y2items[j];
  37979. r = y0 + 1.402 * y2;
  37980. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  37981. b = y0 + 1.772 * y1;
  37982. out[pos++] = r <= min ? 0 : r >= max ? 255 : (r + offset) >> shift;
  37983. out[pos++] = g <= min ? 0 : g >= max ? 255 : (g + offset) >> shift;
  37984. out[pos++] = b <= min ? 0 : b >= max ? 255 : (b + offset) >> shift;
  37985. if (fourComponents) {
  37986. k = y3items[j];
  37987. out[pos++] =
  37988. k <= min ? 0 : k >= max ? 255 : (k + offset) >> shift;
  37989. }
  37990. }
  37991. } else {
  37992. // inverse reversible multiple component transform
  37993. for (j = 0, jj = y0items.length; j < jj; ++j) {
  37994. y0 = y0items[j];
  37995. y1 = y1items[j];
  37996. y2 = y2items[j];
  37997. g = y0 - ((y2 + y1) >> 2);
  37998. r = g + y2;
  37999. b = g + y1;
  38000. out[pos++] = r <= min ? 0 : r >= max ? 255 : (r + offset) >> shift;
  38001. out[pos++] = g <= min ? 0 : g >= max ? 255 : (g + offset) >> shift;
  38002. out[pos++] = b <= min ? 0 : b >= max ? 255 : (b + offset) >> shift;
  38003. if (fourComponents) {
  38004. k = y3items[j];
  38005. out[pos++] =
  38006. k <= min ? 0 : k >= max ? 255 : (k + offset) >> shift;
  38007. }
  38008. }
  38009. }
  38010. } else { // no multi-component transform
  38011. for (c = 0; c < componentsCount; c++) {
  38012. var items = transformedTiles[c].items;
  38013. shift = components[c].precision - 8;
  38014. offset = (128 << shift) + 0.5;
  38015. max = (127.5 * (1 << shift));
  38016. min = -max;
  38017. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  38018. val = items[j];
  38019. out[pos] = val <= min ? 0 :
  38020. val >= max ? 255 : (val + offset) >> shift;
  38021. pos += componentsCount;
  38022. }
  38023. }
  38024. }
  38025. resultImages.push(result);
  38026. }
  38027. return resultImages;
  38028. }
  38029. function initializeTile(context, tileIndex) {
  38030. var siz = context.SIZ;
  38031. var componentsCount = siz.Csiz;
  38032. var tile = context.tiles[tileIndex];
  38033. for (var c = 0; c < componentsCount; c++) {
  38034. var component = tile.components[c];
  38035. var qcdOrQcc = (c in context.currentTile.QCC ?
  38036. context.currentTile.QCC[c] : context.currentTile.QCD);
  38037. component.quantizationParameters = qcdOrQcc;
  38038. var codOrCoc = (c in context.currentTile.COC ?
  38039. context.currentTile.COC[c] : context.currentTile.COD);
  38040. component.codingStyleParameters = codOrCoc;
  38041. }
  38042. tile.codingStyleDefaultParameters = context.currentTile.COD;
  38043. }
  38044. // Section B.10.2 Tag trees
  38045. var TagTree = (function TagTreeClosure() {
  38046. function TagTree(width, height) {
  38047. var levelsLength = log2(Math.max(width, height)) + 1;
  38048. this.levels = [];
  38049. for (var i = 0; i < levelsLength; i++) {
  38050. var level = {
  38051. width: width,
  38052. height: height,
  38053. items: []
  38054. };
  38055. this.levels.push(level);
  38056. width = Math.ceil(width / 2);
  38057. height = Math.ceil(height / 2);
  38058. }
  38059. }
  38060. TagTree.prototype = {
  38061. reset: function TagTree_reset(i, j) {
  38062. var currentLevel = 0, value = 0, level;
  38063. while (currentLevel < this.levels.length) {
  38064. level = this.levels[currentLevel];
  38065. var index = i + j * level.width;
  38066. if (index in level.items) {
  38067. value = level.items[index];
  38068. break;
  38069. }
  38070. level.index = index;
  38071. i >>= 1;
  38072. j >>= 1;
  38073. currentLevel++;
  38074. }
  38075. currentLevel--;
  38076. level = this.levels[currentLevel];
  38077. level.items[level.index] = value;
  38078. this.currentLevel = currentLevel;
  38079. delete this.value;
  38080. },
  38081. incrementValue: function TagTree_incrementValue() {
  38082. var level = this.levels[this.currentLevel];
  38083. level.items[level.index]++;
  38084. },
  38085. nextLevel: function TagTree_nextLevel() {
  38086. var currentLevel = this.currentLevel;
  38087. var level = this.levels[currentLevel];
  38088. var value = level.items[level.index];
  38089. currentLevel--;
  38090. if (currentLevel < 0) {
  38091. this.value = value;
  38092. return false;
  38093. }
  38094. this.currentLevel = currentLevel;
  38095. level = this.levels[currentLevel];
  38096. level.items[level.index] = value;
  38097. return true;
  38098. }
  38099. };
  38100. return TagTree;
  38101. })();
  38102. var InclusionTree = (function InclusionTreeClosure() {
  38103. function InclusionTree(width, height, defaultValue) {
  38104. var levelsLength = log2(Math.max(width, height)) + 1;
  38105. this.levels = [];
  38106. for (var i = 0; i < levelsLength; i++) {
  38107. var items = new Uint8Array(width * height);
  38108. for (var j = 0, jj = items.length; j < jj; j++) {
  38109. items[j] = defaultValue;
  38110. }
  38111. var level = {
  38112. width: width,
  38113. height: height,
  38114. items: items
  38115. };
  38116. this.levels.push(level);
  38117. width = Math.ceil(width / 2);
  38118. height = Math.ceil(height / 2);
  38119. }
  38120. }
  38121. InclusionTree.prototype = {
  38122. reset: function InclusionTree_reset(i, j, stopValue) {
  38123. var currentLevel = 0;
  38124. while (currentLevel < this.levels.length) {
  38125. var level = this.levels[currentLevel];
  38126. var index = i + j * level.width;
  38127. level.index = index;
  38128. var value = level.items[index];
  38129. if (value == 0xFF) {
  38130. break;
  38131. }
  38132. if (value > stopValue) {
  38133. this.currentLevel = currentLevel;
  38134. // already know about this one, propagating the value to top levels
  38135. this.propagateValues();
  38136. return false;
  38137. }
  38138. i >>= 1;
  38139. j >>= 1;
  38140. currentLevel++;
  38141. }
  38142. this.currentLevel = currentLevel - 1;
  38143. return true;
  38144. },
  38145. incrementValue: function InclusionTree_incrementValue(stopValue) {
  38146. var level = this.levels[this.currentLevel];
  38147. level.items[level.index] = stopValue + 1;
  38148. this.propagateValues();
  38149. },
  38150. propagateValues: function InclusionTree_propagateValues() {
  38151. var levelIndex = this.currentLevel;
  38152. var level = this.levels[levelIndex];
  38153. var currentValue = level.items[level.index];
  38154. while (--levelIndex >= 0) {
  38155. level = this.levels[levelIndex];
  38156. level.items[level.index] = currentValue;
  38157. }
  38158. },
  38159. nextLevel: function InclusionTree_nextLevel() {
  38160. var currentLevel = this.currentLevel;
  38161. var level = this.levels[currentLevel];
  38162. var value = level.items[level.index];
  38163. level.items[level.index] = 0xFF;
  38164. currentLevel--;
  38165. if (currentLevel < 0) {
  38166. return false;
  38167. }
  38168. this.currentLevel = currentLevel;
  38169. level = this.levels[currentLevel];
  38170. level.items[level.index] = value;
  38171. return true;
  38172. }
  38173. };
  38174. return InclusionTree;
  38175. })();
  38176. // Section D. Coefficient bit modeling
  38177. var BitModel = (function BitModelClosure() {
  38178. var UNIFORM_CONTEXT = 17;
  38179. var RUNLENGTH_CONTEXT = 18;
  38180. // Table D-1
  38181. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  38182. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  38183. var LLAndLHContextsLabel = new Uint8Array([
  38184. 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,
  38185. 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,
  38186. 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
  38187. ]);
  38188. var HLContextLabel = new Uint8Array([
  38189. 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,
  38190. 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,
  38191. 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
  38192. ]);
  38193. var HHContextLabel = new Uint8Array([
  38194. 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,
  38195. 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,
  38196. 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
  38197. ]);
  38198. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  38199. this.width = width;
  38200. this.height = height;
  38201. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  38202. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  38203. var coefficientCount = width * height;
  38204. // coefficients outside the encoding region treated as insignificant
  38205. // add border state cells for significanceState
  38206. this.neighborsSignificance = new Uint8Array(coefficientCount);
  38207. this.coefficentsSign = new Uint8Array(coefficientCount);
  38208. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  38209. mb > 6 ? new Uint16Array(coefficientCount) :
  38210. new Uint8Array(coefficientCount);
  38211. this.processingFlags = new Uint8Array(coefficientCount);
  38212. var bitsDecoded = new Uint8Array(coefficientCount);
  38213. if (zeroBitPlanes !== 0) {
  38214. for (var i = 0; i < coefficientCount; i++) {
  38215. bitsDecoded[i] = zeroBitPlanes;
  38216. }
  38217. }
  38218. this.bitsDecoded = bitsDecoded;
  38219. this.reset();
  38220. }
  38221. BitModel.prototype = {
  38222. setDecoder: function BitModel_setDecoder(decoder) {
  38223. this.decoder = decoder;
  38224. },
  38225. reset: function BitModel_reset() {
  38226. // We have 17 contexts that are accessed via context labels,
  38227. // plus the uniform and runlength context.
  38228. this.contexts = new Int8Array(19);
  38229. // Contexts are packed into 1 byte:
  38230. // highest 7 bits carry the index, lowest bit carries mps
  38231. this.contexts[0] = (4 << 1) | 0;
  38232. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  38233. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  38234. },
  38235. setNeighborsSignificance:
  38236. function BitModel_setNeighborsSignificance(row, column, index) {
  38237. var neighborsSignificance = this.neighborsSignificance;
  38238. var width = this.width, height = this.height;
  38239. var left = (column > 0);
  38240. var right = (column + 1 < width);
  38241. var i;
  38242. if (row > 0) {
  38243. i = index - width;
  38244. if (left) {
  38245. neighborsSignificance[i - 1] += 0x10;
  38246. }
  38247. if (right) {
  38248. neighborsSignificance[i + 1] += 0x10;
  38249. }
  38250. neighborsSignificance[i] += 0x04;
  38251. }
  38252. if (row + 1 < height) {
  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 (left) {
  38263. neighborsSignificance[index - 1] += 0x01;
  38264. }
  38265. if (right) {
  38266. neighborsSignificance[index + 1] += 0x01;
  38267. }
  38268. neighborsSignificance[index] |= 0x80;
  38269. },
  38270. runSignificancePropogationPass:
  38271. function BitModel_runSignificancePropogationPass() {
  38272. var decoder = this.decoder;
  38273. var width = this.width, height = this.height;
  38274. var coefficentsMagnitude = this.coefficentsMagnitude;
  38275. var coefficentsSign = this.coefficentsSign;
  38276. var neighborsSignificance = this.neighborsSignificance;
  38277. var processingFlags = this.processingFlags;
  38278. var contexts = this.contexts;
  38279. var labels = this.contextLabelTable;
  38280. var bitsDecoded = this.bitsDecoded;
  38281. var processedInverseMask = ~1;
  38282. var processedMask = 1;
  38283. var firstMagnitudeBitMask = 2;
  38284. for (var i0 = 0; i0 < height; i0 += 4) {
  38285. for (var j = 0; j < width; j++) {
  38286. var index = i0 * width + j;
  38287. for (var i1 = 0; i1 < 4; i1++, index += width) {
  38288. var i = i0 + i1;
  38289. if (i >= height) {
  38290. break;
  38291. }
  38292. // clear processed flag first
  38293. processingFlags[index] &= processedInverseMask;
  38294. if (coefficentsMagnitude[index] ||
  38295. !neighborsSignificance[index]) {
  38296. continue;
  38297. }
  38298. var contextLabel = labels[neighborsSignificance[index]];
  38299. var decision = decoder.readBit(contexts, contextLabel);
  38300. if (decision) {
  38301. var sign = this.decodeSignBit(i, j, index);
  38302. coefficentsSign[index] = sign;
  38303. coefficentsMagnitude[index] = 1;
  38304. this.setNeighborsSignificance(i, j, index);
  38305. processingFlags[index] |= firstMagnitudeBitMask;
  38306. }
  38307. bitsDecoded[index]++;
  38308. processingFlags[index] |= processedMask;
  38309. }
  38310. }
  38311. }
  38312. },
  38313. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  38314. var width = this.width, height = this.height;
  38315. var coefficentsMagnitude = this.coefficentsMagnitude;
  38316. var coefficentsSign = this.coefficentsSign;
  38317. var contribution, sign0, sign1, significance1;
  38318. var contextLabel, decoded;
  38319. // calculate horizontal contribution
  38320. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  38321. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  38322. sign1 = coefficentsSign[index + 1];
  38323. if (significance1) {
  38324. sign0 = coefficentsSign[index - 1];
  38325. contribution = 1 - sign1 - sign0;
  38326. } else {
  38327. contribution = 1 - sign1 - sign1;
  38328. }
  38329. } else if (significance1) {
  38330. sign0 = coefficentsSign[index - 1];
  38331. contribution = 1 - sign0 - sign0;
  38332. } else {
  38333. contribution = 0;
  38334. }
  38335. var horizontalContribution = 3 * contribution;
  38336. // calculate vertical contribution and combine with the horizontal
  38337. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  38338. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  38339. sign1 = coefficentsSign[index + width];
  38340. if (significance1) {
  38341. sign0 = coefficentsSign[index - width];
  38342. contribution = 1 - sign1 - sign0 + horizontalContribution;
  38343. } else {
  38344. contribution = 1 - sign1 - sign1 + horizontalContribution;
  38345. }
  38346. } else if (significance1) {
  38347. sign0 = coefficentsSign[index - width];
  38348. contribution = 1 - sign0 - sign0 + horizontalContribution;
  38349. } else {
  38350. contribution = horizontalContribution;
  38351. }
  38352. if (contribution >= 0) {
  38353. contextLabel = 9 + contribution;
  38354. decoded = this.decoder.readBit(this.contexts, contextLabel);
  38355. } else {
  38356. contextLabel = 9 - contribution;
  38357. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  38358. }
  38359. return decoded;
  38360. },
  38361. runMagnitudeRefinementPass:
  38362. function BitModel_runMagnitudeRefinementPass() {
  38363. var decoder = this.decoder;
  38364. var width = this.width, height = this.height;
  38365. var coefficentsMagnitude = this.coefficentsMagnitude;
  38366. var neighborsSignificance = this.neighborsSignificance;
  38367. var contexts = this.contexts;
  38368. var bitsDecoded = this.bitsDecoded;
  38369. var processingFlags = this.processingFlags;
  38370. var processedMask = 1;
  38371. var firstMagnitudeBitMask = 2;
  38372. var length = width * height;
  38373. var width4 = width * 4;
  38374. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  38375. indexNext = Math.min(length, index0 + width4);
  38376. for (var j = 0; j < width; j++) {
  38377. for (var index = index0 + j; index < indexNext; index += width) {
  38378. // significant but not those that have just become
  38379. if (!coefficentsMagnitude[index] ||
  38380. (processingFlags[index] & processedMask) !== 0) {
  38381. continue;
  38382. }
  38383. var contextLabel = 16;
  38384. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  38385. processingFlags[index] ^= firstMagnitudeBitMask;
  38386. // first refinement
  38387. var significance = neighborsSignificance[index] & 127;
  38388. contextLabel = significance === 0 ? 15 : 14;
  38389. }
  38390. var bit = decoder.readBit(contexts, contextLabel);
  38391. coefficentsMagnitude[index] =
  38392. (coefficentsMagnitude[index] << 1) | bit;
  38393. bitsDecoded[index]++;
  38394. processingFlags[index] |= processedMask;
  38395. }
  38396. }
  38397. }
  38398. },
  38399. runCleanupPass: function BitModel_runCleanupPass() {
  38400. var decoder = this.decoder;
  38401. var width = this.width, height = this.height;
  38402. var neighborsSignificance = this.neighborsSignificance;
  38403. var coefficentsMagnitude = this.coefficentsMagnitude;
  38404. var coefficentsSign = this.coefficentsSign;
  38405. var contexts = this.contexts;
  38406. var labels = this.contextLabelTable;
  38407. var bitsDecoded = this.bitsDecoded;
  38408. var processingFlags = this.processingFlags;
  38409. var processedMask = 1;
  38410. var firstMagnitudeBitMask = 2;
  38411. var oneRowDown = width;
  38412. var twoRowsDown = width * 2;
  38413. var threeRowsDown = width * 3;
  38414. var iNext;
  38415. for (var i0 = 0; i0 < height; i0 = iNext) {
  38416. iNext = Math.min(i0 + 4, height);
  38417. var indexBase = i0 * width;
  38418. var checkAllEmpty = i0 + 3 < height;
  38419. for (var j = 0; j < width; j++) {
  38420. var index0 = indexBase + j;
  38421. // using the property: labels[neighborsSignificance[index]] == 0
  38422. // when neighborsSignificance[index] == 0
  38423. var allEmpty = (checkAllEmpty &&
  38424. processingFlags[index0] === 0 &&
  38425. processingFlags[index0 + oneRowDown] === 0 &&
  38426. processingFlags[index0 + twoRowsDown] === 0 &&
  38427. processingFlags[index0 + threeRowsDown] === 0 &&
  38428. neighborsSignificance[index0] === 0 &&
  38429. neighborsSignificance[index0 + oneRowDown] === 0 &&
  38430. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  38431. neighborsSignificance[index0 + threeRowsDown] === 0);
  38432. var i1 = 0, index = index0;
  38433. var i = i0, sign;
  38434. if (allEmpty) {
  38435. var hasSignificantCoefficent =
  38436. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  38437. if (!hasSignificantCoefficent) {
  38438. bitsDecoded[index0]++;
  38439. bitsDecoded[index0 + oneRowDown]++;
  38440. bitsDecoded[index0 + twoRowsDown]++;
  38441. bitsDecoded[index0 + threeRowsDown]++;
  38442. continue; // next column
  38443. }
  38444. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38445. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38446. if (i1 !== 0) {
  38447. i = i0 + i1;
  38448. index += i1 * width;
  38449. }
  38450. sign = this.decodeSignBit(i, j, index);
  38451. coefficentsSign[index] = sign;
  38452. coefficentsMagnitude[index] = 1;
  38453. this.setNeighborsSignificance(i, j, index);
  38454. processingFlags[index] |= firstMagnitudeBitMask;
  38455. index = index0;
  38456. for (var i2 = i0; i2 <= i; i2++, index += width) {
  38457. bitsDecoded[index]++;
  38458. }
  38459. i1++;
  38460. }
  38461. for (i = i0 + i1; i < iNext; i++, index += width) {
  38462. if (coefficentsMagnitude[index] ||
  38463. (processingFlags[index] & processedMask) !== 0) {
  38464. continue;
  38465. }
  38466. var contextLabel = labels[neighborsSignificance[index]];
  38467. var decision = decoder.readBit(contexts, contextLabel);
  38468. if (decision === 1) {
  38469. sign = this.decodeSignBit(i, j, index);
  38470. coefficentsSign[index] = sign;
  38471. coefficentsMagnitude[index] = 1;
  38472. this.setNeighborsSignificance(i, j, index);
  38473. processingFlags[index] |= firstMagnitudeBitMask;
  38474. }
  38475. bitsDecoded[index]++;
  38476. }
  38477. }
  38478. }
  38479. },
  38480. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  38481. var decoder = this.decoder;
  38482. var contexts = this.contexts;
  38483. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  38484. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  38485. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38486. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38487. if (symbol != 0xA) {
  38488. throw 'Invalid segmentation symbol';
  38489. }
  38490. }
  38491. };
  38492. return BitModel;
  38493. })();
  38494. // Section F, Discrete wavelet transformation
  38495. var Transform = (function TransformClosure() {
  38496. function Transform() {}
  38497. Transform.prototype.calculate =
  38498. function transformCalculate(subbands, u0, v0) {
  38499. var ll = subbands[0];
  38500. for (var i = 1, ii = subbands.length; i < ii; i++) {
  38501. ll = this.iterate(ll, subbands[i], u0, v0);
  38502. }
  38503. return ll;
  38504. };
  38505. Transform.prototype.extend = function extend(buffer, offset, size) {
  38506. // Section F.3.7 extending... using max extension of 4
  38507. var i1 = offset - 1, j1 = offset + 1;
  38508. var i2 = offset + size - 2, j2 = offset + size;
  38509. buffer[i1--] = buffer[j1++];
  38510. buffer[j2++] = buffer[i2--];
  38511. buffer[i1--] = buffer[j1++];
  38512. buffer[j2++] = buffer[i2--];
  38513. buffer[i1--] = buffer[j1++];
  38514. buffer[j2++] = buffer[i2--];
  38515. buffer[i1] = buffer[j1];
  38516. buffer[j2] = buffer[i2];
  38517. };
  38518. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  38519. u0, v0) {
  38520. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  38521. var width = hl_lh_hh.width;
  38522. var height = hl_lh_hh.height;
  38523. var items = hl_lh_hh.items;
  38524. var i, j, k, l, u, v;
  38525. // Interleave LL according to Section F.3.3
  38526. for (k = 0, i = 0; i < llHeight; i++) {
  38527. l = i * 2 * width;
  38528. for (j = 0; j < llWidth; j++, k++, l += 2) {
  38529. items[l] = llItems[k];
  38530. }
  38531. }
  38532. // The LL band is not needed anymore.
  38533. llItems = ll.items = null;
  38534. var bufferPadding = 4;
  38535. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  38536. // Section F.3.4 HOR_SR
  38537. if (width === 1) {
  38538. // if width = 1, when u0 even keep items as is, when odd divide by 2
  38539. if ((u0 & 1) !== 0) {
  38540. for (v = 0, k = 0; v < height; v++, k += width) {
  38541. items[k] *= 0.5;
  38542. }
  38543. }
  38544. } else {
  38545. for (v = 0, k = 0; v < height; v++, k += width) {
  38546. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  38547. this.extend(rowBuffer, bufferPadding, width);
  38548. this.filter(rowBuffer, bufferPadding, width);
  38549. items.set(
  38550. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  38551. k);
  38552. }
  38553. }
  38554. // Accesses to the items array can take long, because it may not fit into
  38555. // CPU cache and has to be fetched from main memory. Since subsequent
  38556. // accesses to the items array are not local when reading columns, we
  38557. // have a cache miss every time. To reduce cache misses, get up to
  38558. // 'numBuffers' items at a time and store them into the individual
  38559. // buffers. The colBuffers should be small enough to fit into CPU cache.
  38560. var numBuffers = 16;
  38561. var colBuffers = [];
  38562. for (i = 0; i < numBuffers; i++) {
  38563. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  38564. }
  38565. var b, currentBuffer = 0;
  38566. ll = bufferPadding + height;
  38567. // Section F.3.5 VER_SR
  38568. if (height === 1) {
  38569. // if height = 1, when v0 even keep items as is, when odd divide by 2
  38570. if ((v0 & 1) !== 0) {
  38571. for (u = 0; u < width; u++) {
  38572. items[u] *= 0.5;
  38573. }
  38574. }
  38575. } else {
  38576. for (u = 0; u < width; u++) {
  38577. // if we ran out of buffers, copy several image columns at once
  38578. if (currentBuffer === 0) {
  38579. numBuffers = Math.min(width - u, numBuffers);
  38580. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  38581. for (b = 0; b < numBuffers; b++) {
  38582. colBuffers[b][l] = items[k + b];
  38583. }
  38584. }
  38585. currentBuffer = numBuffers;
  38586. }
  38587. currentBuffer--;
  38588. var buffer = colBuffers[currentBuffer];
  38589. this.extend(buffer, bufferPadding, height);
  38590. this.filter(buffer, bufferPadding, height);
  38591. // If this is last buffer in this group of buffers, flush all buffers.
  38592. if (currentBuffer === 0) {
  38593. k = u - numBuffers + 1;
  38594. for (l = bufferPadding; l < ll; k += width, l++) {
  38595. for (b = 0; b < numBuffers; b++) {
  38596. items[k + b] = colBuffers[b][l];
  38597. }
  38598. }
  38599. }
  38600. }
  38601. }
  38602. return {
  38603. width: width,
  38604. height: height,
  38605. items: items
  38606. };
  38607. };
  38608. return Transform;
  38609. })();
  38610. // Section 3.8.2 Irreversible 9-7 filter
  38611. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  38612. function IrreversibleTransform() {
  38613. Transform.call(this);
  38614. }
  38615. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  38616. IrreversibleTransform.prototype.filter =
  38617. function irreversibleTransformFilter(x, offset, length) {
  38618. var len = length >> 1;
  38619. offset = offset | 0;
  38620. var j, n, current, next;
  38621. var alpha = -1.586134342059924;
  38622. var beta = -0.052980118572961;
  38623. var gamma = 0.882911075530934;
  38624. var delta = 0.443506852043971;
  38625. var K = 1.230174104914001;
  38626. var K_ = 1 / K;
  38627. // step 1 is combined with step 3
  38628. // step 2
  38629. j = offset - 3;
  38630. for (n = len + 4; n--; j += 2) {
  38631. x[j] *= K_;
  38632. }
  38633. // step 1 & 3
  38634. j = offset - 2;
  38635. current = delta * x[j -1];
  38636. for (n = len + 3; n--; j += 2) {
  38637. next = delta * x[j + 1];
  38638. x[j] = K * x[j] - current - next;
  38639. if (n--) {
  38640. j += 2;
  38641. current = delta * x[j + 1];
  38642. x[j] = K * x[j] - current - next;
  38643. } else {
  38644. break;
  38645. }
  38646. }
  38647. // step 4
  38648. j = offset - 1;
  38649. current = gamma * x[j - 1];
  38650. for (n = len + 2; n--; j += 2) {
  38651. next = gamma * x[j + 1];
  38652. x[j] -= current + next;
  38653. if (n--) {
  38654. j += 2;
  38655. current = gamma * x[j + 1];
  38656. x[j] -= current + next;
  38657. } else {
  38658. break;
  38659. }
  38660. }
  38661. // step 5
  38662. j = offset;
  38663. current = beta * x[j - 1];
  38664. for (n = len + 1; n--; j += 2) {
  38665. next = beta * x[j + 1];
  38666. x[j] -= current + next;
  38667. if (n--) {
  38668. j += 2;
  38669. current = beta * x[j + 1];
  38670. x[j] -= current + next;
  38671. } else {
  38672. break;
  38673. }
  38674. }
  38675. // step 6
  38676. if (len !== 0) {
  38677. j = offset + 1;
  38678. current = alpha * x[j - 1];
  38679. for (n = len; n--; j += 2) {
  38680. next = alpha * x[j + 1];
  38681. x[j] -= current + next;
  38682. if (n--) {
  38683. j += 2;
  38684. current = alpha * x[j + 1];
  38685. x[j] -= current + next;
  38686. } else {
  38687. break;
  38688. }
  38689. }
  38690. }
  38691. };
  38692. return IrreversibleTransform;
  38693. })();
  38694. // Section 3.8.1 Reversible 5-3 filter
  38695. var ReversibleTransform = (function ReversibleTransformClosure() {
  38696. function ReversibleTransform() {
  38697. Transform.call(this);
  38698. }
  38699. ReversibleTransform.prototype = Object.create(Transform.prototype);
  38700. ReversibleTransform.prototype.filter =
  38701. function reversibleTransformFilter(x, offset, length) {
  38702. var len = length >> 1;
  38703. offset = offset | 0;
  38704. var j, n;
  38705. for (j = offset, n = len + 1; n--; j += 2) {
  38706. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  38707. }
  38708. for (j = offset + 1, n = len; n--; j += 2) {
  38709. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  38710. }
  38711. };
  38712. return ReversibleTransform;
  38713. })();
  38714. return JpxImage;
  38715. })();
  38716. var Jbig2Image = (function Jbig2ImageClosure() {
  38717. // Utility data structures
  38718. function ContextCache() {}
  38719. ContextCache.prototype = {
  38720. getContexts: function(id) {
  38721. if (id in this) {
  38722. return this[id];
  38723. }
  38724. return (this[id] = new Int8Array(1<<16));
  38725. }
  38726. };
  38727. function DecodingContext(data, start, end) {
  38728. this.data = data;
  38729. this.start = start;
  38730. this.end = end;
  38731. }
  38732. DecodingContext.prototype = {
  38733. get decoder() {
  38734. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  38735. return shadow(this, 'decoder', decoder);
  38736. },
  38737. get contextCache() {
  38738. var cache = new ContextCache();
  38739. return shadow(this, 'contextCache', cache);
  38740. }
  38741. };
  38742. // Annex A. Arithmetic Integer Decoding Procedure
  38743. // A.2 Procedure for decoding values
  38744. function decodeInteger(contextCache, procedure, decoder) {
  38745. var contexts = contextCache.getContexts(procedure);
  38746. var prev = 1;
  38747. var state = 1, v = 0, s;
  38748. var toRead = 32, offset = 4436; // defaults for state 7
  38749. while (state) {
  38750. var bit = decoder.readBit(contexts, prev);
  38751. prev = (prev < 256 ? (prev << 1) | bit :
  38752. (((prev << 1) | bit) & 511) | 256);
  38753. switch (state) {
  38754. case 1:
  38755. s = !!bit;
  38756. break;
  38757. case 2:
  38758. if (bit) {
  38759. break;
  38760. }
  38761. state = 7;
  38762. toRead = 2;
  38763. offset = 0;
  38764. break;
  38765. case 3:
  38766. if (bit) {
  38767. break;
  38768. }
  38769. state = 7;
  38770. toRead = 4;
  38771. offset = 4;
  38772. break;
  38773. case 4:
  38774. if (bit) {
  38775. break;
  38776. }
  38777. state = 7;
  38778. toRead = 6;
  38779. offset = 20;
  38780. break;
  38781. case 5:
  38782. if (bit) {
  38783. break;
  38784. }
  38785. state = 7;
  38786. toRead = 8;
  38787. offset = 84;
  38788. break;
  38789. case 6:
  38790. if (bit) {
  38791. break;
  38792. }
  38793. state = 7;
  38794. toRead = 12;
  38795. offset = 340;
  38796. break;
  38797. default:
  38798. v = ((v << 1) | bit) >>> 0;
  38799. if (--toRead === 0) {
  38800. state = 0;
  38801. }
  38802. continue;
  38803. }
  38804. state++;
  38805. }
  38806. v += offset;
  38807. return (!s ? v : (v > 0 ? -v : null));
  38808. }
  38809. // A.3 The IAID decoding procedure
  38810. function decodeIAID(contextCache, decoder, codeLength) {
  38811. var contexts = contextCache.getContexts('IAID');
  38812. var prev = 1;
  38813. for (var i = 0; i < codeLength; i++) {
  38814. var bit = decoder.readBit(contexts, prev);
  38815. prev = (prev << 1) | bit;
  38816. }
  38817. if (codeLength < 31) {
  38818. return prev & ((1 << codeLength) - 1);
  38819. }
  38820. return prev & 0x7FFFFFFF;
  38821. }
  38822. // 7.3 Segment types
  38823. var SegmentTypes = [
  38824. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  38825. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  38826. null, null, null, null, null, 'patternDictionary', null, null, null,
  38827. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  38828. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  38829. null, null, null, null, null, 'IntermediateGenericRegion', null,
  38830. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  38831. 'IntermediateGenericRefinementRegion', null,
  38832. 'ImmediateGenericRefinementRegion',
  38833. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  38834. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  38835. 'Tables', null, null, null, null, null, null, null, null,
  38836. 'Extension'
  38837. ];
  38838. var CodingTemplates = [
  38839. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38840. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  38841. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38842. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  38843. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  38844. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38845. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38846. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  38847. {x: -1, y: 0}],
  38848. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  38849. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  38850. ];
  38851. var RefinementTemplates = [
  38852. {
  38853. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38854. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  38855. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  38856. },
  38857. {
  38858. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38859. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  38860. {x: 0, y: 1}, {x: 1, y: 1}]
  38861. }
  38862. ];
  38863. var ReusedContexts = [
  38864. 0x1CD3, // '00111001101' (template) + '0011' (at),
  38865. 0x079A, // '001111001101' + '0',
  38866. 0x00E3, // '001110001' + '1',
  38867. 0x018B // '011000101' + '1'
  38868. ];
  38869. var RefinementReusedContexts = [
  38870. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  38871. 0x0008 // '0000' + '001000'
  38872. ];
  38873. // 6.2 Generic Region Decoding Procedure
  38874. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  38875. decodingContext) {
  38876. if (mmr) {
  38877. error('JBIG2 error: MMR encoding is not supported');
  38878. }
  38879. var useskip = !!skip;
  38880. var template = CodingTemplates[templateIndex].concat(at);
  38881. // Sorting is non-standard, and it is not required. But sorting increases
  38882. // the number of template bits that can be reused from the previous
  38883. // contextLabel in the main loop.
  38884. template.sort(function (a, b) {
  38885. return (a.y - b.y) || (a.x - b.x);
  38886. });
  38887. var templateLength = template.length;
  38888. var templateX = new Int8Array(templateLength);
  38889. var templateY = new Int8Array(templateLength);
  38890. var changingTemplateEntries = [];
  38891. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  38892. var c, k;
  38893. for (k = 0; k < templateLength; k++) {
  38894. templateX[k] = template[k].x;
  38895. templateY[k] = template[k].y;
  38896. minX = Math.min(minX, template[k].x);
  38897. maxX = Math.max(maxX, template[k].x);
  38898. minY = Math.min(minY, template[k].y);
  38899. // Check if the template pixel appears in two consecutive context labels,
  38900. // so it can be reused. Otherwise, we add it to the list of changing
  38901. // template entries.
  38902. if (k < templateLength - 1 &&
  38903. template[k].y === template[k + 1].y &&
  38904. template[k].x === template[k + 1].x - 1) {
  38905. reuseMask |= 1 << (templateLength - 1 - k);
  38906. } else {
  38907. changingTemplateEntries.push(k);
  38908. }
  38909. }
  38910. var changingEntriesLength = changingTemplateEntries.length;
  38911. var changingTemplateX = new Int8Array(changingEntriesLength);
  38912. var changingTemplateY = new Int8Array(changingEntriesLength);
  38913. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  38914. for (c = 0; c < changingEntriesLength; c++) {
  38915. k = changingTemplateEntries[c];
  38916. changingTemplateX[c] = template[k].x;
  38917. changingTemplateY[c] = template[k].y;
  38918. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  38919. }
  38920. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  38921. var sbb_left = -minX;
  38922. var sbb_top = -minY;
  38923. var sbb_right = width - maxX;
  38924. var pseudoPixelContext = ReusedContexts[templateIndex];
  38925. var row = new Uint8Array(width);
  38926. var bitmap = [];
  38927. var decoder = decodingContext.decoder;
  38928. var contexts = decodingContext.contextCache.getContexts('GB');
  38929. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  38930. for (var i = 0; i < height; i++) {
  38931. if (prediction) {
  38932. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  38933. ltp ^= sltp;
  38934. if (ltp) {
  38935. bitmap.push(row); // duplicate previous row
  38936. continue;
  38937. }
  38938. }
  38939. row = new Uint8Array(row);
  38940. bitmap.push(row);
  38941. for (j = 0; j < width; j++) {
  38942. if (useskip && skip[i][j]) {
  38943. row[j] = 0;
  38944. continue;
  38945. }
  38946. // Are we in the middle of a scanline, so we can reuse contextLabel
  38947. // bits?
  38948. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  38949. // If yes, we can just shift the bits that are reusable and only
  38950. // fetch the remaining ones.
  38951. contextLabel = (contextLabel << 1) & reuseMask;
  38952. for (k = 0; k < changingEntriesLength; k++) {
  38953. i0 = i + changingTemplateY[k];
  38954. j0 = j + changingTemplateX[k];
  38955. bit = bitmap[i0][j0];
  38956. if (bit) {
  38957. bit = changingTemplateBit[k];
  38958. contextLabel |= bit;
  38959. }
  38960. }
  38961. } else {
  38962. // compute the contextLabel from scratch
  38963. contextLabel = 0;
  38964. shift = templateLength - 1;
  38965. for (k = 0; k < templateLength; k++, shift--) {
  38966. j0 = j + templateX[k];
  38967. if (j0 >= 0 && j0 < width) {
  38968. i0 = i + templateY[k];
  38969. if (i0 >= 0) {
  38970. bit = bitmap[i0][j0];
  38971. if (bit) {
  38972. contextLabel |= bit << shift;
  38973. }
  38974. }
  38975. }
  38976. }
  38977. }
  38978. var pixel = decoder.readBit(contexts, contextLabel);
  38979. row[j] = pixel;
  38980. }
  38981. }
  38982. return bitmap;
  38983. }
  38984. // 6.3.2 Generic Refinement Region Decoding Procedure
  38985. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  38986. offsetX, offsetY, prediction, at,
  38987. decodingContext) {
  38988. var codingTemplate = RefinementTemplates[templateIndex].coding;
  38989. if (templateIndex === 0) {
  38990. codingTemplate = codingTemplate.concat([at[0]]);
  38991. }
  38992. var codingTemplateLength = codingTemplate.length;
  38993. var codingTemplateX = new Int32Array(codingTemplateLength);
  38994. var codingTemplateY = new Int32Array(codingTemplateLength);
  38995. var k;
  38996. for (k = 0; k < codingTemplateLength; k++) {
  38997. codingTemplateX[k] = codingTemplate[k].x;
  38998. codingTemplateY[k] = codingTemplate[k].y;
  38999. }
  39000. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  39001. if (templateIndex === 0) {
  39002. referenceTemplate = referenceTemplate.concat([at[1]]);
  39003. }
  39004. var referenceTemplateLength = referenceTemplate.length;
  39005. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  39006. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  39007. for (k = 0; k < referenceTemplateLength; k++) {
  39008. referenceTemplateX[k] = referenceTemplate[k].x;
  39009. referenceTemplateY[k] = referenceTemplate[k].y;
  39010. }
  39011. var referenceWidth = referenceBitmap[0].length;
  39012. var referenceHeight = referenceBitmap.length;
  39013. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  39014. var bitmap = [];
  39015. var decoder = decodingContext.decoder;
  39016. var contexts = decodingContext.contextCache.getContexts('GR');
  39017. var ltp = 0;
  39018. for (var i = 0; i < height; i++) {
  39019. if (prediction) {
  39020. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39021. ltp ^= sltp;
  39022. if (ltp) {
  39023. error('JBIG2 error: prediction is not supported');
  39024. }
  39025. }
  39026. var row = new Uint8Array(width);
  39027. bitmap.push(row);
  39028. for (var j = 0; j < width; j++) {
  39029. var i0, j0;
  39030. var contextLabel = 0;
  39031. for (k = 0; k < codingTemplateLength; k++) {
  39032. i0 = i + codingTemplateY[k];
  39033. j0 = j + codingTemplateX[k];
  39034. if (i0 < 0 || j0 < 0 || j0 >= width) {
  39035. contextLabel <<= 1; // out of bound pixel
  39036. } else {
  39037. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  39038. }
  39039. }
  39040. for (k = 0; k < referenceTemplateLength; k++) {
  39041. i0 = i + referenceTemplateY[k] + offsetY;
  39042. j0 = j + referenceTemplateX[k] + offsetX;
  39043. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  39044. j0 >= referenceWidth) {
  39045. contextLabel <<= 1; // out of bound pixel
  39046. } else {
  39047. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  39048. }
  39049. }
  39050. var pixel = decoder.readBit(contexts, contextLabel);
  39051. row[j] = pixel;
  39052. }
  39053. }
  39054. return bitmap;
  39055. }
  39056. // 6.5.5 Decoding the symbol dictionary
  39057. function decodeSymbolDictionary(huffman, refinement, symbols,
  39058. numberOfNewSymbols, numberOfExportedSymbols,
  39059. huffmanTables, templateIndex, at,
  39060. refinementTemplateIndex, refinementAt,
  39061. decodingContext) {
  39062. if (huffman) {
  39063. error('JBIG2 error: huffman is not supported');
  39064. }
  39065. var newSymbols = [];
  39066. var currentHeight = 0;
  39067. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  39068. var decoder = decodingContext.decoder;
  39069. var contextCache = decodingContext.contextCache;
  39070. while (newSymbols.length < numberOfNewSymbols) {
  39071. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  39072. currentHeight += deltaHeight;
  39073. var currentWidth = 0;
  39074. var totalWidth = 0;
  39075. while (true) {
  39076. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  39077. if (deltaWidth === null) {
  39078. break; // OOB
  39079. }
  39080. currentWidth += deltaWidth;
  39081. totalWidth += currentWidth;
  39082. var bitmap;
  39083. if (refinement) {
  39084. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  39085. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  39086. if (numberOfInstances > 1) {
  39087. bitmap = decodeTextRegion(huffman, refinement,
  39088. currentWidth, currentHeight, 0,
  39089. numberOfInstances, 1, //strip size
  39090. symbols.concat(newSymbols),
  39091. symbolCodeLength,
  39092. 0, //transposed
  39093. 0, //ds offset
  39094. 1, //top left 7.4.3.1.1
  39095. 0, //OR operator
  39096. huffmanTables,
  39097. refinementTemplateIndex, refinementAt,
  39098. decodingContext);
  39099. } else {
  39100. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39101. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39102. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39103. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  39104. newSymbols[symbolId - symbols.length]);
  39105. bitmap = decodeRefinement(currentWidth, currentHeight,
  39106. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  39107. decodingContext);
  39108. }
  39109. } else {
  39110. // 6.5.8.1 Direct-coded symbol bitmap
  39111. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  39112. templateIndex, false, null, at, decodingContext);
  39113. }
  39114. newSymbols.push(bitmap);
  39115. }
  39116. }
  39117. // 6.5.10 Exported symbols
  39118. var exportedSymbols = [];
  39119. var flags = [], currentFlag = false;
  39120. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  39121. while (flags.length < totalSymbolsLength) {
  39122. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  39123. while (runLength--) {
  39124. flags.push(currentFlag);
  39125. }
  39126. currentFlag = !currentFlag;
  39127. }
  39128. for (var i = 0, ii = symbols.length; i < ii; i++) {
  39129. if (flags[i]) {
  39130. exportedSymbols.push(symbols[i]);
  39131. }
  39132. }
  39133. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  39134. if (flags[i]) {
  39135. exportedSymbols.push(newSymbols[j]);
  39136. }
  39137. }
  39138. return exportedSymbols;
  39139. }
  39140. function decodeTextRegion(huffman, refinement, width, height,
  39141. defaultPixelValue, numberOfSymbolInstances,
  39142. stripSize, inputSymbols, symbolCodeLength,
  39143. transposed, dsOffset, referenceCorner,
  39144. combinationOperator, huffmanTables,
  39145. refinementTemplateIndex, refinementAt,
  39146. decodingContext) {
  39147. if (huffman) {
  39148. error('JBIG2 error: huffman is not supported');
  39149. }
  39150. // Prepare bitmap
  39151. var bitmap = [];
  39152. var i, row;
  39153. for (i = 0; i < height; i++) {
  39154. row = new Uint8Array(width);
  39155. if (defaultPixelValue) {
  39156. for (var j = 0; j < width; j++) {
  39157. row[j] = defaultPixelValue;
  39158. }
  39159. }
  39160. bitmap.push(row);
  39161. }
  39162. var decoder = decodingContext.decoder;
  39163. var contextCache = decodingContext.contextCache;
  39164. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39165. var firstS = 0;
  39166. i = 0;
  39167. while (i < numberOfSymbolInstances) {
  39168. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39169. stripT += deltaT;
  39170. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  39171. firstS += deltaFirstS;
  39172. var currentS = firstS;
  39173. do {
  39174. var currentT = (stripSize == 1 ? 0 :
  39175. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  39176. var t = stripSize * stripT + currentT;
  39177. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39178. var applyRefinement = (refinement &&
  39179. decodeInteger(contextCache, 'IARI', decoder));
  39180. var symbolBitmap = inputSymbols[symbolId];
  39181. var symbolWidth = symbolBitmap[0].length;
  39182. var symbolHeight = symbolBitmap.length;
  39183. if (applyRefinement) {
  39184. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  39185. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  39186. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39187. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39188. symbolWidth += rdw;
  39189. symbolHeight += rdh;
  39190. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  39191. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  39192. (rdh >> 1) + rdy, false, refinementAt,
  39193. decodingContext);
  39194. }
  39195. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  39196. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  39197. var s2, t2, symbolRow;
  39198. if (transposed) {
  39199. // Place Symbol Bitmap from T1,S1
  39200. for (s2 = 0; s2 < symbolHeight; s2++) {
  39201. row = bitmap[offsetS + s2];
  39202. if (!row) {
  39203. continue;
  39204. }
  39205. symbolRow = symbolBitmap[s2];
  39206. // To ignore Parts of Symbol bitmap which goes
  39207. // outside bitmap region
  39208. var maxWidth = Math.min(width - offsetT, symbolWidth);
  39209. switch (combinationOperator) {
  39210. case 0: // OR
  39211. for (t2 = 0; t2 < maxWidth; t2++) {
  39212. row[offsetT + t2] |= symbolRow[t2];
  39213. }
  39214. break;
  39215. case 2: // XOR
  39216. for (t2 = 0; t2 < maxWidth; t2++) {
  39217. row[offsetT + t2] ^= symbolRow[t2];
  39218. }
  39219. break;
  39220. default:
  39221. error('JBIG2 error: operator ' + combinationOperator +
  39222. ' is not supported');
  39223. }
  39224. }
  39225. currentS += symbolHeight - 1;
  39226. } else {
  39227. for (t2 = 0; t2 < symbolHeight; t2++) {
  39228. row = bitmap[offsetT + t2];
  39229. if (!row) {
  39230. continue;
  39231. }
  39232. symbolRow = symbolBitmap[t2];
  39233. switch (combinationOperator) {
  39234. case 0: // OR
  39235. for (s2 = 0; s2 < symbolWidth; s2++) {
  39236. row[offsetS + s2] |= symbolRow[s2];
  39237. }
  39238. break;
  39239. case 2: // XOR
  39240. for (s2 = 0; s2 < symbolWidth; s2++) {
  39241. row[offsetS + s2] ^= symbolRow[s2];
  39242. }
  39243. break;
  39244. default:
  39245. error('JBIG2 error: operator ' + combinationOperator +
  39246. ' is not supported');
  39247. }
  39248. }
  39249. currentS += symbolWidth - 1;
  39250. }
  39251. i++;
  39252. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  39253. if (deltaS === null) {
  39254. break; // OOB
  39255. }
  39256. currentS += deltaS + dsOffset;
  39257. } while (true);
  39258. }
  39259. return bitmap;
  39260. }
  39261. function readSegmentHeader(data, start) {
  39262. var segmentHeader = {};
  39263. segmentHeader.number = readUint32(data, start);
  39264. var flags = data[start + 4];
  39265. var segmentType = flags & 0x3F;
  39266. if (!SegmentTypes[segmentType]) {
  39267. error('JBIG2 error: invalid segment type: ' + segmentType);
  39268. }
  39269. segmentHeader.type = segmentType;
  39270. segmentHeader.typeName = SegmentTypes[segmentType];
  39271. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  39272. var pageAssociationFieldSize = !!(flags & 0x40);
  39273. var referredFlags = data[start + 5];
  39274. var referredToCount = (referredFlags >> 5) & 7;
  39275. var retainBits = [referredFlags & 31];
  39276. var position = start + 6;
  39277. if (referredFlags == 7) {
  39278. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  39279. position += 3;
  39280. var bytes = (referredToCount + 7) >> 3;
  39281. retainBits[0] = data[position++];
  39282. while (--bytes > 0) {
  39283. retainBits.push(data[position++]);
  39284. }
  39285. } else if (referredFlags == 5 || referredFlags == 6) {
  39286. error('JBIG2 error: invalid referred-to flags');
  39287. }
  39288. segmentHeader.retainBits = retainBits;
  39289. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  39290. (segmentHeader.number <= 65536 ? 2 : 4));
  39291. var referredTo = [];
  39292. var i, ii;
  39293. for (i = 0; i < referredToCount; i++) {
  39294. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  39295. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  39296. readUint32(data, position)));
  39297. referredTo.push(number);
  39298. position += referredToSegmentNumberSize;
  39299. }
  39300. segmentHeader.referredTo = referredTo;
  39301. if (!pageAssociationFieldSize) {
  39302. segmentHeader.pageAssociation = data[position++];
  39303. } else {
  39304. segmentHeader.pageAssociation = readUint32(data, position);
  39305. position += 4;
  39306. }
  39307. segmentHeader.length = readUint32(data, position);
  39308. position += 4;
  39309. if (segmentHeader.length == 0xFFFFFFFF) {
  39310. // 7.2.7 Segment data length, unknown segment length
  39311. if (segmentType === 38) { // ImmediateGenericRegion
  39312. var genericRegionInfo = readRegionSegmentInformation(data, position);
  39313. var genericRegionSegmentFlags = data[position +
  39314. RegionSegmentInformationFieldLength];
  39315. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  39316. // searching for the segment end
  39317. var searchPatternLength = 6;
  39318. var searchPattern = new Uint8Array(searchPatternLength);
  39319. if (!genericRegionMmr) {
  39320. searchPattern[0] = 0xFF;
  39321. searchPattern[1] = 0xAC;
  39322. }
  39323. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  39324. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  39325. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  39326. searchPattern[5] = genericRegionInfo.height & 0xFF;
  39327. for (i = position, ii = data.length; i < ii; i++) {
  39328. var j = 0;
  39329. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  39330. j++;
  39331. }
  39332. if (j == searchPatternLength) {
  39333. segmentHeader.length = i + searchPatternLength;
  39334. break;
  39335. }
  39336. }
  39337. if (segmentHeader.length == 0xFFFFFFFF) {
  39338. error('JBIG2 error: segment end was not found');
  39339. }
  39340. } else {
  39341. error('JBIG2 error: invalid unknown segment length');
  39342. }
  39343. }
  39344. segmentHeader.headerEnd = position;
  39345. return segmentHeader;
  39346. }
  39347. function readSegments(header, data, start, end) {
  39348. var segments = [];
  39349. var position = start;
  39350. while (position < end) {
  39351. var segmentHeader = readSegmentHeader(data, position);
  39352. position = segmentHeader.headerEnd;
  39353. var segment = {
  39354. header: segmentHeader,
  39355. data: data
  39356. };
  39357. if (!header.randomAccess) {
  39358. segment.start = position;
  39359. position += segmentHeader.length;
  39360. segment.end = position;
  39361. }
  39362. segments.push(segment);
  39363. if (segmentHeader.type == 51) {
  39364. break; // end of file is found
  39365. }
  39366. }
  39367. if (header.randomAccess) {
  39368. for (var i = 0, ii = segments.length; i < ii; i++) {
  39369. segments[i].start = position;
  39370. position += segments[i].header.length;
  39371. segments[i].end = position;
  39372. }
  39373. }
  39374. return segments;
  39375. }
  39376. // 7.4.1 Region segment information field
  39377. function readRegionSegmentInformation(data, start) {
  39378. return {
  39379. width: readUint32(data, start),
  39380. height: readUint32(data, start + 4),
  39381. x: readUint32(data, start + 8),
  39382. y: readUint32(data, start + 12),
  39383. combinationOperator: data[start + 16] & 7
  39384. };
  39385. }
  39386. var RegionSegmentInformationFieldLength = 17;
  39387. function processSegment(segment, visitor) {
  39388. var header = segment.header;
  39389. var data = segment.data, position = segment.start, end = segment.end;
  39390. var args, at, i, atLength;
  39391. switch (header.type) {
  39392. case 0: // SymbolDictionary
  39393. // 7.4.2 Symbol dictionary segment syntax
  39394. var dictionary = {};
  39395. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  39396. dictionary.huffman = !!(dictionaryFlags & 1);
  39397. dictionary.refinement = !!(dictionaryFlags & 2);
  39398. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  39399. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  39400. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  39401. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  39402. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  39403. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  39404. dictionary.template = (dictionaryFlags >> 10) & 3;
  39405. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  39406. position += 2;
  39407. if (!dictionary.huffman) {
  39408. atLength = dictionary.template === 0 ? 4 : 1;
  39409. at = [];
  39410. for (i = 0; i < atLength; i++) {
  39411. at.push({
  39412. x: readInt8(data, position),
  39413. y: readInt8(data, position + 1)
  39414. });
  39415. position += 2;
  39416. }
  39417. dictionary.at = at;
  39418. }
  39419. if (dictionary.refinement && !dictionary.refinementTemplate) {
  39420. at = [];
  39421. for (i = 0; i < 2; i++) {
  39422. at.push({
  39423. x: readInt8(data, position),
  39424. y: readInt8(data, position + 1)
  39425. });
  39426. position += 2;
  39427. }
  39428. dictionary.refinementAt = at;
  39429. }
  39430. dictionary.numberOfExportedSymbols = readUint32(data, position);
  39431. position += 4;
  39432. dictionary.numberOfNewSymbols = readUint32(data, position);
  39433. position += 4;
  39434. args = [dictionary, header.number, header.referredTo,
  39435. data, position, end];
  39436. break;
  39437. case 6: // ImmediateTextRegion
  39438. case 7: // ImmediateLosslessTextRegion
  39439. var textRegion = {};
  39440. textRegion.info = readRegionSegmentInformation(data, position);
  39441. position += RegionSegmentInformationFieldLength;
  39442. var textRegionSegmentFlags = readUint16(data, position);
  39443. position += 2;
  39444. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  39445. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  39446. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  39447. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  39448. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  39449. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  39450. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  39451. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  39452. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  39453. if (textRegion.huffman) {
  39454. var textRegionHuffmanFlags = readUint16(data, position);
  39455. position += 2;
  39456. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  39457. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  39458. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  39459. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  39460. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  39461. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  39462. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  39463. textRegion.huffmanRefinementSizeSelector =
  39464. !!(textRegionHuffmanFlags & 14);
  39465. }
  39466. if (textRegion.refinement && !textRegion.refinementTemplate) {
  39467. at = [];
  39468. for (i = 0; i < 2; i++) {
  39469. at.push({
  39470. x: readInt8(data, position),
  39471. y: readInt8(data, position + 1)
  39472. });
  39473. position += 2;
  39474. }
  39475. textRegion.refinementAt = at;
  39476. }
  39477. textRegion.numberOfSymbolInstances = readUint32(data, position);
  39478. position += 4;
  39479. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  39480. if (textRegion.huffman) {
  39481. error('JBIG2 error: huffman is not supported');
  39482. }
  39483. args = [textRegion, header.referredTo, data, position, end];
  39484. break;
  39485. case 38: // ImmediateGenericRegion
  39486. case 39: // ImmediateLosslessGenericRegion
  39487. var genericRegion = {};
  39488. genericRegion.info = readRegionSegmentInformation(data, position);
  39489. position += RegionSegmentInformationFieldLength;
  39490. var genericRegionSegmentFlags = data[position++];
  39491. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  39492. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  39493. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  39494. if (!genericRegion.mmr) {
  39495. atLength = genericRegion.template === 0 ? 4 : 1;
  39496. at = [];
  39497. for (i = 0; i < atLength; i++) {
  39498. at.push({
  39499. x: readInt8(data, position),
  39500. y: readInt8(data, position + 1)
  39501. });
  39502. position += 2;
  39503. }
  39504. genericRegion.at = at;
  39505. }
  39506. args = [genericRegion, data, position, end];
  39507. break;
  39508. case 48: // PageInformation
  39509. var pageInfo = {
  39510. width: readUint32(data, position),
  39511. height: readUint32(data, position + 4),
  39512. resolutionX: readUint32(data, position + 8),
  39513. resolutionY: readUint32(data, position + 12)
  39514. };
  39515. if (pageInfo.height == 0xFFFFFFFF) {
  39516. delete pageInfo.height;
  39517. }
  39518. var pageSegmentFlags = data[position + 16];
  39519. var pageStripingInformatiom = readUint16(data, position + 17);
  39520. pageInfo.lossless = !!(pageSegmentFlags & 1);
  39521. pageInfo.refinement = !!(pageSegmentFlags & 2);
  39522. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  39523. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  39524. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  39525. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  39526. args = [pageInfo];
  39527. break;
  39528. case 49: // EndOfPage
  39529. break;
  39530. case 50: // EndOfStripe
  39531. break;
  39532. case 51: // EndOfFile
  39533. break;
  39534. case 62: // 7.4.15 defines 2 extension types which
  39535. // are comments and can be ignored.
  39536. break;
  39537. default:
  39538. error('JBIG2 error: segment type ' + header.typeName + '(' +
  39539. header.type + ') is not implemented');
  39540. }
  39541. var callbackName = 'on' + header.typeName;
  39542. if (callbackName in visitor) {
  39543. visitor[callbackName].apply(visitor, args);
  39544. }
  39545. }
  39546. function processSegments(segments, visitor) {
  39547. for (var i = 0, ii = segments.length; i < ii; i++) {
  39548. processSegment(segments[i], visitor);
  39549. }
  39550. }
  39551. function parseJbig2(data, start, end) {
  39552. var position = start;
  39553. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  39554. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  39555. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  39556. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  39557. error('JBIG2 error: invalid header');
  39558. }
  39559. var header = {};
  39560. position += 8;
  39561. var flags = data[position++];
  39562. header.randomAccess = !(flags & 1);
  39563. if (!(flags & 2)) {
  39564. header.numberOfPages = readUint32(data, position);
  39565. position += 4;
  39566. }
  39567. var segments = readSegments(header, data, position, end);
  39568. error('Not implemented');
  39569. // processSegments(segments, new SimpleSegmentVisitor());
  39570. }
  39571. function parseJbig2Chunks(chunks) {
  39572. var visitor = new SimpleSegmentVisitor();
  39573. for (var i = 0, ii = chunks.length; i < ii; i++) {
  39574. var chunk = chunks[i];
  39575. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  39576. processSegments(segments, visitor);
  39577. }
  39578. return visitor.buffer;
  39579. }
  39580. function SimpleSegmentVisitor() {}
  39581. SimpleSegmentVisitor.prototype = {
  39582. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  39583. this.currentPageInfo = info;
  39584. var rowSize = (info.width + 7) >> 3;
  39585. var buffer = new Uint8Array(rowSize * info.height);
  39586. // The contents of ArrayBuffers are initialized to 0.
  39587. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  39588. if (info.defaultPixelValue) {
  39589. for (var i = 0, ii = buffer.length; i < ii; i++) {
  39590. buffer[i] = 0xFF;
  39591. }
  39592. }
  39593. this.buffer = buffer;
  39594. },
  39595. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  39596. var pageInfo = this.currentPageInfo;
  39597. var width = regionInfo.width, height = regionInfo.height;
  39598. var rowSize = (pageInfo.width + 7) >> 3;
  39599. var combinationOperator = pageInfo.combinationOperatorOverride ?
  39600. regionInfo.combinationOperator : pageInfo.combinationOperator;
  39601. var buffer = this.buffer;
  39602. var mask0 = 128 >> (regionInfo.x & 7);
  39603. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  39604. var i, j, mask, offset;
  39605. switch (combinationOperator) {
  39606. case 0: // OR
  39607. for (i = 0; i < height; i++) {
  39608. mask = mask0;
  39609. offset = offset0;
  39610. for (j = 0; j < width; j++) {
  39611. if (bitmap[i][j]) {
  39612. buffer[offset] |= mask;
  39613. }
  39614. mask >>= 1;
  39615. if (!mask) {
  39616. mask = 128;
  39617. offset++;
  39618. }
  39619. }
  39620. offset0 += rowSize;
  39621. }
  39622. break;
  39623. case 2: // XOR
  39624. for (i = 0; i < height; i++) {
  39625. mask = mask0;
  39626. offset = offset0;
  39627. for (j = 0; j < width; j++) {
  39628. if (bitmap[i][j]) {
  39629. buffer[offset] ^= mask;
  39630. }
  39631. mask >>= 1;
  39632. if (!mask) {
  39633. mask = 128;
  39634. offset++;
  39635. }
  39636. }
  39637. offset0 += rowSize;
  39638. }
  39639. break;
  39640. default:
  39641. error('JBIG2 error: operator ' + combinationOperator +
  39642. ' is not supported');
  39643. }
  39644. },
  39645. onImmediateGenericRegion:
  39646. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  39647. start, end) {
  39648. var regionInfo = region.info;
  39649. var decodingContext = new DecodingContext(data, start, end);
  39650. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  39651. region.template, region.prediction, null,
  39652. region.at, decodingContext);
  39653. this.drawBitmap(regionInfo, bitmap);
  39654. },
  39655. onImmediateLosslessGenericRegion:
  39656. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  39657. this.onImmediateGenericRegion.apply(this, arguments);
  39658. },
  39659. onSymbolDictionary:
  39660. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  39661. currentSegment,
  39662. referredSegments,
  39663. data, start, end) {
  39664. var huffmanTables;
  39665. if (dictionary.huffman) {
  39666. error('JBIG2 error: huffman is not supported');
  39667. }
  39668. // Combines exported symbols from all referred segments
  39669. var symbols = this.symbols;
  39670. if (!symbols) {
  39671. this.symbols = symbols = {};
  39672. }
  39673. var inputSymbols = [];
  39674. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39675. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39676. }
  39677. var decodingContext = new DecodingContext(data, start, end);
  39678. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  39679. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  39680. dictionary.numberOfExportedSymbols, huffmanTables,
  39681. dictionary.template, dictionary.at,
  39682. dictionary.refinementTemplate, dictionary.refinementAt,
  39683. decodingContext);
  39684. },
  39685. onImmediateTextRegion:
  39686. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  39687. referredSegments,
  39688. data, start, end) {
  39689. var regionInfo = region.info;
  39690. var huffmanTables;
  39691. // Combines exported symbols from all referred segments
  39692. var symbols = this.symbols;
  39693. var inputSymbols = [];
  39694. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39695. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39696. }
  39697. var symbolCodeLength = log2(inputSymbols.length);
  39698. var decodingContext = new DecodingContext(data, start, end);
  39699. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  39700. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  39701. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  39702. symbolCodeLength, region.transposed, region.dsOffset,
  39703. region.referenceCorner, region.combinationOperator, huffmanTables,
  39704. region.refinementTemplate, region.refinementAt, decodingContext);
  39705. this.drawBitmap(regionInfo, bitmap);
  39706. },
  39707. onImmediateLosslessTextRegion:
  39708. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  39709. this.onImmediateTextRegion.apply(this, arguments);
  39710. }
  39711. };
  39712. function Jbig2Image() {}
  39713. Jbig2Image.prototype = {
  39714. parseChunks: function Jbig2Image_parseChunks(chunks) {
  39715. return parseJbig2Chunks(chunks);
  39716. }
  39717. };
  39718. return Jbig2Image;
  39719. })();
  39720. var bidi = PDFJS.bidi = (function bidiClosure() {
  39721. // Character types for symbols from 0000 to 00FF.
  39722. var baseTypes = [
  39723. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  39724. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39725. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  39726. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  39727. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  39728. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39729. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  39730. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39731. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39732. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  39733. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39734. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39735. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  39736. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  39737. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39738. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39739. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39740. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39741. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  39742. ];
  39743. // Character types for symbols from 0600 to 06FF
  39744. var arabicTypes = [
  39745. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39746. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  39747. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39748. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39749. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39750. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39751. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39752. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39753. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  39754. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39755. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39756. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', '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', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39762. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39763. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39764. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  39765. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39766. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  39767. ];
  39768. function isOdd(i) {
  39769. return (i & 1) !== 0;
  39770. }
  39771. function isEven(i) {
  39772. return (i & 1) === 0;
  39773. }
  39774. function findUnequal(arr, start, value) {
  39775. for (var j = start, jj = arr.length; j < jj; ++j) {
  39776. if (arr[j] != value) {
  39777. return j;
  39778. }
  39779. }
  39780. return j;
  39781. }
  39782. function setValues(arr, start, end, value) {
  39783. for (var j = start; j < end; ++j) {
  39784. arr[j] = value;
  39785. }
  39786. }
  39787. function reverseValues(arr, start, end) {
  39788. for (var i = start, j = end - 1; i < j; ++i, --j) {
  39789. var temp = arr[i];
  39790. arr[i] = arr[j];
  39791. arr[j] = temp;
  39792. }
  39793. }
  39794. function createBidiText(str, isLTR, vertical) {
  39795. return {
  39796. str: str,
  39797. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  39798. };
  39799. }
  39800. // These are used in bidi(), which is called frequently. We re-use them on
  39801. // each call to avoid unnecessary allocations.
  39802. var chars = [];
  39803. var types = [];
  39804. function bidi(str, startLevel, vertical) {
  39805. var isLTR = true;
  39806. var strLength = str.length;
  39807. if (strLength === 0 || vertical) {
  39808. return createBidiText(str, isLTR, vertical);
  39809. }
  39810. // Get types and fill arrays
  39811. chars.length = 0;
  39812. types.length = 0;
  39813. var numBidi = 0;
  39814. var i, ii;
  39815. for (i = 0; i < strLength; ++i) {
  39816. chars[i] = str.charAt(i);
  39817. var charCode = str.charCodeAt(i);
  39818. var charType = 'L';
  39819. if (charCode <= 0x00ff) {
  39820. charType = baseTypes[charCode];
  39821. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  39822. charType = 'R';
  39823. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  39824. charType = arabicTypes[charCode & 0xff];
  39825. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  39826. charType = 'AL';
  39827. }
  39828. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  39829. numBidi++;
  39830. }
  39831. types[i] = charType;
  39832. }
  39833. // Detect the bidi method
  39834. // - If there are no rtl characters then no bidi needed
  39835. // - If less than 30% chars are rtl then string is primarily ltr
  39836. // - If more than 30% chars are rtl then string is primarily rtl
  39837. if (numBidi === 0) {
  39838. isLTR = true;
  39839. return createBidiText(str, isLTR);
  39840. }
  39841. if (startLevel == -1) {
  39842. if ((strLength / numBidi) < 0.3) {
  39843. isLTR = true;
  39844. startLevel = 0;
  39845. } else {
  39846. isLTR = false;
  39847. startLevel = 1;
  39848. }
  39849. }
  39850. var levels = [];
  39851. for (i = 0; i < strLength; ++i) {
  39852. levels[i] = startLevel;
  39853. }
  39854. /*
  39855. X1-X10: skip most of this, since we are NOT doing the embeddings.
  39856. */
  39857. var e = (isOdd(startLevel) ? 'R' : 'L');
  39858. var sor = e;
  39859. var eor = sor;
  39860. /*
  39861. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  39862. type of the NSM to the type of the previous character. If the NSM is at the
  39863. start of the level run, it will get the type of sor.
  39864. */
  39865. var lastType = sor;
  39866. for (i = 0; i < strLength; ++i) {
  39867. if (types[i] == 'NSM') {
  39868. types[i] = lastType;
  39869. } else {
  39870. lastType = types[i];
  39871. }
  39872. }
  39873. /*
  39874. W2. Search backwards from each instance of a European number until the
  39875. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  39876. the type of the European number to Arabic number.
  39877. */
  39878. lastType = sor;
  39879. var t;
  39880. for (i = 0; i < strLength; ++i) {
  39881. t = types[i];
  39882. if (t == 'EN') {
  39883. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  39884. } else if (t == 'R' || t == 'L' || t == 'AL') {
  39885. lastType = t;
  39886. }
  39887. }
  39888. /*
  39889. W3. Change all ALs to R.
  39890. */
  39891. for (i = 0; i < strLength; ++i) {
  39892. t = types[i];
  39893. if (t == 'AL') {
  39894. types[i] = 'R';
  39895. }
  39896. }
  39897. /*
  39898. W4. A single European separator between two European numbers changes to a
  39899. European number. A single common separator between two numbers of the same
  39900. type changes to that type:
  39901. */
  39902. for (i = 1; i < strLength - 1; ++i) {
  39903. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  39904. types[i] = 'EN';
  39905. }
  39906. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  39907. types[i + 1] == types[i - 1]) {
  39908. types[i] = types[i - 1];
  39909. }
  39910. }
  39911. /*
  39912. W5. A sequence of European terminators adjacent to European numbers changes
  39913. to all European numbers:
  39914. */
  39915. for (i = 0; i < strLength; ++i) {
  39916. if (types[i] == 'EN') {
  39917. // do before
  39918. var j;
  39919. for (j = i - 1; j >= 0; --j) {
  39920. if (types[j] != 'ET') {
  39921. break;
  39922. }
  39923. types[j] = 'EN';
  39924. }
  39925. // do after
  39926. for (j = i + 1; j < strLength; --j) {
  39927. if (types[j] != 'ET') {
  39928. break;
  39929. }
  39930. types[j] = 'EN';
  39931. }
  39932. }
  39933. }
  39934. /*
  39935. W6. Otherwise, separators and terminators change to Other Neutral:
  39936. */
  39937. for (i = 0; i < strLength; ++i) {
  39938. t = types[i];
  39939. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  39940. types[i] = 'ON';
  39941. }
  39942. }
  39943. /*
  39944. W7. Search backwards from each instance of a European number until the
  39945. first strong type (R, L, or sor) is found. If an L is found, then change
  39946. the type of the European number to L.
  39947. */
  39948. lastType = sor;
  39949. for (i = 0; i < strLength; ++i) {
  39950. t = types[i];
  39951. if (t == 'EN') {
  39952. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  39953. } else if (t == 'R' || t == 'L') {
  39954. lastType = t;
  39955. }
  39956. }
  39957. /*
  39958. N1. A sequence of neutrals takes the direction of the surrounding strong
  39959. text if the text on both sides has the same direction. European and Arabic
  39960. numbers are treated as though they were R. Start-of-level-run (sor) and
  39961. end-of-level-run (eor) are used at level run boundaries.
  39962. */
  39963. for (i = 0; i < strLength; ++i) {
  39964. if (types[i] == 'ON') {
  39965. var end = findUnequal(types, i + 1, 'ON');
  39966. var before = sor;
  39967. if (i > 0) {
  39968. before = types[i - 1];
  39969. }
  39970. var after = eor;
  39971. if (end + 1 < strLength) {
  39972. after = types[end + 1];
  39973. }
  39974. if (before != 'L') {
  39975. before = 'R';
  39976. }
  39977. if (after != 'L') {
  39978. after = 'R';
  39979. }
  39980. if (before == after) {
  39981. setValues(types, i, end, before);
  39982. }
  39983. i = end - 1; // reset to end (-1 so next iteration is ok)
  39984. }
  39985. }
  39986. /*
  39987. N2. Any remaining neutrals take the embedding direction.
  39988. */
  39989. for (i = 0; i < strLength; ++i) {
  39990. if (types[i] == 'ON') {
  39991. types[i] = e;
  39992. }
  39993. }
  39994. /*
  39995. I1. For all characters with an even (left-to-right) embedding direction,
  39996. those of type R go up one level and those of type AN or EN go up two
  39997. levels.
  39998. I2. For all characters with an odd (right-to-left) embedding direction,
  39999. those of type L, EN or AN go up one level.
  40000. */
  40001. for (i = 0; i < strLength; ++i) {
  40002. t = types[i];
  40003. if (isEven(levels[i])) {
  40004. if (t == 'R') {
  40005. levels[i] += 1;
  40006. } else if (t == 'AN' || t == 'EN') {
  40007. levels[i] += 2;
  40008. }
  40009. } else { // isOdd
  40010. if (t == 'L' || t == 'AN' || t == 'EN') {
  40011. levels[i] += 1;
  40012. }
  40013. }
  40014. }
  40015. /*
  40016. L1. On each line, reset the embedding level of the following characters to
  40017. the paragraph embedding level:
  40018. segment separators,
  40019. paragraph separators,
  40020. any sequence of whitespace characters preceding a segment separator or
  40021. paragraph separator, and any sequence of white space characters at the end
  40022. of the line.
  40023. */
  40024. // don't bother as text is only single line
  40025. /*
  40026. L2. From the highest level found in the text to the lowest odd level on
  40027. each line, reverse any contiguous sequence of characters that are at that
  40028. level or higher.
  40029. */
  40030. // find highest level & lowest odd level
  40031. var highestLevel = -1;
  40032. var lowestOddLevel = 99;
  40033. var level;
  40034. for (i = 0, ii = levels.length; i < ii; ++i) {
  40035. level = levels[i];
  40036. if (highestLevel < level) {
  40037. highestLevel = level;
  40038. }
  40039. if (lowestOddLevel > level && isOdd(level)) {
  40040. lowestOddLevel = level;
  40041. }
  40042. }
  40043. // now reverse between those limits
  40044. for (level = highestLevel; level >= lowestOddLevel; --level) {
  40045. // find segments to reverse
  40046. var start = -1;
  40047. for (i = 0, ii = levels.length; i < ii; ++i) {
  40048. if (levels[i] < level) {
  40049. if (start >= 0) {
  40050. reverseValues(chars, start, i);
  40051. start = -1;
  40052. }
  40053. } else if (start < 0) {
  40054. start = i;
  40055. }
  40056. }
  40057. if (start >= 0) {
  40058. reverseValues(chars, start, levels.length);
  40059. }
  40060. }
  40061. /*
  40062. L3. Combining marks applied to a right-to-left base character will at this
  40063. point precede their base character. If the rendering engine expects them to
  40064. follow the base characters in the final display process, then the ordering
  40065. of the marks and the base character must be reversed.
  40066. */
  40067. // don't bother for now
  40068. /*
  40069. L4. A character that possesses the mirrored property as specified by
  40070. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  40071. directionality of that character is R.
  40072. */
  40073. // don't mirror as characters are already mirrored in the pdf
  40074. // Finally, return string
  40075. var result = '';
  40076. for (i = 0, ii = chars.length; i < ii; ++i) {
  40077. var ch = chars[i];
  40078. if (ch != '<' && ch != '>') {
  40079. result += ch;
  40080. }
  40081. }
  40082. return createBidiText(result, isLTR);
  40083. }
  40084. return bidi;
  40085. })();
  40086. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  40087. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  40088. /* Copyright 2014 Opera Software ASA
  40089. *
  40090. * Licensed under the Apache License, Version 2.0 (the "License");
  40091. * you may not use this file except in compliance with the License.
  40092. * You may obtain a copy of the License at
  40093. *
  40094. * http://www.apache.org/licenses/LICENSE-2.0
  40095. *
  40096. * Unless required by applicable law or agreed to in writing, software
  40097. * distributed under the License is distributed on an "AS IS" BASIS,
  40098. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40099. * See the License for the specific language governing permissions and
  40100. * limitations under the License.
  40101. *
  40102. *
  40103. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  40104. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  40105. */
  40106. /* globals Uint32ArrayView */
  40107. 'use strict';
  40108. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  40109. // Workaround for missing math precison in JS.
  40110. var MASK_HIGH = 0xffff0000;
  40111. var MASK_LOW = 0xffff;
  40112. function MurmurHash3_64 (seed) {
  40113. var SEED = 0xc3d2e1f0;
  40114. this.h1 = seed ? seed & 0xffffffff : SEED;
  40115. this.h2 = seed ? seed & 0xffffffff : SEED;
  40116. }
  40117. MurmurHash3_64.prototype = {
  40118. update: function MurmurHash3_64_update(input) {
  40119. var useUint32ArrayView = false;
  40120. var i;
  40121. if (typeof input == 'string') {
  40122. var data = new Uint8Array(input.length * 2);
  40123. var length = 0;
  40124. for (i = 0; i < input.length; i++) {
  40125. var code = input.charCodeAt(i);
  40126. if (code <= 0xff) {
  40127. data[length++] = code;
  40128. }
  40129. else {
  40130. data[length++] = code >>> 8;
  40131. data[length++] = code & 0xff;
  40132. }
  40133. }
  40134. } else if (input instanceof Uint8Array) {
  40135. data = input;
  40136. length = data.length;
  40137. } else if (typeof input === 'object' && ('length' in input)) {
  40138. // processing regular arrays as well, e.g. for IE9
  40139. data = input;
  40140. length = data.length;
  40141. useUint32ArrayView = true;
  40142. } else {
  40143. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  40144. 'Input must be a string or array.');
  40145. }
  40146. var blockCounts = length >> 2;
  40147. var tailLength = length - blockCounts * 4;
  40148. // we don't care about endianness here
  40149. var dataUint32 = useUint32ArrayView ?
  40150. new Uint32ArrayView(data, blockCounts) :
  40151. new Uint32Array(data.buffer, 0, blockCounts);
  40152. var k1 = 0;
  40153. var k2 = 0;
  40154. var h1 = this.h1;
  40155. var h2 = this.h2;
  40156. var C1 = 0xcc9e2d51;
  40157. var C2 = 0x1b873593;
  40158. var C1_LOW = C1 & MASK_LOW;
  40159. var C2_LOW = C2 & MASK_LOW;
  40160. for (i = 0; i < blockCounts; i++) {
  40161. if (i & 1) {
  40162. k1 = dataUint32[i];
  40163. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40164. k1 = k1 << 15 | k1 >>> 17;
  40165. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40166. h1 ^= k1;
  40167. h1 = h1 << 13 | h1 >>> 19;
  40168. h1 = h1 * 5 + 0xe6546b64;
  40169. } else {
  40170. k2 = dataUint32[i];
  40171. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  40172. k2 = k2 << 15 | k2 >>> 17;
  40173. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  40174. h2 ^= k2;
  40175. h2 = h2 << 13 | h2 >>> 19;
  40176. h2 = h2 * 5 + 0xe6546b64;
  40177. }
  40178. }
  40179. k1 = 0;
  40180. switch (tailLength) {
  40181. case 3:
  40182. k1 ^= data[blockCounts * 4 + 2] << 16;
  40183. /* falls through */
  40184. case 2:
  40185. k1 ^= data[blockCounts * 4 + 1] << 8;
  40186. /* falls through */
  40187. case 1:
  40188. k1 ^= data[blockCounts * 4];
  40189. /* falls through */
  40190. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40191. k1 = k1 << 15 | k1 >>> 17;
  40192. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40193. if (blockCounts & 1) {
  40194. h1 ^= k1;
  40195. } else {
  40196. h2 ^= k1;
  40197. }
  40198. }
  40199. this.h1 = h1;
  40200. this.h2 = h2;
  40201. return this;
  40202. },
  40203. hexdigest: function MurmurHash3_64_hexdigest () {
  40204. var h1 = this.h1;
  40205. var h2 = this.h2;
  40206. h1 ^= h2 >>> 1;
  40207. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  40208. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  40209. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  40210. h1 ^= h2 >>> 1;
  40211. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  40212. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  40213. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  40214. h1 ^= h2 >>> 1;
  40215. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  40216. var hex = (arr[i] >>> 0).toString(16);
  40217. while (hex.length < 8) {
  40218. hex = '0' + hex;
  40219. }
  40220. str += hex;
  40221. }
  40222. return str;
  40223. }
  40224. };
  40225. return MurmurHash3_64;
  40226. })();
  40227. }).call((typeof window === 'undefined') ? this : window);
  40228. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  40229. // workerSrc is not set -- using last script url to define default location
  40230. PDFJS.workerSrc = (function () {
  40231. 'use strict';
  40232. var scriptTagContainer = document.body ||
  40233. document.getElementsByTagName('head')[0];
  40234. var pdfjsSrc = scriptTagContainer.lastChild.src;
  40235. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  40236. })();
  40237. }