pdfjs_viewer-rails 0.0.9 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (424) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +75 -3
  3. data/app/assets/javascripts/pdfjs_viewer/application.js +2 -3
  4. data/app/assets/javascripts/pdfjs_viewer/pdfjs/pdf.js +18538 -0
  5. data/app/assets/javascripts/pdfjs_viewer/viewer.js +9320 -6823
  6. data/app/assets/javascripts/pdfjs_viewer/viewer_configurations.js +3 -0
  7. data/app/assets/stylesheets/pdfjs_viewer/pdfjs/viewer.css +278 -115
  8. data/app/controllers/pdfjs_viewer/viewer_controller.rb +3 -0
  9. data/app/views/pdfjs_viewer/viewer/_extra_head.html.erb +1 -0
  10. data/app/views/pdfjs_viewer/viewer/_head.html.erb +14 -0
  11. data/app/views/pdfjs_viewer/viewer/_printcontainer.html.erb +79 -0
  12. data/app/views/pdfjs_viewer/viewer/_viewer.html.erb +83 -152
  13. data/lib/pdfjs_viewer-rails/helpers.rb +3 -2
  14. data/lib/pdfjs_viewer-rails/version.rb +1 -1
  15. data/public/pdfjs/pdf.js.map +1 -0
  16. data/public/pdfjs/web/images/secondaryToolbarButton-selectTool.png +0 -0
  17. data/public/pdfjs/web/images/secondaryToolbarButton-selectTool@2x.png +0 -0
  18. data/public/pdfjs/web/images/texture.png +0 -0
  19. data/public/pdfjs/web/images/toolbarButton-menuArrows.png +0 -0
  20. data/public/pdfjs/web/images/toolbarButton-viewAttachments@2x.png +0 -0
  21. data/public/pdfjs/web/images/toolbarButton-viewThumbnail@2x.png +0 -0
  22. data/public/pdfjs/web/images/treeitem-collapsed-rtl.png +0 -0
  23. data/public/pdfjs/web/images/treeitem-collapsed-rtl@2x.png +0 -0
  24. data/public/pdfjs/web/locale/ach/viewer.properties +22 -16
  25. data/public/pdfjs/web/locale/af/viewer.properties +27 -16
  26. data/public/pdfjs/web/locale/ak/viewer.properties +11 -12
  27. data/public/pdfjs/web/locale/an/viewer.properties +25 -14
  28. data/public/pdfjs/web/locale/ar/viewer.properties +27 -16
  29. data/public/pdfjs/web/locale/as/viewer.properties +11 -16
  30. data/public/pdfjs/web/locale/ast/viewer.properties +174 -108
  31. data/public/pdfjs/web/locale/az/viewer.properties +26 -15
  32. data/public/pdfjs/web/locale/be/viewer.properties +184 -105
  33. data/public/pdfjs/web/locale/bg/viewer.properties +39 -28
  34. data/public/pdfjs/web/locale/bn-BD/viewer.properties +37 -26
  35. data/public/pdfjs/web/locale/bn-IN/viewer.properties +18 -14
  36. data/public/pdfjs/web/locale/br/viewer.properties +21 -14
  37. data/public/pdfjs/web/locale/bs/viewer.properties +25 -14
  38. data/public/pdfjs/web/locale/ca/viewer.properties +26 -15
  39. data/public/pdfjs/web/locale/cs/viewer.properties +43 -26
  40. data/public/pdfjs/web/locale/cy/viewer.properties +26 -15
  41. data/public/pdfjs/web/locale/da/viewer.properties +31 -14
  42. data/public/pdfjs/web/locale/de/viewer.properties +33 -16
  43. data/public/pdfjs/web/locale/el/viewer.properties +43 -24
  44. data/public/pdfjs/web/locale/en-GB/viewer.properties +31 -14
  45. data/public/pdfjs/web/locale/en-US/viewer.properties +25 -14
  46. data/public/pdfjs/web/locale/en-ZA/viewer.properties +13 -16
  47. data/public/pdfjs/web/locale/eo/viewer.properties +29 -18
  48. data/public/pdfjs/web/locale/es-AR/viewer.properties +33 -16
  49. data/public/pdfjs/web/locale/es-CL/viewer.properties +119 -65
  50. data/public/pdfjs/web/locale/es-ES/viewer.properties +17 -11
  51. data/public/pdfjs/web/locale/es-MX/viewer.properties +25 -14
  52. data/public/pdfjs/web/locale/et/viewer.properties +32 -15
  53. data/public/pdfjs/web/locale/eu/viewer.properties +25 -14
  54. data/public/pdfjs/web/locale/fa/viewer.properties +27 -16
  55. data/public/pdfjs/web/locale/ff/viewer.properties +25 -14
  56. data/public/pdfjs/web/locale/fi/viewer.properties +31 -14
  57. data/public/pdfjs/web/locale/fr/viewer.properties +58 -41
  58. data/public/pdfjs/web/locale/fy-NL/viewer.properties +40 -35
  59. data/public/pdfjs/web/locale/ga-IE/viewer.properties +31 -20
  60. data/public/pdfjs/web/locale/gd/viewer.properties +25 -14
  61. data/public/pdfjs/web/locale/gl/viewer.properties +9 -14
  62. data/public/pdfjs/web/locale/gu-IN/viewer.properties +31 -14
  63. data/public/pdfjs/web/locale/he/viewer.properties +25 -14
  64. data/public/pdfjs/web/locale/hi-IN/viewer.properties +31 -21
  65. data/public/pdfjs/web/locale/hr/viewer.properties +30 -19
  66. data/public/pdfjs/web/locale/hu/viewer.properties +25 -14
  67. data/public/pdfjs/web/locale/hy-AM/viewer.properties +26 -15
  68. data/public/pdfjs/web/locale/id/viewer.properties +25 -14
  69. data/public/pdfjs/web/locale/is/viewer.properties +25 -14
  70. data/public/pdfjs/web/locale/it/viewer.properties +19 -13
  71. data/public/pdfjs/web/locale/ja/viewer.properties +45 -28
  72. data/public/pdfjs/web/locale/ka/viewer.properties +113 -7
  73. data/public/pdfjs/web/locale/kk/viewer.properties +28 -17
  74. data/public/pdfjs/web/locale/km/viewer.properties +28 -17
  75. data/public/pdfjs/web/locale/kn/viewer.properties +23 -14
  76. data/public/pdfjs/web/locale/ko/viewer.properties +25 -14
  77. data/public/pdfjs/web/locale/ku/viewer.properties +11 -12
  78. data/public/pdfjs/web/locale/lg/viewer.properties +11 -10
  79. data/public/pdfjs/web/locale/lij/viewer.properties +165 -109
  80. data/public/pdfjs/web/locale/lt/viewer.properties +29 -18
  81. data/public/pdfjs/web/locale/lv/viewer.properties +25 -14
  82. data/public/pdfjs/web/locale/mai/viewer.properties +11 -16
  83. data/public/pdfjs/web/locale/mk/viewer.properties +68 -61
  84. data/public/pdfjs/web/locale/ml/viewer.properties +11 -16
  85. data/public/pdfjs/web/locale/mn/viewer.properties +9 -6
  86. data/public/pdfjs/web/locale/mr/viewer.properties +34 -23
  87. data/public/pdfjs/web/locale/ms/viewer.properties +41 -28
  88. data/public/pdfjs/web/locale/my/viewer.properties +23 -16
  89. data/public/pdfjs/web/locale/nb-NO/viewer.properties +32 -15
  90. data/public/pdfjs/web/locale/nl/viewer.properties +29 -18
  91. data/public/pdfjs/web/locale/nn-NO/viewer.properties +55 -38
  92. data/public/pdfjs/web/locale/nso/viewer.properties +10 -11
  93. data/public/pdfjs/web/locale/oc/viewer.properties +31 -18
  94. data/public/pdfjs/web/locale/or/viewer.properties +11 -16
  95. data/public/pdfjs/web/locale/pa-IN/viewer.properties +54 -51
  96. data/public/pdfjs/web/locale/pl/viewer.properties +20 -41
  97. data/public/pdfjs/web/locale/pt-BR/viewer.properties +46 -35
  98. data/public/pdfjs/web/locale/pt-PT/viewer.properties +35 -24
  99. data/public/pdfjs/web/locale/rm/viewer.properties +31 -14
  100. data/public/pdfjs/web/locale/ro/viewer.properties +40 -29
  101. data/public/pdfjs/web/locale/ru/viewer.properties +183 -110
  102. data/public/pdfjs/web/locale/rw/viewer.properties +9 -7
  103. data/public/pdfjs/web/locale/sah/viewer.properties +11 -16
  104. data/public/pdfjs/web/locale/si/viewer.properties +12 -14
  105. data/public/pdfjs/web/locale/sk/viewer.properties +25 -14
  106. data/public/pdfjs/web/locale/sl/viewer.properties +26 -15
  107. data/public/pdfjs/web/locale/son/viewer.properties +22 -15
  108. data/public/pdfjs/web/locale/sq/viewer.properties +66 -47
  109. data/public/pdfjs/web/locale/sr/viewer.properties +33 -16
  110. data/public/pdfjs/web/locale/sv-SE/viewer.properties +25 -14
  111. data/public/pdfjs/web/locale/sw/viewer.properties +10 -11
  112. data/public/pdfjs/web/locale/ta-LK/viewer.properties +9 -4
  113. data/public/pdfjs/web/locale/ta/viewer.properties +27 -16
  114. data/public/pdfjs/web/locale/te/viewer.properties +46 -36
  115. data/public/pdfjs/web/locale/th/viewer.properties +63 -52
  116. data/public/pdfjs/web/locale/tl/viewer.properties +27 -8
  117. data/public/pdfjs/web/locale/tn/viewer.properties +9 -9
  118. data/public/pdfjs/web/locale/tr/viewer.properties +31 -20
  119. data/public/pdfjs/web/locale/uk/viewer.properties +27 -16
  120. data/public/pdfjs/web/locale/ur/viewer.properties +19 -14
  121. data/public/pdfjs/web/locale/vi/viewer.properties +25 -14
  122. data/public/pdfjs/web/locale/wo/viewer.properties +12 -12
  123. data/public/pdfjs/web/locale/xh/viewer.properties +25 -14
  124. data/public/pdfjs/web/locale/zh-CN/viewer.properties +30 -19
  125. data/public/pdfjs/web/locale/zh-TW/viewer.properties +25 -15
  126. data/public/pdfjs/web/locale/zu/viewer.properties +11 -12
  127. data/public/pdfjs/web/pdf.worker.js +45507 -0
  128. data/public/pdfjs/web/pdf.worker.js.map +1 -0
  129. data/test/dummy/app/assets/config/manifest.js +5 -0
  130. data/test/dummy/app/views/pdfjs_viewer/viewer/_extra_head.html.erb +1 -0
  131. data/test/dummy/app/views/sample/helper.html.erb +1 -1
  132. data/test/dummy/db/test.sqlite3 +0 -0
  133. data/test/dummy/log/test.log +1770 -89
  134. data/test/dummy/public/sample.pdf +0 -0
  135. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-l/-lmREjXar1FRJ-qvxQYIcElssqWObGgYoAF-eff-GSI.cache +1 -0
  136. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0X/0XaDr7BS6WD-1ZDWLs26li57iimlNOdbpYXu3COgsIA.cache +0 -0
  137. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0b/0b2Yr0w8Kcv3H34YvS1k7ZIGpp3dh4_7WCmfi2uM0Bo.cache +1 -0
  138. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1C/1CuVPLGkTRz3C8yksihFAA7r-PGExELVV95-nJujRgI.cache +1 -0
  139. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1N/1NtVyTwC6gpkp4uPKks2i7XIDOc5xenKIwYbhYCPIZ0.cache +1 -0
  140. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1V/1VFVQM3UvHZJeyfocqq1Ri1Ld4l_3VUA9f46XNQ5SqI.cache +0 -0
  141. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1f/1fidLos4TsMC1Jzat66F4EuJMnvA4Ek4Yq3Wx_diqLA.cache +0 -0
  142. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2R/2R98e2YVPrPua4mm1LnZJXzfgLbo7qgs7FDQSYqlwQY.cache +0 -0
  143. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2k/2k2QxmtA7SFZWB1zLj10t-ZpwXLD8vtXHmDOkSrZWOU.cache +1 -0
  144. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3I/3IUZQGAalEE2P68Ob6-jgHDDlLjcHN9rDb6zdVLvKXA.cache +0 -0
  145. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4Y/4YfA4FbKpPO73V3dWQbDlh1_hUGWCLH_rus1BKCbmq4.cache +1 -0
  146. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4h/4hGOMi8t9jA7rT-JyBz2wfIqmxxA6C-s63ulLteZmcA.cache +0 -0
  147. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4t/4tVZLzuOFp3qqkNwJL6okWQg7SAt5WX8nirlPvL6v-Y.cache +0 -0
  148. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4u/4ulvtPKNTLNgCnb7PBjj37O4Y61UX9EwDS4cjf105sE.cache +1 -0
  149. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/51/514_xqQJY6nPLefyDto_IvNYRJAEktoJAOQ9t4l2SuI.cache +0 -0
  150. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  151. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/60/60rvu0XUvN93CtM3JpR9lkagXbYOOcP3XMAwArKf3iU.cache +1 -0
  152. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/66/66rMsErvbsDZN8Aw7gwgmjTsUCaW1Q_le3MrGPPBSbc.cache +1 -0
  153. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7Q/7Q-pDkI2jygwa4-YpVs8LrHlGq76qvNF9cMKvIW19kw.cache +0 -0
  154. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7u/7uViSjDgKF94AdY5eHIxebaJppkSsjIZUhJivtjlDV0.cache +1 -0
  155. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7x/7x0UflNmZiyLz6l0qXexSKA5vSGDWtPvVyjpqxc4HOA.cache +1 -0
  156. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8N/8NHrDFfbr9Dq5-k4ZEt4mrK9_S_WmayrkeAyR5gCsow.cache +1 -0
  157. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8l/8l2VGTx_PcamE4fcI80EAeYWfYFMUOr1ZIdScNNLbn4.cache +1 -0
  158. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9G/9GFNrvErbVcHyYoYCLPFVsaq6obi6zBXRfXRwlC_iig.cache +0 -0
  159. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9S/9S1o3C_oz3WJO3m3zzkza6Q9vKA5WA6eGOWQuGTRQ3k.cache +1 -0
  160. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AY/AYMLVwPVGVIAZH9JGKGImZOn2bjTqHUWwQDu9mdGzMw.cache +0 -0
  161. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Am/AmERsfodVKxkkJ64pEvTqgnVjUO_vl5XI0OyXH6A11w.cache +1 -0
  162. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Aw/AwGJsPzwrFfQJdKyC6KqhULhmx-DsookR6bTgwFcIAs.cache +0 -0
  163. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/B1/B1E4ZaLHU_KsfBquykVRKezQ-FRJl8v6--jX-yPGXnU.cache +0 -0
  164. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/B5/B5MDyeqMIx4GXhYZalpYkG3p3tBawiXl8hnHa4MMAQs.cache +1 -0
  165. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/C_/C_DAxUoLpJKozTFWURYaVNOWWQJe__0paQV8GWnSItE.cache +1 -0
  166. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Cx/CxaQbme5ko-wxsVAwK--ul806HSJN2MwOnoPc8P9xPM.cache +0 -0
  167. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Cx/cxKqQP5IZ0fdnsNxqjtovom-U8YKaaaAoLN0lkqlgmM.cache +1 -0
  168. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/D3/D3NQOCRTjgeuT449sw9wZTYfLClDh2bSEH8SlgA-tnc.cache +1 -0
  169. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dq/DqsfG7gyEmHCLWJFw8KEKZQd6xoIOcO__5TkBzsx3jk.cache +0 -0
  170. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/J7/J7_1-jGIsJgQtlfH0jw7bFkUHm4lYEMwsflGlbds724.cache → v4.0.0/Dr/Dr2MkEtw8xvNoHzZkeTsrW9x4V-ov29KwUXJ3Ytd7xA.cache} +0 -0
  171. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dx/DxpORYhFQUee72PMFyH5hmyJ25-2cGjHoHfYDtlRcRs.cache +1 -0
  172. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/EF/EFCvsRgX3BcuZljpVdflnRpsMV8wugWpLXgVRSNHd2U.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ev/Evv_jSn6ri1cHbzt2LeJt7QbZQGPetcWZ_W_M74hvZ8.cache +1 -0
  174. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/S7/S7Jl8rwFDyT5waxhH9H2R_iTja9kXUzDpjchUj6BMDM.cache → v4.0.0/F5/F5QVTdQWhxejC7Hh4dw12tC9h9oER-CVhmuJorL1qLc.cache} +0 -0
  175. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/FK/FKE8-r24UNUM3hMXxJG6O3FNfYvi3aNZNogc_cVE95U.cache +1 -0
  176. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GZ/GZE1uEJZ37lAijmeMj_1zMbwBjOgNlQFLqGEVRch0ac.cache +1 -0
  177. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/HP/HPbcXagW7N26tDcMQgv9_r8t1zH7TtuGYrs3oodVwso.cache +0 -0
  178. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/I2/I2ATvoFZ2TL3nPNvbfeqof0l4bhj3XggnJ3yQJ4Ayaw.cache +1 -0
  179. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/Mz/Mz4WGIDdPycd4JOgDa4gtKMpO8H5MMhhNP_aSAivvlI.cache → v4.0.0/IE/IEHYsh5JtvYpOm4fKRK8i73Kld043YRGZx4UQKCrkLc.cache} +0 -0
  180. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ip/IpdEGQFk3_1PDWVS-jNlVpp9mODQhRe0ANsVFB_SC8A.cache +0 -0
  181. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Iz/Iz4ic4cBk0cakoJ6s54nUNCYi9cQY3LHcaPWOrYUEmA.cache +1 -0
  182. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JY/JYRKIfZvFeJJg7YXs4MW5cp8d__rZHrIJB4NRXM9wZU.cache +0 -0
  183. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Jt/JtOEwyyV03hv8pbItClIEYBX_RCs54G24e0VPNOoWCI.cache +0 -0
  184. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/71/71stgYwt4t69lIMueMKuSlCwQk1DL9R226Ee1prhseM.cache → v4.0.0/Kb/KbW87iTtZeGwhwOzqfuQx1FEkI4LPaXDomgyCNb62ws.cache} +0 -0
  185. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/LI/LIKFPcJ1se4iAGU3QiJja9o1ii6GWRK-v9lvq5y92pY.cache +1 -0
  186. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/M4/M4qPB8ROhK-PyRz1Z3wJ-ygcJghC-dPRjgKwl3gh_8M.cache +0 -0
  187. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MD/MDkIPQSUBzWb_aUdhTkcU33TLvvnX50Ga64obHq4alA.cache +0 -0
  188. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/N0/N06_pjy6BGKJUTsqIxd5ae_OaZ5xhe5kRqaiiQNyb1o.cache +1 -0
  189. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/N3/N3qPqUfUuosjcEmWyCsVrevQWtleH5a-j9KibYBOiAU.cache +0 -0
  190. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NB/NB4rmJl43C0j2sMk7rvV68zKk6LIwe8oSE202hsQIVE.cache +0 -0
  191. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NE/NERKHzfGRgUtxIaKk351O8At6hN3Z_WmOJWBHnyAgJU.cache +0 -0
  192. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/T4/T4HdrzfDiTLFdSbO3SxncQtKzXUYU_21Na477K963-A.cache → v4.0.0/NF/NFgDH-U92odJCph94D_u3Vf1TQ9aE47diTENTVlErpQ.cache} +0 -0
  193. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  194. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OO/OOgLMDCLY8g9iAVOQIpMIAPXWa5ktKrhJjcRJEYohGs.cache +0 -0
  195. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OO/ooyoOnI5A5xJuh3z8Z-ci1RArvgJ9PCZpf2c-oup10E.cache +1 -0
  196. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OP/OPY7eBOtRZytk4yAS-_WSVaYBl6cH1b192gDGfjCfoQ.cache +1 -0
  197. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/PC/PCeurKXRahIDlP9tRcOVatNTyM1CReaqhiQzE1wy_c8.cache +0 -0
  198. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/PP/PPa0f6y1dPEk5k5nDnkYOHm-hNSyoHraUjkWH7-87Uo.cache +1 -0
  199. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/uG/uGB8pQq7xPDYA5nByG0nWXGe9_8G6vjUD4YWdayZUBU.cache → v4.0.0/Pg/PgvHapfJ4XmTxEfkr0v-RLyS5JvuI_BQi8NjQQsjfkw.cache} +0 -0
  200. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pg/pGA_JnDDQlLL9RgMEqNuMELYKZh4_8orr_daua34vXk.cache +1 -0
  201. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pu/PuF-erEO9Cmy9sQyFoLqivPBHUyrrwjgvB9l3aFz4C4.cache +1 -0
  202. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Q3/Q3Q6MT0F4JMTVLlXw7c0xUmVyGDqCwOVowbwVD50K3s.cache +1 -0
  203. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QO/QOd41yOl9N2G7DxsuYjWPRC_Om1KmSdCDU2eZeilYIY.cache +0 -0
  204. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QX/QXEHkMzTT6JXQX314coHx1i3ke40DkSZn-zi085zeG8.cache +0 -0
  205. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Qp/QpAgfQP6U5jcFY5doMrcWCffY03uflvWMbb03Osa6HY.cache +1 -0
  206. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/RA/RAXAeC3kfxNZnXpmCwb-qn_FQJ341EsL4X2UMoNj0Uk.cache +0 -0
  207. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/RI/RIxeN1uIBV1W2RgyoYXG3XW_kHO8azJufVzY8P6Gb7U.cache +1 -0
  208. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/SM/SMgUxo_qOBvLvEK1EOWPVKg0frCoAEcbMz4ajX40CoQ.cache +1 -0
  209. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VP/VPqFDN_2SCNZqqhZ9YIYZJyXQyC8HPOSjBxLAXjJUTo.cache +2 -0
  210. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VP/VpmEcu3zJe0snpgnyXo28Y9CR_Z4gWOXuSF6bCqcNzc.cache +1 -0
  211. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/Bi/BiBHyucnKyS4xGpxUaVGSzTEDSBLG38nAlOlD2fIcd8.cache → v4.0.0/W7/W7hh0dVpxEqTKdviyRDIHIsH1R9GT2hNdDzwdte3Nz0.cache} +0 -0
  212. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WD/WDuw8twbXVN-_Gg9ZzK9u4DDNqn1TteRGlIuv_aa-QA.cache +0 -0
  213. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/XB/XBXQ4cCJlGbG0xFwpeDlDU4TQTcFWMYg7I9lAaWcEsM.cache +0 -0
  214. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/XR/XRQlMBopl7a7Jcgd10jZhV1EE0byt-9Oc8Je0UbaVCI.cache +0 -0
  215. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Xo/XorZqUhm5Dx82vY0iLShsV82J44N9MWwymJ-xJqxjtE.cache +1 -0
  216. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YC/YChE4yerh7h2ESkCvPWgHNmpvd-6Tlvu5dYC0vU50bg.cache +0 -0
  217. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YC/ycYj6WSn9-Dtf8pbKj8cTWz78ic5RDhppNhTz0jnRw0.cache +0 -0
  218. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ye/Yesdya1cJqbzEFlyZjSZNrrrKncP6A8wT60bM_gDSn0.cache +1 -0
  219. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_9/_9Df-Wg-hg1H3a4KC3w4D3L8gGHjynD3FEP7yR_CX7Y.cache +0 -0
  220. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/a7/a7i7UP5U6Ov1wz57MtD7oIJwaEcZp8ZZBZ6gdG-bY58.cache +0 -0
  221. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/as/asfo-X1cfhAI_4aPIjtILMT3E0o7WEYvVmC6Jaj2t38.cache +1 -0
  222. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ch/chtPVIfeMzwhXmacsO4PPqQjNhvQLmc7-zZx1Sg2Cno.cache +0 -0
  223. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/jr/jrK6gITAaG-WCXCpnRQJzZIpw6kGVRdaX-k3sYE12nA.cache → v4.0.0/cl/clyISbC0KryDMhct-YGNbEEKSMwqOzQIhSarjF1P8r4.cache} +0 -0
  224. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/cz/czUK-RJBveMll9eYD8g6rTtGfl5VmA_QjnQ7Uf9Y2nA.cache +1 -0
  225. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dV/dViCI_zQMwNbS4OmSFMSSYYF_jEkTIUSMNUSR-P7PdE.cache +1 -0
  226. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eG/eGsVuUaGsi7m8U8oe-Yun6LsMTZZwv2dAnkYXn_JVjw.cache +0 -0
  227. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fO/fOMwhE_LoK6PBz43rr86imRHqStpfn-j0zKwNCEFA7A.cache +0 -0
  228. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fb/fbcj7itMSGt-kdSRxK6AB0nRdZVu-D9ydDjNtJymoZQ.cache +1 -0
  229. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fi/fiFKBYw__5HFRz1AJqpDR4zvuOTgL9UTdw4F4ZnqYSg.cache +0 -0
  230. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/p6/p63nGo7X2XlRl6QMB02rCfpb3CFcnBA2rCMd61FHvmk.cache → v4.0.0/g3/g3FImRt_WSdB3AJATqNrYTTpFhJ4_h0k0dJHg_igurQ.cache} +0 -0
  231. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/g8/g8CX16fkcOcyH0CF8sJ4Q-UQZgVT2qytd9wFxZfi6dw.cache +0 -0
  232. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gR8C9CncmLdDw-EocNZqJp_Aeh-ZLTECe5mc3pp_hp8.cache +1 -0
  233. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/2u/2uyy2VveB6Rsc9JlymSEB0Qe6iSjYCpAw2PYwPb22YQ.cache → v4.0.0/hA/hAlBeenL7obXexZ8BV7y5txHHhKTTC3z_Ajnomo_ddg.cache} +0 -0
  234. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hM/hMhbDjdHYVI7KihEY2_qoA2gCoSjNqVOO-AWp1TAQ7A.cache +0 -0
  235. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/iK/iKbAfMeZFgsqghv6mlqoQfhQCGVYHmVRY8TVYwqItMw.cache +0 -0
  236. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/js/jszwJYIqGBs_vNgoYpTLBwYr-UkQcocQ0NBCGoEC1xI.cache +1 -0
  237. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/KG/KGy1h2Np66_BWPyUYInRDn111Eo4u18iJz79A5Y_8OA.cache → v4.0.0/k1/k1ZZk_rc0Y2u6OVJFWmW2Oc5r4ry2slvl9FgAy1WDc4.cache} +0 -0
  238. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kd/kd6nkjO5EQi4vBIYzbAKlNjrslJkJPnX_m8jH1EZD6Y.cache +1 -0
  239. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kh/khnQMYg4IPY6_sXYIFti4J_9yKQc3_b6GORtFVLrzOE.cache +1 -0
  240. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/bA/bAcEmOvSYU9DO7MT8-T7yHkggM32bUOyR-8TWntFS7E.cache → v4.0.0/lS/lSZn-CQCNgZ5F7OXc4mpcTnwFIzHpHtL0iPTyZL31v0.cache} +0 -0
  241. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lT/lTxrEmTXm23GEk3ISi5qtEoYM1rqI9AYzkD26aoasQQ.cache +1 -0
  242. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lU/lUjp67U_YbE14_X7xnSTDcMwOVgiWF3-FHb_yif3kC4.cache +0 -0
  243. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/le/lejIn_jlvyadKS3me0gOB49iI8SJUW1nLWlxOcgkO_k.cache +0 -0
  244. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmEQpQZ17TwXCS7-OihitWehDJKxvg9HXlo74g7YZ8g.cache +1 -0
  245. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/zR/zRbdRb-o65vqEx7gHWM-P97_PjFwvomEwygExzhOHTs.cache → v4.0.0/ny/nySX9xY8GVjq8lxHLaokecbVQFri3H_pqQ5ytA2uXwo.cache} +0 -0
  246. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/p4/p4WHavXhUgY2ubVF6tXt_u-hX4ZS06FfjxcM_qsF9mI.cache +1 -0
  247. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pa/paq2b-coLJizAccytZuATQhfCSguqbBJdYXWc8Fyup8.cache +4 -0
  248. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ph/ph-v3FvrMv6i8Y_KgPSvgMPIxYhaE1-UEDMVYFH1tDo.cache +1 -0
  249. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pl/plJ87vXodUAoRqG3i5un0gEpqnRKVvuneeLI9jWAaFM.cache +0 -0
  250. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/qv/qvLBTEMTkTqvpE01Wb-TBj5FS8zoHijnXT_HI7Aviog.cache +0 -0
  251. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/9L/9LtRMVlN7YCDqIGfUJcjJseLSM2aDb3DoGHGErvlYpE.cache → v4.0.0/ro/roZHBpaLIO0Elw6MTQld9etf9K-nmCVBATN15NKZhh8.cache} +0 -0
  252. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/s6/s6qdBr2THGjUKtZptbwt51LqdUY45X1KUukE_MkldFo.cache +1 -0
  253. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/s9/s922q4NrUcCBhaMaKRwUVY9uDnrvKbm2YlJmiaLvtAM.cache +0 -0
  254. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sQ/sQ9kUYcYCVtzBgCr0dHtjWWwQXAUuDvcKE7viYEMGrc.cache +0 -0
  255. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sp/sp45zrfDq1U_O8efmQ2xUkP3ale5f4UgIV6ph-xYtRU.cache +1 -0
  256. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ss/ssidpjNHJeIRP1DArO58wY11cNzfnwLraPYUvt4ozkg.cache +0 -0
  257. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/t3/t3ax_k1a_nmiQ4zF2PalaCH7-7C3lZyN7wlKn_V-puc.cache +0 -0
  258. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/-q/-q6NQgY81e7LDSsdY_XCGtLdDsXiy9ImIKCPBSmLRVY.cache → v4.0.0/u0/u0CiJwhveeWyr8l-amiVTzfLG2WM16zxcdKxTcw08Dw.cache} +0 -0
  259. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uW/uWrE5jGykNTXzfomZWop-40evTv0HMarJ1cC6iF31jI.cache +1 -0
  260. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ua/uarMuxiCflV7mHH0LUV4CE171FFltKAASZPXHEWS9uI.cache +0 -0
  261. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vC/vC7hmqzbKAktMmLea8k4uIfpOBDVQghbOroENscRNBM.cache +0 -0
  262. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/As/AsjkHfKxFtug5RaXLjxS0tB_y-9vBMQecSlFe7cNmY8.cache → v4.0.0/vI/vIl3YhfXQycLKyCxR2lKK3G6I4nR9OwpJQDotA7g3A4.cache} +0 -0
  263. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vR/vRmK6N2pk7V6jxrWMI_tWcRWthlUlf6lt-TZgnUvWw4.cache +0 -0
  264. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vZ/vZoRVNI4g3ZxhlM02nFtcEYVcwJ188tC8zi6AytXxBw.cache +1 -0
  265. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vo/voBUXzYnbfEh2q4iqAGN7csd6wfatR9k3DhU4fjE8f8.cache +0 -0
  266. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vs/vsQwdd7nb7UOkkBO5ba1tLA2j1WPbSIkc7JollidPMs.cache +1 -0
  267. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wA/wAOOSCxDmKhlbcT0Ldr7vt31sN6zbQu03xPRHdohX3k.cache +0 -0
  268. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xn/xnDw7D_Uk4g-rkmZl3T-Xm6emd0939hy0xI5pJdUWvM.cache +0 -0
  269. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/y3/y3lDac4K4bSpQHP88Fh7bls3-IZ24qN1pYlm119Mst4.cache +1 -0
  270. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yA/yABOMiKJLqLZOCOBLBJjeEwvd6DZlCnKjanSlymoFos.cache +1 -0
  271. data/test/dummy/tmp/cache/assets/sprockets/{v3.0/Lc/Lc6rpjP6oLsRJWScD4W3e6la4t9niKxd8YGT2bBh0MU.cache → v4.0.0/ym/ymTjP7xTnz0IsG8Erou0O7fYw_22ZuKREL7b8os154c.cache} +0 -0
  272. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yo/yoJkscf27cCw03TsQRLprs2pxkGnDdAyYuhr380cwbA.cache +1 -0
  273. data/test/integration/viewer_test.rb +33 -2
  274. data/test/sandbox/full_viewer.png +0 -0
  275. data/test/sandbox/helper.png +0 -0
  276. data/test/sandbox/minimal_viewer.png +0 -0
  277. data/test/sandbox/reduced_viewer.png +0 -0
  278. data/test/test_helper.rb +2 -2
  279. metadata +342 -356
  280. data/app/assets/javascripts/pdfjs_viewer/pdfjs/compatibility.js +0 -593
  281. data/app/assets/javascripts/pdfjs_viewer/pdfjs/l10n.js +0 -1033
  282. data/app/assets/javascripts/pdfjs_viewer/pdfjs/pdf.combined.js +0 -47884
  283. data/public/pdfjs/web/compressed.tracemonkey-pldi-09.pdf +0 -0
  284. data/public/pdfjs/web/viewer.html +0 -411
  285. data/test/dummy/log/development.log +0 -259
  286. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-t/-t5GVzBWkde9ub5Dw01su_QUfCvcfq2n7qOU7Kpy20o.cache +0 -1
  287. data/test/dummy/tmp/cache/assets/sprockets/v3.0/08/080G4FuPE7XFV1a1w2UPhtjxWHV1PqEDphm1BVU6bqk.cache +0 -1
  288. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0T/0T3vHG3AoM6H9-UUe2BPzwXDHSRwMWkdI_eYNLXIaV0.cache +0 -0
  289. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1f/1fidLos4TsMC1Jzat66F4EuJMnvA4Ek4Yq3Wx_diqLA.cache +0 -0
  290. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2H/2HU5q2HDLP-LB23hM72fUDoS_j5lPaJSI7IF01U7NDc.cache +0 -1
  291. data/test/dummy/tmp/cache/assets/sprockets/v3.0/35/35zufUzA_pQC-5GZWRjDFnpQSnnRB7IZ11GOWUCrSuQ.cache +0 -1
  292. data/test/dummy/tmp/cache/assets/sprockets/v3.0/41/41bbmlVTHFhKYgY3Mb5w8wRpzeBDAnvso4yeZfycmZw.cache +0 -0
  293. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4f/4fdHLlIfLD3AKTlp44tZ9bJcfv1ckrqz884hSOBoJc0.cache +0 -0
  294. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4z/4zaTuQNQ-f4VplXdAsrqxg9X3_jgn83bTKExkgyK1Dc.cache +0 -1
  295. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5F/5FtUQmmePVDek5RfbRjG9-tEWQN9LmsMbMsUzxG0oXA.cache +0 -1
  296. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5H/5Htfw7H-9yCiEsKrcea6l5fKFCbTUr_Rer3KeOltfpQ.cache +0 -0
  297. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  298. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6U/6UPfT3oOX0Z5g_LVzD1fIrbBg2IF3E0Zs9ZcpPmEumY.cache +0 -0
  299. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6p/6pl5BgV5NUKa0M5z1JWmRyR7VMlmV_TnuXaIHa-a0tA.cache +0 -1
  300. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6y/6yWCnWQZ4ibluEIW8EvyYOZqmrH0xhi0Db8smuj6t18.cache +0 -1
  301. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6z/6ztMTmnOacQTXs6Vnv6OfSLyvoHXkIqhKfs3ajnEyYs.cache +0 -0
  302. data/test/dummy/tmp/cache/assets/sprockets/v3.0/79/79dZygZE-ACvSNiThevxriXuL0L2a5nzsG6smkijiIY.cache +0 -0
  303. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7l/7ln8dFl8yZOucQdjPjsGTORt3sOUzaF8GPUAJAiGukU.cache +0 -1
  304. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7y/7yNlixqTVXpTDGdxtRdPR3-Heab5x0aBdJdGJ8EHdgc.cache +0 -0
  305. data/test/dummy/tmp/cache/assets/sprockets/v3.0/81/81292vRreJmEuLhLhV6HxALK7epFEwvRgw58uQLFAEs.cache +0 -1
  306. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8d/8dSdlbQtg7bAzL4WJW_v1LLaVQ-eVnAQQ5N6H4gwOsQ.cache +0 -1
  307. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9J/9JF1ActxnHWpo9QCp5ZUB7lpq5deaBf04E8tpwBaqIQ.cache +0 -1
  308. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9V/9VjE3x4J-o2hYYW_OmIQnAdFeDw-BWRJwMG8YpdQn84.cache +0 -1
  309. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9h/9hKDxRykvMd5d3ibRhzcS4EAMb9o3Fa_Ybl-m5wox18.cache +0 -0
  310. data/test/dummy/tmp/cache/assets/sprockets/v3.0/A-/A-x6g1hcYwickErEJa4hv1Lggyfdd3j3Wab236wTgVY.cache +0 -1
  311. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AA/AAUMS8uXVgslBOoirrsLdY4Ag1ijItQ0spJjhta63h4.cache +0 -0
  312. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AY/AYWyTNfFrMFXNeXyr6qyeU5cU4VNBaRZ9GSH0A_FTG4.cache +0 -0
  313. data/test/dummy/tmp/cache/assets/sprockets/v3.0/As/aSGbex_eb2YmMSeGCSJbfqr4raznNAQ-hLIQi1ELA08.cache +0 -0
  314. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ax/AxGKs1wHRZDhTLT08ByVX0X7p3jxnzpFWvik33-2HGc.cache +0 -0
  315. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Az/Azfd0siA6xNhvTYx1sIfH_68yT2lktwcv1iHV27Evus.cache +0 -1
  316. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSyrC2z_r77PQolC4IeFWphPsVuwm_IMzp4u70S6vDk.cache +0 -0
  317. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bb/BbyGO7nv2FMFnwC8jnxCXIfCZCpPItXqqIu2lTKvCsk.cache +0 -1
  318. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bc/BciIoQECZf_1y1NR9MwSpgeqNrT-rX20dmMv5fgF64g.cache +0 -1
  319. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bh/Bh1h2g7TPWnpDSPyssUWy3q55lN9l1LPhnlvaXlXCwA.cache +0 -0
  320. data/test/dummy/tmp/cache/assets/sprockets/v3.0/C-/C-rYxWqMLNU8YVQd2fJlnScQWjraLZGSVYNno8ZWwYE.cache +0 -1
  321. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -0
  322. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Di/DigdgIqS7bGlgBulDuFvQPpifrIXU4OL1BRq56BrNi8.cache +0 -1
  323. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EA/EA58tBohqYgVMAfTWbqYQMfhbZyQ7xOVE5nyFYQ4ILY.cache +0 -0
  324. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ER/ERnhvKmzMsN4ne6bfo--b-C7Q-6QxfzACrKgE2vh1nE.cache +0 -0
  325. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ek/EkAuJl_fpdrMEvoOocPF7T4XwQ6YaE3krHedVoQVAhc.cache +0 -0
  326. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ep/Ep_qJLsM6Koq_xt0sRgrOu9kVjfZLxX6c1k9JgyyVzI.cache +0 -0
  327. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ge/GeNnWyMrCVZcLQwvFIUxmeE5QnbBW0ooOwi9I_YF6NE.cache +0 -0
  328. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ge/GefKNcQdME9gFg7x6Ubl10AKRWQOI8rpB84b1DwqMQA.cache +0 -1
  329. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Go/Go7suWCHlEDa8ucybgyeVgOLKNDOmYcnkky1s-9jQro.cache +0 -0
  330. data/test/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8_IGSoQCZ3LBxii2RZXH8KqYUx-WpJhM_7zJk-cw9Y.cache +0 -1
  331. data/test/dummy/tmp/cache/assets/sprockets/v3.0/He/He8dbO9KB_qFzpPwv04NBqBfMYxlOE7vytxtEUT1FIg.cache +0 -0
  332. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hp/HpkDNfjcvnQ3cWDf2DuhP3yDpOqDmhOs48DmtdNMTXs.cache +0 -0
  333. data/test/dummy/tmp/cache/assets/sprockets/v3.0/I2/I2MZs_8sc534WdUN3-XnHBGP3A0LDtDmHbxu-dVGvr0.cache +0 -1
  334. data/test/dummy/tmp/cache/assets/sprockets/v3.0/IE/IEUeuaZvKg2F4IEObI0zgU_SO60U02BcqA3YdjfYLhs.cache +0 -1
  335. data/test/dummy/tmp/cache/assets/sprockets/v3.0/IE/IeEv80zxsBwBelFUt7XuhqyTzUX8u6ZlAASZcRQ1q8Y.cache +0 -0
  336. data/test/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHRC4-8LT7E2d69WoMd8mtCTcuHs9CHdx06qQOkqeb4.cache +0 -1
  337. data/test/dummy/tmp/cache/assets/sprockets/v3.0/IR/IR0071WvcQcaWbeJdaVAHLTe8wRpr6E98_55rO51vJI.cache +0 -1
  338. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ig/IgDY1CRIUs7PK8O0saLCPILkrVsWS-0EDdac2-vDwhA.cache +0 -1
  339. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JP/JPrrUGF_3-GtB7jM_E_4HzYlkxJ5_4jj4mq6vXzVnN0.cache +0 -0
  340. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jf/Jf_0BNbCJItwTH1g9AzYSV7cnq3GpFlcrZjODr5KUEY.cache +0 -1
  341. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jk/JkxqhdQnl29bTrWBKW_nGDe54MaTAFxUeVvG6fsEyDs.cache +0 -0
  342. data/test/dummy/tmp/cache/assets/sprockets/v3.0/K7/K7S5z9d_3JC-gVOj-236ZBlw8ovV_jLRT1LSPNm5EBk.cache +0 -1
  343. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ks/KsFAy16AhHBjV1q7vt82A6Y33NsSbqsFrv9BiKZMreg.cache +0 -0
  344. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbpOkaxE_qd8m5Ckur4t_mqarROkdCQ-BHt07H-u6C0.cache +0 -1
  345. data/test/dummy/tmp/cache/assets/sprockets/v3.0/M-/M-uK4ThehS1nk0YpPEwPu-F1jUTul8eBkyg1mBg0gvg.cache +0 -0
  346. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ma/MaVnsdU0tivsecHGXwf_n_3-yLSSuotq6spLQr-bs0c.cache +0 -0
  347. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mo/MogwKpf20as_2fJUDTrlUcDdMh20evxDffERAKk8QlA.cache +0 -0
  348. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mz/mzI7pDy1zvv-w3xgMptsk1WhW985tn21VLDInMf5_as.cache +0 -1
  349. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  350. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QP/QP_11qyTmflgTGiwcW0MSJenVgRiv-nJrIYdJlGoH3E.cache +0 -1
  351. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RH/RHvDByu5dX4Hsd19kB-lR6jbsWCtSUlEOuZn09W6yTg.cache +0 -0
  352. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RP/RPm5aX4qNBojnmbdvw-kqHBZdKP8lgSYcfKMWBDWJEM.cache +0 -1
  353. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rz/RzY1cYjFXjcJbB6Xf0OLXcOsLIFR-fJygQbmDgn-I0U.cache +0 -1
  354. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SQ/SQAGM5ieWLt5zrjyMNz6CokZ4X8NB85kSPQeBlt0xNw.cache +0 -0
  355. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SY/SYKIVw0JdXBkHnkRBwlVpuYz9ywvRpQDFDaZpjasz-g.cache +0 -0
  356. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TB/TBC4TQJ7eLxKqqxNVC92qwET2VtN6Pz4WLAJ8ZsD_eE.cache +0 -2
  357. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TL/TLiKl88xrJgr5wstIvihdZ6URJu0-uK_gwNGWA85w4o.cache +0 -0
  358. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tj/TjYsQV9h_b-PQ9mB812dFtYHJ4a4FrfZgqvGDl0ecLI.cache +0 -0
  359. data/test/dummy/tmp/cache/assets/sprockets/v3.0/U8/U8lReX_PG7IIl0UT6e66lbpiKaHIVr35LVsCkFILG_E.cache +0 -1
  360. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UF/UFlw5aQDhyk_odf54MCShCKgL4tdOkYpvars0SojIec.cache +0 -0
  361. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UV/UVNBbRFrLJPMBVttqJhfB97xE7jwfcz8116f561SgMI.cache +0 -0
  362. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ui/Ui6clyARo_JCQlsKG-ZLLtoK-VL2VZ-d5gwiayl3PBA.cache +0 -1
  363. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ul/UlZIs4zBOzazcKXNnGO5yi23YtGu39nz5k2lrMAH-fg.cache +0 -0
  364. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uz/UzTxgkkJxu_yF_A4VqzZXaI8jHOo2uqg2jQzQlCGDio.cache +0 -0
  365. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uz/uzrz2VsOGZr8bImxBFHVyh_kZsyrJBbERoUKLbRr9wA.cache +0 -1
  366. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VL/VLLs8UrNjV8bfd8uPyFHkkLb7Uq6wk-sSBHldEjIQWg.cache +0 -0
  367. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VS/VSY-hml0wKkEILztFY2MRmrwdjaTw138yvlr_kdR5wA.cache +0 -1
  368. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WL/WLjT_PqLYAab7ICYxacunvKK7x0J7CyIJsxi7bVph1Y.cache +0 -1
  369. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xp/XpHZvs8omFcn_aNkmaGBOj11vjlgis0GAIP3MKVcUyg.cache +0 -1
  370. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJhpKq1vU8uVW9TP9DvaO4yjZBVYT2Gv5d_CW9Xjvgc.cache +0 -1
  371. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_H/_HDoShPSg9SdiXdQroUZtQd3S82RZaRlhw4n_BarXd4.cache +0 -0
  372. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_x/_xKbdjmcLyZhehb01ubXK_0Jw0QzOHeqwszrntGHhgA.cache +0 -1
  373. data/test/dummy/tmp/cache/assets/sprockets/v3.0/aT/aTt4wK2WIQvQRV2gAzjoymdBNfvgkNfAZthlIeu413M.cache +0 -1
  374. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ak/akvJqh_CeKLt1fdEwDIV9zHTTT3AugzmeUHM8y57jKY.cache +0 -0
  375. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ao/ao1pPYOFJ7wX29UdnX0Bjt1xqxPOLtYKeuys3Ax7UHY.cache +0 -1
  376. data/test/dummy/tmp/cache/assets/sprockets/v3.0/b2/b28ZzBxW--4poZM3tMAMMk1RyB_6u-p1MsHeQowcKpc.cache +0 -0
  377. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cE/cEeKuWJlIZEoE6BdWqTI-t-E0N2LAeufboemcnI5Ltg.cache +0 -0
  378. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cR/cRYLwr6_kGeZYZrNWP40U26TFX4f2QAbevRDC32I8zk.cache +0 -0
  379. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cW/cWKFgp1roz93Kd99ls1d6ayBMMRXc5z1nOnPJPOFBM0.cache +0 -0
  380. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ca/cazmkYR6tJ4f0DptT7Qr8mo-BZwfvM4EKpJ3yF-HQIs.cache +0 -0
  381. data/test/dummy/tmp/cache/assets/sprockets/v3.0/d4/d4UJTJcZGylngswkFZgsStffrdVU8IysEAukleJHq_U.cache +0 -0
  382. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eg/eghgqLUKT9lADymq4Vk0hb5NYXIIFrpWDUqeHuEDt74.cache +0 -1
  383. data/test/dummy/tmp/cache/assets/sprockets/v3.0/f5/f5SXLtaZpoKUrBhYyANene_B0pZh4Fs3q0qsnYI17Ss.cache +0 -0
  384. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fB/fBypaaSqpls1GcwwQ4HclPsG-XOKuoI2VyzNufjyfnU.cache +0 -0
  385. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fO/fOMwhE_LoK6PBz43rr86imRHqStpfn-j0zKwNCEFA7A.cache +0 -0
  386. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fq/fqzJZ9XDtHWdf_SrXg-T7l6O2NtlSoC1dgRq3w8nbqg.cache +0 -1
  387. data/test/dummy/tmp/cache/assets/sprockets/v3.0/g-/g-MxLh6QZ8uqSQpzl71sOO6FhoLd-mPY9ytN3SHSd6s.cache +0 -1
  388. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ga/gaONmV2vWDOfl6XOybIxlSMpcETo2PaZG3_ex6ZtSVc.cache +0 -1
  389. data/test/dummy/tmp/cache/assets/sprockets/v3.0/gs/gs1fq9lqaJbqSHx_WnrLGo_rbzlZGfhkP8OGkuumHLk.cache +0 -1
  390. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ja/jaQH1tnuMWObXXMX988ejVTiawMvE6L76842FrwIIS0.cache +0 -0
  391. data/test/dummy/tmp/cache/assets/sprockets/v3.0/js/js7jNKdNVyNNYQRxeDp0KoAh7sdYoveaQVNQkBuXDe8.cache +0 -0
  392. data/test/dummy/tmp/cache/assets/sprockets/v3.0/k9/k9YO1Qb-Ja2eQJEc_LqqaYiR2Jk9c73e_1u85EyYEUw.cache +0 -0
  393. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kO/kOJdTGjX5wCNUqYrGe6jxPS2lw1-T90j87elJ6HlVR0.cache +0 -1
  394. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kR/kRo_i8ixuzuziAXr-0X5Sv-pJtnyCokfgOS-jCbF9Wk.cache +0 -0
  395. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lD/lDZ1BHw5ItAbM7e0LAXXg3wMOJvdtj1ynrdiQ99qoko.cache +0 -0
  396. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmszFoPAF57gCrLseYD8wvbThDi_j0Ys3R-AygQjuhM.cache +0 -1
  397. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lw/lwMDtxzgforpVTNvcnw_xXMixHfXTfsgUIgFKltZutw.cache +0 -0
  398. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ly/lY6Xiq4wNrMhr1GiQOrtNKSaPhpnCMgjPNSi3ZN51mk.cache +0 -0
  399. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ly/lyDeyCTO3D1TCcPpMAEsrpHgWH6AspQwFnGKOHzrH7Y.cache +0 -1
  400. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mD/mDLr1lrD6WgTt48gRX8tF51GnjLshUXG-Txvu-HoVsI.cache +0 -1
  401. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mS/mSj21XsZvaMOK22e6ov7GZ3-YZ9_UD_go_7lA-ey7vc.cache +0 -1
  402. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nR/nRXBZs1TbcYM5xyj5Qx1UBWrSNEHZVPP37R2yo2s1K8.cache +0 -1
  403. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ne/nexQjB0awaxA5vRef-9hPWFgWrYosUCpVU_a0uEclmc.cache +0 -0
  404. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pC/pCMBdLnOAQOsMegdUF76NAgdZrY6EJKJoW0dE_QRLY0.cache +0 -0
  405. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkkfBywe4K-JsW2OeLY2g8FVj1UmXnrSljtomau_rXw.cache +0 -0
  406. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qT/qTJMU6xMxg--8mAi0aRjFEuf4EPvPrkg3zoxvurjmkM.cache +0 -0
  407. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qd/qdQffu_fIz8BjDX9Qm06YvRis27trrnziWOTE3Yiq_w.cache +0 -0
  408. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qd/qdrmd8Ttm0KIVoULM8tCA5HpYmtgLqNAVkcJ2_a5Ckg.cache +0 -1
  409. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rR/rRp2gtP0SbjQbb9XGgLRhywKVIwYztgeAq0kCl4GEd8.cache +0 -1
  410. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ro/ro_7q1G-1gCLv9Of5_G0fpt1qRpdeeE-C-kOpk7xZBI.cache +0 -1
  411. data/test/dummy/tmp/cache/assets/sprockets/v3.0/s9/s9bOYlWBgcKy5os6sTFZRtrgGE5XcnF404zQra9HxmQ.cache +0 -0
  412. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sT/sTn4Un1H4aTfN5GuwdM5Di6DBocGF9fbHgAPgvJklDQ.cache +0 -1
  413. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sj/sjBcRn1DJs7jFTrYJPoOpLbCWPov_JYXS7uszBvJDM0.cache +0 -1
  414. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uB/uBld_x-EceyLitiqDaSne4Z47i9GDiaha9ZmP-AWYN8.cache +0 -2
  415. data/test/dummy/tmp/cache/assets/sprockets/v3.0/w-/w-xtN1s7rcgQgiGPvMc0LNPFYj_lLBvsCJqtl50X0Xg.cache +0 -1
  416. data/test/dummy/tmp/cache/assets/sprockets/v3.0/wm/wm9-Heugu7FpUNf32e_mJJPtHCm50eEJfomC-oWDDUs.cache +0 -0
  417. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xU/XuLQCLsgS3WU-zc1F9_WRJj1ldlUqRMWqd3o_o0TVEQ.cache +0 -0
  418. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xU/xU9JSYkEQI0cWQhhaxMThnNrqVnYZPI9pCNEdf96xNg.cache +0 -0
  419. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xg/xghgUy4QUAcMUz3tekj_NeSYQG99DVqs02ElMYUg6LU.cache +0 -1
  420. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yz/yZ4rknNFFykgsDGpns_JhcT__AR_qbf4mGZEy8vSrtM.cache +0 -1
  421. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yz/yzg9_Tpun3ZssXl9nCyYEOEQmK9FHcYZlqPYlNwmEAc.cache +0 -1
  422. data/test/dummy/tmp/cache/assets/sprockets/v3.0/z0/z0teEXFifx1LtInSms4WF41wGZ5nBI3ogYR7Acyip6w.cache +0 -1
  423. data/test/dummy/tmp/cache/assets/sprockets/v3.0/z4/z47xsrpJjs8d1MIm1r57yADNit604olUHS2D0MYBrxs.cache +0 -1
  424. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zX/zXTZrbZQWUzxCxfLbWxzNflWnJHwvg9GD7VbAv4Rz_A.cache +0 -0
