@pdftron/pdfjs-express 8.2.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/22.chunk.js +8 -0
- package/public/core/23.chunk.js +8 -0
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ContentEdit.chunk.js +29 -0
- package/public/core/ExternalAnnotationMerger.chunk.js +14 -13
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -13
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +16 -16
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +2 -2
- package/public/core/WebViewerServerPartRetriever.chunk.js +38 -31
- package/public/core/WinRTPartRetriever.chunk.js +3 -2
- package/public/core/external/Promise.js +4 -0
- package/public/core/external/pikaday.css +1 -1
- package/public/core/external/pikaday.override.css +105 -0
- package/public/core/external/webcomponents-bundle.js +370 -0
- package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
- package/public/core/pdfjs/PDFJSDocumentType.js +1401 -947
- package/public/core/pdfjs/pdf.worker.js +81 -77
- package/public/core/pdfjs/pikaday.chunk.js +41 -0
- package/public/core/pdfjs/vendors.pikaday.chunk.js +172 -0
- package/public/core/pikaday.chunk.js +34 -33
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.ascii85.quill.chunk.js +34 -34
- package/public/core/vendors.pako.chunk.js +80 -80
- package/public/core/vendors.quill.chunk.js +403 -403
- package/public/core/webviewer-core.min.js +2772 -2537
- package/public/ui/chunks/10.chunk.js +2 -1
- package/public/ui/chunks/10.chunk.js.map +1 -0
- package/public/ui/chunks/100.chunk.js +2 -1
- package/public/ui/chunks/100.chunk.js.map +1 -0
- package/public/ui/chunks/101.chunk.js +2 -1
- package/public/ui/chunks/101.chunk.js.map +1 -0
- package/public/ui/chunks/102.chunk.js +2 -1
- package/public/ui/chunks/102.chunk.js.map +1 -0
- package/public/ui/chunks/103.chunk.js +2 -1
- package/public/ui/chunks/103.chunk.js.map +1 -0
- package/public/ui/chunks/104.chunk.js +2 -1
- package/public/ui/chunks/104.chunk.js.map +1 -0
- package/public/ui/chunks/105.chunk.js +2 -1
- package/public/ui/chunks/105.chunk.js.map +1 -0
- package/public/ui/chunks/106.chunk.js +2 -1
- package/public/ui/chunks/106.chunk.js.map +1 -0
- package/public/ui/chunks/107.chunk.js +2 -1
- package/public/ui/chunks/107.chunk.js.map +1 -0
- package/public/ui/chunks/108.chunk.js +2 -1
- package/public/ui/chunks/108.chunk.js.map +1 -0
- package/public/ui/chunks/109.chunk.js +2 -1
- package/public/ui/chunks/109.chunk.js.map +1 -0
- package/public/ui/chunks/11.chunk.js +2 -1
- package/public/ui/chunks/11.chunk.js.map +1 -0
- package/public/ui/chunks/110.chunk.js +2 -1
- package/public/ui/chunks/110.chunk.js.map +1 -0
- package/public/ui/chunks/111.chunk.js +2 -1
- package/public/ui/chunks/111.chunk.js.map +1 -0
- package/public/ui/chunks/112.chunk.js +2 -1
- package/public/ui/chunks/112.chunk.js.map +1 -0
- package/public/ui/chunks/113.chunk.js +2 -1
- package/public/ui/chunks/113.chunk.js.map +1 -0
- package/public/ui/chunks/114.chunk.js +2 -1
- package/public/ui/chunks/114.chunk.js.map +1 -0
- package/public/ui/chunks/115.chunk.js +2 -1
- package/public/ui/chunks/115.chunk.js.map +1 -0
- package/public/ui/chunks/116.chunk.js +2 -1
- package/public/ui/chunks/116.chunk.js.map +1 -0
- package/public/ui/chunks/117.chunk.js +2 -1
- package/public/ui/chunks/117.chunk.js.map +1 -0
- package/public/ui/chunks/118.chunk.js +2 -1
- package/public/ui/chunks/118.chunk.js.map +1 -0
- package/public/ui/chunks/119.chunk.js +2 -1
- package/public/ui/chunks/119.chunk.js.map +1 -0
- package/public/ui/chunks/12.chunk.js +2 -1
- package/public/ui/chunks/12.chunk.js.map +1 -0
- package/public/ui/chunks/120.chunk.js +2 -1
- package/public/ui/chunks/120.chunk.js.map +1 -0
- package/public/ui/chunks/121.chunk.js +2 -1
- package/public/ui/chunks/121.chunk.js.map +1 -0
- package/public/ui/chunks/122.chunk.js +2 -1
- package/public/ui/chunks/122.chunk.js.map +1 -0
- package/public/ui/chunks/123.chunk.js +2 -1
- package/public/ui/chunks/123.chunk.js.map +1 -0
- package/public/ui/chunks/124.chunk.js +2 -1
- package/public/ui/chunks/124.chunk.js.map +1 -0
- package/public/ui/chunks/125.chunk.js +2 -1
- package/public/ui/chunks/125.chunk.js.map +1 -0
- package/public/ui/chunks/126.chunk.js +2 -1
- package/public/ui/chunks/126.chunk.js.map +1 -0
- package/public/ui/chunks/127.chunk.js +2 -1
- package/public/ui/chunks/127.chunk.js.map +1 -0
- package/public/ui/chunks/128.chunk.js +2 -1
- package/public/ui/chunks/128.chunk.js.map +1 -0
- package/public/ui/chunks/129.chunk.js +2 -1
- package/public/ui/chunks/129.chunk.js.map +1 -0
- package/public/ui/chunks/13.chunk.js +2 -1
- package/public/ui/chunks/13.chunk.js.map +1 -0
- package/public/ui/chunks/130.chunk.js +2 -1
- package/public/ui/chunks/130.chunk.js.map +1 -0
- package/public/ui/chunks/131.chunk.js +2 -1
- package/public/ui/chunks/131.chunk.js.map +1 -0
- package/public/ui/chunks/132.chunk.js +2 -1
- package/public/ui/chunks/132.chunk.js.map +1 -0
- package/public/ui/chunks/133.chunk.js +2 -1
- package/public/ui/chunks/133.chunk.js.map +1 -0
- package/public/ui/chunks/134.chunk.js +2 -1
- package/public/ui/chunks/134.chunk.js.map +1 -0
- package/public/ui/chunks/135.chunk.js +2 -1
- package/public/ui/chunks/135.chunk.js.map +1 -0
- package/public/ui/chunks/136.chunk.js +2 -1
- package/public/ui/chunks/136.chunk.js.map +1 -0
- package/public/ui/chunks/137.chunk.js +2 -1
- package/public/ui/chunks/137.chunk.js.map +1 -0
- package/public/ui/chunks/138.chunk.js +2 -1
- package/public/ui/chunks/138.chunk.js.map +1 -0
- package/public/ui/chunks/139.chunk.js +2 -1
- package/public/ui/chunks/139.chunk.js.map +1 -0
- package/public/ui/chunks/14.chunk.js +2 -1
- package/public/ui/chunks/14.chunk.js.map +1 -0
- package/public/ui/chunks/140.chunk.js +2 -1
- package/public/ui/chunks/140.chunk.js.map +1 -0
- package/public/ui/chunks/141.chunk.js +2 -1
- package/public/ui/chunks/141.chunk.js.map +1 -0
- package/public/ui/chunks/142.chunk.js +2 -1
- package/public/ui/chunks/142.chunk.js.map +1 -0
- package/public/ui/chunks/143.chunk.js +2 -1
- package/public/ui/chunks/143.chunk.js.map +1 -0
- package/public/ui/chunks/144.chunk.js +2 -1
- package/public/ui/chunks/144.chunk.js.map +1 -0
- package/public/ui/chunks/145.chunk.js +2 -1
- package/public/ui/chunks/145.chunk.js.map +1 -0
- package/public/ui/chunks/15.chunk.js +2 -1
- package/public/ui/chunks/15.chunk.js.map +1 -0
- package/public/ui/chunks/16.chunk.js +2 -1
- package/public/ui/chunks/16.chunk.js.map +1 -0
- package/public/ui/chunks/17.chunk.js +2 -1
- package/public/ui/chunks/17.chunk.js.map +1 -0
- package/public/ui/chunks/18.chunk.js +2 -1
- package/public/ui/chunks/18.chunk.js.map +1 -0
- package/public/ui/chunks/19.chunk.js +2 -1
- package/public/ui/chunks/19.chunk.js.map +1 -0
- package/public/ui/chunks/2.chunk.js +2 -0
- package/public/ui/chunks/2.chunk.js.map +1 -0
- package/public/ui/chunks/20.chunk.js +2 -1
- package/public/ui/chunks/20.chunk.js.map +1 -0
- package/public/ui/chunks/21.chunk.js +2 -1
- package/public/ui/chunks/21.chunk.js.map +1 -0
- package/public/ui/chunks/22.chunk.js +2 -1
- package/public/ui/chunks/22.chunk.js.map +1 -0
- package/public/ui/chunks/23.chunk.js +2 -1
- package/public/ui/chunks/23.chunk.js.map +1 -0
- package/public/ui/chunks/24.chunk.js +2 -1
- package/public/ui/chunks/24.chunk.js.map +1 -0
- package/public/ui/chunks/25.chunk.js +2 -1
- package/public/ui/chunks/25.chunk.js.map +1 -0
- package/public/ui/chunks/26.chunk.js +2 -1
- package/public/ui/chunks/26.chunk.js.map +1 -0
- package/public/ui/chunks/27.chunk.js +2 -1
- package/public/ui/chunks/27.chunk.js.map +1 -0
- package/public/ui/chunks/28.chunk.js +2 -1
- package/public/ui/chunks/28.chunk.js.map +1 -0
- package/public/ui/chunks/29.chunk.js +2 -1
- package/public/ui/chunks/29.chunk.js.map +1 -0
- package/public/ui/chunks/3.chunk.js +2 -0
- package/public/ui/chunks/3.chunk.js.map +1 -0
- package/public/ui/chunks/30.chunk.js +2 -1
- package/public/ui/chunks/30.chunk.js.map +1 -0
- package/public/ui/chunks/31.chunk.js +2 -1
- package/public/ui/chunks/31.chunk.js.map +1 -0
- package/public/ui/chunks/32.chunk.js +2 -1
- package/public/ui/chunks/32.chunk.js.map +1 -0
- package/public/ui/chunks/33.chunk.js +2 -1
- package/public/ui/chunks/33.chunk.js.map +1 -0
- package/public/ui/chunks/34.chunk.js +2 -1
- package/public/ui/chunks/34.chunk.js.map +1 -0
- package/public/ui/chunks/35.chunk.js +2 -1
- package/public/ui/chunks/35.chunk.js.map +1 -0
- package/public/ui/chunks/36.chunk.js +2 -1
- package/public/ui/chunks/36.chunk.js.map +1 -0
- package/public/ui/chunks/37.chunk.js +2 -1
- package/public/ui/chunks/37.chunk.js.map +1 -0
- package/public/ui/chunks/38.chunk.js +2 -1
- package/public/ui/chunks/38.chunk.js.map +1 -0
- package/public/ui/chunks/39.chunk.js +2 -1
- package/public/ui/chunks/39.chunk.js.map +1 -0
- package/public/ui/chunks/4.chunk.js +2 -1
- package/public/ui/chunks/4.chunk.js.map +1 -0
- package/public/ui/chunks/40.chunk.js +2 -1
- package/public/ui/chunks/40.chunk.js.map +1 -0
- package/public/ui/chunks/41.chunk.js +2 -1
- package/public/ui/chunks/41.chunk.js.map +1 -0
- package/public/ui/chunks/42.chunk.js +2 -1
- package/public/ui/chunks/42.chunk.js.map +1 -0
- package/public/ui/chunks/43.chunk.js +2 -1
- package/public/ui/chunks/43.chunk.js.map +1 -0
- package/public/ui/chunks/44.chunk.js +2 -1
- package/public/ui/chunks/44.chunk.js.map +1 -0
- package/public/ui/chunks/45.chunk.js +2 -1
- package/public/ui/chunks/45.chunk.js.map +1 -0
- package/public/ui/chunks/46.chunk.js +2 -1
- package/public/ui/chunks/46.chunk.js.map +1 -0
- package/public/ui/chunks/47.chunk.js +2 -1
- package/public/ui/chunks/47.chunk.js.map +1 -0
- package/public/ui/chunks/48.chunk.js +2 -1
- package/public/ui/chunks/48.chunk.js.map +1 -0
- package/public/ui/chunks/49.chunk.js +2 -1
- package/public/ui/chunks/49.chunk.js.map +1 -0
- package/public/ui/chunks/5.chunk.js +2 -1
- package/public/ui/chunks/5.chunk.js.map +1 -0
- package/public/ui/chunks/50.chunk.js +2 -1
- package/public/ui/chunks/50.chunk.js.map +1 -0
- package/public/ui/chunks/51.chunk.js +2 -1
- package/public/ui/chunks/51.chunk.js.map +1 -0
- package/public/ui/chunks/52.chunk.js +2 -1
- package/public/ui/chunks/52.chunk.js.map +1 -0
- package/public/ui/chunks/53.chunk.js +2 -1
- package/public/ui/chunks/53.chunk.js.map +1 -0
- package/public/ui/chunks/54.chunk.js +2 -1
- package/public/ui/chunks/54.chunk.js.map +1 -0
- package/public/ui/chunks/55.chunk.js +2 -1
- package/public/ui/chunks/55.chunk.js.map +1 -0
- package/public/ui/chunks/56.chunk.js +2 -1
- package/public/ui/chunks/56.chunk.js.map +1 -0
- package/public/ui/chunks/57.chunk.js +2 -1
- package/public/ui/chunks/57.chunk.js.map +1 -0
- package/public/ui/chunks/58.chunk.js +2 -1
- package/public/ui/chunks/58.chunk.js.map +1 -0
- package/public/ui/chunks/59.chunk.js +2 -1
- package/public/ui/chunks/59.chunk.js.map +1 -0
- package/public/ui/chunks/6.chunk.js +2 -1
- package/public/ui/chunks/6.chunk.js.map +1 -0
- package/public/ui/chunks/60.chunk.js +2 -1
- package/public/ui/chunks/60.chunk.js.map +1 -0
- package/public/ui/chunks/61.chunk.js +2 -1
- package/public/ui/chunks/61.chunk.js.map +1 -0
- package/public/ui/chunks/62.chunk.js +2 -1
- package/public/ui/chunks/62.chunk.js.map +1 -0
- package/public/ui/chunks/63.chunk.js +2 -1
- package/public/ui/chunks/63.chunk.js.map +1 -0
- package/public/ui/chunks/64.chunk.js +2 -1
- package/public/ui/chunks/64.chunk.js.map +1 -0
- package/public/ui/chunks/65.chunk.js +2 -1
- package/public/ui/chunks/65.chunk.js.map +1 -0
- package/public/ui/chunks/66.chunk.js +2 -1
- package/public/ui/chunks/66.chunk.js.map +1 -0
- package/public/ui/chunks/67.chunk.js +2 -1
- package/public/ui/chunks/67.chunk.js.map +1 -0
- package/public/ui/chunks/68.chunk.js +2 -1
- package/public/ui/chunks/68.chunk.js.map +1 -0
- package/public/ui/chunks/69.chunk.js +2 -1
- package/public/ui/chunks/69.chunk.js.map +1 -0
- package/public/ui/chunks/7.chunk.js +2 -1
- package/public/ui/chunks/7.chunk.js.map +1 -0
- package/public/ui/chunks/70.chunk.js +2 -1
- package/public/ui/chunks/70.chunk.js.map +1 -0
- package/public/ui/chunks/71.chunk.js +2 -1
- package/public/ui/chunks/71.chunk.js.map +1 -0
- package/public/ui/chunks/72.chunk.js +2 -1
- package/public/ui/chunks/72.chunk.js.map +1 -0
- package/public/ui/chunks/73.chunk.js +2 -1
- package/public/ui/chunks/73.chunk.js.map +1 -0
- package/public/ui/chunks/74.chunk.js +2 -1
- package/public/ui/chunks/74.chunk.js.map +1 -0
- package/public/ui/chunks/75.chunk.js +2 -1
- package/public/ui/chunks/75.chunk.js.map +1 -0
- package/public/ui/chunks/76.chunk.js +2 -1
- package/public/ui/chunks/76.chunk.js.map +1 -0
- package/public/ui/chunks/77.chunk.js +2 -1
- package/public/ui/chunks/77.chunk.js.map +1 -0
- package/public/ui/chunks/78.chunk.js +2 -1
- package/public/ui/chunks/78.chunk.js.map +1 -0
- package/public/ui/chunks/79.chunk.js +2 -1
- package/public/ui/chunks/79.chunk.js.map +1 -0
- package/public/ui/chunks/8.chunk.js +2 -1
- package/public/ui/chunks/8.chunk.js.map +1 -0
- package/public/ui/chunks/80.chunk.js +2 -1
- package/public/ui/chunks/80.chunk.js.map +1 -0
- package/public/ui/chunks/81.chunk.js +2 -1
- package/public/ui/chunks/81.chunk.js.map +1 -0
- package/public/ui/chunks/82.chunk.js +2 -1
- package/public/ui/chunks/82.chunk.js.map +1 -0
- package/public/ui/chunks/83.chunk.js +2 -1
- package/public/ui/chunks/83.chunk.js.map +1 -0
- package/public/ui/chunks/84.chunk.js +2 -1
- package/public/ui/chunks/84.chunk.js.map +1 -0
- package/public/ui/chunks/85.chunk.js +2 -1
- package/public/ui/chunks/85.chunk.js.map +1 -0
- package/public/ui/chunks/86.chunk.js +2 -1
- package/public/ui/chunks/86.chunk.js.map +1 -0
- package/public/ui/chunks/87.chunk.js +2 -1
- package/public/ui/chunks/87.chunk.js.map +1 -0
- package/public/ui/chunks/88.chunk.js +2 -1
- package/public/ui/chunks/88.chunk.js.map +1 -0
- package/public/ui/chunks/89.chunk.js +2 -1
- package/public/ui/chunks/89.chunk.js.map +1 -0
- package/public/ui/chunks/9.chunk.js +2 -1
- package/public/ui/chunks/9.chunk.js.map +1 -0
- package/public/ui/chunks/90.chunk.js +2 -1
- package/public/ui/chunks/90.chunk.js.map +1 -0
- package/public/ui/chunks/91.chunk.js +2 -1
- package/public/ui/chunks/91.chunk.js.map +1 -0
- package/public/ui/chunks/92.chunk.js +2 -1
- package/public/ui/chunks/92.chunk.js.map +1 -0
- package/public/ui/chunks/93.chunk.js +2 -1
- package/public/ui/chunks/93.chunk.js.map +1 -0
- package/public/ui/chunks/94.chunk.js +2 -1
- package/public/ui/chunks/94.chunk.js.map +1 -0
- package/public/ui/chunks/95.chunk.js +2 -1
- package/public/ui/chunks/95.chunk.js.map +1 -0
- package/public/ui/chunks/96.chunk.js +2 -1
- package/public/ui/chunks/96.chunk.js.map +1 -0
- package/public/ui/chunks/97.chunk.js +2 -1
- package/public/ui/chunks/97.chunk.js.map +1 -0
- package/public/ui/chunks/98.chunk.js +2 -1
- package/public/ui/chunks/98.chunk.js.map +1 -0
- package/public/ui/chunks/99.chunk.js +2 -1
- package/public/ui/chunks/99.chunk.js.map +1 -0
- package/public/ui/chunks/vendors.html2canvas.chunk.js +2 -1
- package/public/ui/chunks/vendors.html2canvas.chunk.js.map +1 -0
- package/public/ui/i18n/translation-bn.json +833 -0
- package/public/ui/i18n/translation-de.json +118 -21
- package/public/ui/i18n/translation-el.json +833 -0
- package/public/ui/i18n/translation-en.json +136 -25
- package/public/ui/i18n/translation-es.json +115 -18
- package/public/ui/i18n/translation-fr.json +216 -119
- package/public/ui/i18n/translation-hi.json +833 -0
- package/public/ui/i18n/translation-id.json +833 -0
- package/public/ui/i18n/translation-it.json +116 -19
- package/public/ui/i18n/translation-ja.json +217 -120
- package/public/ui/i18n/translation-ko.json +250 -148
- package/public/ui/i18n/translation-ms.json +833 -0
- package/public/ui/i18n/translation-nl.json +131 -34
- package/public/ui/i18n/translation-pt_br.json +118 -21
- package/public/ui/i18n/translation-ru.json +116 -19
- package/public/ui/i18n/translation-tr.json +833 -0
- package/public/ui/i18n/translation-uk.json +833 -0
- package/public/ui/i18n/translation-vi.json +833 -0
- package/public/ui/i18n/translation-zh_cn.json +118 -21
- package/public/ui/i18n/translation-zh_tw.json +115 -18
- package/public/ui/style.css +130 -104
- package/public/ui/style.css.map +1 -0
- package/public/ui/webviewer-ui.min.js +38 -16
- package/public/ui/webviewer-ui.min.js.map +1 -0
- package/webviewer.min.js +1 -1
- package/public/core/21.chunk.js +0 -8
- package/public/ui/chunks/mention.chunk.css +0 -1
- package/public/ui/chunks/mention.chunk.js +0 -1
- package/public/ui/chunks/vendors.mention.chunk.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@author Feross Aboukhadijeh <http://feross.org>
|
|
5
5
|
@license MIT
|
|
6
|
-
|
|
6
|
+
*/
|
|
7
7
|
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(array){var index=0;return function(){return index<array.length?{done:!1,value:array[index++]}:{done:!0}}};$jscomp.arrayIterator=function(array){return{next:$jscomp.arrayIteratorImpl(array)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;
|
|
8
8
|
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(target,property,descriptor){if(target==Array.prototype||target==Object.prototype)return target;target[property]=descriptor.value;return target};
|
|
9
9
|
$jscomp.getGlobal=function(passedInThis){passedInThis=["object"==typeof globalThis&&globalThis,passedInThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<passedInThis.length;++i){var maybeGlobal=passedInThis[i];if(maybeGlobal&&maybeGlobal.Math==Math)return maybeGlobal}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
|
|
@@ -59,7 +59,10 @@ entry[1])}};PolyfillMap.prototype.set=function(key,value){key=0===key?0:key;var
|
|
|
59
59
|
delete this.data_[key.id],key.entry.previous.next=key.entry.next,key.entry.next.previous=key.entry.previous,key.entry.head=null,this.size--,!0):!1};PolyfillMap.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=createHead();this.size=0};PolyfillMap.prototype.has=function(key){return!!maybeGetEntry(this,key).entry};PolyfillMap.prototype.get=function(key){return(key=maybeGetEntry(this,key).entry)&&key.value};PolyfillMap.prototype.entries=function(){return makeIterator(this,function(entry){return[entry.key,
|
|
60
60
|
entry.value]})};PolyfillMap.prototype.keys=function(){return makeIterator(this,function(entry){return entry.key})};PolyfillMap.prototype.values=function(){return makeIterator(this,function(entry){return entry.value})};PolyfillMap.prototype.forEach=function(callback,opt_thisArg){for(var iter=this.entries(),item;!(item=iter.next()).done;)item=item.value,callback.call(opt_thisArg,item[1],item[0],this)};PolyfillMap.prototype[Symbol.iterator]=PolyfillMap.prototype.entries;var maybeGetEntry=function(map,
|
|
61
61
|
key){var id=key&&typeof key;"object"==id||"function"==id?idMap.has(key)?id=idMap.get(key):(id=""+ ++mapIndex,idMap.set(key,id)):id="p_"+key;var list=map.data_[id];if(list&&$jscomp.owns(map.data_,id))for(map=0;map<list.length;map++){var entry=list[map];if(key!==key&&entry.key!==entry.key||key===entry.key)return{id:id,list:list,index:map,entry:entry}}return{id:id,list:list,index:-1,entry:void 0}},makeIterator=function(map,func){var entry=map.head_;return $jscomp.iteratorPrototype(function(){if(entry){for(;entry.head!=
|
|
62
|
-
map.head_;)entry=entry.previous;for(;entry.next!=entry.head;)return entry=entry.next,{done:!1,value:func(entry)};entry=null}return{done:!0,value:void 0}})},createHead=function(){var head={};return head.previous=head.next=head.head=head},mapIndex=0;return PolyfillMap},"es6","es3");
|
|
62
|
+
map.head_;)entry=entry.previous;for(;entry.next!=entry.head;)return entry=entry.next,{done:!1,value:func(entry)};entry=null}return{done:!0,value:void 0}})},createHead=function(){var head={};return head.previous=head.next=head.head=head},mapIndex=0;return PolyfillMap},"es6","es3");$jscomp.atMethod=function(index){index=Math.trunc(index)||0;0>index&&(index+=this.length);if(!(0>index||index>=this.length))return this[index]};
|
|
63
|
+
$jscomp.polyfill("Array.prototype.at",function(orig){return orig?orig:$jscomp.atMethod},"es_next","es5");$jscomp.typedArrayAt=function(orig){return orig?orig:$jscomp.atMethod};$jscomp.polyfill("Int8Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint8Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Int16Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");
|
|
64
|
+
$jscomp.polyfill("Uint16Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Int32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Float32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Float64Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");
|
|
65
|
+
$jscomp.polyfill("String.prototype.at",function(orig){return orig?orig:$jscomp.atMethod},"es_next","es5");
|
|
63
66
|
$jscomp.polyfill("Array.prototype.fill",function(orig){return orig?orig:function(value,opt_start,opt_end){var length=this.length||0;0>opt_start&&(opt_start=Math.max(0,length+opt_start));if(null==opt_end||opt_end>length)opt_end=length;opt_end=Number(opt_end);0>opt_end&&(opt_end=Math.max(0,length+opt_end));for(opt_start=Number(opt_start||0);opt_start<opt_end;opt_start++)this[opt_start]=value;return this}},"es6","es3");$jscomp.typedArrayFill=function(orig){return orig?orig:Array.prototype.fill};
|
|
64
67
|
$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
|
|
65
68
|
$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Object.values",function(orig){return orig?orig:function(obj){var result=[],key;for(key in obj)$jscomp.owns(obj,key)&&result.push(obj[key]);return result}},"es8","es3");
|
|
@@ -68,7 +71,7 @@ $jscomp.polyfill("String.prototype.codePointAt",function(orig){return orig?orig:
|
|
|
68
71
|
name,{enumerable:!0,get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",
|
|
69
72
|
{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};
|
|
70
73
|
__webpack_require__.p="/core/pdfjs/";return __webpack_require__(__webpack_require__.s=1)})([function(module,exports){exports=function(){return this}();try{exports=exports||(new Function("return this"))()}catch(e){"object"===typeof window&&(exports=window)}module.exports=exports},function(module,exports,__webpack_require__){module.exports=__webpack_require__(2)},function(module$jscomp$2,exports$jscomp$1,__webpack_require__){(function(Buffer,global$jscomp$0,process,module$jscomp$1){function _typeof2(obj$jscomp$0){"@babel/helpers - typeof";
|
|
71
|
-
_typeof2="function"
|
|
74
|
+
return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof2(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){"object"===_typeof2(exports$jscomp$1)&&"object"===_typeof2(module$jscomp$1)?module$jscomp$1.exports=factory():!(__WEBPACK_AMD_DEFINE_ARRAY__=
|
|
72
75
|
[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports$jscomp$1,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$1.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this,function(){return function(modules){function __w_pdfjs_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]=
|
|
73
76
|
{i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__w_pdfjs_require__);module.l=!0;return module.exports}var installedModules={};__w_pdfjs_require__.m=modules;__w_pdfjs_require__.c=installedModules;__w_pdfjs_require__.d=function(exports,name,getter){__w_pdfjs_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})};__w_pdfjs_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,
|
|
74
77
|
Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__w_pdfjs_require__.t=function(value,mode){mode&1&&(value=__w_pdfjs_require__(value));if(mode&8||mode&4&&"object"===_typeof2(value)&&value&&value.__esModule)return value;var ns=Object.create(null);__w_pdfjs_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__w_pdfjs_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,
|
|
@@ -88,7 +91,7 @@ pdfManager?pdfManager.sendProgressiveData(data):cachedChunks.push(data);fullRequ
|
|
|
88
91
|
new WorkerTask("PasswordException: response ".concat(ex.code));WorkerTasks.push(task);handler.sendWithPromise("PasswordRequest",ex).then(function(data){finishWorkerTask(task);pdfManager.updatePassword(data.password);pdfManagerReady()})["catch"](function(){finishWorkerTask(task);handler.send("DocException",ex)})}else ex instanceof _util.InvalidPDFException||ex instanceof _util.MissingPDFException||ex instanceof _util.UnexpectedResponseException||ex instanceof _util.UnknownErrorException?handler.send("DocException",
|
|
89
92
|
ex):handler.send("DocException",new _util.UnknownErrorException(ex.message,ex.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,function(ex){ensureNotTerminated();ex instanceof _core_utils.XRefParseException?(pdfManager.requestLoadedStream(),pdfManager.onLoadedStream().then(function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(ex)},onFailure)}ensureNotTerminated();getPdfManager(data$jscomp$0,{forceDataSchema:data$jscomp$0.disableCreateObjectURL,
|
|
90
93
|
maxImageSize:data$jscomp$0.maxImageSize,disableFontFace:data$jscomp$0.disableFontFace,nativeImageDecoderSupport:data$jscomp$0.nativeImageDecoderSupport,ignoreErrors:data$jscomp$0.ignoreErrors,isEvalSupported:data$jscomp$0.isEvalSupported}).then(function(newPdfManager){if(terminated)throw newPdfManager.terminate(new _util.AbortException("Worker was terminated.")),Error("Worker was terminated");pdfManager=newPdfManager;pdfManager.onLoadedStream().then(function(stream){handler.send("DataLoaded",{length:stream.bytes.byteLength})})}).then(pdfManagerReady,
|
|
91
|
-
onFailure)}var pdfManager,terminated=!1,cancelXHRs=null,WorkerTasks=[],verbosity=(0,_util.getVerbosityLevel)(),apiVersion=docParams.apiVersion;if("2.4.
|
|
94
|
+
onFailure)}var pdfManager,terminated=!1,cancelXHRs=null,WorkerTasks=[],verbosity=(0,_util.getVerbosityLevel)(),apiVersion=docParams.apiVersion;if("2.4.283"!==apiVersion)throw Error('The API version "'.concat(apiVersion,'" does not match ')+'the Worker version "'.concat("2.4.283",'".'));var docId=docParams.docId,docBaseUrl=docParams.docBaseUrl;apiVersion=docParams.docId+"_worker";var disableFlattenedAnnotations=docParams.disableFlattenedAnnotations,renderFormFields=docParams.renderFormFields;"undefined"!==
|
|
92
95
|
typeof self&&(self.disableFlattenedAnnotations=disableFlattenedAnnotations,self.renderFormFields=renderFormFields);"undefined"!==typeof window&&(window.disableFlattenedAnnotations=disableFlattenedAnnotations,window.renderFormFields=renderFormFields);var handler=new _message_handler.MessageHandler(apiVersion,docId,port);handler.postMessageTransfers=docParams.postMessageTransfers;handler.on("GetPage",function(data){return pdfManager.getPage(data.pageIndex).then(function(page){return Promise.all([pdfManager.ensure(page,
|
|
93
96
|
"rotate"),pdfManager.ensure(page,"ref"),pdfManager.ensure(page,"userUnit"),pdfManager.ensure(page,"view")]).then(function(_ref){_ref=_slicedToArray(_ref,4);return{rotate:_ref[0],ref:_ref[1],userUnit:_ref[2],view:_ref[3]}})})});handler.on("GetPageIndex",function(data){data=_primitives.Ref.get(data.ref.num,data.ref.gen);return pdfManager.pdfDocument.catalog.getPageIndex(data)});handler.on("GetDestinations",function(data){return pdfManager.ensureCatalog("destinations")});handler.on("GetDestination",
|
|
94
97
|
function(data){return pdfManager.ensureCatalog("getDestination",[data.id])});handler.on("GetPageLabels",function(data){return pdfManager.ensureCatalog("pageLabels")});handler.on("GetPageLayout",function(data){return pdfManager.ensureCatalog("pageLayout")});handler.on("GetPageMode",function(data){return pdfManager.ensureCatalog("pageMode")});handler.on("GetViewerPreferences",function(data){return pdfManager.ensureCatalog("viewerPreferences")});handler.on("GetOpenActionDestination",function(data){return pdfManager.ensureCatalog("openActionDestination")});
|
|
@@ -289,25 +292,25 @@ result="";input=arrayFrom(input);for(index=0;index<input.length;index++)result+=
|
|
|
289
292
|
0;swaps();){length=null;if(0<value)if("."==swaps()&&4>value)pointer++;else return;if(!DIGIT.test(swaps()))return;for(;DIGIT.test(swaps());){var number=parseInt(swaps(),10);if(null===length)length=number;else{if(0==length)return;length=10*length+number}if(255<length)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+length;value++;2!=value&&4!=value||pieceIndex++}if(4!=value)return;break}else if(":"==swaps()){if(pointer++,!swaps())return}else if(swaps())return;address[pieceIndex++]=value}}if(null!==
|
|
290
293
|
compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!=pieceIndex&&0<swaps;)value=address[pieceIndex],address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=value;else if(8!=pieceIndex)return;return address},serializeHost=function(host){var index,ignore0;if("number"==typeof host){var result=[];for(index=0;4>index;index++)result.unshift(host%256),host=floor(host/256);return result.join(".")}if("object"==_typeof2(host)){result="";index=null;var compress=1;for(var currStart=null,currLength=
|
|
291
294
|
0,index$jscomp$0=0;8>index$jscomp$0;index$jscomp$0++)0!==host[index$jscomp$0]?(currLength>compress&&(index=currStart,compress=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index$jscomp$0),++currLength);currLength>compress&&(index=currStart);compress=index;for(index=0;8>index;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=host[index].toString(16),7>index&&(result+=":")));return"["+result+"]"}return host},
|
|
292
|
-
C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(
|
|
295
|
+
C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(_char2,set){var code=codeAt(_char2,0);return 32<code&&127>code&&!has(set,_char2)?_char2:encodeURIComponent(_char2)},specialSchemes={ftp:21,file:null,http:80,
|
|
293
296
|
https:443,ws:80,wss:443},isSpecial=function(url){return has(specialSchemes,url.scheme)},cannotHaveUsernamePasswordPort=function(url){return!url.host||url.cannotBeABaseURL||"file"==url.scheme},isWindowsDriveLetter=function(string,normalized){var second;return 2==string.length&&ALPHA.test(string.charAt(0))&&(":"==(second=string.charAt(1))||!normalized&&"|"==second)},startsWithWindowsDriveLetter=function(string){var third;return 1<string.length&&isWindowsDriveLetter(string.slice(0,2))&&(2==string.length||
|
|
294
297
|
"/"===(third=string.charAt(2))||"\\"===third||"?"===third||"#"===third)},shortenURLsPath=function(url){var path=url.path,pathSize=path.length;!pathSize||"file"==url.scheme&&1==pathSize&&isWindowsDriveLetter(path[0],!0)||path.pop()},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START=
|
|
295
298
|
{},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(url,input,stateOverride,base){var state=stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,""));input=input.replace(TAB_AND_NEW_LINE,"");for(input=arrayFrom(input);pointer<=
|
|
296
|
-
input.length;){var
|
|
299
|
+
input.length;){var _char3=input[pointer];switch(state){case SCHEME_START:if(_char3&&ALPHA.test(_char3))buffer+=_char3.toLowerCase(),state=SCHEME;else{if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}break;case SCHEME:if(_char3&&(ALPHANUMERIC.test(_char3)||"+"==_char3||"-"==_char3||"."==_char3))buffer+=_char3.toLowerCase();else if(":"==_char3){if(stateOverride&&(isSpecial(url)!=has(specialSchemes,buffer)||"file"==buffer&&(""!=url.username||""!=url.password||null!==url.port)||"file"==
|
|
297
300
|
url.scheme&&!url.host))return;url.scheme=buffer;if(stateOverride){isSpecial(url)&&specialSchemes[url.scheme]==url.port&&(url.port=null);return}buffer="";"file"==url.scheme?state=FILE:isSpecial(url)&&base&&base.scheme==url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(url)?state=SPECIAL_AUTHORITY_SLASHES:"/"==input[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,url.path.push(""),state=CANNOT_BE_A_BASE_URL_PATH)}else{if(stateOverride)return"Invalid scheme";buffer="";
|
|
298
|
-
state=NO_SCHEME;pointer=0;continue}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=
|
|
299
|
-
case PATH_OR_AUTHORITY:if("/"==
|
|
300
|
-
"",state=QUERY;else if("#"==
|
|
301
|
-
base.password;url.host=base.host;url.port=base.port;state=PATH;continue}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:state=SPECIAL_AUTHORITY_IGNORE_SLASHES;if("/"!=
|
|
302
|
-
buffer[
|
|
303
|
-
continue}else if(":"!=
|
|
304
|
-
parseHost(url,buffer))return state;buffer="";state=PORT;if(stateOverride==HOSTNAME)return}break;case PORT:if(DIGIT.test(
|
|
305
|
-
"file";if("/"==
|
|
306
|
-
state=PATH;continue}else{state=PATH;continue}break;case FILE_SLASH:if("/"==
|
|
307
|
-
parseHost(url,buffer))return state;"localhost"==url.host&&(url.host="");if(stateOverride)return;buffer=""}state=PATH_START}continue}else buffer+=
|
|
308
|
-
!stateOverride&&("?"==
|
|
309
|
-
buffer="";if("file"==url.scheme&&(void 0==
|
|
310
|
-
"#"!=
|
|
301
|
+
state=NO_SCHEME;pointer=0;continue}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=_char3)return"Invalid scheme";if(base.cannotBeABaseURL&&"#"==_char3){url.scheme=base.scheme;url.path=base.path.slice();url.query=base.query;url.fragment="";url.cannotBeABaseURL=!0;state=FRAGMENT;break}state="file"==base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"==_char3&&"/"==input[pointer+1])state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;else{state=RELATIVE;continue}break;
|
|
302
|
+
case PATH_OR_AUTHORITY:if("/"==_char3){state=AUTHORITY;break}else{state=PATH;continue}case RELATIVE:url.scheme=base.scheme;if(void 0==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query;else if("/"==_char3||"\\"==_char3&&isSpecial(url))state=RELATIVE_SLASH;else if("?"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=
|
|
303
|
+
"",state=QUERY;else if("#"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;url.path=base.path.slice();url.path.pop();state=PATH;continue}break;case RELATIVE_SLASH:if(!isSpecial(url)||"/"!=_char3&&"\\"!=_char3)if("/"==_char3)state=AUTHORITY;else{url.username=base.username;url.password=
|
|
304
|
+
base.password;url.host=base.host;url.port=base.port;state=PATH;continue}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:state=SPECIAL_AUTHORITY_IGNORE_SLASHES;if("/"!=_char3||"/"!=buffer.charAt(pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=_char3&&"\\"!=_char3){state=AUTHORITY;continue}break;case AUTHORITY:if("@"==_char3){seenAt&&(buffer="%40"+buffer);seenAt=!0;buffer=arrayFrom(buffer);for(_char3=0;_char3<buffer.length;_char3++){var codePoint=
|
|
305
|
+
buffer[_char3];":"!=codePoint||seenPasswordToken?(codePoint=percentEncode(codePoint,userinfoPercentEncodeSet),seenPasswordToken?url.password+=codePoint:url.username+=codePoint):seenPasswordToken=!0}buffer=""}else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(seenAt&&""==buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1;buffer="";state=HOST}else buffer+=_char3;break;case HOST:case HOSTNAME:if(stateOverride&&"file"==url.scheme){state=FILE_HOST;
|
|
306
|
+
continue}else if(":"!=_char3||seenBracket)if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(isSpecial(url)&&""==buffer)return"Invalid host";if(stateOverride&&""==buffer&&(""!=url.username||""!=url.password||null!==url.port))return;if(state=parseHost(url,buffer))return state;buffer="";state=PATH_START;if(stateOverride)return;continue}else"["==_char3?seenBracket=!0:"]"==_char3&&(seenBracket=!1),buffer+=_char3;else{if(""==buffer)return"Invalid host";if(state=
|
|
307
|
+
parseHost(url,buffer))return state;buffer="";state=PORT;if(stateOverride==HOSTNAME)return}break;case PORT:if(DIGIT.test(_char3))buffer+=_char3;else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)||stateOverride){if(""!=buffer){state=parseInt(buffer,10);if(65535<state)return"Invalid port";url.port=isSpecial(url)&&state===specialSchemes[url.scheme]?null:state;buffer=""}if(stateOverride)return;state=PATH_START;continue}else return"Invalid port";break;case FILE:url.scheme=
|
|
308
|
+
"file";if("/"==_char3||"\\"==_char3)state=FILE_SLASH;else if(base&&"file"==base.scheme)if(void 0==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query;else if("?"==_char3)url.host=base.host,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{startsWithWindowsDriveLetter(input.slice(pointer).join(""))||(url.host=base.host,url.path=base.path.slice(),shortenURLsPath(url));
|
|
309
|
+
state=PATH;continue}else{state=PATH;continue}break;case FILE_SLASH:if("/"==_char3||"\\"==_char3){state=FILE_HOST;break}base&&"file"==base.scheme&&!startsWithWindowsDriveLetter(input.slice(pointer).join(""))&&(isWindowsDriveLetter(base.path[0],!0)?url.path.push(base.path[0]):url.host=base.host);state=PATH;continue;case FILE_HOST:if(void 0==_char3||"/"==_char3||"\\"==_char3||"?"==_char3||"#"==_char3){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else{if(""==buffer){if(url.host="",stateOverride)return}else{if(state=
|
|
310
|
+
parseHost(url,buffer))return state;"localhost"==url.host&&(url.host="");if(stateOverride)return;buffer=""}state=PATH_START}continue}else buffer+=_char3;break;case PATH_START:if(isSpecial(url)){if(state=PATH,"/"!=_char3&&"\\"!=_char3)continue}else if(!stateOverride&&"?"==_char3)url.query="",state=QUERY;else if(!stateOverride&&"#"==_char3)url.fragment="",state=FRAGMENT;else if(void 0!=_char3&&(state=PATH,"/"!=_char3))continue;break;case PATH:if(void 0==_char3||"/"==_char3||"\\"==_char3&&isSpecial(url)||
|
|
311
|
+
!stateOverride&&("?"==_char3||"#"==_char3)){codePoint=buffer;codePoint=codePoint.toLowerCase();".."===codePoint||"%2e."===codePoint||".%2e"===codePoint||"%2e%2e"===codePoint?(shortenURLsPath(url),"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push("")):"."===buffer||"%2e"===buffer.toLowerCase()?"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push(""):("file"==url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=buffer.charAt(0)+":"),url.path.push(buffer));
|
|
312
|
+
buffer="";if("file"==url.scheme&&(void 0==_char3||"?"==_char3||"#"==_char3))for(;1<url.path.length&&""===url.path[0];)url.path.shift();"?"==_char3?(url.query="",state=QUERY):"#"==_char3&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(_char3,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==_char3?(url.query="",state=QUERY):"#"==_char3?(url.fragment="",state=FRAGMENT):void 0!=_char3&&(url.path[0]+=percentEncode(_char3,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||
|
|
313
|
+
"#"!=_char3?void 0!=_char3&&("'"==_char3&&isSpecial(url)?url.query+="%27":url.query="#"==_char3?url.query+"%23":url.query+percentEncode(_char3,C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:void 0!=_char3&&(url.fragment+=percentEncode(_char3,fragmentPercentEncodeSet))}pointer++}},URLConstructor=function(url){var that=anInstance(this,URLConstructor,"URL"),base=1<arguments.length?arguments[1]:void 0,urlString=String(url),state=setInternalState(that,{type:"URL"}),failure;
|
|
311
314
|
if(void 0!==base)if(base instanceof URLConstructor)var baseState=getInternalURLState(base);else if(failure=parseURL(baseState={},String(base)))throw TypeError(failure);if(failure=parseURL(state,urlString,null,baseState))throw TypeError(failure);var searchParams=state.searchParams=new URLSearchParams;base=getInternalSearchParamsState(searchParams);base.updateSearchParams(state.query);base.updateURL=function(){state.query=String(searchParams)||null};DESCRIPTORS||(that.href=serializeURL.call(that),that.origin=
|
|
312
315
|
getOrigin.call(that),that.protocol=getProtocol.call(that),that.username=getUsername.call(that),that.password=getPassword.call(that),that.host=getHost.call(that),that.hostname=getHostname.call(that),that.port=getPort.call(that),that.pathname=getPathname.call(that),that.search=getSearch.call(that),that.searchParams=getSearchParams.call(that),that.hash=getHash.call(that))};__w_pdfjs_require__=URLConstructor.prototype;var serializeURL=function(){var url=getInternalURLState(this),scheme=url.scheme,username=
|
|
313
316
|
url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";if(null!==host){output+="//";if(""!=url.username||""!=url.password)output+=username+(password?":"+password:"")+"@";output+=serializeHost(host);null!==port&&(output+=":"+port)}else"file"==scheme&&(output+="//");output+=url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"";null!==query&&(output+="?"+query);null!==fragment&&(output+="#"+fragment);return output},
|
|
@@ -1427,15 +1430,15 @@ differences),-1!==codeStr&&(code=codeStr)}if(code){if(baseEncodingName&&code===+
|
|
|
1427
1430
|
0<properties.toUnicode.length;if(properties.hasIncludedToUnicodeMap)return!properties.composite&&properties.hasEncoding&&(properties.fallbackToUnicode=this._buildSimpleFontToUnicode(properties)),Promise.resolve(properties.toUnicode);if(!properties.composite)return Promise.resolve(this._buildSimpleFontToUnicode(properties));if(properties.composite&&(properties.cMap.builtInCMap&&!(properties.cMap instanceof _cmap.IdentityCMap)||"Adobe"===properties.cidSystemInfo.registry&&("GB1"===properties.cidSystemInfo.ordering||
|
|
1428
1431
|
"CNS1"===properties.cidSystemInfo.ordering||"Japan1"===properties.cidSystemInfo.ordering||"Korea1"===properties.cidSystemInfo.ordering))){var ordering=properties.cidSystemInfo.ordering;ordering=_primitives.Name.get("".concat(properties.cidSystemInfo.registry,"-").concat(ordering,"-UCS2"));return _cmap.CMapFactory.create({encoding:ordering,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(ucs2CMap){var toUnicode=[];properties.cMap.forEach(function(charcode,cid){if(65535<cid)throw new _util.FormatError("Max size of CID is 65,535");
|
|
1429
1432
|
(cid=ucs2CMap.lookup(cid))&&(toUnicode[charcode]=String.fromCharCode((cid.charCodeAt(0)<<8)+cid.charCodeAt(1)))});return new _fonts.ToUnicodeMap(toUnicode)})}return Promise.resolve(new _fonts.IdentityToUnicodeMap(properties.firstChar,properties.lastChar))},readToUnicode:function(toUnicode){return(0,_primitives.isName)(toUnicode)?_cmap.CMapFactory.create({encoding:toUnicode,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(cmap){return cmap instanceof _cmap.IdentityCMap?new _fonts.IdentityToUnicodeMap(0,
|
|
1430
|
-
65535):new _fonts.ToUnicodeMap(cmap.getMap())}):(0,_primitives.isStream)(toUnicode)?_cmap.CMapFactory.create({encoding:toUnicode,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(cmap){if(cmap instanceof _cmap.IdentityCMap)return new _fonts.IdentityToUnicodeMap(0,65535);var map=Array(cmap.length);cmap.forEach(function(charCode,token){for(var str=[],k=0;k<token.length;k+=2){var w1=token.charCodeAt(k)<<8|token.charCodeAt(k+
|
|
1431
|
-
8|token.charCodeAt(k+1);str.push(((w1&1023)<<10)+(w2&1023)+65536)}}map[charCode]=String.fromCodePoint.apply(String,str)});return new _fonts.ToUnicodeMap(map)}):Promise.resolve(null)},readCidToGidMap:function(glyphsData,toUnicode){for(var result=[],j=0,jj=glyphsData.length;j<jj;j++){var glyphID=glyphsData[j++]<<8|glyphsData[j],code=j>>1;if(0!==glyphID||toUnicode.has(code))result[code]=glyphID}return result},extractWidths:function(dict,
|
|
1432
|
-
0,glyphsVMetrics=[],ii,jj,widths;if(properties.composite){defaultWidth=dict.has("DW")?dict.get("DW"):1E3;if(widths=dict.get("W")){var i=0;for(ii=widths.length;i<ii;i++){descriptor=xref.fetchIfRef(widths[i++]);var code=xref.fetchIfRef(widths[i]);if(Array.isArray(code)){var j=0;for(jj=code.length;j<jj;j++)glyphsWidths[descriptor++]=xref.fetchIfRef(code[j])}else for(jj=xref.fetchIfRef(widths[++i]),j=descriptor;j<=code;j++)glyphsWidths[j]=
|
|
1433
|
-
|
|
1434
|
-
dict}}else if(i=properties.firstChar,widths=dict.get("Widths")){j=i;i=0;for(ii=widths.length;i<ii;i++)glyphsWidths[j++]=xref.fetchIfRef(widths[i]);defaultWidth=parseFloat(descriptor.get("MissingWidth"))||0}else xref=dict.get("BaseFont"),(0,_primitives.isName)(xref)&&(defaultWidth=this.getBaseFontMetrics(xref.name),glyphsWidths=this.buildCharCodeToWidth(defaultWidth.widths,properties),defaultWidth=defaultWidth.defaultWidth);xref=!0;dict=defaultWidth;for(var glyph in glyphsWidths)if(i=
|
|
1435
|
-
i;else if(dict!==i){xref=!1;break}xref&&(properties.flags|=_fonts.FontFlags.FixedPitch);properties.defaultWidth=defaultWidth;properties.widths=glyphsWidths;properties.defaultVMetrics=defaultVMetrics;properties.vmetrics=glyphsVMetrics},isSerifFont:function(baseFontName){baseFontName=baseFontName.split("-")[0];return baseFontName in(0,_standard_fonts.getSerifFonts)()||-1!==baseFontName.search(/serif/gi)},getBaseFontMetrics:function(name){var defaultWidth=0,widths=Object.create(null),
|
|
1436
|
-
(0,_standard_fonts.getStdFontMap)()[name]||name,Metrics=(0,_metrics.getMetrics)();lookupName in Metrics||(lookupName=this.isSerifFont(name)?"Times-Roman":"Helvetica");name=Metrics[lookupName];(0,_util.isNum)(name)?(defaultWidth=name,monospace=!0):widths=name();return{defaultWidth:defaultWidth,monospace:monospace,widths:widths}},buildCharCodeToWidth:function(widthsByGlyphName,properties){var widths=Object.create(null),differences=properties.differences;properties=properties.defaultEncoding;
|
|
1437
|
-
0;256>charCode;charCode++)charCode in differences&&widthsByGlyphName[differences[charCode]]?widths[charCode]=widthsByGlyphName[differences[charCode]]:charCode in properties&&widthsByGlyphName[properties[charCode]]&&(widths[charCode]=widthsByGlyphName[properties[charCode]]);return widths},preEvaluateFont:function(dict){var baseDict=dict,type=dict.get("Subtype");if(!(0,_primitives.isName)(type))throw new _util.FormatError("invalid font Subtype");var composite=!1;if("Type0"===type.name){dict=
|
|
1438
|
-
if(!dict)throw new _util.FormatError("Descendant fonts are not specified");dict=Array.isArray(dict)?this.xref.fetchIfRef(dict[0]):dict;type=dict.get("Subtype");if(!(0,_primitives.isName)(type))throw new _util.FormatError("invalid font Subtype");composite=!0}var descriptor=dict.get("FontDescriptor");if(descriptor){var hash=new _murmurhash.MurmurHash3_64;var uint8array=baseDict.getRaw("Encoding");if((0,_primitives.isName)(uint8array))hash.update(uint8array.name);else if((0,_primitives.isRef)(uint8array))hash.update(uint8array.toString());
|
|
1433
|
+
65535):new _fonts.ToUnicodeMap(cmap.getMap())}):(0,_primitives.isStream)(toUnicode)?_cmap.CMapFactory.create({encoding:toUnicode,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(cmap){if(cmap instanceof _cmap.IdentityCMap)return new _fonts.IdentityToUnicodeMap(0,65535);var map=Array(cmap.length);cmap.forEach(function(charCode,token){if("number"===typeof token)map[charCode]=String.fromCodePoint(token);else{for(var str=[],k=0;k<token.length;k+=2){var w1=token.charCodeAt(k)<<8|token.charCodeAt(k+
|
|
1434
|
+
1);if(55296!==(w1&63488))str.push(w1);else{k+=2;var w2=token.charCodeAt(k)<<8|token.charCodeAt(k+1);str.push(((w1&1023)<<10)+(w2&1023)+65536)}}map[charCode]=String.fromCodePoint.apply(String,str)}});return new _fonts.ToUnicodeMap(map)}):Promise.resolve(null)},readCidToGidMap:function(glyphsData,toUnicode){for(var result=[],j=0,jj=glyphsData.length;j<jj;j++){var glyphID=glyphsData[j++]<<8|glyphsData[j],code=j>>1;if(0!==glyphID||toUnicode.has(code))result[code]=glyphID}return result},extractWidths:function(dict,
|
|
1435
|
+
descriptor,properties){var xref=this.xref,glyphsWidths=[],defaultWidth=0,glyphsVMetrics=[],ii,jj,widths;if(properties.composite){defaultWidth=dict.has("DW")?dict.get("DW"):1E3;if(widths=dict.get("W")){var i=0;for(ii=widths.length;i<ii;i++){descriptor=xref.fetchIfRef(widths[i++]);var code=xref.fetchIfRef(widths[i]);if(Array.isArray(code)){var j=0;for(jj=code.length;j<jj;j++)glyphsWidths[descriptor++]=xref.fetchIfRef(code[j])}else for(jj=xref.fetchIfRef(widths[++i]),j=descriptor;j<=code;j++)glyphsWidths[j]=
|
|
1436
|
+
jj}}if(properties.vertical){widths=dict.getArray("DW2")||[880,-1E3];var defaultVMetrics=[widths[1],.5*defaultWidth,widths[0]];if(widths=dict.get("W2"))for(i=0,ii=widths.length;i<ii;i++)if(descriptor=xref.fetchIfRef(widths[i++]),code=xref.fetchIfRef(widths[i]),Array.isArray(code))for(j=0,jj=code.length;j<jj;j++)glyphsVMetrics[descriptor++]=[xref.fetchIfRef(code[j++]),xref.fetchIfRef(code[j++]),xref.fetchIfRef(code[j])];else for(dict=[xref.fetchIfRef(widths[++i]),xref.fetchIfRef(widths[++i]),xref.fetchIfRef(widths[++i])],
|
|
1437
|
+
j=descriptor;j<=code;j++)glyphsVMetrics[j]=dict}}else if(i=properties.firstChar,widths=dict.get("Widths")){j=i;i=0;for(ii=widths.length;i<ii;i++)glyphsWidths[j++]=xref.fetchIfRef(widths[i]);defaultWidth=parseFloat(descriptor.get("MissingWidth"))||0}else xref=dict.get("BaseFont"),(0,_primitives.isName)(xref)&&(defaultWidth=this.getBaseFontMetrics(xref.name),glyphsWidths=this.buildCharCodeToWidth(defaultWidth.widths,properties),defaultWidth=defaultWidth.defaultWidth);xref=!0;dict=defaultWidth;for(var glyph in glyphsWidths)if(i=
|
|
1438
|
+
glyphsWidths[glyph])if(!dict)dict=i;else if(dict!==i){xref=!1;break}xref&&(properties.flags|=_fonts.FontFlags.FixedPitch);properties.defaultWidth=defaultWidth;properties.widths=glyphsWidths;properties.defaultVMetrics=defaultVMetrics;properties.vmetrics=glyphsVMetrics},isSerifFont:function(baseFontName){baseFontName=baseFontName.split("-")[0];return baseFontName in(0,_standard_fonts.getSerifFonts)()||-1!==baseFontName.search(/serif/gi)},getBaseFontMetrics:function(name){var defaultWidth=0,widths=Object.create(null),
|
|
1439
|
+
monospace=!1,lookupName=(0,_standard_fonts.getStdFontMap)()[name]||name,Metrics=(0,_metrics.getMetrics)();lookupName in Metrics||(lookupName=this.isSerifFont(name)?"Times-Roman":"Helvetica");name=Metrics[lookupName];(0,_util.isNum)(name)?(defaultWidth=name,monospace=!0):widths=name();return{defaultWidth:defaultWidth,monospace:monospace,widths:widths}},buildCharCodeToWidth:function(widthsByGlyphName,properties){var widths=Object.create(null),differences=properties.differences;properties=properties.defaultEncoding;
|
|
1440
|
+
for(var charCode=0;256>charCode;charCode++)charCode in differences&&widthsByGlyphName[differences[charCode]]?widths[charCode]=widthsByGlyphName[differences[charCode]]:charCode in properties&&widthsByGlyphName[properties[charCode]]&&(widths[charCode]=widthsByGlyphName[properties[charCode]]);return widths},preEvaluateFont:function(dict){var baseDict=dict,type=dict.get("Subtype");if(!(0,_primitives.isName)(type))throw new _util.FormatError("invalid font Subtype");var composite=!1;if("Type0"===type.name){dict=
|
|
1441
|
+
dict.get("DescendantFonts");if(!dict)throw new _util.FormatError("Descendant fonts are not specified");dict=Array.isArray(dict)?this.xref.fetchIfRef(dict[0]):dict;type=dict.get("Subtype");if(!(0,_primitives.isName)(type))throw new _util.FormatError("invalid font Subtype");composite=!0}var descriptor=dict.get("FontDescriptor");if(descriptor){var hash=new _murmurhash.MurmurHash3_64;var uint8array=baseDict.getRaw("Encoding");if((0,_primitives.isName)(uint8array))hash.update(uint8array.name);else if((0,_primitives.isRef)(uint8array))hash.update(uint8array.toString());
|
|
1439
1442
|
else if((0,_primitives.isDict)(uint8array))for(var keys=uint8array.getKeys(),i=0,ii=keys.length;i<ii;i++){var entry=uint8array.getRaw(keys[i]);if((0,_primitives.isName)(entry))hash.update(entry.name);else if((0,_primitives.isRef)(entry))hash.update(entry.toString());else if(Array.isArray(entry)){for(var diffLength=entry.length,diffBuf=Array(diffLength),j=0;j<diffLength;j++){var diffEntry=entry[j];if((0,_primitives.isName)(diffEntry))diffBuf[j]=diffEntry.name;else if((0,_util.isNum)(diffEntry)||(0,_primitives.isRef)(diffEntry))diffBuf[j]=
|
|
1440
1443
|
diffEntry.toString()}hash.update(diffBuf.join())}}uint8array=dict.get("FirstChar")||0;keys=dict.get("LastChar")||(composite?65535:255);hash.update("".concat(uint8array,"-").concat(keys));uint8array=dict.get("ToUnicode")||baseDict.get("ToUnicode");(0,_primitives.isStream)(uint8array)?(uint8array=uint8array.str||uint8array,uint8array=uint8array.buffer?new Uint8Array(uint8array.buffer.buffer,0,uint8array.bufferLength):new Uint8Array(uint8array.bytes.buffer,uint8array.start,uint8array.end-uint8array.start),
|
|
1441
1444
|
hash.update(uint8array)):(0,_primitives.isName)(uint8array)&&hash.update(uint8array.name);if(uint8array=dict.get("Widths")||baseDict.get("Widths"))uint8array=new Uint8Array((new Uint32Array(uint8array)).buffer),hash.update(uint8array)}return{descriptor:descriptor,dict:dict,baseDict:baseDict,composite:composite,type:type.name,hash:hash?hash.hexdigest():""}},translateFont:function(preEvaluatedFont){var _this11=this,baseDict=preEvaluatedFont.baseDict,dict=preEvaluatedFont.dict,composite=preEvaluatedFont.composite,
|
|
@@ -1483,12 +1486,12 @@ _inherits(IdentityCMap,_CMap);_createClass(IdentityCMap,[{key:"mapCidRange",valu
|
|
|
1483
1486
|
return IdentityCMap}(CMap);exports.IdentityCMap=IdentityCMap;var BinaryCMapReader=function(){function hexToInt(a,size){for(var n=0,i=0;i<=size;i++)n=n<<8|a[i];return n>>>0}function hexToStr(a,size){return 1===size?String.fromCharCode(a[0],a[1]):3===size?String.fromCharCode(a[0],a[1],a[2],a[3]):String.fromCharCode.apply(null,a.subarray(0,size+1))}function addHex(a,b,size){for(var c=0;0<=size;size--)c+=a[size]+b[size],a[size]=c&255,c>>=8}function incHex(a,size){for(var c=1;0<=size&&0<c;size--)c+=a[size],
|
|
1484
1487
|
a[size]=c&255,c>>=8}function BinaryCMapStream(data){this.buffer=data;this.pos=0;this.end=data.length;this.tmpBuf=new Uint8Array(19)}function BinaryCMapReader(){}BinaryCMapStream.prototype={readByte:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var n=0;do{var b=this.readByte();if(0>b)throw new _util.FormatError("unexpected EOF in bcmap");var last=!(b&128);n=n<<7|b&127}while(!last);return n},readSigned:function(){var n=this.readNumber();return n&1?~(n>>>1):n>>>
|
|
1485
1488
|
1},readHex:function(num,size){num.set(this.buffer.subarray(this.pos,this.pos+size+1));this.pos+=size+1},readHexNumber:function(num,size){var stack=this.tmpBuf,sp=0;do{var b=this.readByte();if(0>b)throw new _util.FormatError("unexpected EOF in bcmap");var last=!(b&128);stack[sp++]=b&127}while(!last);for(b=last=0;0<=size;){for(;8>b&&0<stack.length;)last|=stack[--sp]<<b,b+=7;num[size]=last&255;size--;last>>=8;b-=8}},readHexSigned:function(num,size){this.readHexNumber(num,size);for(var sign=num[size]&
|
|
1486
|
-
1?255:0,c=0,i=0;i<=size;i++)c=(c&1)<<8|num[i],num[i]=c>>1^sign},readString:function(){for(var len=this.readNumber(),s="",i=0;i<len;i++)s+=String.fromCharCode(this.readNumber());return s}};BinaryCMapReader.prototype={process:function(data,cMap,extend){return new Promise(function(resolve,reject){var stream=new BinaryCMapStream(data),header=stream.readByte();cMap.vertical=!!(header&1);header=null;for(var start=new Uint8Array(16),end=new Uint8Array(16),
|
|
1489
|
+
1?255:0,c=0,i=0;i<=size;i++)c=(c&1)<<8|num[i],num[i]=c>>1^sign},readString:function(){for(var len=this.readNumber(),s="",i=0;i<len;i++)s+=String.fromCharCode(this.readNumber());return s}};BinaryCMapReader.prototype={process:function(data,cMap,extend){return new Promise(function(resolve,reject){var stream=new BinaryCMapStream(data),header=stream.readByte();cMap.vertical=!!(header&1);header=null;for(var start=new Uint8Array(16),end=new Uint8Array(16),_char4=new Uint8Array(16),charCode=new Uint8Array(16),
|
|
1487
1490
|
tmp=new Uint8Array(16),code,b;0<=(b=stream.readByte());)if(code=b>>5,7===code)switch(b&31){case 0:stream.readString();break;case 1:header=stream.readString()}else{var sequence=!!(b&16);b&=15;if(16<b+1)throw Error("processBinaryCMap: Invalid dataSize.");var subitemsCount=stream.readNumber(),i;switch(code){case 0:stream.readHex(start,b);stream.readHexNumber(end,b);addHex(end,start,b);cMap.addCodespaceRange(b+1,hexToInt(start,b),hexToInt(end,b));for(i=1;i<subitemsCount;i++)incHex(end,b),stream.readHexNumber(start,
|
|
1488
|
-
b),addHex(start,end,b),stream.readHexNumber(end,b),addHex(end,start,b),cMap.addCodespaceRange(b+1,hexToInt(start,b),hexToInt(end,b));break;case 1:stream.readHex(start,b);stream.readHexNumber(end,b);addHex(end,start,b);stream.readNumber();for(i=1;i<subitemsCount;i++)incHex(end,b),stream.readHexNumber(start,b),addHex(start,end,b),stream.readHexNumber(end,b),addHex(end,start,b),stream.readNumber();break;case 2:stream.readHex(
|
|
1489
|
-
1;i<subitemsCount;i++)incHex(
|
|
1490
|
-
code=stream.readNumber(),cMap.mapCidRange(hexToInt(start,b),hexToInt(end,b),code);break;case 4:stream.readHex(
|
|
1491
|
-
1);stream.readHex(charCode,b);cMap.mapBfRange(hexToInt(start,1),hexToInt(end,1),hexToStr(charCode,b));for(i=1;i<subitemsCount;i++)incHex(end,1),sequence?start.set(end):(stream.readHexNumber(start,1),addHex(start,end,1)),stream.readHexNumber(end,1),addHex(end,start,1),stream.readHex(charCode,b),cMap.mapBfRange(hexToInt(start,1),hexToInt(end,1),hexToStr(charCode,b));break;default:reject(Error("processBinaryCMap: Unknown type: "+code));return}}header?resolve(extend(header)):resolve(cMap)})}};return BinaryCMapReader}();
|
|
1491
|
+
b),addHex(start,end,b),stream.readHexNumber(end,b),addHex(end,start,b),cMap.addCodespaceRange(b+1,hexToInt(start,b),hexToInt(end,b));break;case 1:stream.readHex(start,b);stream.readHexNumber(end,b);addHex(end,start,b);stream.readNumber();for(i=1;i<subitemsCount;i++)incHex(end,b),stream.readHexNumber(start,b),addHex(start,end,b),stream.readHexNumber(end,b),addHex(end,start,b),stream.readNumber();break;case 2:stream.readHex(_char4,b);code=stream.readNumber();cMap.mapOne(hexToInt(_char4,b),code);for(i=
|
|
1492
|
+
1;i<subitemsCount;i++)incHex(_char4,b),sequence||(stream.readHexNumber(tmp,b),addHex(_char4,tmp,b)),code=stream.readSigned()+(code+1),cMap.mapOne(hexToInt(_char4,b),code);break;case 3:stream.readHex(start,b);stream.readHexNumber(end,b);addHex(end,start,b);code=stream.readNumber();cMap.mapCidRange(hexToInt(start,b),hexToInt(end,b),code);for(i=1;i<subitemsCount;i++)incHex(end,b),sequence?start.set(end):(stream.readHexNumber(start,b),addHex(start,end,b)),stream.readHexNumber(end,b),addHex(end,start,
|
|
1493
|
+
b),code=stream.readNumber(),cMap.mapCidRange(hexToInt(start,b),hexToInt(end,b),code);break;case 4:stream.readHex(_char4,1);stream.readHex(charCode,b);cMap.mapOne(hexToInt(_char4,1),hexToStr(charCode,b));for(i=1;i<subitemsCount;i++)incHex(_char4,1),sequence||(stream.readHexNumber(tmp,1),addHex(_char4,tmp,1)),incHex(charCode,b),stream.readHexSigned(tmp,b),addHex(charCode,tmp,b),cMap.mapOne(hexToInt(_char4,1),hexToStr(charCode,b));break;case 5:stream.readHex(start,1);stream.readHexNumber(end,1);addHex(end,
|
|
1494
|
+
start,1);stream.readHex(charCode,b);cMap.mapBfRange(hexToInt(start,1),hexToInt(end,1),hexToStr(charCode,b));for(i=1;i<subitemsCount;i++)incHex(end,1),sequence?start.set(end):(stream.readHexNumber(start,1),addHex(start,end,1)),stream.readHexNumber(end,1),addHex(end,start,1),stream.readHex(charCode,b),cMap.mapBfRange(hexToInt(start,1),hexToInt(end,1),hexToStr(charCode,b));break;default:reject(Error("processBinaryCMap: Unknown type: "+code));return}}header?resolve(extend(header)):resolve(cMap)})}};return BinaryCMapReader}();
|
|
1492
1495
|
module=function(){function strToInt(str){for(var a=0,i=0;i<str.length;i++)a=a<<8|str.charCodeAt(i);return a>>>0}function expectString(obj){if(!(0,_util.isString)(obj))throw new _util.FormatError("Malformed CMap: expected string.");}function expectInt(obj){if(!Number.isInteger(obj))throw new _util.FormatError("Malformed CMap: expected int.");}function parseCMap(cMap$jscomp$0,lexer$jscomp$0,fetchBuiltInCMap,useCMap){a:for(;;)try{var obj=lexer$jscomp$0.getObj();if((0,_primitives.isEOF)(obj))break;else if((0,_primitives.isName)(obj)){if("WMode"===
|
|
1493
1496
|
obj.name){var cMap=cMap$jscomp$0,obj$jscomp$0=lexer$jscomp$0.getObj();Number.isInteger(obj$jscomp$0)&&(cMap.vertical=!!obj$jscomp$0)}else if("CMapName"===obj.name){cMap=cMap$jscomp$0;var obj$jscomp$1=lexer$jscomp$0.getObj();(0,_primitives.isName)(obj$jscomp$1)&&(0,_util.isString)(obj$jscomp$1.name)&&(cMap.name=obj$jscomp$1.name)}var previous=obj}else if((0,_primitives.isCmd)(obj))switch(obj.cmd){case "endcmap":break a;case "usecmap":if((0,_primitives.isName)(previous))var embeddedUseCMap=previous.name;
|
|
1494
1497
|
break;case "begincodespacerange":b:{cMap=cMap$jscomp$0;for(var lexer=lexer$jscomp$0;;){var obj$jscomp$2=lexer.getObj();if((0,_primitives.isEOF)(obj$jscomp$2))break;if((0,_primitives.isCmd)(obj$jscomp$2,"endcodespacerange"))break b;if(!(0,_util.isString)(obj$jscomp$2))break;var low=strToInt(obj$jscomp$2);obj$jscomp$2=lexer.getObj();if(!(0,_util.isString)(obj$jscomp$2))break;var high=strToInt(obj$jscomp$2);cMap.addCodespaceRange(obj$jscomp$2.length,low,high)}throw new _util.FormatError("Invalid codespace range.");
|
|
@@ -1519,38 +1522,39 @@ Uint8Array)offset.set(data,jj);else if("string"===typeof data){var i$jscomp$0=0;
|
|
|
1519
1522
|
8,tableOffsets[i]);writeInt32(file,offset+12,tables[table].length);offset+=16}return file},addTable:function(tag,data){if(tag in this.tables)throw Error("Table "+tag+" already exists");this.tables[tag]=data}};return OpenTypeFileBuilder}();module=function(){function Font(name,file,properties){this.name=name;this.loadedName=properties.loadedName;this.isType3Font=properties.isType3Font;this.sizes=[];this.missingFile=!1;this.glyphCache=Object.create(null);this.isSerifFont=!!(properties.flags&FontFlags.Serif);
|
|
1520
1523
|
this.isSymbolicFont=!!(properties.flags&FontFlags.Symbolic);this.isMonospace=!!(properties.flags&FontFlags.FixedPitch);var type=properties.type,subtype=properties.subtype;this.type=type;this.subtype=subtype;this.fallbackName=this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif";this.differences=properties.differences;this.widths=properties.widths;this.defaultWidth=properties.defaultWidth;this.composite=properties.composite;this.wideChars=properties.wideChars;this.cMap=properties.cMap;
|
|
1521
1524
|
this.ascent=properties.ascent/1E3;this.descent=properties.descent/1E3;this.fontMatrix=properties.fontMatrix;this.bbox=properties.bbox;this.defaultEncoding=properties.defaultEncoding;this.toUnicode=properties.toUnicode;this.fallbackToUnicode=properties.fallbackToUnicode||new ToUnicodeMap;this.toFontChar=[];if("Type3"===properties.type){for(name=0;256>name;name++)this.toFontChar[name]=this.differences[name]||properties.defaultEncoding[name];this.fontType=_util.FontType.TYPE3}else{this.cidEncoding=properties.cidEncoding;
|
|
1522
|
-
if(this.vertical=properties.vertical)this.vmetrics=properties.vmetrics,this.defaultVMetrics=properties.defaultVMetrics;if(!file||file.isEmpty)file&&(0,_util.warn)('Font file is empty in "'+name+'" ('+this.loadedName+")"),this.fallbackToSystemFont();else{subtype=properties.type;type=properties.subtype;var composite=properties.composite,header=file.peekBytes(4);if(65536===(0,_util.readUint32)(header,0)||"true"===(0,_util.bytesToString)(header)||isTrueTypeCollectionFile(file))subtype=composite?
|
|
1523
|
-
"TrueType";else if(header=file.peekBytes(4),"OTTO"===(0,_util.bytesToString)(header))subtype=composite?"CIDFontType2":"OpenType";else if(header=file.peekBytes(2),37===header[0]&&33===header[1]||128===header[0]&&1===header[1])subtype=composite?"CIDFontType0":"MMType1"===subtype?"MMType1":"Type1";else{var _getFontFileType=file.peekBytes(4);1<=_getFontFileType[0]&&1<=_getFontFileType[3]&&4>=_getFontFileType[3]?composite?(subtype="CIDFontType0",_getFontFileType="CIDFontType0C"):(subtype=
|
|
1524
|
-
"MMType1":"Type1",_getFontFileType="Type1C"):((0,_util.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),_getFontFileType=type)}_getFontFileType=[subtype,_getFontFileType];type=Array.isArray(_getFontFileType)?_getFontFileType:void 0;if(!type)if(Symbol.iterator in Object(_getFontFileType)||"[object Arguments]"===Object.prototype.toString.call(_getFontFileType)){type=[];subtype=!0;composite=!1;header=void 0;try{var JSCompiler_temp=_getFontFileType[Symbol.iterator]();
|
|
1525
|
-
(_s=JSCompiler_temp.next()).done)&&(type.push(_s.value),2!==type.length);subtype=!0);}catch(err){composite=!0,header=err}finally{try{if(!subtype&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(composite)throw header;}}}else type=void 0;if(!(JSCompiler_temp=type))throw new TypeError("Invalid attempt to destructure non-iterable instance");type=JSCompiler_temp[0];subtype=JSCompiler_temp[1];type===this.type&&subtype===this.subtype||(0,_util.info)("Inconsistent font file Type/SubType, expected: "+
|
|
1525
|
+
if(this.vertical=properties.vertical)this.vmetrics=properties.vmetrics,this.defaultVMetrics=properties.defaultVMetrics;if(!file||file.isEmpty)file&&(0,_util.warn)('Font file is empty in "'+name+'" ('+this.loadedName+")"),this.fallbackToSystemFont(properties);else{subtype=properties.type;type=properties.subtype;var composite=properties.composite,header=file.peekBytes(4);if(65536===(0,_util.readUint32)(header,0)||"true"===(0,_util.bytesToString)(header)||isTrueTypeCollectionFile(file))subtype=composite?
|
|
1526
|
+
"CIDFontType2":"TrueType";else if(header=file.peekBytes(4),"OTTO"===(0,_util.bytesToString)(header))subtype=composite?"CIDFontType2":"OpenType";else if(header=file.peekBytes(2),37===header[0]&&33===header[1]||128===header[0]&&1===header[1])subtype=composite?"CIDFontType0":"MMType1"===subtype?"MMType1":"Type1";else{var _getFontFileType=file.peekBytes(4);1<=_getFontFileType[0]&&1<=_getFontFileType[3]&&4>=_getFontFileType[3]?composite?(subtype="CIDFontType0",_getFontFileType="CIDFontType0C"):(subtype=
|
|
1527
|
+
"MMType1"===subtype?"MMType1":"Type1",_getFontFileType="Type1C"):((0,_util.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),_getFontFileType=type)}_getFontFileType=[subtype,_getFontFileType];type=Array.isArray(_getFontFileType)?_getFontFileType:void 0;if(!type)if(Symbol.iterator in Object(_getFontFileType)||"[object Arguments]"===Object.prototype.toString.call(_getFontFileType)){type=[];subtype=!0;composite=!1;header=void 0;try{var JSCompiler_temp=_getFontFileType[Symbol.iterator]();
|
|
1528
|
+
for(var _s;!(subtype=(_s=JSCompiler_temp.next()).done)&&(type.push(_s.value),2!==type.length);subtype=!0);}catch(err){composite=!0,header=err}finally{try{if(!subtype&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(composite)throw header;}}}else type=void 0;if(!(JSCompiler_temp=type))throw new TypeError("Invalid attempt to destructure non-iterable instance");type=JSCompiler_temp[0];subtype=JSCompiler_temp[1];type===this.type&&subtype===this.subtype||(0,_util.info)("Inconsistent font file Type/SubType, expected: "+
|
|
1526
1529
|
"".concat(this.type,"/").concat(this.subtype," but found: ").concat(type,"/").concat(subtype,"."));try{switch(type){case "MMType1":(0,_util.info)("MMType1 font ("+name+"), falling back to Type1.");case "Type1":case "CIDFontType0":this.mimetype="font/opentype";var cff="Type1C"===subtype||"CIDFontType0C"===subtype?new CFFFont(file,properties):new Type1Font(name,file,properties);adjustWidths(properties);var data=this.convert(name,cff,properties);break;case "OpenType":case "TrueType":case "CIDFontType2":this.mimetype=
|
|
1527
|
-
"font/opentype";data=this.checkAndRepair(name,file,properties);this.isOpenType&&(adjustWidths(properties),type="OpenType");break;default:throw new _util.FormatError("Font ".concat(type," is not supported"));}}catch(e){(0,_util.warn)(e);this.fallbackToSystemFont();return}this.data=data;this.fontType=getFontType(type,subtype);this.fontMatrix=properties.fontMatrix;this.widths=properties.widths;this.defaultWidth=properties.defaultWidth;this.toUnicode=properties.toUnicode;this.encoding=properties.baseEncoding;
|
|
1528
|
-
this.seacMap=properties.seacMap}}}function signedInt16(b0,b1){b0=(b0<<8)+b1;return b0&32768?b0-65536:b0}function string16(value){return String.fromCharCode(value>>8&255,value&255)}function safeString16(value){value=32767<value?32767:-32768>value?-32768:value;return String.fromCharCode(value>>8&255,value&255)}function isTrueTypeCollectionFile(file){file=file.peekBytes(4);return"ttcf"===(0,_util.bytesToString)(file)}function
|
|
1529
|
-
[],unicode,i=0,ii=encoding.length;i<ii;i++)unicode=(0,_unicode.getUnicodeForGlyph)(encoding[i],glyphsUnicodeMap),-1!==unicode&&(toFontChar[i]=unicode);for(var charCode in differences)unicode=(0,_unicode.getUnicodeForGlyph)(differences[charCode],glyphsUnicodeMap),-1!==unicode&&(toFontChar[+charCode]=unicode);return toFontChar}function adjustMapping(charCodeToGlyphId,hasGlyph,newGlyphZeroId){var newMap=
|
|
1530
|
-
privateUseOffetEnd=PRIVATE_USE_AREAS[privateUseAreaIndex][1],originalCharCode;for(originalCharCode in charCodeToGlyphId){originalCharCode|=0;var glyphId=charCodeToGlyphId[originalCharCode];if(hasGlyph(glyphId)){if(nextAvailableFontCharCode>privateUseOffetEnd){privateUseAreaIndex++;if(privateUseAreaIndex>=PRIVATE_USE_AREAS.length){(0,_util.warn)("Ran out of space in font private use area.");
|
|
1531
|
-
nextAvailableFontCharCode++;0===glyphId&&(glyphId=newGlyphZeroId);newMap[fontCharCode]=glyphId;toFontChar[originalCharCode]=fontCharCode}}return{toFontChar:toFontChar,charCodeToGlyphId:newMap,nextAvailableFontCharCode:nextAvailableFontCharCode}}function getRanges(glyphs,numGlyphs){var codes=[],charCode;for(charCode in glyphs)glyphs[charCode]>=numGlyphs||
|
|
1532
|
-
b.fontCharCode});glyphs=[];numGlyphs=codes.length;for(charCode=0;charCode<numGlyphs;){var start=codes[charCode].fontCharCode,codeIndices=[codes[charCode].glyphId];++charCode;for(var end=start;charCode<numGlyphs&&end+1===codes[charCode].fontCharCode&&(codeIndices.push(codes[charCode].glyphId),++end,++charCode,65535!==end););glyphs.push([start,
|
|
1533
|
-
2:1;numGlyphs="\x00\x00"+string16(numTables)+"\x00\u0003\x00\u0001"+(0,_util.string32)(4+8*numTables);var i,jj;for(i=glyphs.length-1;0<=i&&!(65535>=glyphs[i][0]);--i);var ii=i+1;65535>glyphs[i][0]&&65535===glyphs[i][1]&&(glyphs[i][1]=65534);var trailingRangesCount=65535>glyphs[i][1]?1:0,segCount=ii+trailingRangesCount,searchParams=OpenTypeFileBuilder.getSearchParams(segCount,
|
|
1534
|
-
range[0];var end=range[1];startCount+=string16(start);endCount+=string16(end);var codes=range[2];range=!0;var j=1;for(jj=codes.length;j<jj;++j)if(codes[j]!==codes[j-1]+1){range=!1;break}if(range)idDeltas+=string16(codes[0]-start&65535),idRangeOffsets+=string16(0);else for(j=2*(segCount-i)+2*bias,bias+=end-start+1,idDeltas+=string16(0),idRangeOffsets+=string16(j),j=0,jj=codes.length;j<
|
|
1535
|
-
"\x00\u0001",idRangeOffsets+="\x00\x00");trailingRangesCount="\x00\x00"+string16(2*segCount)+string16(searchParams.range)+string16(searchParams.entry)+string16(searchParams.rangeShift)+endCount+"\x00\x00"+startCount+idDeltas+idRangeOffsets+glyphsIds;i=segCount="";if(1<numTables){numGlyphs+="\x00\u0003\x00\n"+(0,_util.string32)(8*numTables+8+trailingRangesCount.length);segCount=
|
|
1536
|
-
jj;++j)codes[j]!==codes[j-1]+1&&(end=range[0]+j-1,segCount+=(0,_util.string32)(start)+(0,_util.string32)(end)+(0,_util.string32)(numTables),start=end+1,numTables=codes[j]);segCount+=(0,_util.string32)(start)+(0,_util.string32)(range[1])+(0,_util.string32)(numTables)}i="\x00\f\x00\x00"+(0,_util.string32)(segCount.length+16)+"\x00\x00\x00\x00"+(0,_util.string32)(segCount.length/
|
|
1537
|
-
new _stream.Stream(os2.data),version=stream.getUint16();stream.getBytes(60);var selection=stream.getUint16();if(4>version&&selection&768)return!1;version=stream.getUint16();selection=stream.getUint16();if(version>selection)return!1;stream.getBytes(6);if(0===stream.getUint16())return!1;os2.data[8]=os2.data[9]=0;return!0}function createOS2Table(properties,
|
|
1538
|
-
0,ulUnicodeRange4=0,firstCharIndex=null,lastCharIndex=0;if(charstrings){for(var code in charstrings){code|=0;if(firstCharIndex>code||!firstCharIndex)firstCharIndex=code;lastCharIndex<code&&(lastCharIndex=code);charstrings=(0,_unicode.getUnicodeRangeFor)(code);if(32>charstrings)ulUnicodeRange1|=1<<charstrings;else if(64>charstrings)ulUnicodeRange2|=1<<charstrings-
|
|
1539
|
-
}65535<lastCharIndex&&(lastCharIndex=65535)}else firstCharIndex=0,lastCharIndex=255;charstrings=properties.bbox||[0,0,0,0];code=override.unitsPerEm||1/(properties.fontMatrix||_util.FONT_IDENTITY_MATRIX)[0];var scale=properties.ascentScaled?1:code/1E3;code=override.ascent||Math.round(scale*
|
|
1540
|
-
override=-override.yMin||-scale;return"\x00\u0003\u0002$\u0001\u00f4\x00\u0005\x00\x00\u0002\u008a\u0002\u00bb\x00\x00\x00\u008c\u0002\u008a\u0002\u00bb\x00\x00\u0001\u00df\x001\u0001\u0002\x00\x00\x00\x00\u0006"+String.fromCharCode(properties.fixedPitch?9:0)+"\x00\x00\x00\x00\x00\x00"+(0,_util.string32)(ulUnicodeRange1)+
|
|
1541
|
-
string16(lastCharIndex||properties.lastChar)+string16(code)+string16(scale)+"\x00d"+string16(charstrings)+string16(override)+"\x00\x00\x00\x00\x00\x00\x00\x00"+string16(properties.xHeight)+string16(properties.capHeight)+string16(0)+string16(firstCharIndex||properties.firstChar)+"\x00\u0003"}function createPostTable(properties){return"\x00\u0003\x00\x00"+
|
|
1542
|
-
function createNameTable(name,proto){proto||(proto=[[],[]]);name=[proto[0][0]||"Original licence",proto[0][1]||name,proto[0][2]||"Unknown",proto[0][3]||"uniqueID",proto[0][4]||name,proto[0][5]||"Version 0.11",proto[0][6]||"",proto[0][7]||"Unknown",proto[0][8]||"Unknown",proto[0][9]||"Unknown"];var stringsUnicode=
|
|
1543
|
-
[name,stringsUnicode];strBufUnicode=["\x00\u0001","\x00\u0003"];var encodings=["\x00\x00","\x00\u0001"],languages=["\x00\x00","\u0004\t"];i=name.length*strBufUnicode.length;var nameTable="\x00\x00"+string16(i)+string16(12*i+6),strOffset=0;i=0;for(ii=strBufUnicode.length;i<
|
|
1544
|
-
name.join("")+stringsUnicode.join("")}Font.getFontID=function(){var ID=1;return function(){return String(ID++)}}();Font.prototype={name:null,font:null,mimetype:null,encoding:null,disableFontFace:!1,get renderer(){var renderer=_font_renderer.FontRendererFactory.create(this
|
|
1545
|
-
unicode,name=this.name,type=this.type,subtype=this.subtype,fontName=name.replace(/[,_]/g,"-"),stdFontMap=(0,_standard_fonts.getStdFontMap)(),nonStdFontMap=(0,_standard_fonts.getNonStdFontMap)(),isStandardFont=!!stdFontMap[fontName]||!(!nonStdFontMap[fontName]
|
|
1546
|
-
name.search(/Black/g);this.remeasure=0<Object.keys(this.widths).length;if(isStandardFont&&"CIDFontType2"===type&&this.cidEncoding.startsWith("Identity-")){
|
|
1547
|
-
(0,_standard_fonts.
|
|
1548
|
-
(
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
(0
|
|
1553
|
-
|
|
1530
|
+
"font/opentype";data=this.checkAndRepair(name,file,properties);this.isOpenType&&(adjustWidths(properties),type="OpenType");break;default:throw new _util.FormatError("Font ".concat(type," is not supported"));}}catch(e){(0,_util.warn)(e);this.fallbackToSystemFont(properties);return}this.data=data;this.fontType=getFontType(type,subtype);this.fontMatrix=properties.fontMatrix;this.widths=properties.widths;this.defaultWidth=properties.defaultWidth;this.toUnicode=properties.toUnicode;this.encoding=properties.baseEncoding;
|
|
1531
|
+
this.seacMap=properties.seacMap}}}function signedInt16(b0,b1){b0=(b0<<8)+b1;return b0&32768?b0-65536:b0}function string16(value){return String.fromCharCode(value>>8&255,value&255)}function safeString16(value){value=32767<value?32767:-32768>value?-32768:value;return String.fromCharCode(value>>8&255,value&255)}function isTrueTypeCollectionFile(file){file=file.peekBytes(4);return"ttcf"===(0,_util.bytesToString)(file)}function applyStandardFontGlyphMap(map,glyphMap){for(var charCode in glyphMap)map[+charCode]=
|
|
1532
|
+
glyphMap[charCode]}function buildToFontChar(encoding,glyphsUnicodeMap,differences){for(var toFontChar=[],unicode,i=0,ii=encoding.length;i<ii;i++)unicode=(0,_unicode.getUnicodeForGlyph)(encoding[i],glyphsUnicodeMap),-1!==unicode&&(toFontChar[i]=unicode);for(var charCode in differences)unicode=(0,_unicode.getUnicodeForGlyph)(differences[charCode],glyphsUnicodeMap),-1!==unicode&&(toFontChar[+charCode]=unicode);return toFontChar}function adjustMapping(charCodeToGlyphId,hasGlyph,newGlyphZeroId){var newMap=
|
|
1533
|
+
Object.create(null),toFontChar=[],privateUseAreaIndex=0,nextAvailableFontCharCode=PRIVATE_USE_AREAS[privateUseAreaIndex][0],privateUseOffetEnd=PRIVATE_USE_AREAS[privateUseAreaIndex][1],originalCharCode;for(originalCharCode in charCodeToGlyphId){originalCharCode|=0;var glyphId=charCodeToGlyphId[originalCharCode];if(hasGlyph(glyphId)){if(nextAvailableFontCharCode>privateUseOffetEnd){privateUseAreaIndex++;if(privateUseAreaIndex>=PRIVATE_USE_AREAS.length){(0,_util.warn)("Ran out of space in font private use area.");
|
|
1534
|
+
break}nextAvailableFontCharCode=PRIVATE_USE_AREAS[privateUseAreaIndex][0];privateUseOffetEnd=PRIVATE_USE_AREAS[privateUseAreaIndex][1]}var fontCharCode=nextAvailableFontCharCode++;0===glyphId&&(glyphId=newGlyphZeroId);newMap[fontCharCode]=glyphId;toFontChar[originalCharCode]=fontCharCode}}return{toFontChar:toFontChar,charCodeToGlyphId:newMap,nextAvailableFontCharCode:nextAvailableFontCharCode}}function getRanges(glyphs,numGlyphs){var codes=[],charCode;for(charCode in glyphs)glyphs[charCode]>=numGlyphs||
|
|
1535
|
+
codes.push({fontCharCode:charCode|0,glyphId:glyphs[charCode]});0===codes.length&&codes.push({fontCharCode:0,glyphId:0});codes.sort(function(a,b){return a.fontCharCode-b.fontCharCode});glyphs=[];numGlyphs=codes.length;for(charCode=0;charCode<numGlyphs;){var start=codes[charCode].fontCharCode,codeIndices=[codes[charCode].glyphId];++charCode;for(var end=start;charCode<numGlyphs&&end+1===codes[charCode].fontCharCode&&(codeIndices.push(codes[charCode].glyphId),++end,++charCode,65535!==end););glyphs.push([start,
|
|
1536
|
+
end,codeIndices])}return glyphs}function createCmapTable(glyphs,numGlyphs){glyphs=getRanges(glyphs,numGlyphs);var numTables=65535<glyphs[glyphs.length-1][1]?2:1;numGlyphs="\x00\x00"+string16(numTables)+"\x00\u0003\x00\u0001"+(0,_util.string32)(4+8*numTables);var i,jj;for(i=glyphs.length-1;0<=i&&!(65535>=glyphs[i][0]);--i);var ii=i+1;65535>glyphs[i][0]&&65535===glyphs[i][1]&&(glyphs[i][1]=65534);var trailingRangesCount=65535>glyphs[i][1]?1:0,segCount=ii+trailingRangesCount,searchParams=OpenTypeFileBuilder.getSearchParams(segCount,
|
|
1537
|
+
2),startCount="",endCount="",idDeltas="",idRangeOffsets="",glyphsIds="",bias=0;for(i=0;i<ii;i++){var range=glyphs[i];var start=range[0];var end=range[1];startCount+=string16(start);endCount+=string16(end);var codes=range[2];range=!0;var j=1;for(jj=codes.length;j<jj;++j)if(codes[j]!==codes[j-1]+1){range=!1;break}if(range)idDeltas+=string16(codes[0]-start&65535),idRangeOffsets+=string16(0);else for(j=2*(segCount-i)+2*bias,bias+=end-start+1,idDeltas+=string16(0),idRangeOffsets+=string16(j),j=0,jj=codes.length;j<
|
|
1538
|
+
jj;++j)glyphsIds+=string16(codes[j])}0<trailingRangesCount&&(endCount+="\u00ff\u00ff",startCount+="\u00ff\u00ff",idDeltas+="\x00\u0001",idRangeOffsets+="\x00\x00");trailingRangesCount="\x00\x00"+string16(2*segCount)+string16(searchParams.range)+string16(searchParams.entry)+string16(searchParams.rangeShift)+endCount+"\x00\x00"+startCount+idDeltas+idRangeOffsets+glyphsIds;i=segCount="";if(1<numTables){numGlyphs+="\x00\u0003\x00\n"+(0,_util.string32)(8*numTables+8+trailingRangesCount.length);segCount=
|
|
1539
|
+
"";i=0;for(ii=glyphs.length;i<ii;i++){range=glyphs[i];start=range[0];codes=range[2];numTables=codes[0];j=1;for(jj=codes.length;j<jj;++j)codes[j]!==codes[j-1]+1&&(end=range[0]+j-1,segCount+=(0,_util.string32)(start)+(0,_util.string32)(end)+(0,_util.string32)(numTables),start=end+1,numTables=codes[j]);segCount+=(0,_util.string32)(start)+(0,_util.string32)(range[1])+(0,_util.string32)(numTables)}i="\x00\f\x00\x00"+(0,_util.string32)(segCount.length+16)+"\x00\x00\x00\x00"+(0,_util.string32)(segCount.length/
|
|
1540
|
+
12)}return numGlyphs+"\x00\u0004"+string16(trailingRangesCount.length+4)+trailingRangesCount+i+segCount}function validateOS2Table(os2){var stream=new _stream.Stream(os2.data),version=stream.getUint16();stream.getBytes(60);var selection=stream.getUint16();if(4>version&&selection&768)return!1;version=stream.getUint16();selection=stream.getUint16();if(version>selection)return!1;stream.getBytes(6);if(0===stream.getUint16())return!1;os2.data[8]=os2.data[9]=0;return!0}function createOS2Table(properties,
|
|
1541
|
+
charstrings,override){override=override||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var ulUnicodeRange1=0,ulUnicodeRange2=0,ulUnicodeRange3=0,ulUnicodeRange4=0,firstCharIndex=null,lastCharIndex=0;if(charstrings){for(var code in charstrings){code|=0;if(firstCharIndex>code||!firstCharIndex)firstCharIndex=code;lastCharIndex<code&&(lastCharIndex=code);charstrings=(0,_unicode.getUnicodeRangeFor)(code);if(32>charstrings)ulUnicodeRange1|=1<<charstrings;else if(64>charstrings)ulUnicodeRange2|=1<<charstrings-
|
|
1542
|
+
32;else if(96>charstrings)ulUnicodeRange3|=1<<charstrings-64;else if(123>charstrings)ulUnicodeRange4|=1<<charstrings-96;else throw new _util.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");}65535<lastCharIndex&&(lastCharIndex=65535)}else firstCharIndex=0,lastCharIndex=255;charstrings=properties.bbox||[0,0,0,0];code=override.unitsPerEm||1/(properties.fontMatrix||_util.FONT_IDENTITY_MATRIX)[0];var scale=properties.ascentScaled?1:code/1E3;code=override.ascent||Math.round(scale*
|
|
1543
|
+
(properties.ascent||charstrings[3]));scale=override.descent||Math.round(scale*(properties.descent||charstrings[1]));0<scale&&0<properties.descent&&0>charstrings[1]&&(scale=-scale);charstrings=override.yMax||code;override=-override.yMin||-scale;return"\x00\u0003\u0002$\u0001\u00f4\x00\u0005\x00\x00\u0002\u008a\u0002\u00bb\x00\x00\x00\u008c\u0002\u008a\u0002\u00bb\x00\x00\u0001\u00df\x001\u0001\u0002\x00\x00\x00\x00\u0006"+String.fromCharCode(properties.fixedPitch?9:0)+"\x00\x00\x00\x00\x00\x00"+(0,_util.string32)(ulUnicodeRange1)+
|
|
1544
|
+
(0,_util.string32)(ulUnicodeRange2)+(0,_util.string32)(ulUnicodeRange3)+(0,_util.string32)(ulUnicodeRange4)+"*21*"+string16(properties.italicAngle?1:0)+string16(firstCharIndex||properties.firstChar)+string16(lastCharIndex||properties.lastChar)+string16(code)+string16(scale)+"\x00d"+string16(charstrings)+string16(override)+"\x00\x00\x00\x00\x00\x00\x00\x00"+string16(properties.xHeight)+string16(properties.capHeight)+string16(0)+string16(firstCharIndex||properties.firstChar)+"\x00\u0003"}function createPostTable(properties){return"\x00\u0003\x00\x00"+
|
|
1545
|
+
(0,_util.string32)(Math.floor(properties.italicAngle*Math.pow(2,16)))+"\x00\x00\x00\x00"+(0,_util.string32)(properties.fixedPitch)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}function createNameTable(name,proto){proto||(proto=[[],[]]);name=[proto[0][0]||"Original licence",proto[0][1]||name,proto[0][2]||"Unknown",proto[0][3]||"uniqueID",proto[0][4]||name,proto[0][5]||"Version 0.11",proto[0][6]||"",proto[0][7]||"Unknown",proto[0][8]||"Unknown",proto[0][9]||"Unknown"];var stringsUnicode=
|
|
1546
|
+
[],ii,jj;var i=0;for(ii=name.length;i<ii;i++){var str=proto[1][i]||name[i];var strBufUnicode=[];var j=0;for(jj=str.length;j<jj;j++)strBufUnicode.push(string16(str.charCodeAt(j)));stringsUnicode.push(strBufUnicode.join(""))}proto=[name,stringsUnicode];strBufUnicode=["\x00\u0001","\x00\u0003"];var encodings=["\x00\x00","\x00\u0001"],languages=["\x00\x00","\u0004\t"];i=name.length*strBufUnicode.length;var nameTable="\x00\x00"+string16(i)+string16(12*i+6),strOffset=0;i=0;for(ii=strBufUnicode.length;i<
|
|
1547
|
+
ii;i++){var strs=proto[i];j=0;for(jj=strs.length;j<jj;j++){str=strs[j];var nameRecord=strBufUnicode[i]+encodings[i]+languages[i]+string16(j)+string16(str.length)+string16(strOffset);nameTable+=nameRecord;strOffset+=str.length}}return nameTable+=name.join("")+stringsUnicode.join("")}Font.getFontID=function(){var ID=1;return function(){return String(ID++)}}();Font.prototype={name:null,font:null,mimetype:null,encoding:null,disableFontFace:!1,get renderer(){var renderer=_font_renderer.FontRendererFactory.create(this,
|
|
1548
|
+
!0);return(0,_util.shadow)(this,"renderer",renderer)},exportData:function(){var data={},i;for(i in this)this.hasOwnProperty(i)&&(data[i]=this[i]);return data},fallbackToSystemFont:function(properties){var _this=this;this.missingFile=!0;var unicode,name=this.name,type=this.type,subtype=this.subtype,fontName=name.replace(/[,_]/g,"-"),stdFontMap=(0,_standard_fonts.getStdFontMap)(),nonStdFontMap=(0,_standard_fonts.getNonStdFontMap)(),isStandardFont=!!stdFontMap[fontName]||!(!nonStdFontMap[fontName]||
|
|
1549
|
+
!stdFontMap[nonStdFontMap[fontName]]);fontName=stdFontMap[fontName]||nonStdFontMap[fontName]||fontName;this.bold=-1!==fontName.search(/bold/gi);this.italic=-1!==fontName.search(/oblique/gi)||-1!==fontName.search(/italic/gi);this.black=-1!==name.search(/Black/g);this.remeasure=0<Object.keys(this.widths).length;if(isStandardFont&&"CIDFontType2"===type&&this.cidEncoding.startsWith("Identity-")){var cidToGidMap=properties.cidToGidMap,map=[];applyStandardFontGlyphMap(map,(0,_standard_fonts.getGlyphMapForStandardFonts)());
|
|
1550
|
+
/Arial-?Black/i.test(name)?applyStandardFontGlyphMap(map,(0,_standard_fonts.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(name)&&applyStandardFontGlyphMap(map,(0,_standard_fonts.getSupplementalGlyphMapForCalibri)());if(cidToGidMap){for(var _charCode in map)name=map[_charCode],void 0!==cidToGidMap[name]&&(map[+_charCode]=cidToGidMap[name]);cidToGidMap.length!==this.toUnicode.length&&properties.hasIncludedToUnicodeMap&&this.toUnicode instanceof IdentityToUnicodeMap&&this.toUnicode.forEach(function(charCode,
|
|
1551
|
+
unicodeCharCode){void 0===cidToGidMap[map[charCode]]&&(map[+charCode]=unicodeCharCode)})}this.toUnicode instanceof IdentityToUnicodeMap||this.toUnicode.forEach(function(charCode,unicodeCharCode){map[+charCode]=unicodeCharCode});this.toFontChar=map;this.toUnicode=new ToUnicodeMap(map)}else if(/Symbol/i.test(fontName))this.toFontChar=buildToFontChar(_encodings.SymbolSetEncoding,(0,_glyphlist.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(fontName))/Wingdings/i.test(name)&&(0,_util.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),
|
|
1552
|
+
this.toFontChar=buildToFontChar(_encodings.ZapfDingbatsEncoding,(0,_glyphlist.getDingbatsGlyphsUnicode)(),this.differences);else if(isStandardFont)this.toFontChar=buildToFontChar(this.defaultEncoding,(0,_glyphlist.getGlyphsUnicode)(),this.differences);else{var glyphsUnicodeMap=(0,_glyphlist.getGlyphsUnicode)(),_map=[];this.toUnicode.forEach(function(charCode,unicodeCharCode){_this.composite||(unicode=(0,_unicode.getUnicodeForGlyph)(_this.differences[charCode]||_this.defaultEncoding[charCode],glyphsUnicodeMap),
|
|
1553
|
+
-1!==unicode&&(unicodeCharCode=unicode));_map[+charCode]=unicodeCharCode});this.composite&&this.toUnicode instanceof IdentityToUnicodeMap&&/Verdana/i.test(name)&&applyStandardFontGlyphMap(_map,(0,_standard_fonts.getGlyphMapForStandardFonts)());this.toFontChar=_map}this.loadedName=fontName.split("-")[0];this.fontType=getFontType(type,subtype)},checkAndRepair:function(name,font$jscomp$0,properties$jscomp$0){function readTables(file,numTables){file=Object.create(null);file["OS/2"]=null;file.cmap=null;
|
|
1554
|
+
file.head=null;file.hhea=null;file.hmtx=null;file.maxp=null;file.name=null;file.post=null;for(var i=0;i<numTables;i++){var table=font$jscomp$0;var tag=(0,_util.bytesToString)(table.getBytes(4)),checksum=table.getInt32()>>>0,offset=table.getInt32()>>>0,length=table.getInt32()>>>0,previousPosition=table.pos;table.pos=table.start?table.start:0;table.skip(offset);var data=table.getBytes(length);table.pos=previousPosition;"head"===tag&&(data[8]=data[9]=data[10]=data[11]=0,data[17]|=32);table={tag:tag,
|
|
1555
|
+
checksum:checksum,length:length,offset:offset,data:data};VALID_TABLES.includes(table.tag)&&0!==table.length&&(file[table.tag]=table)}return file}function readOpenTypeHeader(ttf){return{version:(0,_util.bytesToString)(ttf.getBytes(4)),numTables:ttf.getUint16(),searchRange:ttf.getUint16(),entrySelector:ttf.getUint16(),rangeShift:ttf.getUint16()}}function readTrueTypeCollectionData(ttc,fontName){a:{var _readTrueTypeCollecti=(0,_util.bytesToString)(ttc.getBytes(4));(0,_util.assert)("ttcf"===_readTrueTypeCollecti,
|
|
1556
|
+
"Must be a TrueType Collection font.");for(var majorVersion=ttc.getUint16(),minorVersion=ttc.getUint16(),numFonts=ttc.getInt32()>>>0,offsetTable=[],i=0;i<numFonts;i++)offsetTable.push(ttc.getInt32()>>>0);_readTrueTypeCollecti={ttcTag:_readTrueTypeCollecti,majorVersion:majorVersion,minorVersion:minorVersion,numFonts:numFonts,offsetTable:offsetTable};switch(majorVersion){case 1:break a;case 2:_readTrueTypeCollecti.dsigTag=ttc.getInt32()>>>0;_readTrueTypeCollecti.dsigLength=ttc.getInt32()>>>0;_readTrueTypeCollecti.dsigOffset=
|
|
1557
|
+
ttc.getInt32()>>>0;break a}throw new _util.FormatError("Invalid TrueType Collection majorVersion: ".concat(majorVersion,"."));}majorVersion=_readTrueTypeCollecti.numFonts;_readTrueTypeCollecti=_readTrueTypeCollecti.offsetTable;for(minorVersion=0;minorVersion<majorVersion;minorVersion++){ttc.pos=(ttc.start||0)+_readTrueTypeCollecti[minorVersion];numFonts=readOpenTypeHeader(ttc);offsetTable=readTables(ttc,numFonts.numTables);if(!offsetTable.name)throw new _util.FormatError('TrueType Collection font must contain a "name" table.');
|
|
1554
1558
|
i=readNameTable(offsetTable.name);for(var j=0,jj=i.length;j<jj;j++)for(var k=0,kk=i[j].length;k<kk;k++){var nameEntry=i[j][k];if(nameEntry&&nameEntry.replace(/\s/g,"")===fontName)return{header:numFonts,tables:offsetTable}}}throw new _util.FormatError('TrueType Collection does not contain "'.concat(fontName,'" font.'));}function readCmapTable(cmap,font,isSymbolicFont,hasEncoding){if(!cmap)return(0,_util.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var segment;
|
|
1555
1559
|
cmap=(font.start?font.start:0)+cmap.offset;font.pos=cmap;font.getUint16();var numTables=font.getUint16(),potentialTable,canBreak=!1;for(segment=0;segment<numTables;segment++){var platformId=font.getUint16(),encodingId=font.getUint16(),offset=font.getInt32()>>>0,useTable=!1;if(!potentialTable||potentialTable.platformId!==platformId||potentialTable.encodingId!==encodingId)if(0===platformId&&0===encodingId?useTable=!0:1===platformId&&0===encodingId?useTable=!0:3!==platformId||1!==encodingId||!hasEncoding&&
|
|
1556
1560
|
potentialTable?isSymbolicFont&&3===platformId&&0===encodingId&&(canBreak=useTable=!0):(useTable=!0,isSymbolicFont||(canBreak=!0)),useTable&&(potentialTable={platformId:platformId,encodingId:encodingId,offset:offset}),canBreak)break}potentialTable&&(font.pos=cmap+potentialTable.offset);if(!potentialTable||-1===font.peekByte())return(0,_util.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};cmap=font.getUint16();font.getUint16();font.getUint16();
|
|
@@ -1602,7 +1606,7 @@ glyphId){for(var charCode in charCodeToGlyphId)if(glyphId===charCodeToGlyphId[ch
|
|
|
1602
1606
|
glyphZeroId);this.toFontChar=newMapping.toFontChar;var numGlyphs=font.numGlyphs;if((glyphZeroId=font.seacs)&&glyphZeroId.length){var matrix=properties.fontMatrix||_util.FONT_IDENTITY_MATRIX,charset=font.getCharset(),seacMap=Object.create(null);for(glyphId$jscomp$0 in glyphZeroId){glyphId$jscomp$0|=0;var seac=glyphZeroId[glyphId$jscomp$0],accentGlyphName=_encodings.StandardEncoding[seac[3]],baseGlyphId=charset.indexOf(_encodings.StandardEncoding[seac[2]]);accentGlyphName=charset.indexOf(accentGlyphName);
|
|
1603
1607
|
if(!(0>baseGlyphId||0>accentGlyphName)){seac={x:seac[0]*matrix[0]+seac[1]*matrix[2]+matrix[4],y:seac[0]*matrix[1]+seac[1]*matrix[3]+matrix[5]};var charCodes=getCharCodes(mapping,glyphId$jscomp$0);if(charCodes)for(var i$jscomp$0=0,ii=charCodes.length;i$jscomp$0<ii;i$jscomp$0++){var charCode$jscomp$0=charCodes[i$jscomp$0],charCodeToGlyphId$jscomp$0=newMapping.charCodeToGlyphId,baseFontCharCode=createCharCode(charCodeToGlyphId$jscomp$0,baseGlyphId);charCodeToGlyphId$jscomp$0=createCharCode(charCodeToGlyphId$jscomp$0,
|
|
1604
1608
|
accentGlyphName);seacMap[charCode$jscomp$0]={baseFontCharCode:baseFontCharCode,accentFontCharCode:charCodeToGlyphId$jscomp$0,accentOffset:seac}}}}properties.seacMap=seacMap}mapping=1/(properties.fontMatrix||_util.FONT_IDENTITY_MATRIX)[0];var glyphId$jscomp$0=new OpenTypeFileBuilder("OTTO");glyphId$jscomp$0.addTable("CFF ",font.data);glyphId$jscomp$0.addTable("OS/2",createOS2Table(properties,newMapping.charCodeToGlyphId));glyphId$jscomp$0.addTable("cmap",createCmapTable(newMapping.charCodeToGlyphId,
|
|
1605
|
-
numGlyphs));glyphId$jscomp$0.addTable("head","\x00\u0001\x00\x00\x00\x00\u0010\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x00"+safeString16(mapping)+"\x00\x00\x00\x00\u009e\
|
|
1609
|
+
numGlyphs));glyphId$jscomp$0.addTable("head","\x00\u0001\x00\x00\x00\x00\u0010\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x00"+safeString16(mapping)+"\x00\x00\x00\x00\u009e\v~'\x00\x00\x00\x00\u009e\v~'\x00\x00"+safeString16(properties.descent)+"\u000f\u00ff"+safeString16(properties.ascent)+string16(properties.italicAngle?2:0)+"\x00\u0011\x00\x00\x00\x00\x00\x00");glyphId$jscomp$0.addTable("hhea","\x00\u0001\x00\x00"+safeString16(properties.ascent)+safeString16(properties.descent)+"\x00\x00\u00ff\u00ff\x00\x00\x00\x00\x00\x00"+
|
|
1606
1610
|
safeString16(properties.capHeight)+safeString16(Math.tan(properties.italicAngle)*properties.xHeight)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+string16(numGlyphs));glyphId$jscomp$0.addTable("hmtx",function(){for(var charstrings=font.charstrings,cffWidths=font.cff?font.cff.widths:null,hmtx="\x00\x00\x00\x00",i=1;i<numGlyphs;i++){var width=0;charstrings?(width=charstrings[i-1],width="width"in width?width.width:0):cffWidths&&(width=Math.ceil(cffWidths[i]||0));hmtx+=string16(width)+string16(0)}return hmtx}());
|
|
1607
1611
|
glyphId$jscomp$0.addTable("maxp","\x00\x00P\x00"+string16(numGlyphs));glyphId$jscomp$0.addTable("name",createNameTable(fontName));glyphId$jscomp$0.addTable("post",createPostTable(properties));return glyphId$jscomp$0.toArray()},get spaceWidth(){if("_shadowWidth"in this)return this._shadowWidth;for(var possibleSpaceReplacements=["space","minus","one","i","I"],width,i=0,ii=possibleSpaceReplacements.length;i<ii;i++){width=possibleSpaceReplacements[i];if(width in this.widths){width=this.widths[width];
|
|
1608
1612
|
break}width=(0,_glyphlist.getGlyphsUnicode)()[width];var charcode=0;this.composite&&this.cMap.contains(width)&&(charcode=this.cMap.lookup(width));!charcode&&this.toUnicode&&(charcode=this.toUnicode.charCodeOf(width));0>=charcode&&(charcode=width);if(width=this.widths[charcode])break}return this._shadowWidth=width=width||this.defaultWidth},charToGlyph:function(charcode,isSpace){var operatorListId,widthCode=charcode;this.cMap&&this.cMap.contains(charcode)&&(widthCode=this.cMap.lookup(charcode));var width=
|
|
@@ -1676,18 +1680,18 @@ i=this.compileStringIndex(cff.strings.strings);output.add(i);i=this.compileIndex
|
|
|
1676
1680
|
output.add(i);i=this.compileCharStrings(cff.charStrings);header.setEntryLocation("CharStrings",[output.length],output);output.add(i);cff.isCIDFont&&(header.setEntryLocation("FDSelect",[output.length],output),i=this.compileFDSelect(cff.fdSelect),output.add(i),i=this.compileTopDicts(cff.fdArray,output.length,!0),header.setEntryLocation("FDArray",[output.length],output),output.add(i.output),this.compilePrivateDicts(cff.fdArray,i.trackers,output));this.compilePrivateDicts([cff.topDict],[header],output);
|
|
1677
1681
|
output.add([0]);return output.data},encodeNumber:function(value){return parseFloat(value)!==parseInt(value,10)||isNaN(value)?this.encodeFloat(value):this.encodeInteger(value)},encodeFloat:function(num){var value=num.toString(),m=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);m&&(value=parseFloat("1e"+((m[2]?+m[2]:0)+m[1].length)),value=(Math.round(num*value)/value).toString());num="";var ii;m=0;for(ii=value.length;m<ii;++m){var a=value[m];num="e"===a?num+("-"===value[++m]?"c":"b"):"."===
|
|
1678
1682
|
a?num+"a":"-"===a?num+"e":num+a}num+=num.length&1?"f":"ff";value=[30];m=0;for(ii=num.length;m<ii;m+=2)value.push(parseInt(num.substring(m,m+2),16));return value},encodeInteger:function(value){-107<=value&&107>=value?value=[value+139]:108<=value&&1131>=value?(value-=108,value=[(value>>8)+247,value&255]):-1131<=value&&-108>=value?(value=-value-108,value=[(value>>8)+251,value&255]):value=-32768<=value&&32767>=value?[28,value>>8&255,value&255]:[29,value>>24&255,value>>16&255,value>>8&255,value&255];return value},
|
|
1679
|
-
compileHeader:function(header){return[header.major,header.minor,header.hdrSize,header.offSize]},compileNameIndex:function(names){for(var nameIndex=new CFFIndex,i=0,ii=names.length;i<ii;++i){for(var name=names[i],length=Math.min(name.length,127),sanitizedName=Array(length),j=0;j<length;j++){var
|
|
1680
|
-
sanitizedName.join("");""===sanitizedName&&(sanitizedName="Bad_Font_Name");nameIndex.add((0,_util.stringToBytes)(sanitizedName))}return this.compileIndex(nameIndex)},compileTopDicts:function(dicts,length,removeCidKeys){for(var fontDictTrackers=[],fdArrayIndex=new CFFIndex,i=0,ii=dicts.length;i<ii;++i){var fontDict=dicts[i];removeCidKeys&&(fontDict.removeByName("CIDFontVersion"),fontDict.removeByName("CIDFontRevision"),fontDict.removeByName("CIDFontType"),fontDict.removeByName("CIDCount"),
|
|
1681
|
-
var fontDictTracker=new CFFOffsetTracker;fontDict=this.compileDict(fontDict,fontDictTracker);fontDictTrackers.push(fontDictTracker);fdArrayIndex.add(fontDict);fontDictTracker.offset(length)}fdArrayIndex=this.compileIndex(fdArrayIndex,fontDictTrackers);return{trackers:fontDictTrackers,output:fdArrayIndex}},compilePrivateDicts:function(dicts,trackers,output){for(var i=0,ii=dicts.length;i<ii;++i){var fontDict=dicts[i],privateDict=fontDict.privateDict;if(!privateDict
|
|
1682
|
-
fontDict=new CFFOffsetTracker;var privateDictData=this.compileDict(privateDict,fontDict),outputLength=output.length;fontDict.offset(outputLength);privateDictData.length||(outputLength=0);trackers[i].setEntryLocation("Private",[privateDictData.length,outputLength],output);output.add(privateDictData);privateDict.subrsIndex&&privateDict.hasName("Subrs")&&(privateDict=this.compileIndex(privateDict.subrsIndex),
|
|
1683
|
-
compileDict:function(dict,offsetTracker){for(var out=[],order=dict.order,i=0;i<order.length;++i){var key=order[i];if(key in dict.values){var values=dict.values[key],types=dict.types[key];Array.isArray(types)||(types=[types]);Array.isArray(values)||(values=[values]);if(0!==values.length){for(var j=0,jj=types.length;j<jj;++j){var type=types[j],value=values[j];switch(type){case "num":case "sid":out=out.concat(this.encodeNumber(value));
|
|
1684
|
-
offsetTracker.track(type,out.length);out=out.concat([29,0,0,0,0]);break;case "array":case "delta":out=out.concat(this.encodeNumber(value));type=1;for(value=values.length;type<value;++type)out=out.concat(this.encodeNumber(values[type]));break;default:throw new _util.FormatError("Unknown data type of ".concat(type));}}out=out.concat(dict.opcodes[key])}}}return out},compileStringIndex:function(strings){for(var stringIndex=
|
|
1685
|
-
return this.compileIndex(stringIndex)},compileGlobalSubrIndex:function(){this.out.writeByteArray(this.compileIndex(this.cff.globalSubrIndex))},compileCharStrings:function(charStrings){for(var charStringsIndex=new CFFIndex,i=0;i<charStrings.count;i++){var glyph=charStrings.get(i);0===glyph.length?charStringsIndex.add(new Uint8Array([139,14])):charStringsIndex.add(glyph)}return this.compileIndex(charStringsIndex)},
|
|
1686
|
-
new Uint8Array([2,0,0,numGlyphs>>8&255,numGlyphs&255]);else{isCIDFont=new Uint8Array(1+2*numGlyphs);numGlyphs=isCIDFont[0]=0;for(var numCharsets=charset.charset.length,warned=!1,i=1;i<isCIDFont.length;i+=2){var sid=0;if(numGlyphs<numCharsets){var name=charset.charset[numGlyphs++];sid=strings.getSID(name);-1===sid&&(sid=0,warned||(warned=!0,(0,_util.warn)("Couldn't find ".concat(name," in CFF strings"))))}isCIDFont[i]=
|
|
1687
|
-
compileFDSelect:function(fdSelect){var format=fdSelect.format;switch(format){case 0:var out=new Uint8Array(1+fdSelect.fdSelect.length);out[0]=format;for(format=0;format<fdSelect.fdSelect.length;format++)out[format+1]=fdSelect.fdSelect[format];break;case 3:out=fdSelect.fdSelect[0];var ranges=[format,0,0,0,0,out];for(format=1;format<fdSelect.fdSelect.length;format++){var currentFD=
|
|
1688
|
-
3)/3;ranges[1]=fdSelect>>8&255;ranges[2]=fdSelect&255;ranges.push(format>>8&255,format&255);out=new Uint8Array(ranges)}return this.compileTypedArray(out)},compileTypedArray:function(data){for(var out=[],i=0,ii=data.length;i<ii;++i)out[i]=data[i];return out},compileIndex:function(index,trackers){trackers=trackers||[];index=index.objects;var count=index.length;if(0===count)return[0,
|
|
1689
|
-
1:65536>lastOffset?2:16777216>lastOffset?3:4;data.push(lastOffset);var relativeOffset=1;for(i=0;i<count+1;i++)1===lastOffset?data.push(relativeOffset&255):2===lastOffset?data.push(relativeOffset>>8&255,relativeOffset&255):3===lastOffset?data.push(relativeOffset>>16&255,relativeOffset>>8&255,relativeOffset&255):data.push(relativeOffset>>>24&255,relativeOffset>>16&255,relativeOffset>>
|
|
1690
|
-
lastOffset=0,relativeOffset=index[i].length;lastOffset<relativeOffset;lastOffset++)data.push(index[i][lastOffset]);return data}};return CFFCompiler}();exports.CFFCompiler=module},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0});exports.ISOAdobeCharset=".notdef space exclam quotedbl numbersign dollar percent ampersand quoteright parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde exclamdown cent sterling fraction yen florin section currency quotesingle quotedblleft guillemotleft guilsinglleft guilsinglright fi fl endash dagger daggerdbl periodcentered paragraph bullet quotesinglbase quotedblbase quotedblright guillemotright ellipsis perthousand questiondown grave acute circumflex tilde macron breve dotaccent dieresis ring cedilla hungarumlaut ogonek caron emdash AE ordfeminine Lslash Oslash OE ordmasculine ae dotlessi lslash oslash oe germandbls onesuperior logicalnot mu trademark Eth onehalf plusminus Thorn onequarter divide brokenbar degree thorn threequarters twosuperior registered minus eth multiply threesuperior copyright Aacute Acircumflex Adieresis Agrave Aring Atilde Ccedilla Eacute Ecircumflex Edieresis Egrave Iacute Icircumflex Idieresis Igrave Ntilde Oacute Ocircumflex Odieresis Ograve Otilde Scaron Uacute Ucircumflex Udieresis Ugrave Yacute Ydieresis Zcaron aacute acircumflex adieresis agrave aring atilde ccedilla eacute ecircumflex edieresis egrave iacute icircumflex idieresis igrave ntilde oacute ocircumflex odieresis ograve otilde scaron uacute ucircumflex udieresis ugrave yacute ydieresis zcaron".split(" ");
|
|
1683
|
+
compileHeader:function(header){return[header.major,header.minor,header.hdrSize,header.offSize]},compileNameIndex:function(names){for(var nameIndex=new CFFIndex,i=0,ii=names.length;i<ii;++i){for(var name=names[i],length=Math.min(name.length,127),sanitizedName=Array(length),j=0;j<length;j++){var _char5=name[j];if("!">_char5||"~"<_char5||"["===_char5||"]"===_char5||"("===_char5||")"===_char5||"{"===_char5||"}"===_char5||"<"===_char5||">"===_char5||"/"===_char5||"%"===_char5)_char5="_";sanitizedName[j]=
|
|
1684
|
+
_char5}sanitizedName=sanitizedName.join("");""===sanitizedName&&(sanitizedName="Bad_Font_Name");nameIndex.add((0,_util.stringToBytes)(sanitizedName))}return this.compileIndex(nameIndex)},compileTopDicts:function(dicts,length,removeCidKeys){for(var fontDictTrackers=[],fdArrayIndex=new CFFIndex,i=0,ii=dicts.length;i<ii;++i){var fontDict=dicts[i];removeCidKeys&&(fontDict.removeByName("CIDFontVersion"),fontDict.removeByName("CIDFontRevision"),fontDict.removeByName("CIDFontType"),fontDict.removeByName("CIDCount"),
|
|
1685
|
+
fontDict.removeByName("UIDBase"));var fontDictTracker=new CFFOffsetTracker;fontDict=this.compileDict(fontDict,fontDictTracker);fontDictTrackers.push(fontDictTracker);fdArrayIndex.add(fontDict);fontDictTracker.offset(length)}fdArrayIndex=this.compileIndex(fdArrayIndex,fontDictTrackers);return{trackers:fontDictTrackers,output:fdArrayIndex}},compilePrivateDicts:function(dicts,trackers,output){for(var i=0,ii=dicts.length;i<ii;++i){var fontDict=dicts[i],privateDict=fontDict.privateDict;if(!privateDict||
|
|
1686
|
+
!fontDict.hasName("Private"))throw new _util.FormatError("There must be a private dictionary.");fontDict=new CFFOffsetTracker;var privateDictData=this.compileDict(privateDict,fontDict),outputLength=output.length;fontDict.offset(outputLength);privateDictData.length||(outputLength=0);trackers[i].setEntryLocation("Private",[privateDictData.length,outputLength],output);output.add(privateDictData);privateDict.subrsIndex&&privateDict.hasName("Subrs")&&(privateDict=this.compileIndex(privateDict.subrsIndex),
|
|
1687
|
+
fontDict.setEntryLocation("Subrs",[privateDictData.length],output),output.add(privateDict))}},compileDict:function(dict,offsetTracker){for(var out=[],order=dict.order,i=0;i<order.length;++i){var key=order[i];if(key in dict.values){var values=dict.values[key],types=dict.types[key];Array.isArray(types)||(types=[types]);Array.isArray(values)||(values=[values]);if(0!==values.length){for(var j=0,jj=types.length;j<jj;++j){var type=types[j],value=values[j];switch(type){case "num":case "sid":out=out.concat(this.encodeNumber(value));
|
|
1688
|
+
break;case "offset":type=dict.keyToNameMap[key];offsetTracker.isTracking(type)||offsetTracker.track(type,out.length);out=out.concat([29,0,0,0,0]);break;case "array":case "delta":out=out.concat(this.encodeNumber(value));type=1;for(value=values.length;type<value;++type)out=out.concat(this.encodeNumber(values[type]));break;default:throw new _util.FormatError("Unknown data type of ".concat(type));}}out=out.concat(dict.opcodes[key])}}}return out},compileStringIndex:function(strings){for(var stringIndex=
|
|
1689
|
+
new CFFIndex,i=0,ii=strings.length;i<ii;++i)stringIndex.add((0,_util.stringToBytes)(strings[i]));return this.compileIndex(stringIndex)},compileGlobalSubrIndex:function(){this.out.writeByteArray(this.compileIndex(this.cff.globalSubrIndex))},compileCharStrings:function(charStrings){for(var charStringsIndex=new CFFIndex,i=0;i<charStrings.count;i++){var glyph=charStrings.get(i);0===glyph.length?charStringsIndex.add(new Uint8Array([139,14])):charStringsIndex.add(glyph)}return this.compileIndex(charStringsIndex)},
|
|
1690
|
+
compileCharset:function(charset,numGlyphs,strings,isCIDFont){--numGlyphs;if(isCIDFont)isCIDFont=new Uint8Array([2,0,0,numGlyphs>>8&255,numGlyphs&255]);else{isCIDFont=new Uint8Array(1+2*numGlyphs);numGlyphs=isCIDFont[0]=0;for(var numCharsets=charset.charset.length,warned=!1,i=1;i<isCIDFont.length;i+=2){var sid=0;if(numGlyphs<numCharsets){var name=charset.charset[numGlyphs++];sid=strings.getSID(name);-1===sid&&(sid=0,warned||(warned=!0,(0,_util.warn)("Couldn't find ".concat(name," in CFF strings"))))}isCIDFont[i]=
|
|
1691
|
+
sid>>8&255;isCIDFont[i+1]=sid&255}}return this.compileTypedArray(isCIDFont)},compileEncoding:function(encoding){return this.compileTypedArray(encoding.raw)},compileFDSelect:function(fdSelect){var format=fdSelect.format;switch(format){case 0:var out=new Uint8Array(1+fdSelect.fdSelect.length);out[0]=format;for(format=0;format<fdSelect.fdSelect.length;format++)out[format+1]=fdSelect.fdSelect[format];break;case 3:out=fdSelect.fdSelect[0];var ranges=[format,0,0,0,0,out];for(format=1;format<fdSelect.fdSelect.length;format++){var currentFD=
|
|
1692
|
+
fdSelect.fdSelect[format];currentFD!==out&&(ranges.push(format>>8&255,format&255,currentFD),out=currentFD)}fdSelect=(ranges.length-3)/3;ranges[1]=fdSelect>>8&255;ranges[2]=fdSelect&255;ranges.push(format>>8&255,format&255);out=new Uint8Array(ranges)}return this.compileTypedArray(out)},compileTypedArray:function(data){for(var out=[],i=0,ii=data.length;i<ii;++i)out[i]=data[i];return out},compileIndex:function(index,trackers){trackers=trackers||[];index=index.objects;var count=index.length;if(0===count)return[0,
|
|
1693
|
+
0,0];var data=[count>>8&255,count&255],lastOffset=1,i;for(i=0;i<count;++i)lastOffset+=index[i].length;lastOffset=256>lastOffset?1:65536>lastOffset?2:16777216>lastOffset?3:4;data.push(lastOffset);var relativeOffset=1;for(i=0;i<count+1;i++)1===lastOffset?data.push(relativeOffset&255):2===lastOffset?data.push(relativeOffset>>8&255,relativeOffset&255):3===lastOffset?data.push(relativeOffset>>16&255,relativeOffset>>8&255,relativeOffset&255):data.push(relativeOffset>>>24&255,relativeOffset>>16&255,relativeOffset>>
|
|
1694
|
+
8&255,relativeOffset&255),index[i]&&(relativeOffset+=index[i].length);for(i=0;i<count;i++)for(trackers[i]&&trackers[i].offset(data.length),lastOffset=0,relativeOffset=index[i].length;lastOffset<relativeOffset;lastOffset++)data.push(index[i][lastOffset]);return data}};return CFFCompiler}();exports.CFFCompiler=module},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0});exports.ISOAdobeCharset=".notdef space exclam quotedbl numbersign dollar percent ampersand quoteright parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde exclamdown cent sterling fraction yen florin section currency quotesingle quotedblleft guillemotleft guilsinglleft guilsinglright fi fl endash dagger daggerdbl periodcentered paragraph bullet quotesinglbase quotedblbase quotedblright guillemotright ellipsis perthousand questiondown grave acute circumflex tilde macron breve dotaccent dieresis ring cedilla hungarumlaut ogonek caron emdash AE ordfeminine Lslash Oslash OE ordmasculine ae dotlessi lslash oslash oe germandbls onesuperior logicalnot mu trademark Eth onehalf plusminus Thorn onequarter divide brokenbar degree thorn threequarters twosuperior registered minus eth multiply threesuperior copyright Aacute Acircumflex Adieresis Agrave Aring Atilde Ccedilla Eacute Ecircumflex Edieresis Egrave Iacute Icircumflex Idieresis Igrave Ntilde Oacute Ocircumflex Odieresis Ograve Otilde Scaron Uacute Ucircumflex Udieresis Ugrave Yacute Ydieresis Zcaron aacute acircumflex adieresis agrave aring atilde ccedilla eacute ecircumflex edieresis egrave iacute icircumflex idieresis igrave ntilde oacute ocircumflex odieresis ograve otilde scaron uacute ucircumflex udieresis ugrave yacute ydieresis zcaron".split(" ");
|
|
1691
1695
|
exports.ExpertCharset=".notdef space exclamsmall Hungarumlautsmall dollaroldstyle dollarsuperior ampersandsmall Acutesmall parenleftsuperior parenrightsuperior twodotenleader onedotenleader comma hyphen period fraction zerooldstyle oneoldstyle twooldstyle threeoldstyle fouroldstyle fiveoldstyle sixoldstyle sevenoldstyle eightoldstyle nineoldstyle colon semicolon commasuperior threequartersemdash periodsuperior questionsmall asuperior bsuperior centsuperior dsuperior esuperior isuperior lsuperior msuperior nsuperior osuperior rsuperior ssuperior tsuperior ff fi fl ffi ffl parenleftinferior parenrightinferior Circumflexsmall hyphensuperior Gravesmall Asmall Bsmall Csmall Dsmall Esmall Fsmall Gsmall Hsmall Ismall Jsmall Ksmall Lsmall Msmall Nsmall Osmall Psmall Qsmall Rsmall Ssmall Tsmall Usmall Vsmall Wsmall Xsmall Ysmall Zsmall colonmonetary onefitted rupiah Tildesmall exclamdownsmall centoldstyle Lslashsmall Scaronsmall Zcaronsmall Dieresissmall Brevesmall Caronsmall Dotaccentsmall Macronsmall figuredash hypheninferior Ogoneksmall Ringsmall Cedillasmall onequarter onehalf threequarters questiondownsmall oneeighth threeeighths fiveeighths seveneighths onethird twothirds zerosuperior onesuperior twosuperior threesuperior foursuperior fivesuperior sixsuperior sevensuperior eightsuperior ninesuperior zeroinferior oneinferior twoinferior threeinferior fourinferior fiveinferior sixinferior seveninferior eightinferior nineinferior centinferior dollarinferior periodinferior commainferior Agravesmall Aacutesmall Acircumflexsmall Atildesmall Adieresissmall Aringsmall AEsmall Ccedillasmall Egravesmall Eacutesmall Ecircumflexsmall Edieresissmall Igravesmall Iacutesmall Icircumflexsmall Idieresissmall Ethsmall Ntildesmall Ogravesmall Oacutesmall Ocircumflexsmall Otildesmall Odieresissmall OEsmall Oslashsmall Ugravesmall Uacutesmall Ucircumflexsmall Udieresissmall Yacutesmall Thornsmall Ydieresissmall".split(" ");
|
|
1692
1696
|
exports.ExpertSubsetCharset=".notdef space dollaroldstyle dollarsuperior parenleftsuperior parenrightsuperior twodotenleader onedotenleader comma hyphen period fraction zerooldstyle oneoldstyle twooldstyle threeoldstyle fouroldstyle fiveoldstyle sixoldstyle sevenoldstyle eightoldstyle nineoldstyle colon semicolon commasuperior threequartersemdash periodsuperior asuperior bsuperior centsuperior dsuperior esuperior isuperior lsuperior msuperior nsuperior osuperior rsuperior ssuperior tsuperior ff fi fl ffi ffl parenleftinferior parenrightinferior hyphensuperior colonmonetary onefitted rupiah centoldstyle figuredash hypheninferior onequarter onehalf threequarters oneeighth threeeighths fiveeighths seveneighths onethird twothirds zerosuperior onesuperior twosuperior threesuperior foursuperior fivesuperior sixsuperior sevensuperior eightsuperior ninesuperior zeroinferior oneinferior twoinferior threeinferior fourinferior fiveinferior sixinferior seveninferior eightinferior nineinferior centinferior dollarinferior periodinferior commainferior".split(" ")},
|
|
1693
1697
|
function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0});exports.getEncoding=function(encodingName){switch(encodingName){case "WinAnsiEncoding":return WinAnsiEncoding;case "StandardEncoding":return StandardEncoding;case "MacRomanEncoding":return MacRomanEncoding;case "SymbolSetEncoding":return SymbolSetEncoding;case "ZapfDingbatsEncoding":return ZapfDingbatsEncoding;case "ExpertEncoding":return ExpertEncoding;case "MacExpertEncoding":return MacExpertEncoding;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
(function(){/*
|
|
2
|
+
Pikaday
|
|
3
|
+
|
|
4
|
+
Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
5
|
+
*/
|
|
6
|
+
self.webpackChunk([1],{152:function(module,exports,__webpack_require__){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){if("object"==_typeof(exports)){try{var n=__webpack_require__(153)}catch(e$31){}module.exports=
|
|
7
|
+
t(n)}else{try{n=__webpack_require__("moment")}catch(e$32){}e=t(n);!(__WEBPACK_AMD_DEFINE_RESULT__=e,void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}}(this,function(e$jscomp$1){var t$jscomp$1="function"==typeof e$jscomp$1,n$jscomp$1=!!window.addEventListener,a$jscomp$0=window.document,i$jscomp$0=window.setTimeout,s$jscomp$0=function(e,t,a,i){n$jscomp$1?e.addEventListener(t,a,!!i):e.attachEvent("on"+t,a)},o$jscomp$0=function(e,t,a,i){n$jscomp$1?e.removeEventListener(t,
|
|
8
|
+
a,!!i):e.detachEvent("on"+t,a)},r$jscomp$0=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l$jscomp$0=function(e,t){r$jscomp$0(e,t)||(e.className=""===e.className?t:e.className+" "+t)},h$jscomp$0=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},d$jscomp$0=function(e){return/Array/.test(Object.prototype.toString.call(e))},u$jscomp$0=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},
|
|
9
|
+
g$jscomp$0=function(e,t){return[31,0==e%4&&0!=e%100||0==e%400?29:28,31,30,31,30,31,31,30,31,30,31][t]},m$jscomp$0=function(e){u$jscomp$0(e)&&e.setHours(0,0,0,0)},p$jscomp$0=function(e,t){return e.getTime()===t.getTime()},y$jscomp$0=function y(e,t,n){var a,i;for(a in t)(i=void 0!==e[a])&&"object"==_typeof(t[a])&&null!==t[a]&&void 0===t[a].nodeName?u$jscomp$0(t[a])?n&&(e[a]=new Date(t[a].getTime())):d$jscomp$0(t[a])?n&&(e[a]=t[a].slice(0)):e[a]=y({},t[a],n):!n&&i||(e[a]=t[a]);return e},D$jscomp$0=function(e,
|
|
10
|
+
t,n){var i;a$jscomp$0.createEvent?((i=a$jscomp$0.createEvent("HTMLEvents")).initEvent(t,!0,!1),i=y$jscomp$0(i,n),e.dispatchEvent(i)):a$jscomp$0.createEventObject&&(i=a$jscomp$0.createEventObject(),i=y$jscomp$0(i,n),e.fireEvent("on"+t,i))},b$jscomp$0=function(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},v$jscomp$0={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",
|
|
11
|
+
reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,showTodayButton:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,
|
|
12
|
+
blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",today:"Today",months:"January February March April May June July August September October November December".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},_$jscomp$0=function(e,t,n){for(t+=e.firstDay;7<=t;)t-=7;return n?e.i18n.weekdaysShort[t]:
|
|
13
|
+
e.i18n.weekdays[t]},x=function(e,t,n,a,i,s){var r,u,c=e._o,f=n===c.minYear,g=n===c.maxYear,m='<div id="'+s+'" class="pika-title" role="heading" aria-live="assertive">',p=!0,y=!0;var l=[];for(s=0;12>s;s++)l.push('<option value="'+(n===i?s-t:12+s-t)+'"'+(s===a?' selected="selected"':"")+(f&&s<c.minMonth||g&&s>c.maxMonth?' disabled="disabled"':"")+">"+c.i18n.months[s]+"</option>");i='<div class="pika-label">'+c.i18n.months[a]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+
|
|
14
|
+
"</select></div>";d$jscomp$0(c.yearRange)?(s=c.yearRange[0],r=c.yearRange[1]+1):(s=n-c.yearRange,r=1+n+c.yearRange);for(l=[];s<r&&s<=c.maxYear;s++)s>=c.minYear&&l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return u='<div class="pika-label">'+n+c.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",c.showMonthAfterYear?m+=u+i:m+=i+u,f&&(0===a||c.minMonth>=a)&&(p=!1),g&&(11===a||c.maxMonth<=a)&&(y=!1),0===t&&(m+=
|
|
15
|
+
'<button class="pika-prev'+(p?"":" is-disabled")+'" type="button">'+c.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+c.i18n.nextMonth+"</button>"),m+"</div>"},R=function(e$jscomp$0,t$jscomp$0,n$jscomp$0){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n$jscomp$0+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;7>t;t++)n.push('<th scope="col"><abbr title="'+
|
|
16
|
+
_$jscomp$0(e,t)+'">'+_$jscomp$0(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e$jscomp$0)+("<tbody>"+t$jscomp$0.join("")+"</tbody>")+(e$jscomp$0.showTodayButton?function(e){var t=[];return t.push('<td colspan="'+(e.showWeekNumber?"8":"7")+'"><button class="pika-set-today">'+e.i18n.today+"</button></td>"),"<tfoot>"+(e.isRTL?t.reverse():t).join("")+"</tfoot>"}(e$jscomp$0):"")+"</table>"},N$jscomp$0=function(o){var l=this,h=l.config(o);l._onMouseDown=function(e){if(l._v){var t=
|
|
17
|
+
(e=e||window.event).target||e.srcElement;if(t)if(r$jscomp$0(t,"is-disabled")||(!r$jscomp$0(t,"pika-button")||r$jscomp$0(t,"is-empty")||r$jscomp$0(t.parentNode,"is-disabled")?r$jscomp$0(t,"pika-prev")?l.prevMonth():r$jscomp$0(t,"pika-next")?l.nextMonth():r$jscomp$0(t,"pika-set-today")&&(l.setDate(new Date),l.hide()):(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),h.bound&&i$jscomp$0(function(){l.hide();h.blurFieldOnSelect&&h.field&&
|
|
18
|
+
h.field.blur()},100))),r$jscomp$0(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}};l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(r$jscomp$0(t,"pika-select-month")?l.gotoMonth(t.value):r$jscomp$0(t,"pika-select-year")&&l.gotoYear(t.value))};l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:h.field&&h.field.blur();break;case 37:l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",
|
|
19
|
+
7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7);break;case 8:case 46:l.setDate(null)}};l._parseFieldValue=function(){if(h.parse)return h.parse(h.field.value,h.format);if(t$jscomp$1){var n=e$jscomp$1(h.field.value,h.format,h.formatStrict);return n&&n.isValid()?n.toDate():null}return new Date(Date.parse(h.field.value))};l._onInputChange=function(e){var t;e.firedBy!==l&&(t=l._parseFieldValue(),u$jscomp$0(t)&&l.setDate(t),l._v||l.show())};l._onInputFocus=function(){l.show()};
|
|
20
|
+
l._onInputClick=function(){l.show()};l._onInputBlur=function(){var e=a$jscomp$0.activeElement;do if(r$jscomp$0(e,"pika-single"))return;while(e=e.parentNode);l._c||(l._b=i$jscomp$0(function(){l.hide()},50));l._c=!1};l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement;if(e=t){!n$jscomp$1&&r$jscomp$0(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),s$jscomp$0(t,"change",l._onChange)));do if(r$jscomp$0(e,"pika-single")||e===h.trigger)return;while(e=e.parentNode);
|
|
21
|
+
l._v&&t!==h.trigger&&e!==h.trigger&&l.hide()}};l.el=a$jscomp$0.createElement("div");l.el.className="pika-single"+(h.isRTL?" is-rtl":"")+(h.theme?" "+h.theme:"");s$jscomp$0(l.el,"mousedown",l._onMouseDown,!0);s$jscomp$0(l.el,"touchend",l._onMouseDown,!0);s$jscomp$0(l.el,"change",l._onChange);h.keyboardInput&&s$jscomp$0(a$jscomp$0,"keydown",l._onKeyChange);h.field&&(h.container?h.container.appendChild(l.el):h.bound?a$jscomp$0.body.appendChild(l.el):h.field.parentNode.insertBefore(l.el,h.field.nextSibling),
|
|
22
|
+
s$jscomp$0(h.field,"change",l._onInputChange),h.defaultDate||(h.defaultDate=l._parseFieldValue(),h.setDefaultDate=!0));o=h.defaultDate;u$jscomp$0(o)?h.setDefaultDate?l.setDate(o,!0):l.gotoDate(o):l.gotoDate(new Date);h.bound?(this.hide(),l.el.className+=" is-bound",s$jscomp$0(h.trigger,"click",l._onInputClick),s$jscomp$0(h.trigger,"focus",l._onInputFocus),s$jscomp$0(h.trigger,"blur",l._onInputBlur)):this.show()};return N$jscomp$0.prototype={config:function(e){this._o||(this._o=y$jscomp$0({},v$jscomp$0,
|
|
23
|
+
!0));e=y$jscomp$0(this._o,e,!0);e.isRTL=!!e.isRTL;e.field=e.field&&e.field.nodeName?e.field:null;e.theme="string"==typeof e.theme&&e.theme?e.theme:null;e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field);e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;e.disableWeekends=!!e.disableWeekends;e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;(e.numberOfMonths=4<n?4:n,u$jscomp$0(e.minDate)||(e.minDate=!1),u$jscomp$0(e.maxDate)||(e.maxDate=
|
|
24
|
+
!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),d$jscomp$0(e.yearRange))?(n=(new Date).getFullYear()-10,e.yearRange[0]=parseInt(e.yearRange[0],10)||n,e.yearRange[1]=parseInt(e.yearRange[1],10)||n):(e.yearRange=Math.abs(parseInt(e.yearRange,10))||v$jscomp$0.yearRange,100<e.yearRange&&(e.yearRange=100));return e},toString:function(n){return n=n||this._o.format,u$jscomp$0(this._d)?this._o.toString?this._o.toString(this._d,
|
|
25
|
+
n):t$jscomp$1?e$jscomp$1(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t$jscomp$1?e$jscomp$1(this._d):null},setMoment:function(n,a){t$jscomp$1&&e$jscomp$1.isMoment(n)&&this.setDate(n.toDate(),a)},getDate:function(){return u$jscomp$0(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",D$jscomp$0(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),
|
|
26
|
+
u$jscomp$0(e)){var n=this._o.minDate,a=this._o.maxDate;u$jscomp$0(n)&&e<n?e=n:u$jscomp$0(a)&&e>a&&(e=a);this._d=new Date(e.getTime());this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),D$jscomp$0(this._o.field,"change",{firedBy:this}));t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(e){var t=!0;if(u$jscomp$0(e)){if(this.calendars){t=new Date(this.calendars[0].year,this.calendars[0].month,
|
|
27
|
+
1);var a=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();a.setMonth(a.getMonth()+1);a.setDate(a.getDate()-1);t=i<t.getTime()||a.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(e,t){var n,a=this.getDate()||new Date;t=864E5*parseInt(t);"add"===e?n=new Date(a.valueOf()+t):"subtract"===
|
|
28
|
+
e&&(n=new Date(a.valueOf()-t));this.setDate(n)},adjustCalendars:function(){this.calendars[0]=b$jscomp$0(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=b$jscomp$0({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;
|
|
29
|
+
this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(m$jscomp$0(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=v$jscomp$0.minDate,this._o.minYear=v$jscomp$0.minYear,this._o.minMonth=v$jscomp$0.minMonth,this._o.startRange=v$jscomp$0.startRange);this.draw()},setMaxDate:function(e){e instanceof Date?(m$jscomp$0(e),this._o.maxDate=e,this._o.maxYear=
|
|
30
|
+
e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=v$jscomp$0.maxDate,this._o.maxYear=v$jscomp$0.maxYear,this._o.maxMonth=v$jscomp$0.maxMonth,this._o.endRange=v$jscomp$0.endRange);this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var n=this._o;var t=n.minYear;var s=n.maxYear,o=n.minMonth,r=n.maxMonth;e="";this._y<=t&&(this._y=t,!isNaN(o)&&this._m<o&&(this._m=o));this._y>=s&&(this._y=s,!isNaN(r)&&this._m>
|
|
31
|
+
r&&(this._m=r));for(s=0;s<n.numberOfMonths;s++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),e+='<div class="pika-lendar">'+x(this,s,this.calendars[s].year,this.calendars[s].month,this.calendars[0].year,t)+this.render(this.calendars[s].year,this.calendars[s].month,t)+"</div>";this.el.innerHTML=e;n.bound&&"hidden"!==n.field.type&&i$jscomp$0(function(){n.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);n.bound&&n.field.setAttribute("aria-label",
|
|
32
|
+
n.ariaLabel)}},adjustPosition:function(){var e,t,n,i,s,o,r,f,g;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,i=this.el.offsetHeight,s=window.innerWidth||a$jscomp$0.documentElement.clientWidth,o=window.innerHeight||a$jscomp$0.documentElement.clientHeight,r=window.pageYOffset||a$jscomp$0.body.scrollTop||a$jscomp$0.documentElement.scrollTop,f=!0,g=!0,"function"==typeof e.getBoundingClientRect){var d=(t=e.getBoundingClientRect()).left+window.pageXOffset;
|
|
33
|
+
var u=t.bottom+window.pageYOffset}else for(d=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)d+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&d+n>s||-1<this._o.position.indexOf("right")&&0<d-n+e.offsetWidth)&&(d=d-n+e.offsetWidth,f=!1);(this._o.reposition&&u+i>o+r||-1<this._o.position.indexOf("top")&&0<u-i-e.offsetHeight)&&(u=u-i-e.offsetHeight,g=!1);0>d&&(d=0);0>u&&(u=0);this.el.style.left=d+"px";this.el.style.top=u+"px";l$jscomp$0(this.el,f?"left-aligned":"right-aligned");l$jscomp$0(this.el,
|
|
34
|
+
g?"bottom-aligned":"top-aligned");h$jscomp$0(this.el,f?"right-aligned":"left-aligned");h$jscomp$0(this.el,g?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var a=this._o,i=new Date,s=g$jscomp$0(e,t),o=(new Date(e,t,1)).getDay(),r=[],l=[];m$jscomp$0(i);0<a.firstDay&&0>(o-=a.firstDay)&&(o+=7);for(var h=0===t?11:t-1,d=11===t?0:t+1,f=0===t?e-1:e,y=11===t?e+1:e,D=g$jscomp$0(f,h),b=s+o,v=b;7<v;)v-=7;b+=7-v;for(var _=!1,N=v=0;v<b;v++){var S=new Date(e,t,v-o+1),T=!!u$jscomp$0(this._d)&&p$jscomp$0(S,
|
|
35
|
+
this._d),C=p$jscomp$0(S,i),I=-1!==a.events.indexOf(S.toDateString()),Y=v<o||v>=s+o,E=v-o+1,O=t,j=e,W=a.startRange&&p$jscomp$0(a.startRange,S),F=a.endRange&&p$jscomp$0(a.endRange,S),A=a.startRange&&a.endRange&&a.startRange<S&&S<a.endRange;Y&&(v<o?(E=D+E,O=h,j=f):(E-=s,O=d,j=y));var JSCompiler_temp_const=T,JSCompiler_temp;!(JSCompiler_temp=a.minDate&&S<a.minDate||a.maxDate&&S>a.maxDate)&&(JSCompiler_temp=a.disableWeekends)&&(JSCompiler_temp=S.getDay(),JSCompiler_temp=0===JSCompiler_temp||6===JSCompiler_temp);
|
|
36
|
+
Y={day:E,month:O,year:j,hasEvent:I,isSelected:JSCompiler_temp_const,isToday:C,isDisabled:JSCompiler_temp||a.disableDayFn&&a.disableDayFn(S),isEmpty:Y,isStartRange:W,isEndRange:F,isInRange:A,showDaysInNextAndPreviousMonths:a.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:a.enableSelectionDaysInNextAndPreviousMonths};a.pickWholeWeek&&T&&(_=!0);T=l;S=T.push;a:{W=Y;F=[];A="false";if(W.isEmpty){if(!W.showDaysInNextAndPreviousMonths){Y='<td class="is-empty"></td>';break a}F.push("is-outside-current-month");
|
|
37
|
+
W.enableSelectionDaysInNextAndPreviousMonths||F.push("is-selection-disabled")}Y=(W.isDisabled&&F.push("is-disabled"),W.isToday&&F.push("is-today"),W.isSelected&&(F.push("is-selected"),A="true"),W.hasEvent&&F.push("has-event"),W.isInRange&&F.push("is-inrange"),W.isStartRange&&F.push("is-startrange"),W.isEndRange&&F.push("is-endrange"),'<td data-day="'+W.day+'" class="'+F.join(" ")+'" aria-selected="'+A+'"><button class="pika-button pika-day" type="button" data-pika-year="'+W.year+'" data-pika-month="'+
|
|
38
|
+
W.month+'" data-pika-day="'+W.day+'">'+W.day+"</button></td>")}S.call(T,Y);7==++N&&(a.showWeekNumber&&(N=l,T=N.unshift,W=a.firstWeekOfYearMinDays,Y=new Date(e,t,v-o),t$jscomp$1?S=e$jscomp$1(Y).isoWeek():(Y.setHours(0,0,0,0),F=Y.getDate(),A=Y.getDay(),S=W-1,Y.setDate(F+S-(A+7-1)%7),W=new Date(Y.getFullYear(),0,W),Y=(Y.getTime()-W.getTime())/864E5,S=1+Math.round((Y-S+(W.getDay()+7-1)%7)/7)),T.call(N,'<td class="pika-week">'+S+"</td>")),N=r,T=N.push,l='<tr class="pika-row'+(a.pickWholeWeek?" pick-whole-week":
|
|
39
|
+
"")+(_?" is-selected":"")+'">'+(a.isRTL?l.reverse():l).join("")+"</tr>",T.call(N,l),l=[],N=0,_=!1)}return R(a,r,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),h$jscomp$0(this.el,"is-hidden"),this._o.bound&&(s$jscomp$0(a$jscomp$0,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&o$jscomp$0(a$jscomp$0,"click",this._onClick),this._o.container||
|
|
40
|
+
(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),l$jscomp$0(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide();o$jscomp$0(this.el,"mousedown",this._onMouseDown,!0);o$jscomp$0(this.el,"touchend",this._onMouseDown,!0);o$jscomp$0(this.el,"change",this._onChange);e.keyboardInput&&o$jscomp$0(a$jscomp$0,"keydown",this._onKeyChange);e.field&&(o$jscomp$0(e.field,"change",
|
|
41
|
+
this._onInputChange),e.bound&&(o$jscomp$0(e.trigger,"click",this._onInputClick),o$jscomp$0(e.trigger,"focus",this._onInputFocus),o$jscomp$0(e.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},N$jscomp$0})}});}).call(this || window)
|