@@ -1,593 +0,0 @@
1
- /* Copyright 2012 Mozilla Foundation
2
- *
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- /* globals VBArray, PDFJS */
16
-
17
- 'use strict';
18
-
19
- // Initializing PDFJS global object here, it case if we need to change/disable
20
- // some PDF.js features, e.g. range requests
21
- if (typeof PDFJS === 'undefined') {
22
- (typeof window !== 'undefined' ? window : this).PDFJS = {};
23
- }
24
-
25
- // Checking if the typed arrays are supported
26
- // Support: iOS<6.0 (subarray), IE<10, Android<4.0
27
- (function checkTypedArrayCompatibility() {
28
- if (typeof Uint8Array !== 'undefined') {
29
- // Support: iOS<6.0
30
- if (typeof Uint8Array.prototype.subarray === 'undefined') {
31
- Uint8Array.prototype.subarray = function subarray(start, end) {
32
- return new Uint8Array(this.slice(start, end));
33
- };
34
- Float32Array.prototype.subarray = function subarray(start, end) {
35
- return new Float32Array(this.slice(start, end));
36
- };
37
- }
38
-
39
- // Support: Android<4.1
40
- if (typeof Float64Array === 'undefined') {
41
- window.Float64Array = Float32Array;
42
- }
43
- return;
44
- }
45
-
46
- function subarray(start, end) {
47
- return new TypedArray(this.slice(start, end));
48
- }
49
-
50
- function setArrayOffset(array, offset) {
51
- if (arguments.length < 2) {
52
- offset = 0;
53
- }
54
- for (var i = 0, n = array.length; i < n; ++i, ++offset) {
55
- this[offset] = array[i] & 0xFF;
56
- }
57
- }
58
-
59
- function TypedArray(arg1) {
60
- var result, i, n;
61
- if (typeof arg1 === 'number') {
62
- result = [];
63
- for (i = 0; i < arg1; ++i) {
64
- result[i] = 0;
65
- }
66
- } else if ('slice' in arg1) {
67
- result = arg1.slice(0);
68
- } else {
69
- result = [];
70
- for (i = 0, n = arg1.length; i < n; ++i) {
71
- result[i] = arg1[i];
72
- }
73
- }
74
-
75
- result.subarray = subarray;
76
- result.buffer = result;
77
- result.byteLength = result.length;
78
- result.set = setArrayOffset;
79
-
80
- if (typeof arg1 === 'object' && arg1.buffer) {
81
- result.buffer = arg1.buffer;
82
- }
83
- return result;
84
- }
85
-
86
- window.Uint8Array = TypedArray;
87
- window.Int8Array = TypedArray;
88
-
89
- // we don't need support for set, byteLength for 32-bit array
90
- // so we can use the TypedArray as well
91
- window.Uint32Array = TypedArray;
92
- window.Int32Array = TypedArray;
93
- window.Uint16Array = TypedArray;
94
- window.Float32Array = TypedArray;
95
- window.Float64Array = TypedArray;
96
- })();
97
-
98
- // URL = URL || webkitURL
99
- // Support: Safari<7, Android 4.2+
100
- (function normalizeURLObject() {
101
- if (!window.URL) {
102
- window.URL = window.webkitURL;
103
- }
104
- })();
105
-
106
- // Object.defineProperty()?
107
- // Support: Android<4.0, Safari<5.1
108
- (function checkObjectDefinePropertyCompatibility() {
109
- if (typeof Object.defineProperty !== 'undefined') {
110
- var definePropertyPossible = true;
111
- try {
112
- // some browsers (e.g. safari) cannot use defineProperty() on DOM objects
113
- // and thus the native version is not sufficient
114
- Object.defineProperty(new Image(), 'id', { value: 'test' });
115
- // ... another test for android gb browser for non-DOM objects
116
- var Test = function Test() {};
117
- Test.prototype = { get id() { } };
118
- Object.defineProperty(new Test(), 'id',
119
- { value: '', configurable: true, enumerable: true, writable: false });
120
- } catch (e) {
121
- definePropertyPossible = false;
122
- }
123
- if (definePropertyPossible) {
124
- return;
125
- }
126
- }
127
-
128
- Object.defineProperty = function objectDefineProperty(obj, name, def) {
129
- delete obj[name];
130
- if ('get' in def) {
131
- obj.__defineGetter__(name, def['get']);
132
- }
133
- if ('set' in def) {
134
- obj.__defineSetter__(name, def['set']);
135
- }
136
- if ('value' in def) {
137
- obj.__defineSetter__(name, function objectDefinePropertySetter(value) {
138
- this.__defineGetter__(name, function objectDefinePropertyGetter() {
139
- return value;
140
- });
141
- return value;
142
- });
143
- obj[name] = def.value;
144
- }
145
- };
146
- })();
147
-
148
-
149
- // No XMLHttpRequest#response?
150
- // Support: IE<11, Android <4.0
151
- (function checkXMLHttpRequestResponseCompatibility() {
152
- var xhrPrototype = XMLHttpRequest.prototype;
153
- var xhr = new XMLHttpRequest();
154
- if (!('overrideMimeType' in xhr)) {
155
- // IE10 might have response, but not overrideMimeType
156
- // Support: IE10
157
- Object.defineProperty(xhrPrototype, 'overrideMimeType', {
158
- value: function xmlHttpRequestOverrideMimeType(mimeType) {}
159
- });
160
- }
161
- if ('responseType' in xhr) {
162
- return;
163
- }
164
-
165
- // The worker will be using XHR, so we can save time and disable worker.
166
- PDFJS.disableWorker = true;
167
-
168
- Object.defineProperty(xhrPrototype, 'responseType', {
169
- get: function xmlHttpRequestGetResponseType() {
170
- return this._responseType || 'text';
171
- },
172
- set: function xmlHttpRequestSetResponseType(value) {
173
- if (value === 'text' || value === 'arraybuffer') {
174
- this._responseType = value;
175
- if (value === 'arraybuffer' &&
176
- typeof this.overrideMimeType === 'function') {
177
- this.overrideMimeType('text/plain; charset=x-user-defined');
178
- }
179
- }
180
- }
181
- });
182
-
183
- // Support: IE9
184
- if (typeof VBArray !== 'undefined') {
185
- Object.defineProperty(xhrPrototype, 'response', {
186
- get: function xmlHttpRequestResponseGet() {
187
- if (this.responseType === 'arraybuffer') {
188
- return new Uint8Array(new VBArray(this.responseBody).toArray());
189
- } else {
190
- return this.responseText;
191
- }
192
- }
193
- });
194
- return;
195
- }
196
-
197
- Object.defineProperty(xhrPrototype, 'response', {
198
- get: function xmlHttpRequestResponseGet() {
199
- if (this.responseType !== 'arraybuffer') {
200
- return this.responseText;
201
- }
202
- var text = this.responseText;
203
- var i, n = text.length;
204
- var result = new Uint8Array(n);
205
- for (i = 0; i < n; ++i) {
206
- result[i] = text.charCodeAt(i) & 0xFF;
207
- }
208
- return result.buffer;
209
- }
210
- });
211
- })();
212
-
213
- // window.btoa (base64 encode function) ?
214
- // Support: IE<10
215
- (function checkWindowBtoaCompatibility() {
216
- if ('btoa' in window) {
217
- return;
218
- }
219
-
220
- var digits =
221
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
222
-
223
- window.btoa = function windowBtoa(chars) {
224
- var buffer = '';
225
- var i, n;
226
- for (i = 0, n = chars.length; i < n; i += 3) {
227
- var b1 = chars.charCodeAt(i) & 0xFF;
228
- var b2 = chars.charCodeAt(i + 1) & 0xFF;
229
- var b3 = chars.charCodeAt(i + 2) & 0xFF;
230
- var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
231
- var d3 = i + 1 < n ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
232
- var d4 = i + 2 < n ? (b3 & 0x3F) : 64;
233
- buffer += (digits.charAt(d1) + digits.charAt(d2) +
234
- digits.charAt(d3) + digits.charAt(d4));
235
- }
236
- return buffer;
237
- };
238
- })();
239
-
240
- // window.atob (base64 encode function)?
241
- // Support: IE<10
242
- (function checkWindowAtobCompatibility() {
243
- if ('atob' in window) {
244
- return;
245
- }
246
-
247
- // https://github.com/davidchambers/Base64.js
248
- var digits =
249
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
250
- window.atob = function (input) {
251
- input = input.replace(/=+$/, '');
252
- if (input.length % 4 === 1) {
253
- throw new Error('bad atob input');
254
- }
255
- for (
256
- // initialize result and counters
257
- var bc = 0, bs, buffer, idx = 0, output = '';
258
- // get next character
259
- buffer = input.charAt(idx++);
260
- // character found in table?
261
- // initialize bit storage and add its ascii value
262
- ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
263
- // and if not first of each 4 characters,
264
- // convert the first 8 bits to one ascii character
265
- bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
266
- ) {
267
- // try to find character in table (0-63, not found => -1)
268
- buffer = digits.indexOf(buffer);
269
- }
270
- return output;
271
- };
272
- })();
273
-
274
- // Function.prototype.bind?
275
- // Support: Android<4.0, iOS<6.0
276
- (function checkFunctionPrototypeBindCompatibility() {
277
- if (typeof Function.prototype.bind !== 'undefined') {
278
- return;
279
- }
280
-
281
- Function.prototype.bind = function functionPrototypeBind(obj) {
282
- var fn = this, headArgs = Array.prototype.slice.call(arguments, 1);
283
- var bound = function functionPrototypeBindBound() {
284
- var args = headArgs.concat(Array.prototype.slice.call(arguments));
285
- return fn.apply(obj, args);
286
- };
287
- return bound;
288
- };
289
- })();
290
-
291
- // HTMLElement dataset property
292
- // Support: IE<11, Safari<5.1, Android<4.0
293
- (function checkDatasetProperty() {
294
- var div = document.createElement('div');
295
- if ('dataset' in div) {
296
- return; // dataset property exists
297
- }
298
-
299
- Object.defineProperty(HTMLElement.prototype, 'dataset', {
300
- get: function() {
301
- if (this._dataset) {
302
- return this._dataset;
303
- }
304
-
305
- var dataset = {};
306
- for (var j = 0, jj = this.attributes.length; j < jj; j++) {
307
- var attribute = this.attributes[j];
308
- if (attribute.name.substring(0, 5) !== 'data-') {
309
- continue;
310
- }
311
- var key = attribute.name.substring(5).replace(/\-([a-z])/g,
312
- function(all, ch) {
313
- return ch.toUpperCase();
314
- });
315
- dataset[key] = attribute.value;
316
- }
317
-
318
- Object.defineProperty(this, '_dataset', {
319
- value: dataset,
320
- writable: false,
321
- enumerable: false
322
- });
323
- return dataset;
324
- },
325
- enumerable: true
326
- });
327
- })();
328
-
329
- // HTMLElement classList property
330
- // Support: IE<10, Android<4.0, iOS<5.0
331
- (function checkClassListProperty() {
332
- var div = document.createElement('div');
333
- if ('classList' in div) {
334
- return; // classList property exists
335
- }
336
-
337
- function changeList(element, itemName, add, remove) {
338
- var s = element.className || '';
339
- var list = s.split(/\s+/g);
340
- if (list[0] === '') {
341
- list.shift();
342
- }
343
- var index = list.indexOf(itemName);
344
- if (index < 0 && add) {
345
- list.push(itemName);
346
- }
347
- if (index >= 0 && remove) {
348
- list.splice(index, 1);
349
- }
350
- element.className = list.join(' ');
351
- return (index >= 0);
352
- }
353
-
354
- var classListPrototype = {
355
- add: function(name) {
356
- changeList(this.element, name, true, false);
357
- },
358
- contains: function(name) {
359
- return changeList(this.element, name, false, false);
360
- },
361
- remove: function(name) {
362
- changeList(this.element, name, false, true);
363
- },
364
- toggle: function(name) {
365
- changeList(this.element, name, true, true);
366
- }
367
- };
368
-
369
- Object.defineProperty(HTMLElement.prototype, 'classList', {
370
- get: function() {
371
- if (this._classList) {
372
- return this._classList;
373
- }
374
-
375
- var classList = Object.create(classListPrototype, {
376
- element: {
377
- value: this,
378
- writable: false,
379
- enumerable: true
380
- }
381
- });
382
- Object.defineProperty(this, '_classList', {
383
- value: classList,
384
- writable: false,
385
- enumerable: false
386
- });
387
- return classList;
388
- },
389
- enumerable: true
390
- });
391
- })();
392
-
393
- // Check console compatibility
394
- // In older IE versions the console object is not available
395
- // unless console is open.
396
- // Support: IE<10
397
- (function checkConsoleCompatibility() {
398
- if (!('console' in window)) {
399
- window.console = {
400
- log: function() {},
401
- error: function() {},
402
- warn: function() {}
403
- };
404
- } else if (!('bind' in console.log)) {
405
- // native functions in IE9 might not have bind
406
- console.log = (function(fn) {
407
- return function(msg) { return fn(msg); };
408
- })(console.log);
409
- console.error = (function(fn) {
410
- return function(msg) { return fn(msg); };
411
- })(console.error);
412
- console.warn = (function(fn) {
413
- return function(msg) { return fn(msg); };
414
- })(console.warn);
415
- }
416
- })();
417
-
418
- // Check onclick compatibility in Opera
419
- // Support: Opera<15
420
- (function checkOnClickCompatibility() {
421
- // workaround for reported Opera bug DSK-354448:
422
- // onclick fires on disabled buttons with opaque content
423
- function ignoreIfTargetDisabled(event) {
424
- if (isDisabled(event.target)) {
425
- event.stopPropagation();
426
- }
427
- }
428
- function isDisabled(node) {
429
- return node.disabled || (node.parentNode && isDisabled(node.parentNode));
430
- }
431
- if (navigator.userAgent.indexOf('Opera') !== -1) {
432
- // use browser detection since we cannot feature-check this bug
433
- document.addEventListener('click', ignoreIfTargetDisabled, true);
434
- }
435
- })();
436
-
437
- // Checks if possible to use URL.createObjectURL()
438
- // Support: IE
439
- (function checkOnBlobSupport() {
440
- // sometimes IE loosing the data created with createObjectURL(), see #3977
441
- if (navigator.userAgent.indexOf('Trident') >= 0) {
442
- PDFJS.disableCreateObjectURL = true;
443
- }
444
- })();
445
-
446
- // Checks if navigator.language is supported
447
- (function checkNavigatorLanguage() {
448
- if ('language' in navigator) {
449
- return;
450
- }
451
- PDFJS.locale = navigator.userLanguage || 'en-US';
452
- })();
453
-
454
- (function checkRangeRequests() {
455
- // Safari has issues with cached range requests see:
456
- // https://github.com/mozilla/pdf.js/issues/3260
457
- // Last tested with version 6.0.4.
458
- // Support: Safari 6.0+
459
- var isSafari = Object.prototype.toString.call(
460
- window.HTMLElement).indexOf('Constructor') > 0;
461
-
462
- // Older versions of Android (pre 3.0) has issues with range requests, see:
463
- // https://github.com/mozilla/pdf.js/issues/3381.
464
- // Make sure that we only match webkit-based Android browsers,
465
- // since Firefox/Fennec works as expected.
466
- // Support: Android<3.0
467
- var regex = /Android\s[0-2][^\d]/;
468
- var isOldAndroid = regex.test(navigator.userAgent);
469
-
470
- // Range requests are broken in Chrome 39 and 40, https://crbug.com/442318
471
- var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(navigator.userAgent);
472
-
473
- if (isSafari || isOldAndroid || isChromeWithRangeBug) {
474
- PDFJS.disableRange = true;
475
- PDFJS.disableStream = true;
476
- }
477
- })();
478
-
479
- // Check if the browser supports manipulation of the history.
480
- // Support: IE<10, Android<4.2
481
- (function checkHistoryManipulation() {
482
- // Android 2.x has so buggy pushState support that it was removed in
483
- // Android 3.0 and restored as late as in Android 4.2.
484
- // Support: Android 2.x
485
- if (!history.pushState || navigator.userAgent.indexOf('Android 2.') >= 0) {
486
- PDFJS.disableHistory = true;
487
- }
488
- })();
489
-
490
- // Support: IE<11, Chrome<21, Android<4.4, Safari<6
491
- (function checkSetPresenceInImageData() {
492
- // IE < 11 will use window.CanvasPixelArray which lacks set function.
493
- if (window.CanvasPixelArray) {
494
- if (typeof window.CanvasPixelArray.prototype.set !== 'function') {
495
- window.CanvasPixelArray.prototype.set = function(arr) {
496
- for (var i = 0, ii = this.length; i < ii; i++) {
497
- this[i] = arr[i];
498
- }
499
- };
500
- }
501
- } else {
502
- // Old Chrome and Android use an inaccessible CanvasPixelArray prototype.
503
- // Because we cannot feature detect it, we rely on user agent parsing.
504
- var polyfill = false, versionMatch;
505
- if (navigator.userAgent.indexOf('Chrom') >= 0) {
506
- versionMatch = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
507
- // Chrome < 21 lacks the set function.
508
- polyfill = versionMatch && parseInt(versionMatch[2]) < 21;
509
- } else if (navigator.userAgent.indexOf('Android') >= 0) {
510
- // Android < 4.4 lacks the set function.
511
- // Android >= 4.4 will contain Chrome in the user agent,
512
- // thus pass the Chrome check above and not reach this block.
513
- polyfill = /Android\s[0-4][^\d]/g.test(navigator.userAgent);
514
- } else if (navigator.userAgent.indexOf('Safari') >= 0) {
515
- versionMatch = navigator.userAgent.
516
- match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//);
517
- // Safari < 6 lacks the set function.
518
- polyfill = versionMatch && parseInt(versionMatch[1]) < 6;
519
- }
520
-
521
- if (polyfill) {
522
- var contextPrototype = window.CanvasRenderingContext2D.prototype;
523
- var createImageData = contextPrototype.createImageData;
524
- contextPrototype.createImageData = function(w, h) {
525
- var imageData = createImageData.call(this, w, h);
526
- imageData.data.set = function(arr) {
527
- for (var i = 0, ii = this.length; i < ii; i++) {
528
- this[i] = arr[i];
529
- }
530
- };
531
- return imageData;
532
- };
533
- // this closure will be kept referenced, so clear its vars
534
- contextPrototype = null;
535
- }
536
- }
537
- })();
538
-
539
- // Support: IE<10, Android<4.0, iOS
540
- (function checkRequestAnimationFrame() {
541
- function fakeRequestAnimationFrame(callback) {
542
- window.setTimeout(callback, 20);
543
- }
544
-
545
- var isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
546
- if (isIOS) {
547
- // requestAnimationFrame on iOS is broken, replacing with fake one.
548
- window.requestAnimationFrame = fakeRequestAnimationFrame;
549
- return;
550
- }
551
- if ('requestAnimationFrame' in window) {
552
- return;
553
- }
554
- window.requestAnimationFrame =
555
- window.mozRequestAnimationFrame ||
556
- window.webkitRequestAnimationFrame ||
557
- fakeRequestAnimationFrame;
558
- })();
559
-
560
- (function checkCanvasSizeLimitation() {
561
- var isIOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
562
- var isAndroid = /Android/g.test(navigator.userAgent);
563
- if (isIOS || isAndroid) {
564
- // 5MP
565
- PDFJS.maxCanvasPixels = 5242880;
566
- }
567
- })();
568
-
569
- // Disable fullscreen support for certain problematic configurations.
570
- // Support: IE11+ (when embedded).
571
- (function checkFullscreenSupport() {
572
- var isEmbeddedIE = (navigator.userAgent.indexOf('Trident') >= 0 &&
573
- window.parent !== window);
574
- if (isEmbeddedIE) {
575
- PDFJS.disableFullscreen = true;
576
- }
577
- })();
578
-
579
- // Provides document.currentScript support
580
- // Support: IE, Chrome<29.
581
- (function checkCurrentScript() {
582
- if ('currentScript' in document) {
583
- return;
584
- }
585
- Object.defineProperty(document, 'currentScript', {
586
- get: function () {
587
- var scripts = document.getElementsByTagName('script');
588
- return scripts[scripts.length - 1];
589
- },
590
- enumerable: true,
591
- configurable: true
592
- });
593
- })();