@esri/solutions-components 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ExpandToggle-e6a0d66e.js → ExpandToggle-70890ae0.js} +4 -4
- package/dist/cjs/{FloatingArrow-0119ec6e.js → FloatingArrow-4ca06439.js} +1 -1
- package/dist/cjs/{Heading-521f39ac.js → Heading-c5c71fc5.js} +1 -1
- package/dist/cjs/{app-globals-72576a1c.js → app-globals-a34c0991.js} +20 -25
- package/dist/cjs/{ar-1718ae57.js → ar-fa16156d.js} +15 -15
- package/dist/cjs/{bg-190a176c.js → bg-b39e773e.js} +15 -15
- package/dist/cjs/{bs-919e0de8.js → bs-4579ea2a.js} +15 -15
- package/dist/cjs/buffer-tools_4.cjs.entry.js +1437 -1437
- package/dist/cjs/{ca-94918e06.js → ca-f3f64686.js} +15 -15
- package/dist/cjs/calcite-accordion-item.cjs.entry.js +140 -140
- package/dist/cjs/calcite-accordion.cjs.entry.js +75 -75
- package/dist/cjs/calcite-action-bar.cjs.entry.js +216 -216
- package/dist/cjs/calcite-action-group_2.cjs.entry.js +365 -365
- package/dist/cjs/calcite-action-pad.cjs.entry.js +135 -135
- package/dist/cjs/calcite-action_2.cjs.entry.js +445 -445
- package/dist/cjs/calcite-alert.cjs.entry.js +247 -247
- package/dist/cjs/calcite-avatar.cjs.entry.js +73 -73
- package/dist/cjs/calcite-block-section.cjs.entry.js +122 -122
- package/dist/cjs/calcite-block.cjs.entry.js +131 -131
- package/dist/cjs/calcite-button.cjs.entry.js +182 -182
- package/dist/cjs/calcite-card.cjs.entry.js +99 -99
- package/dist/cjs/calcite-checkbox.cjs.entry.js +125 -125
- package/dist/cjs/calcite-chip-group.cjs.entry.js +164 -164
- package/dist/cjs/calcite-chip.cjs.entry.js +213 -213
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +303 -303
- package/dist/cjs/calcite-color-picker.cjs.entry.js +886 -886
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +35 -35
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1786 -1786
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +589 -589
- package/dist/cjs/calcite-date-picker.cjs.entry.js +434 -434
- package/dist/cjs/calcite-fab.cjs.entry.js +66 -66
- package/dist/cjs/calcite-filter_5.cjs.entry.js +1131 -1131
- package/dist/cjs/calcite-flow-item.cjs.entry.js +146 -146
- package/dist/cjs/calcite-flow.cjs.entry.js +117 -117
- package/dist/cjs/calcite-graph.cjs.entry.js +66 -66
- package/dist/cjs/calcite-icon.cjs.entry.js +80 -80
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +225 -225
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +632 -632
- package/dist/cjs/calcite-input-number_2.cjs.entry.js +846 -846
- package/dist/cjs/{calcite-input-time-picker-b99baf7b.js → calcite-input-time-picker-6f38ef8c.js} +534 -534
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +150 -150
- package/dist/cjs/calcite-input_2.cjs.entry.js +645 -645
- package/dist/cjs/calcite-label.cjs.entry.js +40 -40
- package/dist/cjs/calcite-link.cjs.entry.js +96 -96
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +46 -46
- package/dist/cjs/calcite-loader.cjs.entry.js +65 -65
- package/dist/cjs/calcite-menu-item.cjs.entry.js +246 -246
- package/dist/cjs/calcite-menu.cjs.entry.js +161 -161
- package/dist/cjs/calcite-modal.cjs.entry.js +282 -282
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +52 -52
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +45 -45
- package/dist/cjs/calcite-navigation.cjs.entry.js +126 -126
- package/dist/cjs/calcite-notice.cjs.entry.js +105 -105
- package/dist/cjs/calcite-option-group.cjs.entry.js +24 -24
- package/dist/cjs/calcite-option_2.cjs.entry.js +271 -271
- package/dist/cjs/calcite-pagination.cjs.entry.js +191 -191
- package/dist/cjs/calcite-panel_2.cjs.entry.js +346 -346
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +46 -46
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +181 -181
- package/dist/cjs/calcite-pick-list.cjs.entry.js +130 -130
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +118 -118
- package/dist/cjs/calcite-radio-button.cjs.entry.js +292 -292
- package/dist/cjs/calcite-rating.cjs.entry.js +245 -245
- package/dist/cjs/calcite-scrim.cjs.entry.js +93 -93
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +225 -225
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +42 -42
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2604 -2604
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +134 -134
- package/dist/cjs/calcite-split-button.cjs.entry.js +92 -92
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +197 -197
- package/dist/cjs/calcite-stepper.cjs.entry.js +187 -187
- package/dist/cjs/calcite-switch.cjs.entry.js +100 -100
- package/dist/cjs/calcite-text-area.cjs.entry.js +235 -235
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +27 -27
- package/dist/cjs/calcite-tile-select.cjs.entry.js +180 -180
- package/dist/cjs/calcite-tile.cjs.entry.js +58 -58
- package/dist/cjs/calcite-time-picker.cjs.entry.js +619 -619
- package/dist/cjs/calcite-tip-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +185 -185
- package/dist/cjs/calcite-tip.cjs.entry.js +94 -94
- package/dist/cjs/calcite-tooltip.cjs.entry.js +185 -185
- package/dist/cjs/calcite-tree_3.cjs.entry.js +821 -821
- package/dist/cjs/card-manager_4.cjs.entry.js +652 -652
- package/dist/cjs/{conditionalSlot-85b3a6b3.js → conditionalSlot-a51326e7.js} +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +256 -256
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +60 -60
- package/dist/cjs/{cs-fe27e732.js → cs-1bcd5b46.js} +15 -15
- package/dist/cjs/{da-1b7f3440.js → da-30ee21db.js} +15 -15
- package/dist/cjs/{date-cec32b0e.js → date-f6611a19.js} +1 -1
- package/dist/cjs/{de-0dc1effa.js → de-42aae5ad.js} +15 -15
- package/dist/cjs/{de-at-acdc4d01.js → de-at-a3a6f020.js} +15 -15
- package/dist/cjs/{de-ch-778a0d99.js → de-ch-36c13310.js} +15 -15
- package/dist/cjs/deduct-calculator.cjs.entry.js +90 -90
- package/dist/cjs/{dom-c1807fc1.js → dom-d529bae8.js} +2 -2
- package/dist/cjs/{downloadUtils-a8c530f7.js → downloadUtils-6eb59363.js} +660 -660
- package/dist/cjs/edit-card_2.cjs.entry.js +345 -345
- package/dist/cjs/{el-fdbc9bc1.js → el-90d066ae.js} +15 -15
- package/dist/cjs/{en-au-0ff50cdf.js → en-au-685b882b.js} +15 -15
- package/dist/cjs/{en-ca-284e9368.js → en-ca-ff4bc403.js} +15 -15
- package/dist/cjs/{en-gb-0fcae8ae.js → en-gb-2f5587ad.js} +15 -15
- package/dist/cjs/{es-cd54acba.js → es-e9183ca0.js} +15 -15
- package/dist/cjs/{es-mx-2078d50f.js → es-mx-dcc9afb2.js} +15 -15
- package/dist/cjs/{et-17f323f6.js → et-a18949ea.js} +15 -15
- package/dist/cjs/{fi-82f27397.js → fi-1ce00d38.js} +15 -15
- package/dist/cjs/{filter-bda212b4.js → filter-494bf35e.js} +1 -1
- package/dist/cjs/{floating-ui-8d10af88.js → floating-ui-7d6e57d3.js} +2 -2
- package/dist/cjs/{focusTrapComponent-a22fc6a8.js → focusTrapComponent-0c4d7671.js} +1 -1
- package/dist/cjs/{form-9d8ebf06.js → form-bcf49eae.js} +2 -2
- package/dist/cjs/{fr-af7e1192.js → fr-a9435a19.js} +15 -15
- package/dist/cjs/{fr-ch-5e1f2c28.js → fr-ch-51efa9bf.js} +15 -15
- package/dist/cjs/{he-ea851800.js → he-c5dccfa2.js} +15 -15
- package/dist/cjs/{hi-5212a21d.js → hi-0898e7f2.js} +15 -15
- package/dist/cjs/{hr-4eecb2ed.js → hr-68f7d8da.js} +15 -15
- package/dist/cjs/{hu-6b527d8e.js → hu-e494037d.js} +15 -15
- package/dist/cjs/{id-d78f12ec.js → id-bef40c1c.js} +15 -15
- package/dist/cjs/{index-0e50040c.js → index-6654298b.js} +38 -180
- package/dist/cjs/{index-2b60e135.js → index-e1b1954f.js} +1 -1
- package/dist/cjs/{index.es-4542630e.js → index.es-d9b5d3a5.js} +6 -6
- package/dist/cjs/{interfaces-d539e30c.js → interfaces-ad03ec39.js} +77 -77
- package/dist/cjs/{it-15242935.js → it-1144ca67.js} +15 -15
- package/dist/cjs/{it-ch-9dc21944.js → it-ch-2c14dca7.js} +15 -15
- package/dist/cjs/{ja-f702cfc2.js → ja-caad9809.js} +15 -15
- package/dist/cjs/{ko-aa9bde2c.js → ko-ddec9054.js} +15 -15
- package/dist/cjs/{label-6e33e971.js → label-215c4af3.js} +1 -1
- package/dist/cjs/list-item.cjs.entry.js +60 -60
- package/dist/cjs/{loadModules-31cab7ac.js → loadModules-ae7715f2.js} +19 -19
- package/dist/cjs/{loadable-bac9cdd6.js → loadable-6da743c6.js} +1 -1
- package/dist/cjs/loader.cjs.js +13 -4
- package/dist/cjs/{locale-c63a1b57.js → locale-477d8d51.js} +3 -3
- package/dist/cjs/{locale-d15cd743.js → locale-b113c6b2.js} +107 -107
- package/dist/cjs/{lt-e741ff2f.js → lt-205a1aa6.js} +15 -15
- package/dist/cjs/{lv-92d6768e.js → lv-3ba82f9b.js} +15 -15
- package/dist/cjs/map-picker_2.cjs.entry.js +243 -243
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1285 -1285
- package/dist/cjs/{mapViewUtils-9da2dddd.js → mapViewUtils-77a1ff88.js} +384 -384
- package/dist/cjs/{mk-b209ac0d.js → mk-069ea86a.js} +15 -15
- package/dist/cjs/{nb-db13e666.js → nb-9e9c934f.js} +15 -15
- package/dist/cjs/{nl-fcd9e0c5.js → nl-5dd0116f.js} +15 -15
- package/dist/cjs/{openCloseComponent-5d70fcd8.js → openCloseComponent-3fa18210.js} +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +102 -102
- package/dist/cjs/{pciUtils-e0ddeb7c.js → pciUtils-423cfc68.js} +836 -836
- package/dist/cjs/{pl-87c83322.js → pl-74e70b37.js} +15 -15
- package/dist/cjs/{pt-br-03333e90.js → pt-br-0f76e430.js} +15 -15
- package/dist/cjs/{pt-b0b5f472.js → pt-cc737fcc.js} +15 -15
- package/dist/cjs/public-notification.cjs.entry.js +844 -844
- package/dist/cjs/{publicNotificationStore-55edd658.js → publicNotificationStore-ec1bdd2d.js} +40 -40
- package/dist/cjs/{ro-c3661b73.js → ro-5e396753.js} +15 -15
- package/dist/cjs/{ru-8dd3fd58.js → ru-f7371aca.js} +15 -15
- package/dist/cjs/{shared-list-render-c0adb192.js → shared-list-render-76c5dc25.js} +6 -6
- package/dist/cjs/{sk-151d9acf.js → sk-ec02498f.js} +15 -15
- package/dist/cjs/{sl-9b45a152.js → sl-8363f4d7.js} +15 -15
- package/dist/cjs/solution-configuration.cjs.entry.js +888 -888
- package/dist/cjs/solution-contents_3.cjs.entry.js +21506 -21506
- package/dist/cjs/{solution-store-0004e4e6.js → solution-store-bd956f06.js} +577 -577
- package/dist/cjs/solutions-components.cjs.js +4 -4
- package/dist/cjs/{sortableComponent-58679f07.js → sortableComponent-8135ea87.js} +1 -1
- package/dist/cjs/{sr-186bf15c.js → sr-b0f92cb1.js} +15 -15
- package/dist/cjs/store-manager.cjs.entry.js +52 -52
- package/dist/cjs/{sv-a93fee0c.js → sv-e2c27fff.js} +15 -15
- package/dist/cjs/{t9n-1d032c30.js → t9n-8be30efb.js} +2 -2
- package/dist/cjs/{th-41680352.js → th-8a6dc2cc.js} +15 -15
- package/dist/cjs/{throttle-aeeb1b4d.js → throttle-8ee74c77.js} +1 -1
- package/dist/cjs/{time-5e450ec8.js → time-9004df7e.js} +1 -1
- package/dist/cjs/{tr-0bd886d6.js → tr-09137435.js} +15 -15
- package/dist/cjs/{uk-4fade133.js → uk-c30401f4.js} +15 -15
- package/dist/cjs/{utils-ae9bdd59.js → utils-ed4e5028.js} +1 -1
- package/dist/cjs/{utils-acfeed9d.js → utils-fb81c6b3.js} +3 -3
- package/dist/cjs/{vi-1c9fe343.js → vi-e069c9e4.js} +15 -15
- package/dist/cjs/{zh-cn-28fa1fe1.js → zh-cn-50f223a8.js} +15 -15
- package/dist/cjs/{zh-hk-5abf8eb5.js → zh-hk-5498073d.js} +15 -15
- package/dist/cjs/{zh-tw-07500357.js → zh-tw-dfdb0ae8.js} +15 -15
- package/dist/collection/collection-manifest.json +35 -35
- package/dist/collection/components/buffer-tools/buffer-tools.js +476 -481
- package/dist/collection/components/card-manager/card-manager.js +197 -199
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +406 -407
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +89 -89
- package/dist/collection/components/deduct-calculator/deduct-calculator.js +143 -143
- package/dist/collection/components/edit-card/edit-card.js +300 -302
- package/dist/collection/components/info-card/info-card.js +357 -361
- package/dist/collection/components/json-editor/json-editor.js +614 -618
- package/dist/collection/components/layer-table/layer-table.js +548 -551
- package/dist/collection/components/layout-manager/layout-manager.js +135 -136
- package/dist/collection/components/list-item/list-item.js +89 -89
- package/dist/collection/components/map-card/map-card.js +203 -206
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +683 -692
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +423 -424
- package/dist/collection/components/map-picker/map-picker.js +224 -226
- package/dist/collection/components/map-select-tools/map-select-tools.js +1229 -1242
- package/dist/collection/components/map-tools/map-tools.js +210 -212
- package/dist/collection/components/pci-calculator/pci-calculator.js +143 -143
- package/dist/collection/components/pdf-download/pdf-download.js +333 -338
- package/dist/collection/components/public-notification/public-notification.js +1287 -1295
- package/dist/collection/components/refine-selection/refine-selection.js +601 -608
- package/dist/collection/components/solution-configuration/solution-configuration.js +735 -739
- package/dist/collection/components/solution-contents/solution-contents.js +162 -163
- package/dist/collection/components/solution-item/solution-item.js +202 -203
- package/dist/collection/components/solution-item-details/solution-item-details.js +248 -248
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +398 -398
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +199 -200
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +156 -156
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +347 -348
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +510 -515
- package/dist/collection/components/solution-spatial-ref/spatialreferences.js +21046 -21046
- package/dist/collection/components/solution-template-data/solution-template-data.js +230 -230
- package/dist/collection/components/solution-variables/solution-variables.js +168 -168
- package/dist/collection/components/store-manager/store-manager.js +127 -128
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/common.js +296 -296
- package/dist/collection/utils/csvDownload.js +41 -41
- package/dist/collection/utils/csvUtils.js +37 -37
- package/dist/collection/utils/downloadUtils.js +530 -530
- package/dist/collection/utils/interfaces.js +83 -83
- package/dist/collection/utils/languageUtil.js +90 -90
- package/dist/collection/utils/loadModules.js +25 -25
- package/dist/collection/utils/locale.js +61 -61
- package/dist/collection/utils/mapViewUtils.js +240 -240
- package/dist/collection/utils/pciUtils.js +842 -842
- package/dist/collection/utils/pdfUtils.js +87 -87
- package/dist/collection/utils/publicNotificationStore.js +47 -47
- package/dist/collection/utils/queryUtils.js +200 -200
- package/dist/collection/utils/solution-store.js +584 -584
- package/dist/collection/utils/templates.js +346 -346
- package/dist/collection/utils/test/mocks/jsApi.js +79 -79
- package/dist/collection/utils/test/testUtils.js +123 -123
- package/dist/collection/utils/types.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/action-bar.js +263 -262
- package/dist/components/action-group.js +145 -144
- package/dist/components/action-menu.js +311 -310
- package/dist/components/action.js +186 -185
- package/dist/components/alert.js +287 -286
- package/dist/components/avatar.js +100 -99
- package/dist/components/buffer-tools2.js +264 -263
- package/dist/components/button.js +226 -225
- package/dist/components/calcite-accordion-item.js +168 -168
- package/dist/components/calcite-accordion.js +96 -95
- package/dist/components/calcite-action-pad.js +181 -180
- package/dist/components/calcite-block-section.js +151 -150
- package/dist/components/calcite-block.js +187 -186
- package/dist/components/calcite-card.js +133 -132
- package/dist/components/calcite-chip-group.js +182 -181
- package/dist/components/calcite-color-picker.js +980 -979
- package/dist/components/calcite-combobox-item-group.js +53 -52
- package/dist/components/calcite-fab.js +105 -104
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +205 -204
- package/dist/components/calcite-flow.js +137 -136
- package/dist/components/calcite-inline-editable.js +260 -259
- package/dist/components/calcite-input-date-picker.js +704 -703
- package/dist/components/calcite-input-time-picker.js +596 -595
- package/dist/components/calcite-input-time-zone.js +190 -189
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-list-item-group.js +65 -64
- package/dist/components/calcite-menu-item.js +297 -297
- package/dist/components/calcite-modal.js +329 -328
- package/dist/components/calcite-navigation-logo.js +77 -76
- package/dist/components/calcite-navigation-user.js +79 -78
- package/dist/components/calcite-navigation.js +167 -166
- package/dist/components/calcite-option-group.js +43 -42
- package/dist/components/calcite-pagination.js +218 -217
- package/dist/components/calcite-pick-list-group.js +60 -59
- package/dist/components/calcite-pick-list.js +151 -150
- package/dist/components/calcite-radio-button-group.js +142 -141
- package/dist/components/calcite-radio-button.js +317 -316
- package/dist/components/calcite-rating.js +280 -279
- package/dist/components/calcite-shell-center-row.js +58 -57
- package/dist/components/calcite-sortable-list.js +154 -153
- package/dist/components/calcite-split-button.js +143 -142
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +226 -225
- package/dist/components/calcite-stepper.js +213 -212
- package/dist/components/calcite-text-area.js +267 -266
- package/dist/components/calcite-tile-select-group.js +45 -44
- package/dist/components/calcite-tile-select.js +224 -223
- package/dist/components/calcite-tip-group.js +28 -27
- package/dist/components/calcite-tip-manager.js +223 -222
- package/dist/components/calcite-tip.js +127 -126
- package/dist/components/card-manager2.js +156 -155
- package/dist/components/checkbox.js +147 -146
- package/dist/components/chip.js +246 -245
- package/dist/components/color-picker-hex-input.js +288 -287
- package/dist/components/color-picker-swatch.js +80 -79
- package/dist/components/combobox-item.js +136 -135
- package/dist/components/combobox.js +922 -921
- package/dist/components/crowdsource-manager.js +476 -475
- package/dist/components/crowdsource-reporter.js +76 -75
- package/dist/components/date-picker-day.js +110 -110
- package/dist/components/date-picker-month-header.js +198 -197
- package/dist/components/date-picker-month.js +373 -372
- package/dist/components/date-picker.js +493 -492
- package/dist/components/date.js +1 -1
- package/dist/components/deduct-calculator2.js +982 -981
- package/dist/components/dom.js +23 -2
- package/dist/components/downloadUtils.js +655 -655
- package/dist/components/dropdown-group.js +73 -72
- package/dist/components/dropdown-item.js +196 -195
- package/dist/components/dropdown.js +421 -420
- package/dist/components/edit-card2.js +192 -191
- package/dist/components/filter.js +202 -751
- package/dist/components/filter2.js +740 -190
- package/dist/components/floating-ui.js +2 -2
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/graph.js +87 -86
- package/dist/components/handle.js +166 -165
- package/dist/components/icon.js +100 -99
- package/dist/components/index.d.ts +36 -0
- package/dist/components/index.js +153 -25
- package/dist/components/info-card2.js +252 -251
- package/dist/components/input-message.js +67 -66
- package/dist/components/input-number.js +600 -600
- package/dist/components/input-text.js +368 -368
- package/dist/components/input.js +687 -687
- package/dist/components/interfaces.js +78 -78
- package/dist/components/json-editor2.js +426 -425
- package/dist/components/label.js +65 -117
- package/dist/components/label2.js +110 -57
- package/dist/components/layer-table2.js +548 -547
- package/dist/components/layout-manager2.js +119 -118
- package/dist/components/link.js +123 -123
- package/dist/components/list-item.js +76 -75
- package/dist/components/list-item2.js +432 -431
- package/dist/components/list.js +511 -510
- package/dist/components/loadModules.js +18 -18
- package/dist/components/loader.js +87 -86
- package/dist/components/locale.js +106 -106
- package/dist/components/locale2.js +2 -2
- package/dist/components/map-card2.js +201 -200
- package/dist/components/map-draw-tools2.js +384 -383
- package/dist/components/map-layer-picker2.js +292 -291
- package/dist/components/map-picker2.js +236 -235
- package/dist/components/map-select-tools2.js +917 -916
- package/dist/components/map-tools2.js +170 -169
- package/dist/components/mapViewUtils.js +235 -235
- package/dist/components/menu.js +179 -178
- package/dist/components/notice.js +131 -130
- package/dist/components/option.js +92 -91
- package/dist/components/panel.js +308 -307
- package/dist/components/pci-calculator.js +170 -169
- package/dist/components/pdf-download2.js +174 -173
- package/dist/components/pick-list-item.js +220 -219
- package/dist/components/popover.js +350 -349
- package/dist/components/progress.js +46 -46
- package/dist/components/public-notification.js +1102 -1101
- package/dist/components/publicNotificationStore.js +39 -39
- package/dist/components/queryUtils.js +152 -152
- package/dist/components/refine-selection2.js +547 -546
- package/dist/components/resources.js +9 -17
- package/dist/components/resources2.js +13 -9
- package/dist/components/resources3.js +5 -9
- package/dist/components/scrim.js +116 -115
- package/dist/components/segmented-control-item.js +63 -62
- package/dist/components/segmented-control.js +214 -213
- package/dist/components/select.js +227 -226
- package/dist/components/shared-list-render.js +3 -3
- package/dist/components/shell-panel.js +398 -398
- package/dist/components/shell.js +120 -119
- package/dist/components/slider.js +899 -898
- package/dist/components/solution-configuration.js +1096 -1095
- package/dist/components/solution-contents2.js +112 -111
- package/dist/components/solution-item-details2.js +218 -217
- package/dist/components/solution-item-icon2.js +331 -330
- package/dist/components/solution-item-sharing2.js +152 -151
- package/dist/components/solution-item2.js +270 -269
- package/dist/components/solution-organization-variables2.js +116 -115
- package/dist/components/solution-resource-item2.js +332 -331
- package/dist/components/solution-spatial-ref2.js +21421 -21420
- package/dist/components/solution-store.js +575 -575
- package/dist/components/solution-template-data2.js +203 -202
- package/dist/components/solution-variables2.js +133 -132
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/stack.js +79 -78
- package/dist/components/store-manager.js +71 -70
- package/dist/components/switch.js +119 -118
- package/dist/components/tab-nav.js +255 -254
- package/dist/components/tab-title.js +301 -300
- package/dist/components/tab.js +112 -111
- package/dist/components/tabs.js +131 -130
- package/dist/components/tile.js +90 -89
- package/dist/components/time-picker.js +655 -654
- package/dist/components/tooltip.js +208 -207
- package/dist/components/tree-item.js +288 -288
- package/dist/components/tree.js +282 -281
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +2 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +170 -169
- package/dist/components/value-list.js +276 -275
- package/dist/esm/{ExpandToggle-3d10bd1e.js → ExpandToggle-3420fa39.js} +4 -4
- package/dist/esm/{FloatingArrow-29db6da6.js → FloatingArrow-cd8eafa4.js} +1 -1
- package/dist/esm/{Heading-cb79e5b2.js → Heading-1763134e.js} +1 -1
- package/dist/esm/{app-globals-5cbac6b0.js → app-globals-580889bd.js} +20 -25
- package/dist/esm/{ar-4b751ba8.js → ar-ceb1b389.js} +15 -15
- package/dist/esm/{bg-5d8bf5ea.js → bg-a8824832.js} +15 -15
- package/dist/esm/{bs-ff510e71.js → bs-5c2ca44f.js} +15 -15
- package/dist/esm/buffer-tools_4.entry.js +1437 -1437
- package/dist/esm/{ca-b9a5e51a.js → ca-47f86073.js} +15 -15
- package/dist/esm/calcite-accordion-item.entry.js +140 -140
- package/dist/esm/calcite-accordion.entry.js +75 -75
- package/dist/esm/calcite-action-bar.entry.js +216 -216
- package/dist/esm/calcite-action-group_2.entry.js +365 -365
- package/dist/esm/calcite-action-pad.entry.js +135 -135
- package/dist/esm/calcite-action_2.entry.js +445 -445
- package/dist/esm/calcite-alert.entry.js +247 -247
- package/dist/esm/calcite-avatar.entry.js +73 -73
- package/dist/esm/calcite-block-section.entry.js +122 -122
- package/dist/esm/calcite-block.entry.js +131 -131
- package/dist/esm/calcite-button.entry.js +182 -182
- package/dist/esm/calcite-card.entry.js +99 -99
- package/dist/esm/calcite-checkbox.entry.js +125 -125
- package/dist/esm/calcite-chip-group.entry.js +164 -164
- package/dist/esm/calcite-chip.entry.js +213 -213
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +303 -303
- package/dist/esm/calcite-color-picker.entry.js +886 -886
- package/dist/esm/calcite-combobox-item-group.entry.js +35 -35
- package/dist/esm/calcite-combobox_6.entry.js +1786 -1786
- package/dist/esm/calcite-date-picker-day_3.entry.js +589 -589
- package/dist/esm/calcite-date-picker.entry.js +434 -434
- package/dist/esm/calcite-fab.entry.js +66 -66
- package/dist/esm/calcite-filter_5.entry.js +1131 -1131
- package/dist/esm/calcite-flow-item.entry.js +146 -146
- package/dist/esm/calcite-flow.entry.js +117 -117
- package/dist/esm/calcite-graph.entry.js +66 -66
- package/dist/esm/calcite-icon.entry.js +80 -80
- package/dist/esm/calcite-inline-editable.entry.js +225 -225
- package/dist/esm/calcite-input-date-picker.entry.js +632 -632
- package/dist/esm/calcite-input-number_2.entry.js +846 -846
- package/dist/esm/{calcite-input-time-picker-13448515.js → calcite-input-time-picker-59a3ed66.js} +534 -534
- package/dist/esm/calcite-input-time-picker.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +150 -150
- package/dist/esm/calcite-input_2.entry.js +645 -645
- package/dist/esm/calcite-label.entry.js +40 -40
- package/dist/esm/calcite-link.entry.js +96 -96
- package/dist/esm/calcite-list-item-group.entry.js +46 -46
- package/dist/esm/calcite-loader.entry.js +65 -65
- package/dist/esm/calcite-menu-item.entry.js +246 -246
- package/dist/esm/calcite-menu.entry.js +161 -161
- package/dist/esm/calcite-modal.entry.js +282 -282
- package/dist/esm/calcite-navigation-logo.entry.js +52 -52
- package/dist/esm/calcite-navigation-user.entry.js +45 -45
- package/dist/esm/calcite-navigation.entry.js +126 -126
- package/dist/esm/calcite-notice.entry.js +105 -105
- package/dist/esm/calcite-option-group.entry.js +24 -24
- package/dist/esm/calcite-option_2.entry.js +271 -271
- package/dist/esm/calcite-pagination.entry.js +191 -191
- package/dist/esm/calcite-panel_2.entry.js +346 -346
- package/dist/esm/calcite-pick-list-group.entry.js +46 -46
- package/dist/esm/calcite-pick-list-item.entry.js +181 -181
- package/dist/esm/calcite-pick-list.entry.js +130 -130
- package/dist/esm/calcite-radio-button-group.entry.js +118 -118
- package/dist/esm/calcite-radio-button.entry.js +292 -292
- package/dist/esm/calcite-rating.entry.js +245 -245
- package/dist/esm/calcite-scrim.entry.js +93 -93
- package/dist/esm/calcite-segmented-control_2.entry.js +225 -225
- package/dist/esm/calcite-shell-center-row.entry.js +42 -42
- package/dist/esm/calcite-shell-panel_14.entry.js +2604 -2604
- package/dist/esm/calcite-sortable-list.entry.js +134 -134
- package/dist/esm/calcite-split-button.entry.js +92 -92
- package/dist/esm/calcite-stepper-item.entry.js +197 -197
- package/dist/esm/calcite-stepper.entry.js +187 -187
- package/dist/esm/calcite-switch.entry.js +100 -100
- package/dist/esm/calcite-text-area.entry.js +235 -235
- package/dist/esm/calcite-tile-select-group.entry.js +27 -27
- package/dist/esm/calcite-tile-select.entry.js +180 -180
- package/dist/esm/calcite-tile.entry.js +58 -58
- package/dist/esm/calcite-time-picker.entry.js +619 -619
- package/dist/esm/calcite-tip-group.entry.js +10 -10
- package/dist/esm/calcite-tip-manager.entry.js +185 -185
- package/dist/esm/calcite-tip.entry.js +94 -94
- package/dist/esm/calcite-tooltip.entry.js +185 -185
- package/dist/esm/calcite-tree_3.entry.js +821 -821
- package/dist/esm/card-manager_4.entry.js +652 -652
- package/dist/esm/{conditionalSlot-27a0fce0.js → conditionalSlot-91396dd5.js} +2 -2
- package/dist/esm/crowdsource-manager.entry.js +256 -256
- package/dist/esm/crowdsource-reporter.entry.js +60 -60
- package/dist/esm/{cs-f21a0628.js → cs-f651c3cd.js} +15 -15
- package/dist/esm/{da-dc48fc4c.js → da-e32ccc0a.js} +15 -15
- package/dist/esm/{date-0ed48e97.js → date-51fa981b.js} +1 -1
- package/dist/esm/{de-59290071.js → de-9b417aed.js} +15 -15
- package/dist/esm/{de-at-cd6e6ab7.js → de-at-f73447e2.js} +15 -15
- package/dist/esm/{de-ch-27c44e34.js → de-ch-7ec8c31e.js} +15 -15
- package/dist/esm/deduct-calculator.entry.js +90 -90
- package/dist/esm/{dom-843e3afd.js → dom-8a9e4ee8.js} +2 -2
- package/dist/esm/{downloadUtils-63661805.js → downloadUtils-43b53f5a.js} +660 -660
- package/dist/esm/edit-card_2.entry.js +345 -345
- package/dist/esm/{el-f09fdec6.js → el-9a3189a2.js} +15 -15
- package/dist/esm/{en-au-90087aa5.js → en-au-5aea3b73.js} +15 -15
- package/dist/esm/{en-ca-10751695.js → en-ca-fe3e706b.js} +15 -15
- package/dist/esm/{en-gb-0f8547bd.js → en-gb-a4278000.js} +15 -15
- package/dist/esm/{es-b0997cf1.js → es-383f9c9e.js} +15 -15
- package/dist/esm/{es-mx-226f5028.js → es-mx-7845b382.js} +15 -15
- package/dist/esm/{et-dc96c453.js → et-d8f8df06.js} +15 -15
- package/dist/esm/{fi-0941704d.js → fi-14894338.js} +15 -15
- package/dist/esm/{filter-1cac3edf.js → filter-bf34614b.js} +1 -1
- package/dist/esm/{floating-ui-d28d0fd6.js → floating-ui-9870f74c.js} +2 -2
- package/dist/esm/{focusTrapComponent-ff3a9f28.js → focusTrapComponent-34010d00.js} +1 -1
- package/dist/esm/{form-11c6a015.js → form-6669a774.js} +2 -2
- package/dist/esm/{fr-8da3458d.js → fr-6f570086.js} +15 -15
- package/dist/esm/{fr-ch-739ceddf.js → fr-ch-b9f89159.js} +15 -15
- package/dist/esm/{he-8b662dfa.js → he-174aca6e.js} +15 -15
- package/dist/esm/{hi-10996f89.js → hi-7e469aab.js} +15 -15
- package/dist/esm/{hr-42c2024d.js → hr-a4ac455a.js} +15 -15
- package/dist/esm/{hu-4768b3ff.js → hu-207da291.js} +15 -15
- package/dist/esm/{id-24a08170.js → id-8e4d57bf.js} +15 -15
- package/dist/esm/{index-b91c174c.js → index-4c4a4f3d.js} +1 -1
- package/dist/esm/{index-b5d9d795.js → index-d298aca9.js} +38 -180
- package/dist/esm/{index.es-3a3aa8e3.js → index.es-a185f2b1.js} +6 -6
- package/dist/esm/{interfaces-5a2fe8b4.js → interfaces-bf20e69c.js} +77 -77
- package/dist/esm/{it-ad09649f.js → it-7ade952c.js} +15 -15
- package/dist/esm/{it-ch-b05fc10d.js → it-ch-181d76ab.js} +15 -15
- package/dist/esm/{ja-ab839b73.js → ja-42013dd3.js} +15 -15
- package/dist/esm/{ko-c778539e.js → ko-8de07550.js} +15 -15
- package/dist/esm/{label-6a1caf64.js → label-661d8e10.js} +1 -1
- package/dist/esm/list-item.entry.js +60 -60
- package/dist/esm/{loadModules-2ecd1e44.js → loadModules-cd3569de.js} +19 -19
- package/dist/esm/{loadable-6bca96ad.js → loadable-08376d90.js} +1 -1
- package/dist/esm/loader.js +14 -5
- package/dist/esm/{locale-aa3de591.js → locale-54cac39a.js} +107 -107
- package/dist/esm/{locale-d8561d54.js → locale-73d0926a.js} +3 -3
- package/dist/esm/{lt-447d9aa9.js → lt-1ef29b5b.js} +15 -15
- package/dist/esm/{lv-4d715e11.js → lv-263a2f78.js} +15 -15
- package/dist/esm/map-picker_2.entry.js +243 -243
- package/dist/esm/map-select-tools_3.entry.js +1285 -1285
- package/dist/esm/{mapViewUtils-f0c04325.js → mapViewUtils-1e68cede.js} +384 -384
- package/dist/esm/{mk-b3d7401a.js → mk-d8bae136.js} +15 -15
- package/dist/esm/{nb-2b4a8366.js → nb-494542b3.js} +15 -15
- package/dist/esm/{nl-c0db1da2.js → nl-cd882d7f.js} +15 -15
- package/dist/esm/{openCloseComponent-2b5c6bed.js → openCloseComponent-a40fd6fd.js} +1 -1
- package/dist/esm/pci-calculator.entry.js +102 -102
- package/dist/esm/{pciUtils-59c29b42.js → pciUtils-ecda46e5.js} +836 -836
- package/dist/esm/{pl-0d322bb4.js → pl-b79095d5.js} +15 -15
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/{pt-5997598c.js → pt-5ca0b751.js} +15 -15
- package/dist/esm/{pt-br-6b77e7db.js → pt-br-e1a1ce60.js} +15 -15
- package/dist/esm/public-notification.entry.js +844 -844
- package/dist/esm/{publicNotificationStore-ade82148.js → publicNotificationStore-6ef555f3.js} +40 -40
- package/dist/esm/{ro-ac3724e0.js → ro-5cbc0f2a.js} +15 -15
- package/dist/esm/{ru-4e75151f.js → ru-e66f5b84.js} +15 -15
- package/dist/esm/{shared-list-render-abd19c8d.js → shared-list-render-5b788e63.js} +6 -6
- package/dist/esm/{sk-bbfa22a3.js → sk-be2b5cec.js} +15 -15
- package/dist/esm/{sl-867cecfc.js → sl-74600272.js} +15 -15
- package/dist/esm/solution-configuration.entry.js +888 -888
- package/dist/esm/solution-contents_3.entry.js +21506 -21506
- package/dist/esm/{solution-store-46bc46a5.js → solution-store-c107ca4d.js} +577 -577
- package/dist/esm/solutions-components.js +5 -5
- package/dist/esm/{sortableComponent-db502e97.js → sortableComponent-1dd8a4ae.js} +1 -1
- package/dist/esm/{sr-198b5c00.js → sr-58280ce5.js} +15 -15
- package/dist/esm/store-manager.entry.js +52 -52
- package/dist/esm/{sv-02d64370.js → sv-f0e2171a.js} +15 -15
- package/dist/esm/{t9n-76168237.js → t9n-745553e0.js} +2 -2
- package/dist/esm/{th-1616e303.js → th-6c3eac31.js} +15 -15
- package/dist/esm/{throttle-9ab70933.js → throttle-26fa347b.js} +1 -1
- package/dist/esm/{time-6721a4c2.js → time-7e3ba7c6.js} +1 -1
- package/dist/esm/{tr-f4619f64.js → tr-092713ca.js} +15 -15
- package/dist/esm/{uk-df7df34a.js → uk-95df0f95.js} +15 -15
- package/dist/esm/{utils-ccfd94a7.js → utils-4f695ec2.js} +1 -1
- package/dist/esm/{utils-f54411df.js → utils-ddff4ef3.js} +3 -3
- package/dist/esm/{vi-176ca9f7.js → vi-70a9857c.js} +15 -15
- package/dist/esm/{zh-cn-e13d83d1.js → zh-cn-e024ef2d.js} +15 -15
- package/dist/esm/{zh-hk-d97365d8.js → zh-hk-36ff9e8f.js} +15 -15
- package/dist/esm/{zh-tw-a2b6f0b7.js → zh-tw-96ddb74c.js} +15 -15
- package/dist/loader/index.d.ts +2 -2
- package/dist/solutions-components/{p-15ef7894.js → p-0056655c.js} +1 -1
- package/dist/solutions-components/{p-955a956a.entry.js → p-017265ef.entry.js} +1 -1
- package/dist/solutions-components/{p-844ee452.entry.js → p-017543d5.entry.js} +1 -1
- package/dist/solutions-components/{p-b2e6c578.js → p-0209ed2e.js} +1 -1
- package/dist/solutions-components/{p-5e59219b.entry.js → p-0245bb56.entry.js} +1 -1
- package/dist/solutions-components/{p-916f90ec.entry.js → p-043ead99.entry.js} +1 -1
- package/dist/solutions-components/p-048a2a6d.js +6 -0
- package/dist/solutions-components/{p-e02fcfa9.entry.js → p-050e12eb.entry.js} +1 -1
- package/dist/solutions-components/{p-b0c4138f.entry.js → p-06916de9.entry.js} +1 -1
- package/dist/solutions-components/{p-67ce3c0c.entry.js → p-08320fb9.entry.js} +2 -2
- package/dist/solutions-components/{p-21f00df6.js → p-08e12eb0.js} +1 -1
- package/dist/solutions-components/p-0a2c02fd.js +6 -0
- package/dist/solutions-components/{p-de58bd49.js → p-0a4bc416.js} +1 -1
- package/dist/solutions-components/{p-ef96894d.entry.js → p-0afa17dc.entry.js} +1 -1
- package/dist/solutions-components/{p-4bc7b875.entry.js → p-0b4eb6e4.entry.js} +1 -1
- package/dist/solutions-components/{p-7b9adfff.js → p-0d900572.js} +1 -1
- package/dist/solutions-components/{p-0fbc27fd.entry.js → p-0f4d3009.entry.js} +1 -1
- package/dist/solutions-components/{p-b921aa1a.entry.js → p-10181f33.entry.js} +1 -1
- package/dist/solutions-components/{p-804e4751.entry.js → p-105ef63c.entry.js} +1 -1
- package/dist/solutions-components/{p-35123c90.js → p-11983a08.js} +1 -1
- package/dist/solutions-components/p-1260db08.js +61 -0
- package/dist/solutions-components/{p-a0edbb27.js → p-129fcd0a.js} +1 -1
- package/dist/solutions-components/{p-c1ee0d69.js → p-13f7e487.js} +1 -1
- package/dist/solutions-components/p-14769a01.js +11 -0
- package/dist/solutions-components/{p-c6d83122.entry.js → p-14a4ad77.entry.js} +2 -2
- package/dist/solutions-components/{p-e07b8a72.entry.js → p-15e67907.entry.js} +1 -1
- package/dist/solutions-components/{p-32ef065d.entry.js → p-17799448.entry.js} +1 -1
- package/dist/solutions-components/{p-8a758303.js → p-185a82e0.js} +1 -1
- package/dist/solutions-components/p-191c59e9.js +6 -0
- package/dist/solutions-components/{p-7601988d.entry.js → p-1b63bec9.entry.js} +1 -1
- package/dist/solutions-components/{p-28d2670f.entry.js → p-1c810f4c.entry.js} +1 -1
- package/dist/solutions-components/{p-9603c3ff.entry.js → p-1d28ff09.entry.js} +1 -1
- package/dist/solutions-components/{p-4b95d05e.entry.js → p-1e30069a.entry.js} +1 -1
- package/dist/solutions-components/p-1e63db11.entry.js +6 -0
- package/dist/solutions-components/{p-a08bd8c1.entry.js → p-20274226.entry.js} +1 -1
- package/dist/solutions-components/{p-a843af2a.js → p-2411f1f6.js} +1 -1
- package/dist/solutions-components/{p-ad4d6d02.entry.js → p-2509b65f.entry.js} +2 -2
- package/dist/solutions-components/{p-216801d5.js → p-25faeab6.js} +1 -1
- package/dist/solutions-components/{p-f8dd2784.js → p-27f5bb4f.js} +2 -2
- package/dist/solutions-components/{p-b948ecd2.entry.js → p-2a0d8a46.entry.js} +1 -1
- package/dist/solutions-components/{p-27a1ac1f.entry.js → p-2dea68b6.entry.js} +2 -2
- package/dist/solutions-components/{p-de59d2f5.js → p-2ecd5cb7.js} +1 -1
- package/dist/solutions-components/{p-7aa949a3.entry.js → p-30dbc43d.entry.js} +2 -2
- package/dist/solutions-components/{p-46d5970b.entry.js → p-32d821d1.entry.js} +1 -1
- package/dist/solutions-components/{p-82199b7b.entry.js → p-3479d873.entry.js} +1 -1
- package/dist/solutions-components/{p-9fb16c72.entry.js → p-36d09c0c.entry.js} +1 -1
- package/dist/solutions-components/{p-75f26870.js → p-375f0b74.js} +6 -6
- package/dist/solutions-components/{p-cf1af08f.entry.js → p-38b4873b.entry.js} +1 -1
- package/dist/solutions-components/p-38d61356.js +18 -0
- package/dist/solutions-components/{p-a2748b38.entry.js → p-3a7156b8.entry.js} +1 -1
- package/dist/solutions-components/{p-022a9b7a.js → p-3b041268.js} +1 -1
- package/dist/solutions-components/{p-6a820c4d.js → p-3ca9bb95.js} +1 -1
- package/dist/solutions-components/{p-326fa270.js → p-3e5c8b2f.js} +1 -1
- package/dist/solutions-components/{p-1ede2e18.js → p-3ee6af74.js} +2 -2
- package/dist/solutions-components/{p-97c47bbd.entry.js → p-3eecbcf0.entry.js} +1 -1
- package/dist/solutions-components/{p-5c097e25.entry.js → p-40432de5.entry.js} +1 -1
- package/dist/solutions-components/{p-c9858d8f.entry.js → p-4058733e.entry.js} +1 -1
- package/dist/solutions-components/{p-9e727488.js → p-4152fae0.js} +1 -1
- package/dist/solutions-components/{p-12a4fa84.js → p-4321edfc.js} +1 -1
- package/dist/solutions-components/{p-761a033a.entry.js → p-4344b6ca.entry.js} +1 -1
- package/dist/solutions-components/{p-aeebdb15.js → p-44e26e37.js} +1 -1
- package/dist/solutions-components/{p-3445a8c6.js → p-477ae127.js} +1 -1
- package/dist/solutions-components/{p-9cb94ea0.js → p-4c8b1179.js} +1 -1
- package/dist/solutions-components/p-4e32bf8c.js +6 -0
- package/dist/solutions-components/{p-4c43820f.entry.js → p-4e93132b.entry.js} +1 -1
- package/dist/solutions-components/{p-1add4e39.entry.js → p-4ea79dc4.entry.js} +2 -2
- package/dist/solutions-components/{p-05db4340.js → p-4f51db32.js} +1 -1
- package/dist/solutions-components/{p-4d17943f.js → p-4f64d786.js} +1 -1
- package/dist/solutions-components/{p-2c0dc7b1.js → p-4ff653eb.js} +1 -1
- package/dist/solutions-components/{p-b1f84ae5.js → p-53347add.js} +1 -1
- package/dist/solutions-components/p-54fce798.js +11 -0
- package/dist/solutions-components/{p-abda8ca2.entry.js → p-573d282b.entry.js} +1 -1
- package/dist/solutions-components/{p-a258f5e7.js → p-58340eba.js} +1 -1
- package/dist/solutions-components/p-5930cd6d.entry.js +6 -0
- package/dist/solutions-components/p-5fc99541.js +257 -0
- package/dist/solutions-components/{p-ffac6f88.entry.js → p-6071078a.entry.js} +1 -1
- package/dist/solutions-components/{p-dc9dad31.entry.js → p-69863a28.entry.js} +1 -1
- package/dist/solutions-components/{p-a6900100.entry.js → p-699031c9.entry.js} +2 -2
- package/dist/solutions-components/{p-ab8f5c6b.entry.js → p-6998e886.entry.js} +1 -1
- package/dist/solutions-components/{p-bbb0d957.entry.js → p-6a813a31.entry.js} +1 -1
- package/dist/solutions-components/{p-ad72a379.entry.js → p-6b12b5eb.entry.js} +1 -1
- package/dist/solutions-components/{p-639cca97.js → p-6e89e9dd.js} +1 -1
- package/dist/solutions-components/{p-5adf37ea.entry.js → p-705b7f81.entry.js} +1 -1
- package/dist/solutions-components/p-75578ebf.entry.js +6 -0
- package/dist/solutions-components/{p-5383607a.js → p-7c72df3c.js} +3 -3
- package/dist/solutions-components/{p-03fccde6.entry.js → p-7ca47589.entry.js} +2 -2
- package/dist/solutions-components/{p-a040efff.js → p-7cb8a4db.js} +1 -1
- package/dist/solutions-components/p-7cc13b24.js +8 -0
- package/dist/solutions-components/{p-e4253e1b.entry.js → p-8008b2fe.entry.js} +1 -1
- package/dist/solutions-components/{p-22d580b0.entry.js → p-81531fbe.entry.js} +1 -1
- package/dist/solutions-components/{p-e10a62f4.entry.js → p-81627211.entry.js} +1 -1
- package/dist/solutions-components/{p-2d70d3fd.js → p-8aa806fe.js} +1 -1
- package/dist/solutions-components/{p-052ff2c7.js → p-8ae8b789.js} +1 -1
- package/dist/solutions-components/{p-4daae757.js → p-8b1236bf.js} +1 -1
- package/dist/solutions-components/{p-ee066c67.js → p-8b14f9aa.js} +3 -3
- package/dist/solutions-components/{p-56300653.js → p-8b4e79fd.js} +1 -1
- package/dist/solutions-components/{p-bba3fa4e.entry.js → p-8bc91d5b.entry.js} +2 -2
- package/dist/solutions-components/{p-cad5587c.entry.js → p-8df0c98c.entry.js} +1 -1
- package/dist/solutions-components/p-953cf07a.entry.js +6 -0
- package/dist/solutions-components/{p-5b9b1cbb.entry.js → p-95cf8aa0.entry.js} +1 -1
- package/dist/solutions-components/{p-29d41c7e.js → p-99ece5e1.js} +2 -2
- package/dist/solutions-components/{p-b4157e6a.js → p-9a2a551d.js} +1 -1
- package/dist/solutions-components/{p-541697d0.js → p-9b43b4cf.js} +1 -1
- package/dist/solutions-components/{p-647a4130.js → p-9f922d49.js} +2 -7
- package/dist/solutions-components/p-9fb09c2c.js +11 -0
- package/dist/solutions-components/{p-e645edf2.entry.js → p-a0e50ea6.entry.js} +1 -1
- package/dist/solutions-components/{p-31316d61.entry.js → p-a1154bb5.entry.js} +2 -2
- package/dist/solutions-components/{p-d62784a4.js → p-a709a84a.js} +1 -1
- package/dist/solutions-components/p-a99832c1.js +27 -0
- package/dist/solutions-components/{p-0f8440bb.entry.js → p-ad41cd27.entry.js} +1 -1
- package/dist/solutions-components/{p-bd3a3afe.js → p-ad962e25.js} +1 -1
- package/dist/solutions-components/{p-2b252afd.entry.js → p-ae1459ed.entry.js} +1 -1
- package/dist/solutions-components/{p-90bbf223.entry.js → p-af9510a4.entry.js} +1 -1
- package/dist/solutions-components/{p-4f0c3fc1.js → p-afc462f0.js} +1 -1
- package/dist/solutions-components/{p-6431fd69.js → p-b02a2b2f.js} +2 -2
- package/dist/solutions-components/{p-421d5e7c.js → p-b0eb13a1.js} +1 -1
- package/dist/solutions-components/{p-2656168f.entry.js → p-b1228e6c.entry.js} +1 -1
- package/dist/solutions-components/{p-0e7914e6.entry.js → p-b1ff9f2e.entry.js} +1 -1
- package/dist/solutions-components/p-b20bf7b7.entry.js +6 -0
- package/dist/solutions-components/{p-7920b5a2.entry.js → p-b361af64.entry.js} +1 -1
- package/dist/solutions-components/{p-a777b18c.js → p-b4a6abe2.js} +2 -2
- package/dist/solutions-components/{p-4e4b55b9.entry.js → p-b68b17b6.entry.js} +3 -3
- package/dist/solutions-components/{p-f41105c8.js → p-b73e9c4d.js} +1 -1
- package/dist/solutions-components/{p-19fe7725.js → p-b9111e12.js} +1 -1
- package/dist/solutions-components/{p-3cbe5ef3.js → p-b9653a1e.js} +1 -1
- package/dist/solutions-components/{p-5f5c371e.js → p-b9fa9ca9.js} +1 -1
- package/dist/solutions-components/{p-c07af9c2.entry.js → p-ba9bb2ba.entry.js} +2 -2
- package/dist/solutions-components/{p-b49bdc72.entry.js → p-bc35e445.entry.js} +1 -1
- package/dist/solutions-components/{p-c3f8b670.js → p-bccc74a8.js} +1 -1
- package/dist/solutions-components/{p-1990d9c8.entry.js → p-bd213033.entry.js} +1 -1
- package/dist/solutions-components/{p-a775ba2f.entry.js → p-c0dc792a.entry.js} +1 -1
- package/dist/solutions-components/{p-606ca126.js → p-c16e540d.js} +1 -1
- package/dist/solutions-components/{p-42c7a5fa.entry.js → p-c35b219b.entry.js} +1 -1
- package/dist/solutions-components/{p-b86b4512.entry.js → p-c38c0612.entry.js} +2 -2
- package/dist/solutions-components/{p-6b2f2b85.js → p-c8c3554b.js} +3 -3
- package/dist/solutions-components/{p-634e1240.js → p-cbebdffa.js} +1 -1
- package/dist/solutions-components/{p-91caf655.entry.js → p-cbf52aa2.entry.js} +2 -2
- package/dist/solutions-components/{p-825bac0e.js → p-ce21ee76.js} +1 -1
- package/dist/solutions-components/{p-57c08531.entry.js → p-ce3e73ae.entry.js} +1 -1
- package/dist/solutions-components/{p-d3a22725.js → p-cf14e2f3.js} +1 -1
- package/dist/solutions-components/{p-f28d69ac.entry.js → p-cfebc45c.entry.js} +1 -1
- package/dist/solutions-components/{p-6a524392.entry.js → p-d15a4f36.entry.js} +1 -1
- package/dist/solutions-components/{p-754e2df2.js → p-d3550542.js} +1 -1
- package/dist/solutions-components/{p-b5d67495.entry.js → p-d3dceabd.entry.js} +1 -1
- package/dist/solutions-components/{p-07bc4f07.entry.js → p-d43c1fc8.entry.js} +2 -2
- package/dist/solutions-components/{p-6de98c51.js → p-d7ddd3a2.js} +1 -1
- package/dist/solutions-components/{p-3e139360.js → p-d841cb8b.js} +1 -1
- package/dist/solutions-components/{p-2ae17fa2.js → p-d9868bac.js} +1 -1
- package/dist/solutions-components/{p-32f9c709.js → p-dc94bec2.js} +1 -1
- package/dist/solutions-components/{p-e6bee82f.js → p-dd0f8875.js} +1 -1
- package/dist/solutions-components/p-dec7b660.js +11 -0
- package/dist/solutions-components/{p-3f0193e9.js → p-deca8a07.js} +1 -1
- package/dist/solutions-components/{p-31ff3452.entry.js → p-df5ec082.entry.js} +1 -1
- package/dist/solutions-components/{p-ea282908.js → p-e046f728.js} +1 -1
- package/dist/solutions-components/{p-cf43278c.entry.js → p-e27ce6d2.entry.js} +1 -1
- package/dist/solutions-components/p-e2abc969.js +6 -0
- package/dist/solutions-components/{p-c5e294e4.js → p-e3f9e213.js} +1 -1
- package/dist/solutions-components/{p-2b96e551.entry.js → p-e43839a8.entry.js} +2 -2
- package/dist/solutions-components/{p-418d0b60.entry.js → p-e4d5188b.entry.js} +1 -1
- package/dist/solutions-components/{p-7b90c18e.entry.js → p-e666c0d6.entry.js} +1 -1
- package/dist/solutions-components/{p-39ff5ee5.js → p-e6c20791.js} +1 -1
- package/dist/solutions-components/{p-2005280f.js → p-ec4c8dc3.js} +1 -1
- package/dist/solutions-components/{p-93074bd4.entry.js → p-ef34c9e2.entry.js} +1 -1
- package/dist/solutions-components/{p-361f1fe1.js → p-f346f8ab.js} +2 -2
- package/dist/solutions-components/{p-680d193d.entry.js → p-f780ecc1.entry.js} +2 -2
- package/dist/solutions-components/p-f8be5d5f.js +7 -0
- package/dist/solutions-components/{p-c70392c4.entry.js → p-f9a56d6b.entry.js} +1 -1
- package/dist/solutions-components/{p-0ece6df1.entry.js → p-f9b9b211.entry.js} +1 -1
- package/dist/solutions-components/{p-a0a2c53d.js → p-fc2277fe.js} +1 -1
- package/dist/solutions-components/{p-40bde8b2.entry.js → p-fd65b14d.entry.js} +1 -1
- package/dist/solutions-components/{p-ef48bd77.entry.js → p-fe0e8542.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +170 -170
- package/dist/types/components/card-manager/card-manager.d.ts +70 -70
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +174 -174
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +26 -26
- package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +90 -90
- package/dist/types/components/edit-card/edit-card.d.ts +140 -140
- package/dist/types/components/info-card/info-card.d.ts +143 -143
- package/dist/types/components/json-editor/json-editor.d.ts +229 -229
- package/dist/types/components/layer-table/layer-table.d.ts +276 -276
- package/dist/types/components/layout-manager/layout-manager.d.ts +69 -69
- package/dist/types/components/list-item/list-item.d.ts +26 -26
- package/dist/types/components/map-card/map-card.d.ts +83 -83
- package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +231 -231
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +160 -160
- package/dist/types/components/map-picker/map-picker.d.ts +109 -109
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +469 -469
- package/dist/types/components/map-tools/map-tools.d.ts +104 -104
- package/dist/types/components/pci-calculator/pci-calculator.d.ts +71 -71
- package/dist/types/components/pdf-download/pdf-download.d.ts +101 -101
- package/dist/types/components/public-notification/public-notification.d.ts +610 -610
- package/dist/types/components/refine-selection/refine-selection.d.ts +234 -234
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +205 -205
- package/dist/types/components/solution-contents/solution-contents.d.ts +46 -46
- package/dist/types/components/solution-item/solution-item.d.ts +71 -71
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +100 -100
- package/dist/types/components/solution-item-icon/solution-item-icon.d.ts +44 -44
- package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +62 -62
- package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +63 -63
- package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +144 -144
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +180 -180
- package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +17 -17
- package/dist/types/components/solution-template-data/solution-template-data.d.ts +72 -72
- package/dist/types/components/solution-variables/solution-variables.d.ts +69 -69
- package/dist/types/components/store-manager/store-manager.d.ts +55 -55
- package/dist/types/components.d.ts +0 -2
- package/dist/types/index.d.ts +16 -16
- package/dist/types/stencil-public-runtime.d.ts +14 -27
- package/dist/types/utils/common.d.ts +49 -49
- package/dist/types/utils/csvDownload.d.ts +24 -24
- package/dist/types/utils/csvUtils.d.ts +22 -22
- package/dist/types/utils/downloadUtils.d.ts +118 -118
- package/dist/types/utils/interfaces.d.ts +398 -398
- package/dist/types/utils/languageUtil.d.ts +11 -11
- package/dist/types/utils/loadModules.d.ts +17 -17
- package/dist/types/utils/locale.d.ts +22 -22
- package/dist/types/utils/mapViewUtils.d.ts +124 -124
- package/dist/types/utils/pciUtils.d.ts +97 -97
- package/dist/types/utils/pdfUtils.d.ts +27 -27
- package/dist/types/utils/publicNotificationStore.d.ts +24 -24
- package/dist/types/utils/queryUtils.d.ts +95 -95
- package/dist/types/utils/solution-store.d.ts +234 -234
- package/dist/types/utils/templates.d.ts +50 -50
- package/dist/types/utils/test/mocks/jsApi.d.ts +59 -59
- package/dist/types/utils/test/testUtils.d.ts +36 -36
- package/dist/types/utils/types.d.ts +1 -1
- package/package.json +2 -2
- package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
- package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
- package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
- package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
- package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
- package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
- package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
- package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
- package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
- package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
- package/dist/collection/components/layer-table/test/layer-table.e2e.js +0 -29
- package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
- package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
- package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
- package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
- package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
- package/dist/collection/components/map-card/test/map-card.e2e.js +0 -29
- package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
- package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
- package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
- package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
- package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
- package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
- package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
- package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
- package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
- package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
- package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
- package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
- package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
- package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
- package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
- package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
- package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
- package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
- package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
- package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
- package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
- package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +0 -36
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +0 -175
- package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
- package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
- package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
- package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
- package/dist/collection/utils/templates.e2e.js +0 -30
- package/dist/collection/utils/test/csvUtils.spec.js +0 -51
- package/dist/collection/utils/test/downloadUtils.spec.js +0 -357
- package/dist/collection/utils/test/pciUtils.spec.js +0 -302
- package/dist/collection/utils/test/solution-store.spec.js +0 -444
- package/dist/esm/resources-40d8e06f.js +0 -20
- package/dist/solutions-components/p-0cc32f06.js +0 -6
- package/dist/solutions-components/p-10248e04.js +0 -11
- package/dist/solutions-components/p-108fbf59.entry.js +0 -6
- package/dist/solutions-components/p-13290851.js +0 -259
- package/dist/solutions-components/p-164be8ef.entry.js +0 -6
- package/dist/solutions-components/p-1ea1dcac.js +0 -61
- package/dist/solutions-components/p-3aba40e8.js +0 -18
- package/dist/solutions-components/p-3bd99fc9.js +0 -11
- package/dist/solutions-components/p-3cce003d.js +0 -27
- package/dist/solutions-components/p-525f1188.js +0 -11
- package/dist/solutions-components/p-6665fa1f.js +0 -6
- package/dist/solutions-components/p-7c33e500.entry.js +0 -6
- package/dist/solutions-components/p-9310b882.js +0 -7
- package/dist/solutions-components/p-9bbc05ff.js +0 -11
- package/dist/solutions-components/p-a82f35c9.js +0 -6
- package/dist/solutions-components/p-b6578a32.js +0 -6
- package/dist/solutions-components/p-b684bbc7.entry.js +0 -6
- package/dist/solutions-components/p-baccfd70.entry.js +0 -6
- package/dist/solutions-components/p-bf9e18d4.js +0 -8
- package/dist/solutions-components/p-d6322e4b.js +0 -6
- /package/dist/cjs/{array-46bb7df1.js → array-51e7da8f.js} +0 -0
- /package/dist/cjs/{debounce-30afab47.js → debounce-69c3bada.js} +0 -0
- /package/dist/cjs/{guid-3abe3cc6.js → guid-ca85ade0.js} +0 -0
- /package/dist/cjs/{html2canvas-34208bbf.js → html2canvas-770c1171.js} +0 -0
- /package/dist/cjs/{interactive-2fe0f43a.js → interactive-4e212b36.js} +0 -0
- /package/dist/cjs/{key-b8b55ea3.js → key-b32a6438.js} +0 -0
- /package/dist/cjs/{math-5132d9bd.js → math-ef14a84a.js} +0 -0
- /package/dist/cjs/{observers-f5fa975b.js → observers-20fe6f01.js} +0 -0
- /package/dist/cjs/{purify-f8c3e427.js → purify-5389d8d6.js} +0 -0
- /package/dist/cjs/{resources-2901b608.js → resources-1d2258a1.js} +0 -0
- /package/dist/cjs/{resources-60c27547.js → resources-7c9bff85.js} +0 -0
- /package/dist/cjs/{resources-9f2b33ee.js → resources-9dcbf30f.js} +0 -0
- /package/dist/cjs/{resources-4da89742.js → resources-a7e3371d.js} +0 -0
- /package/dist/cjs/{resources-8233a151.js → resources-b176fc52.js} +0 -0
- /package/dist/cjs/{resources-77713c2e.js → resources-b4b4b4fe.js} +0 -0
- /package/dist/cjs/{resources-e1258e8a.js → resources-c6f066a4.js} +0 -0
- /package/dist/cjs/{resources-91409a5d.js → resources-f13e2605.js} +0 -0
- /package/dist/cjs/{resources-c913200c.js → resources-f3e30b7b.js} +0 -0
- /package/dist/cjs/{utils-bae432a9.js → utils-662561ad.js} +0 -0
- /package/dist/cjs/{utils-cd14113f.js → utils-8a0f3e68.js} +0 -0
- /package/dist/esm/{array-751a2b87.js → array-4a653f59.js} +0 -0
- /package/dist/esm/{debounce-229b1a22.js → debounce-4c884e5c.js} +0 -0
- /package/dist/esm/{guid-2bbb8cd1.js → guid-1608fd71.js} +0 -0
- /package/dist/esm/{html2canvas-a0a4df55.js → html2canvas-12c862c8.js} +0 -0
- /package/dist/esm/{interactive-eaf4be29.js → interactive-0733ee76.js} +0 -0
- /package/dist/esm/{key-7a525416.js → key-97b504af.js} +0 -0
- /package/dist/esm/{math-5f92f517.js → math-e006358c.js} +0 -0
- /package/dist/esm/{observers-9d66685a.js → observers-67bdf9e5.js} +0 -0
- /package/dist/esm/{purify-c99d2ace.js → purify-75c61cf7.js} +0 -0
- /package/dist/esm/{resources-d6a4d343.js → resources-01034dfa.js} +0 -0
- /package/dist/esm/{resources-c253772f.js → resources-34b761fa.js} +0 -0
- /package/dist/esm/{resources-a9b2d33c.js → resources-43d63050.js} +0 -0
- /package/dist/esm/{resources-dca3d475.js → resources-5490ccf4.js} +0 -0
- /package/dist/esm/{resources-c65f5654.js → resources-6b7800e6.js} +0 -0
- /package/dist/esm/{resources-5bce3953.js → resources-6be20fcc.js} +0 -0
- /package/dist/esm/{resources-58d30a0f.js → resources-913009ae.js} +0 -0
- /package/dist/{components/resources4.js → esm/resources-b5267429.js} +0 -0
- /package/dist/esm/{resources-94c47e64.js → resources-f97db74e.js} +0 -0
- /package/dist/esm/{utils-2c91c963.js → utils-649c76ab.js} +0 -0
- /package/dist/esm/{utils-18db6b1d.js → utils-dcd05f69.js} +0 -0
- /package/dist/solutions-components/{p-f055a840.js → p-0506e06f.js} +0 -0
- /package/dist/solutions-components/{p-283e3a2d.js → p-0630e686.js} +0 -0
- /package/dist/solutions-components/{p-fb7e0054.js → p-08ab045a.js} +0 -0
- /package/dist/solutions-components/{p-2291b598.js → p-0b32d4fe.js} +0 -0
- /package/dist/solutions-components/{p-5961c4e0.js → p-203b16df.js} +0 -0
- /package/dist/solutions-components/{p-3fc17d72.js → p-3adf63ca.js} +0 -0
- /package/dist/solutions-components/{p-d4c103a8.js → p-3b72043f.js} +0 -0
- /package/dist/solutions-components/{p-18f1772b.js → p-43ebe36a.js} +0 -0
- /package/dist/solutions-components/{p-58ce5639.js → p-5242a652.js} +0 -0
- /package/dist/solutions-components/{p-18869c0f.js → p-5d25ba99.js} +0 -0
- /package/dist/solutions-components/{p-1f468797.js → p-76b83a13.js} +0 -0
- /package/dist/solutions-components/{p-d554507d.js → p-7ac7b1a1.js} +0 -0
- /package/dist/solutions-components/{p-868df4a0.js → p-9ab03591.js} +0 -0
- /package/dist/solutions-components/{p-38ef0684.js → p-a963dd48.js} +0 -0
- /package/dist/solutions-components/{p-63a0e9bf.js → p-cc815aca.js} +0 -0
- /package/dist/solutions-components/{p-6f2edf5b.js → p-d556b5c4.js} +0 -0
- /package/dist/solutions-components/{p-215d3505.js → p-f93e6931.js} +0 -0
- /package/dist/solutions-components/{p-4805ff13.js → p-fb3ba11a.js} +0 -0
- /package/dist/solutions-components/{p-b9749e09.js → p-ff4afb7d.js} +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as t,g as n}from"./p-e1a4994d.js";import{a as i}from"./p-
|
6
|
+
import{c as t,g as n}from"./p-e1a4994d.js";import{a as i}from"./p-f8be5d5f.js";import{l as r}from"./p-d7ddd3a2.js";import{q as e}from"./p-27f5bb4f.js";
|
7
7
|
/* @preserve
|
8
8
|
* arcgis-pdf-creator v0.0.1
|
9
9
|
* Thu Apr 27 2023 17:20:32 GMT-0700 (Pacific Daylight Time)
|
@@ -107,7 +107,7 @@ var Y=function(){return"undefined"!=typeof window?window:"undefined"!=typeof glo
|
|
107
107
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
108
108
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
109
109
|
* http://www.fpdf.org/en/script/script37.php
|
110
|
-
*/var Nt={print:4,modify:8,copy:16,"annot-forms":32};function Lt(t,n,i,r){this.v=1,this.r=2;var e=192;t.forEach((function(t){if(void 0!==Nt.perm)throw new Error("Invalid permission: "+t);e+=Nt[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var s=(n+this.padding).substr(0,32),o=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^e)),this.encryptionKey=wt(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=pt(this.encryptionKey,this.padding)}function gt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",i=t.length,r=0;r<i;r++){var e=t.charCodeAt(r);n+=e<33||35===e||37===e||40===e||41===e||47===e||60===e||62===e||91===e||93===e||123===e||125===e||e>126?"#"+("0"+e.toString(16)).slice(-2):t[r]}return n}function At(t){if("object"!==u(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,i,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof i||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var e=Math.random().toString(35);return n[t][e]=[i,!!r],e},this.unsubscribe=function(t){for(var i in n)if(n[i][t])return delete n[i][t],0===Object.keys(n[i]).length&&delete n[i],!0;return!1},this.publish=function(i){if(n.hasOwnProperty(i)){var r=Array.prototype.slice.call(arguments,1),e=[];for(var s in n[i]){var o=n[i][s];try{o[0].apply(t,r)}catch(i){Y.console&&X.error("jsPDF PubSub Error",i.message,i)}o[1]&&e.push(s)}e.length&&e.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function yt(t){if(!(this instanceof yt))return new yt(t);var n="opacity,stroke-opacity".split(",");for(var i in t)t.hasOwnProperty(i)&&n.indexOf(i)>=0&&(this[i]=t[i]);this.id="",this.objectNumber=-1}function kt(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function St(t,n,i,r,e){if(!(this instanceof St))return new St(t,n,i,r,e);this.type="axial"===t?2:3,this.coords=n,this.colors=i,kt.call(this,r,e)}function xt(t,n,i,r,e){if(!(this instanceof xt))return new xt(t,n,i,r,e);this.boundingBox=t,this.xStep=n,this.yStep=i,this.stream="",this.cloneIndex=0,kt.call(this,r,e)}function qt(t){var n,i="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],e=arguments[2],s=arguments[3],o=[],a=1,f=16,c="S",h=null;"object"===u(t=t||{})&&(i=t.orientation,r=t.unit||r,e=t.format||e,s=t.compress||t.compressPdf||s,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(f=t.floatPrecision),c=t.defaultPathOperation||"S"),o=t.filters||(!0===s?["FlateEncode"]:o),r=r||"mm",i=(""+(i||"P")).toLowerCase();var l=t.putOnlyUsedFonts||!1,v={},d={internal:{},__private__:{}};d.__private__.PubSub=At;var w="1.3",m=d.__private__.getPdfVersion=function(){return w};d.__private__.setPdfVersion=function(t){w=t};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return b};var p=d.__private__.getPageFormat=function(t){return b[t]};e=e||"a4";var N="compat",L="advanced",g=N;function A(){this.saveGraphicsState(),tt(new Ht(pt,0,0,-pt,0,gi()*pt).toString()+" cm"),this.setFontSize(this.getFontSize()/pt),c="n",g=L}function y(){this.restoreGraphicsState(),c="S",g=N}var k=d.__private__.combineFontStyleAndFontWeight=function(t,n){if("bold"==t&&"normal"==n||"bold"==t&&400==n||"normal"==t&&"italic"==n||"bold"==t&&"italic"==n)throw new Error("Invalid Combination of fontweight and fontstyle");return n&&(t=400==n||"normal"===n?"italic"===t?"italic":"normal":700!=n&&"bold"!==n||"normal"!==t?(700==n?"bold":n)+""+t:"bold"),t};d.advancedAPI=function(t){var n=g===N;return n&&A.call(this),"function"!=typeof t||(t(this),n&&y.call(this)),this},d.compatAPI=function(t){var n=g===L;return n&&y.call(this),"function"!=typeof t||(t(this),n&&A.call(this)),this},d.isAdvancedAPI=function(){return g===L};var S,x=function(t){if(g!==L)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=d.roundToPrecision=d.__private__.roundToPrecision=function(t,i){var r=n||i;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=d.hpf=d.__private__.hpf="number"==typeof f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,f)}:"smart"===f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,16)};var j=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return q(t,2)},M=d.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return q(t,3)},E=d.scale=d.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return g===N?t*pt:g===L?t:void 0},P=function(t){return E(function(t){return g===N?gi()-t:g===L?t:void 0}(t))};d.__private__.setPrecision=d.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(n=parseInt(t,10))};var O,I="00000000000000000000000000000000",F=d.__private__.getFileId=function(){return I},B=d.__private__.setFileId=function(t){return I=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():I.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Pn=new Lt(h.userPermissions,h.userPassword,h.ownerPassword,I)),I};d.setFileId=function(t){return B(t),this},d.getFileId=function(){return F()};var R=d.__private__.convertDateToPDFDate=function(t){var n=t.getTimezoneOffset(),i=n<0?"+":"-",r=Math.floor(Math.abs(n/60)),e=Math.abs(n%60),s=[i,U(r),"'",U(e),"'"].join("");return["D:",t.getFullYear(),U(t.getMonth()+1),U(t.getDate()),U(t.getHours()),U(t.getMinutes()),U(t.getSeconds()),s].join("")},T=d.__private__.convertPDFDateToDate=function(t){var n=parseInt(t.substr(2,4),10),i=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),e=parseInt(t.substr(10,2),10),s=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(n,i,r,e,s,o,0)},C=d.__private__.setCreationDate=function(t){var n;if(void 0===t&&(t=new Date),t instanceof Date)n=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");n=t}return O=n},D=d.__private__.getCreationDate=function(t){var n=O;return"jsDate"===t&&(n=T(O)),n};d.setCreationDate=function(t){return C(t),this},d.getCreationDate=function(t){return D(t)};var z,U=d.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},V=d.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,H=[],_=[],G=0,J=[],K=[],$=!1,Q=_;d.__private__.setCustomOutputDestination=function(t){$=!0,Q=t};var Z=function(t){$||(Q=t)};d.__private__.resetCustomOutputDestination=function(){$=!1,Q=_};var tt=d.__private__.out=function(t){return t=t.toString(),G+=t.length+1,Q.push(t),Q},et=d.__private__.write=function(t){return tt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},st=d.__private__.getArrayBuffer=function(t){for(var n=t.length,i=new ArrayBuffer(n),r=new Uint8Array(i);n--;)r[n]=t.charCodeAt(n);return i},ot=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return ot};var at=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(t){return at=g===L?t/pt:t,this};var ut,ft=d.__private__.getFontSize=d.getFontSize=function(){return g===N?at:at*pt},ct=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(t){return ct=t,this},d.__private__.getR2L=d.getR2L=function(){return ct};var ht,lt=d.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ut=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ut=t}else ut=parseInt(t,10)};d.__private__.getZoomMode=function(){return ut};var vt,dt=d.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ht=t};d.__private__.getPageMode=function(){return ht};var wt=d.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');vt=t};d.__private__.getLayoutMode=function(){return vt},d.__private__.setDisplayMode=d.setDisplayMode=function(t,n,i){return lt(t),wt(n),dt(i),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[t]},d.__private__.getDocumentProperties=function(){return mt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var n in mt)mt.hasOwnProperty(n)&&t[n]&&(mt[n]=t[n]);return this},d.__private__.setDocumentProperty=function(t,n){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[t]=n};var bt,pt,Nt,kt,jt,Mt={},Et={},Pt=[],Ot={},It={},Ft={},Bt={},Rt=null,Tt=0,Ct=[],Dt=new At(d),zt=t.hotfixes||[],Ut={},Vt={},Wt=[],Ht=function t(n,i,r,e,s,o){if(!(this instanceof t))return new t(n,i,r,e,s,o);isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(r)&&(r=0),isNaN(e)&&(e=1),isNaN(s)&&(s=0),isNaN(o)&&(o=0),this._matrix=[n,i,r,e,s,o]};Object.defineProperty(Ht.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ht.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ht.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ht.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ht.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ht.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ht.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ht.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ht.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ht.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ht.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ht.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ht.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ht.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ht.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ht.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ht.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Ht.prototype.multiply=function(t){return new Ht(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},Ht.prototype.decompose=function(){var t=this.sx,n=this.shy,i=this.shx,r=this.sy,e=this.tx,s=this.ty,o=Math.sqrt(t*t+n*n),a=(t/=o)*i+(n/=o)*r;i-=t*a,r-=n*a;var u=Math.sqrt(i*i+r*r);return a/=u,t*(r/=u)<n*(i/=u)&&(t=-t,n=-n,a=-a,o=-o),{scale:new Ht(o,0,0,u,0,0),translate:new Ht(1,0,0,1,e,s),rotate:new Ht(t,n,-n,t,0,0),skew:new Ht(1,0,a,1,0,0)}},Ht.prototype.toString=function(){return this.join(" ")},Ht.prototype.inversed=function(){var t=this.sx,n=this.shy,i=this.shx,r=this.sy,e=this.tx,s=this.ty,o=1/(t*r-n*i),a=r*o,u=-n*o,f=-i*o,c=t*o;return new Ht(a,u,f,c,-a*e-f*s,-u*e-c*s)},Ht.prototype.applyToPoint=function(t){return new di(t.x*this.sx+t.y*this.shx+this.tx,t.x*this.shy+t.y*this.sy+this.ty)},Ht.prototype.applyToRectangle=function(t){var n=this.applyToPoint(t),i=this.applyToPoint(new di(t.x+t.w,t.y+t.h));return new wi(n.x,n.y,i.x-n.x,i.y-n.y)},Ht.prototype.clone=function(){return new Ht(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},d.Matrix=Ht;var _t=d.matrixMult=function(t,n){return n.multiply(t)},Gt=new Ht(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Gt;var Jt=function(t,n){if(!It[t]){var i=(n instanceof St?"Sh":"P")+(Object.keys(Ot).length+1).toString(10);n.id=i,It[t]=i,Ot[i]=n,Dt.publish("addPattern",n)}};d.ShadingPattern=St,d.TilingPattern=xt,d.addShadingPattern=function(t,n){return x("addShadingPattern()"),Jt(t,n),this},d.beginTilingPattern=function(t){x("beginTilingPattern()"),bi(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},d.endTilingPattern=function(t,n){x("endTilingPattern()"),n.stream=K[z].join("\n"),Jt(t,n),Dt.publish("endTilingPattern",n),Wt.pop().restore()};var Yt=d.__private__.newObject=function(){var t=Kt();return Xt(t,!0),t},Kt=d.__private__.newObjectDeferred=function(){return W++,H[W]=function(){return G},W},Xt=function(t,n){return n="boolean"==typeof n&&n,H[t]=G,n&&tt(t+" 0 obj"),t},$t=d.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return J.push(t),t},Qt=Kt(),Zt=Kt(),tn=d.__private__.decodeColorString=function(t){var n=t.split(" ");if(2!==n.length||"g"!==n[1]&&"G"!==n[1])5!==n.length||"k"!==n[4]&&"K"!==n[4]||(n=[(1-n[0])*(1-n[3]),(1-n[1])*(1-n[3]),(1-n[2])*(1-n[3]),"r"]);else{var i=parseFloat(n[0]);n=[i,i,i,"r"]}for(var r="#",e=0;e<3;e++)r+=("0"+Math.floor(255*parseFloat(n[e])).toString(16)).slice(-2);return r},nn=d.__private__.encodeColorString=function(t){var n;"string"==typeof t&&(t={ch1:t});var i=t.ch1,r=t.ch2,e=t.ch3,s=t.ch4,o="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof i&&"#"!==i.charAt(0)){var a=new rt(i);if(a.ok)i=a.toHex();else if(!/^\d*\.?\d*$/.test(i))throw new Error('Invalid color "'+i+'" passed to jsPDF.encodeColorString.')}if("string"==typeof i&&/^#[0-9A-Fa-f]{3}$/.test(i)&&(i="#"+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),"string"==typeof i&&/^#[0-9A-Fa-f]{6}$/.test(i)){var f=parseInt(i.substr(1),16);i=f>>16&255,r=f>>8&255,e=255&f}if(void 0===r||void 0===s&&i===r&&r===e)n="string"==typeof i?i+" "+o[0]:2===t.precision?j(i/255)+" "+o[0]:M(i/255)+" "+o[0];else if(void 0===s||"object"===u(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",o[1]].join(" ");n="string"==typeof i?[i,r,e,o[1]].join(" "):2===t.precision?[j(i/255),j(r/255),j(e/255),o[1]].join(" "):[M(i/255),M(r/255),M(e/255),o[1]].join(" ")}else n="string"==typeof i?[i,r,e,s,o[2]].join(" "):2===t.precision?[j(i),j(r),j(e),j(s),o[2]].join(" "):[M(i),M(r),M(e),M(s),o[2]].join(" ");return n},rn=d.__private__.getFilters=function(){return o},en=d.__private__.putStream=function(t){var n=(t=t||{}).data||"",i=t.filters||rn(),r=t.alreadyAppliedFilters||[],e=t.addLength1||!1,s=n.length,o=t.objectId,a=function(t){return t};if(null!==h&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(a=Pn.encryptor(o,0));var u={};!0===i&&(i=["FlateEncode"]);var f=t.additionalKeyValues||[],c=(u=void 0!==qt.API.processDataByFilters?qt.API.processDataByFilters(n,i):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==u.data.length&&(f.push({key:"Length",value:u.data.length}),!0===e&&f.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)f.push({key:"Filter",value:c});else{f.push({key:"Filter",value:"["+c+"]"});for(var l=0;l<f.length;l+=1)if("DecodeParms"===f[l].key){for(var v=[],d=0;d<u.reverseChain.split("/").length-1;d+=1)v.push("null");v.push(f[l].value),f[l].value="["+v.join(" ")+"]"}}tt("<<");for(var w=0;w<f.length;w++)tt("/"+f[w].key+" "+f[w].value);tt(">>"),0!==u.data.length&&(tt("stream"),tt(a(u.data)),tt("endstream"))},sn=d.__private__.putPage=function(t){var n=t.number,i=t.data,r=t.objId,e=t.contentsObjId;Xt(r,!0),tt("<</Type /Page"),tt("/Parent "+t.rootDictionaryObjId+" 0 R"),tt("/Resources "+t.resourceDictionaryObjId+" 0 R"),tt("/MediaBox ["+parseFloat(S(t.mediaBox.bottomLeftX))+" "+parseFloat(S(t.mediaBox.bottomLeftY))+" "+S(t.mediaBox.topRightX)+" "+S(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&tt("/CropBox ["+S(t.cropBox.bottomLeftX)+" "+S(t.cropBox.bottomLeftY)+" "+S(t.cropBox.topRightX)+" "+S(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&tt("/BleedBox ["+S(t.bleedBox.bottomLeftX)+" "+S(t.bleedBox.bottomLeftY)+" "+S(t.bleedBox.topRightX)+" "+S(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&tt("/TrimBox ["+S(t.trimBox.bottomLeftX)+" "+S(t.trimBox.bottomLeftY)+" "+S(t.trimBox.topRightX)+" "+S(t.trimBox.topRightY)+"]"),null!==t.artBox&&tt("/ArtBox ["+S(t.artBox.bottomLeftX)+" "+S(t.artBox.bottomLeftY)+" "+S(t.artBox.topRightX)+" "+S(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&tt("/UserUnit "+t.userUnit),Dt.publish("putPage",{objId:r,pageContext:Ct[n],pageNumber:n,page:i}),tt("/Contents "+e+" 0 R"),tt(">>"),tt("endobj");var s=i.join("\n");return g===L&&(s+="\nQ"),Xt(e,!0),en({data:s,filters:rn(),objectId:e}),tt("endobj"),r},on=d.__private__.putPages=function(){var t,n,i=[];for(t=1;t<=Tt;t++)Ct[t].objId=Kt(),Ct[t].contentsObjId=Kt();for(t=1;t<=Tt;t++)i.push(sn({number:t,data:K[t],objId:Ct[t].objId,contentsObjId:Ct[t].contentsObjId,mediaBox:Ct[t].mediaBox,cropBox:Ct[t].cropBox,bleedBox:Ct[t].bleedBox,trimBox:Ct[t].trimBox,artBox:Ct[t].artBox,userUnit:Ct[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:Zt}));Xt(Qt,!0),tt("<</Type /Pages");var r="/Kids [";for(n=0;n<Tt;n++)r+=i[n]+" 0 R ";tt(r+"]"),tt("/Count "+Tt),tt(">>"),tt("endobj"),Dt.publish("postPutPages")},an=function(t){Dt.publish("putFont",{font:t,out:tt,newObject:Yt,putStream:en}),!0!==t.isAlreadyPutted&&(t.objectNumber=Yt(),tt("<<"),tt("/Type /Font"),tt("/BaseFont /"+gt(t.postScriptName)),tt("/Subtype /Type1"),"string"==typeof t.encoding&&tt("/Encoding /"+t.encoding),tt("/FirstChar 32"),tt("/LastChar 255"),tt(">>"),tt("endobj"))},un=function(t){t.objectNumber=Yt();var n=[];n.push({key:"Type",value:"/XObject"}),n.push({key:"Subtype",value:"/Form"}),n.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),n.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var i=t.pages[1].join("\n");en({data:i,additionalKeyValues:n,objectId:t.objectNumber}),tt("endobj")},fn=function(t,n){n||(n=21);var i=Yt(),r=function(t,n){var i,r=[],e=1/(n-1);for(i=0;i<1;i+=e)r.push(i);r.push(1),0!=t[0].offset&&t.unshift({offset:0,color:t[0].color}),1!=t[t.length-1].offset&&t.push({offset:1,color:t[t.length-1].color});for(var s="",o=0,a=0;a<r.length;a++){for(i=r[a];i>t[o+1].offset;)o++;var u=t[o].offset,f=(i-u)/(t[o+1].offset-u),c=t[o].color,h=t[o+1].color;s+=V(Math.round((1-f)*c[0]+f*h[0]).toString(16))+V(Math.round((1-f)*c[1]+f*h[1]).toString(16))+V(Math.round((1-f)*c[2]+f*h[2]).toString(16))}return s.trim()}(t.colors,n),e=[];e.push({key:"FunctionType",value:"0"}),e.push({key:"Domain",value:"[0.0 1.0]"}),e.push({key:"Size",value:"["+n+"]"}),e.push({key:"BitsPerSample",value:"8"}),e.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),e.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),en({data:r,additionalKeyValues:e,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:i}),tt("endobj"),t.objectNumber=Yt(),tt("<< /ShadingType "+t.type),tt("/ColorSpace /DeviceRGB");var s="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";s+=2===t.type?S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),tt(s+="]"),t.matrix&&tt("/Matrix ["+t.matrix.toString()+"]"),tt("/Function "+i+" 0 R"),tt("/Extend [true true]"),tt(">>"),tt("endobj")},cn=function(t,n){var i=Kt(),r=Yt();n.push({resourcesOid:i,objectOid:r}),t.objectNumber=r;var e=[];e.push({key:"Type",value:"/Pattern"}),e.push({key:"PatternType",value:"1"}),e.push({key:"PaintType",value:"1"}),e.push({key:"TilingType",value:"1"}),e.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),e.push({key:"XStep",value:S(t.xStep)}),e.push({key:"YStep",value:S(t.yStep)}),e.push({key:"Resources",value:i+" 0 R"}),t.matrix&&e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),en({data:t.stream,additionalKeyValues:e,objectId:t.objectNumber}),tt("endobj")},hn=function(t){for(var n in t.objectNumber=Yt(),tt("<<"),t)switch(n){case"opacity":tt("/ca "+j(t[n]));break;case"stroke-opacity":tt("/CA "+j(t[n]))}tt(">>"),tt("endobj")},ln=function(t){Xt(t.resourcesOid,!0),tt("<<"),tt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in tt("/Font <<"),Mt)Mt.hasOwnProperty(t)&&(!1===l||!0===l&&v.hasOwnProperty(t))&&tt("/"+t+" "+Mt[t].objectNumber+" 0 R");tt(">>")}(),function(){if(Object.keys(Ot).length>0){for(var t in tt("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof St&&Ot[t].objectNumber>=0&&tt("/"+t+" "+Ot[t].objectNumber+" 0 R");Dt.publish("putShadingPatternDict"),tt(">>")}}(),function(t){if(Object.keys(Ot).length>0){for(var n in tt("/Pattern <<"),Ot)Ot.hasOwnProperty(n)&&Ot[n]instanceof d.TilingPattern&&Ot[n].objectNumber>=0&&Ot[n].objectNumber<t&&tt("/"+n+" "+Ot[n].objectNumber+" 0 R");Dt.publish("putTilingPatternDict"),tt(">>")}}(t.objectOid),function(){if(Object.keys(Ft).length>0){var t;for(t in tt("/ExtGState <<"),Ft)Ft.hasOwnProperty(t)&&Ft[t].objectNumber>=0&&tt("/"+t+" "+Ft[t].objectNumber+" 0 R");Dt.publish("putGStateDict"),tt(">>")}}(),function(){for(var t in tt("/XObject <<"),Ut)Ut.hasOwnProperty(t)&&Ut[t].objectNumber>=0&&tt("/"+t+" "+Ut[t].objectNumber+" 0 R");Dt.publish("putXobjectDict"),tt(">>")}(),tt(">>"),tt("endobj")},vn=function(t){Et[t.fontName]=Et[t.fontName]||{},Et[t.fontName][t.fontStyle]=t.id},dn=function(t,n,i,r,e){var s={id:"F"+(Object.keys(Mt).length+1).toString(10),postScriptName:t,fontName:n,fontStyle:i,encoding:r,isStandardFont:e||!1,metadata:{}};return Dt.publish("addFont",{font:s,instance:this}),Mt[s.id]=s,vn(s),s.id},wn=d.__private__.pdfEscape=d.pdfEscape=function(t,n){return function(t,n){var i,r,e,s,o,a,u,f,c;if(e=(n=n||{}).sourceEncoding||"Unicode",o=n.outputEncoding,(n.autoencode||o)&&Mt[bt].metadata&&Mt[bt].metadata[e]&&Mt[bt].metadata[e].encoding&&(s=Mt[bt].metadata[e].encoding,!o&&Mt[bt].encoding&&(o=Mt[bt].encoding),!o&&s.codePages&&(o=s.codePages[0]),"string"==typeof o&&(o=s[o]),o)){for(u=!1,a=[],i=0,r=t.length;i<r;i++)(f=o[t.charCodeAt(i)])?a.push(String.fromCharCode(f)):a.push(t[i]),a[i].charCodeAt(0)>>8&&(u=!0);t=a.join("")}for(i=t.length;void 0===u&&0!==i;)t.charCodeAt(i-1)>>8&&(u=!0),i--;if(!u)return t;for(a=n.noBOM?[]:[254,255],i=0,r=t.length;i<r;i++){if((c=(f=t.charCodeAt(i))>>8)>>8)throw new Error("Character at position "+i+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(f-(c<<8))}return String.fromCharCode.apply(void 0,a)}(t,n).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mn=d.__private__.beginPage=function(t){K[++Tt]=[],Ct[Tt]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Nn(Tt),Z(K[z])},bn=function(t,n){var r,s,o;switch(i=n||i,"string"==typeof t&&(r=p(t.toLowerCase()),Array.isArray(r)&&(s=r[0],o=r[1])),Array.isArray(t)&&(s=t[0]*pt,o=t[1]*pt),isNaN(s)&&(s=e[0],o=e[1]),(s>14400||o>14400)&&(X.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),s=Math.min(14400,s),o=Math.min(14400,o)),e=[s,o],i.substr(0,1)){case"l":o>s&&(e=[o,s]);break;case"p":s>o&&(e=[o,s])}mn(e),$n(Kn),tt(si),0!==hi&&tt(hi+" J"),0!==li&&tt(li+" j"),Dt.publish("addPage",{pageNumber:Tt})},pn=function(t){t>0&&t<=Tt&&(K.splice(t,1),Ct.splice(t,1),Tt--,z>Tt&&(z=Tt),this.setPage(z))},Nn=function(t){t>0&&t<=Tt&&(z=t)},Ln=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return K.length-1},gn=function(t,n,i){var r,e=void 0;return i=i||{},n=void 0!==n?n:Mt[bt].fontStyle,r=(t=void 0!==t?t:Mt[bt].fontName).toLowerCase(),void 0!==Et[r]&&void 0!==Et[r][n]?e=Et[r][n]:void 0!==Et[t]&&void 0!==Et[t][n]?e=Et[t][n]:!1===i.disableWarning&&X.warn("Unable to look up font label for font '"+t+"', '"+n+"'. Refer to getFontList() for available fonts."),e||i.noFallback||null==(e=Et.times[n])&&(e=Et.times.normal),e},An=d.__private__.putInfo=function(){var t=Yt(),n=function(t){return t};for(var i in null!==h&&(n=Pn.encryptor(t,0)),tt("<<"),tt("/Producer ("+wn(n("jsPDF "+qt.version))+")"),mt)mt.hasOwnProperty(i)&&mt[i]&&tt("/"+i.substr(0,1).toUpperCase()+i.substr(1)+" ("+wn(n(mt[i]))+")");tt("/CreationDate ("+wn(n(O))+")"),tt(">>"),tt("endobj")},yn=d.__private__.putCatalog=function(t){var n=(t=t||{}).rootDictionaryObjId||Qt;switch(Yt(),tt("<<"),tt("/Type /Catalog"),tt("/Pages "+n+" 0 R"),ut||(ut="fullwidth"),ut){case"fullwidth":tt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tt("/OpenAction [3 0 R /Fit]");break;case"original":tt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var i=""+ut;"%"===i.substr(i.length-1)&&(ut=parseInt(ut)/100),"number"==typeof ut&&tt("/OpenAction [3 0 R /XYZ null null "+j(ut)+"]")}switch(vt||(vt="continuous"),vt){case"continuous":tt("/PageLayout /OneColumn");break;case"single":tt("/PageLayout /SinglePage");break;case"two":case"twoleft":tt("/PageLayout /TwoColumnLeft");break;case"tworight":tt("/PageLayout /TwoColumnRight")}ht&&tt("/PageMode /"+ht),Dt.publish("putCatalog"),tt(">>"),tt("endobj")},kn=d.__private__.putTrailer=function(){tt("trailer"),tt("<<"),tt("/Size "+(W+1)),tt("/Root "+W+" 0 R"),tt("/Info "+(W-1)+" 0 R"),null!==h&&tt("/Encrypt "+Pn.oid+" 0 R"),tt("/ID [ <"+I+"> <"+I+"> ]"),tt(">>")},Sn=d.__private__.putHeader=function(){tt("%PDF-"+w),tt("%ºß¬à")},xn=d.__private__.putXRef=function(){var t="0000000000";tt("xref"),tt("0 "+(W+1)),tt("0000000000 65535 f ");for(var n=1;n<=W;n++)tt("function"==typeof H[n]?(t+H[n]()).slice(-10)+" 00000 n ":void 0!==H[n]?(t+H[n]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},qn=d.__private__.buildDocument=function(){W=0,G=0,_=[],H=[],J=[],Qt=Kt(),Zt=Kt(),Z(_),Dt.publish("buildDocument"),Sn(),on(),function(){Dt.publish("putAdditionalObjects");for(var t=0;t<J.length;t++){var n=J[t];Xt(n.objId,!0),tt(n.content),tt("endobj")}Dt.publish("postPutAdditionalObjects")}(),function(){var t=[];(function(){for(var t in Mt)Mt.hasOwnProperty(t)&&(!1===l||!0===l&&v.hasOwnProperty(t))&&an(Mt[t])})(),function(){var t;for(t in Ft)Ft.hasOwnProperty(t)&&hn(Ft[t])}(),function(){for(var t in Ut)Ut.hasOwnProperty(t)&&un(Ut[t])}(),function(t){var n;for(n in Ot)Ot.hasOwnProperty(n)&&(Ot[n]instanceof St?fn(Ot[n]):Ot[n]instanceof xt&&cn(Ot[n],t))}(t),Dt.publish("putResources"),t.forEach(ln),ln({resourcesOid:Zt,objectOid:Number.MAX_SAFE_INTEGER}),Dt.publish("postPutResources")}(),null!==h&&(Pn.oid=Yt(),tt("<<"),tt("/Filter /Standard"),tt("/V "+Pn.v),tt("/R "+Pn.r),tt("/U <"+Pn.toHexString(Pn.U)+">"),tt("/O <"+Pn.toHexString(Pn.O)+">"),tt("/P "+Pn.P),tt(">>"),tt("endobj")),An(),yn();var t=G;return xn(),kn(),tt("startxref"),tt(""+t),tt("%%EOF"),Z(K[z]),_.join("\n")},jn=d.__private__.getBlob=function(t){return new Blob([st(t)],{type:"application/pdf"})},Mn=d.output=d.__private__.output=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var n=t.stack||"";~n.indexOf(" at ")&&(n=n.split(" at ")[1]);var i="Error in function "+n.split("\n")[0].split("<")[0]+": "+t.message;if(!Y.console)throw new Error(i);Y.console.error(i,t),Y.alert&&alert(i)}},t.foo.bar=t,t.foo}((function(t,n){switch("string"==typeof(n=n||{})?n={filename:n}:n.filename=n.filename||"generated.pdf",t){case void 0:return qn();case"save":d.save(n.filename);break;case"arraybuffer":return st(qn());case"blob":return jn(qn());case"bloburi":case"bloburl":if(void 0!==Y.URL&&"function"==typeof Y.URL.createObjectURL)return Y.URL&&Y.URL.createObjectURL(jn(qn()))||void 0;X.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var i="",r=qn();try{i=nt(r)}catch(t){i=nt(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+n.filename+";base64,"+i;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Y)){var e="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';n.pdfObjectUrl&&(e=n.pdfObjectUrl,s="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+e+'"'+s+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(n)+");<\/script></body></html>",a=Y.open();return null!==a&&a.document.write(o),a}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Y)){var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(n.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+n.filename+'" width="500px" height="400px" /></body></html>',f=Y.open();if(null!==f){f.document.write(u);var c=this;f.document.documentElement.querySelector("#pdfViewer").onload=function(){f.document.title=n.filename,f.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return f}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Y))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",n)+'"></iframe></body></html>',l=Y.open();if(null!==l&&(l.document.write(h),l.document.title=n.filename),l||"undefined"==typeof safari)return l;break;case"datauri":case"dataurl":return Y.document.location.href=this.output("datauristring",n);default:return null}})),En=function(t){return!0===Array.isArray(zt)&&zt.indexOf(t)>-1};switch(r){case"pt":pt=1;break;case"mm":pt=72/25.4;break;case"cm":pt=72/2.54;break;case"in":pt=72;break;case"px":pt=1==En("px_scaling")?.75:96/72;break;case"pc":case"em":pt=12;break;case"ex":pt=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);pt=r}var Pn=null;C(),B();var On=d.__private__.getPageInfo=d.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ct[t].objId,pageNumber:t,pageContext:Ct[t]}},In=d.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var n in Ct)if(Ct[n].objId===t)break;return On(n)},Fn=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Ct[z].objId,pageNumber:z,pageContext:Ct[z]}};d.addPage=function(){return bn.apply(this,arguments),this},d.setPage=function(){return Nn.apply(this,arguments),Z.call(this,K[z]),this},d.insertPage=function(t){return this.addPage(),this.movePage(z,t),this},d.movePage=function(t,n){var i,r;if(t>n){i=K[t],r=Ct[t];for(var e=t;e>n;e--)K[e]=K[e-1],Ct[e]=Ct[e-1];K[n]=i,Ct[n]=r,this.setPage(n)}else if(t<n){i=K[t],r=Ct[t];for(var s=t;s<n;s++)K[s]=K[s+1],Ct[s]=Ct[s+1];K[n]=i,Ct[n]=r,this.setPage(n)}return this},d.deletePage=function(){return pn.apply(this,arguments),this},d.__private__.text=d.text=function(t,n,i,r,e){var s,o,a,f,c,h,l,d,w,m=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof n&&("string"==typeof i||Array.isArray(i))){var b=i;i=n,n=t,t=b}if(arguments[3]instanceof Ht==0?(a=arguments[4],f=arguments[5],"object"===u(l=arguments[3])&&null!==l||("string"==typeof a&&(f=a,a=null),"string"==typeof l&&(f=l,l=null),"number"==typeof l&&(a=l,l=null),r={flags:l,angle:a,align:f})):(x("The transform parameter of text() with a Matrix value"),w=e),isNaN(n)||isNaN(i)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var p,N="",A="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Yn,y=m.internal.scaleFactor;function k(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),wn(t,l)}function q(t){for(var n,i=t.concat(),r=[],e=i.length;e--;)"string"==typeof(n=i.shift())?r.push(n):Array.isArray(t)&&(1===n.length||void 0===n[1]&&void 0===n[2])?r.push(n[0]):r.push([n[0],n[1],n[2]]);return r}function j(t,n){var i;if("string"==typeof t)i=n(t)[0];else if(Array.isArray(t)){for(var r,e,s=t.concat(),o=[],a=s.length;a--;)"string"==typeof(r=s.shift())?o.push(n(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(e=n(r[0],r[1],r[2]),o.push([e[0],e[1],e[2]]));i=o}return i}var M=!1,P=!0;if("string"==typeof t)M=!0;else if(Array.isArray(t)){var O=t.concat();o=[];for(var I,F=O.length;F--;)("string"!=typeof(I=O.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(P=!1);M=P}if(!1===M)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var B=at/m.internal.scaleFactor,R=B*(A-1);switch(r.baseline){case"bottom":i-=R;break;case"top":i+=B-R;break;case"hanging":i+=B-2*R;break;case"middle":i+=B/2-R}if((h=r.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,n){return t.concat(m.splitTextToSize(n,h))}),[]))),Dt.publish("preProcessText",s={text:t,x:n,y:i,options:r,mutex:{pdfEscape:wn,activeFontKey:bt,fonts:Mt,activeFontSize:at}}),t=s.text,a=(r=s.options).angle,w instanceof Ht==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),g===L&&(a=-a);var T=Math.cos(a),C=Math.sin(a);w=new Ht(T,C,-C,T,0,0)}else a&&a instanceof Ht&&(w=a);g!==L||w||(w=Gt),void 0!==(c=r.charSpace||fi)&&(N+=S(E(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=r.horizontalScale)&&(N+=S(100*d)+" Tz\n");var D=-1,z=void 0!==r.renderingMode?r.renderingMode:r.stroke,U=m.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}-1!==D?N+=D+" Tr\n":-1!==(void 0!==U.usedRenderingMode?U.usedRenderingMode:-1)&&(N+="0 Tr\n"),-1!==D&&(U.usedRenderingMode=D),f=r.align||"left";var V,W=at*A,H=m.internal.pageSize.getWidth(),_=Mt[bt];c=r.charSpace||fi,h=r.maxWidth||0,l=Object.assign({autoencode:!0,noBOM:!0},r.flags);var G=[];if("[object Array]"===Object.prototype.toString.call(t)){var J;o=q(t),"left"!==f&&(V=o.map((function(t){return m.getStringUnitWidth(t,{font:_,charSpace:c,fontSize:at,doKerning:!1})*at/y})));var Y,K=0;if("right"===f){n-=V[0],t=[],F=o.length;for(var X=0;X<F;X++)0===X?(Y=ni(n),J=ii(i)):(Y=E(K-V[X]),J=-W),t.push([o[X],Y,J]),K=V[X]}else if("center"===f){n-=V[0]/2,t=[],F=o.length;for(var $=0;$<F;$++)0===$?(Y=ni(n),J=ii(i)):(Y=E((K-V[$])/2),J=-W),t.push([o[$],Y,J]),K=V[$]}else if("left"===f){t=[],F=o.length;for(var Q=0;Q<F;Q++)t.push(o[Q])}else{if("justify"!==f)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],F=o.length,h=0!==h?h:H;for(var Z=0;Z<F;Z++)J=0===Z?ii(i):-W,Y=0===Z?ni(n):0,G.push(Z<F-1?S(E((h-V[Z])/(o[Z].split(" ").length-1))):0),t.push([o[Z],Y,J])}}!0===("boolean"==typeof r.R2L?r.R2L:ct)&&(t=j(t,(function(t,n,i){return[t.split("").reverse().join(""),n,i]}))),Dt.publish("postProcessText",s={text:t,x:n,y:i,options:r,mutex:{pdfEscape:wn,activeFontKey:bt,fonts:Mt,activeFontSize:at}}),t=s.text,p=s.mutex.isHex||!1;var nt=Mt[bt].encoding;"WinAnsiEncoding"!==nt&&"StandardEncoding"!==nt||(t=j(t,(function(t,n,i){return[k(t),n,i]}))),o=q(t),t=[];for(var it,rt,et,st=Array.isArray(o[0])?1:0,ot="",ut=function(t,n,i){var e="";return i instanceof Ht?(i="number"==typeof r.angle?_t(i,new Ht(1,0,0,1,t,n)):_t(new Ht(1,0,0,1,t,n),i),g===L&&(i=_t(new Ht(1,0,0,-1,0,0),i)),e=i.join(" ")+" Tm\n"):e=S(t)+" "+S(n)+" Td\n",e},ft=0;ft<o.length;ft++){switch(ot="",st){case 1:et=(p?"<":"(")+o[ft][0]+(p?">":")"),it=parseFloat(o[ft][1]),rt=parseFloat(o[ft][2]);break;case 0:et=(p?"<":"(")+o[ft]+(p?">":")"),it=ni(n),rt=ii(i)}void 0!==G&&void 0!==G[ft]&&(ot=G[ft]+" Tw\n"),0===ft?t.push(ot+ut(it,rt,w)+et):0===st?t.push(ot+et):1===st&&t.push(ot+ut(it,rt,w)+et)}t=t.join(0===st?" Tj\nT* ":" Tj\n"),t+=" Tj\n";var ht="BT\n/";return ht+=bt+" "+at+" Tf\n",ht+=S(at*A)+" TL\n",ht+=ai+"\n",ht+=N,ht+=t,tt(ht+="ET"),v[bt]=!0,m};var Bn=d.__private__.clip=d.clip=function(t){return tt("evenodd"===t?"W*":"W"),this};d.clipEvenOdd=function(){return Bn("evenodd")},d.__private__.discardPath=d.discardPath=function(){return tt("n"),this};var Rn=d.__private__.isValidStyle=function(t){var n=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(n=!0),n};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(t){return Rn(t)&&(c=t),this};var Tn=d.__private__.getStyle=d.getStyle=function(t){var n=c;switch(t){case"D":case"S":n="S";break;case"F":n="f";break;case"FD":case"DF":n="B";break;case"f":case"f*":case"B":case"B*":n=t}return n},Cn=d.close=function(){return tt("h"),this};d.stroke=function(){return tt("S"),this},d.fill=function(t){return Dn("f",t),this},d.fillEvenOdd=function(t){return Dn("f*",t),this},d.fillStroke=function(t){return Dn("B",t),this},d.fillStrokeEvenOdd=function(t){return Dn("B*",t),this};var Dn=function(t,n){"object"===u(n)?Vn(n,t):tt(t)},zn=function(t){null===t||g===L&&void 0===t||(t=Tn(t),tt(t))};function Un(t,n,i,r,e){var s=new xt(n||this.boundingBox,i||this.xStep,r||this.yStep,this.gState,e||this.matrix);s.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Jt(o,s),s}var Vn=function(t,n){var i=It[t.key],r=Ot[i];if(r instanceof St)tt("q"),tt(Wn(n)),r.gState&&d.setGState(r.gState),tt(t.matrix.toString()+" cm"),tt("/"+i+" sh"),tt("Q");else if(r instanceof xt){var e=new Ht(1,0,0,-1,0,gi());t.matrix&&(e=e.multiply(t.matrix||Gt),i=Un.call(r,t.key,t.boundingBox,t.xStep,t.yStep,e).id),tt("q"),tt("/Pattern cs"),tt("/"+i+" scn"),r.gState&&d.setGState(r.gState),tt(n),tt("Q")}},Wn=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Hn=d.moveTo=function(t,n){return tt(S(E(t))+" "+S(P(n))+" m"),this},_n=d.lineTo=function(t,n){return tt(S(E(t))+" "+S(P(n))+" l"),this},Gn=d.curveTo=function(t,n,i,r,e,s){return tt([S(E(t)),S(P(n)),S(E(i)),S(P(r)),S(E(e)),S(P(s)),"c"].join(" ")),this};d.__private__.line=d.line=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!Rn(e))throw new Error("Invalid arguments passed to jsPDF.line");return g===N?this.lines([[i-t,r-n]],t,n,[1,1],e||"S"):this.lines([[i-t,r-n]],t,n,[1,1]).stroke()},d.__private__.lines=d.lines=function(t,n,i,r,e,s){var o,a,u,f,c,h,l,v;if("number"==typeof t&&(v=i,i=n,n=t,t=v),r=r||[1,1],s=s||!1,isNaN(n)||isNaN(i)||!Array.isArray(t)||!Array.isArray(r)||!Rn(e)||"boolean"!=typeof s)throw new Error("Invalid arguments passed to jsPDF.lines");for(Hn(n,i),o=r[0],a=r[1],f=t.length,h=n,l=i,u=0;u<f;u++)2===(c=t[u]).length?_n(h=c[0]*o+h,l=c[1]*a+l):Gn(c[0]*o+h,c[1]*a+l,c[2]*o+h,c[3]*a+l,h=c[4]*o+h,l=c[5]*a+l);return s&&Cn(),zn(e),this},d.path=function(t){for(var n=0;n<t.length;n++){var i=t[n],r=i.c;switch(i.op){case"m":Hn(r[0],r[1]);break;case"l":_n(r[0],r[1]);break;case"c":Gn.apply(this,r);break;case"h":Cn()}}return this},d.__private__.rect=d.rect=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!Rn(e))throw new Error("Invalid arguments passed to jsPDF.rect");return g===N&&(r=-r),tt([S(E(t)),S(P(n)),S(E(i)),S(E(r)),"re"].join(" ")),zn(e),this},d.__private__.triangle=d.triangle=function(t,n,i,r,e,s,o){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s)||!Rn(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[i-t,r-n],[e-i,s-r],[t-e,n-s]],t,n,[1,1],o,!0),this},d.__private__.roundedRect=d.roundedRect=function(t,n,i,r,e,s,o){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s)||!Rn(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return e=Math.min(e,.5*i),s=Math.min(s,.5*r),this.lines([[i-2*e,0],[e*a,0,e,s-s*a,e,s],[0,r-2*s],[0,s*a,-e*a,s,-e,s],[2*e-i,0],[-e*a,0,-e,-s*a,-e,-s],[0,2*s-r],[0,-s*a,e*a,-s,e,-s]],t+e,n,[1,1],o,!0),this},d.__private__.ellipse=d.ellipse=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!Rn(e))throw new Error("Invalid arguments passed to jsPDF.ellipse");var s=4/3*(Math.SQRT2-1)*i,o=4/3*(Math.SQRT2-1)*r;return Hn(t+i,n),Gn(t+i,n-o,t+s,n-r,t,n-r),Gn(t-s,n-r,t-i,n-o,t-i,n),Gn(t-i,n+o,t-s,n+r,t,n+r),Gn(t+s,n+r,t+i,n+o,t+i,n),zn(e),this},d.__private__.circle=d.circle=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||!Rn(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,n,i,i,r)},d.setFont=function(t,n,i){return i&&(n=k(n,i)),bt=gn(t,n,{disableWarning:!1}),this};var Jn=d.__private__.getFont=d.getFont=function(){return Mt[gn.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var t,n,i={};for(t in Et)if(Et.hasOwnProperty(t))for(n in i[t]=[],Et[t])Et[t].hasOwnProperty(n)&&i[t].push(n);return i},d.addFont=function(t,n,i,r,e){var s=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==s.indexOf(arguments[3])?e=arguments[3]:arguments[3]&&-1==s.indexOf(arguments[3])&&(i=k(i,r)),dn.call(this,t,n,i,e=e||"Identity-H")};var Yn,Kn=t.lineWidth||.200025,Xn=d.__private__.getLineWidth=d.getLineWidth=function(){return Kn},$n=d.__private__.setLineWidth=d.setLineWidth=function(t){return Kn=t,tt(S(E(t))+" w"),this};d.__private__.setLineDash=qt.API.setLineDash=qt.API.setLineDashPattern=function(t,n){if(t=t||[],n=n||0,isNaN(n)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return S(E(t))})).join(" "),n=S(E(n)),tt("["+t+"] "+n+" d"),this};var Qn=d.__private__.getLineHeight=d.getLineHeight=function(){return at*Yn};d.__private__.getLineHeight=d.getLineHeight=function(){return at*Yn};var Zn=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Yn=t),this},ti=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Yn};Zn(t.lineHeight);var ni=d.__private__.getHorizontalCoordinate=function(t){return E(t)},ii=d.__private__.getVerticalCoordinate=function(t){return g===L?t:Ct[z].mediaBox.topRightY-Ct[z].mediaBox.bottomLeftY-E(t)},ri=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(t){return S(ni(t))},ei=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(t){return S(ii(t))},si=t.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return tn(si)},d.__private__.setStrokeColor=d.setDrawColor=function(t,n,i,r){return si=nn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"draw",precision:2}),tt(si),this};var oi=t.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return tn(oi)},d.__private__.setFillColor=d.setFillColor=function(t,n,i,r){return oi=nn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"fill",precision:2}),tt(oi),this};var ai=t.textColor||"0 g",ui=d.__private__.getTextColor=d.getTextColor=function(){return tn(ai)};d.__private__.setTextColor=d.setTextColor=function(t,n,i,r){return ai=nn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"text",precision:3}),this};var fi=t.charSpace,ci=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(fi||0)};d.__private__.setCharSpace=d.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return fi=t,this};var hi=0;d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(t){var n=d.CapJoinStyles[t];if(void 0===n)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hi=n,tt(n+" J"),this};var li=0;d.__private__.setLineJoin=d.setLineJoin=function(t){var n=d.CapJoinStyles[t];if(void 0===n)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return li=n,tt(n+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return tt(S(E(t))+" M"),this},d.GState=yt,d.setGState=function(t){(t="string"==typeof t?Ft[Bt[t]]:vi(null,t)).equals(Rt)||(tt("/"+t.id+" gs"),Rt=t)};var vi=function(t,n){if(!t||!Bt[t]){var i=!1;for(var r in Ft)if(Ft.hasOwnProperty(r)&&Ft[r].equals(n)){i=!0;break}if(i)n=Ft[r];else{var e="GS"+(Object.keys(Ft).length+1).toString(10);Ft[e]=n,n.id=e}return t&&(Bt[t]=n.id),Dt.publish("addGState",n),n}};d.addGState=function(t,n){return vi(t,n),this},d.saveGraphicsState=function(){return tt("q"),Pt.push({key:bt,size:at,color:ai}),this},d.restoreGraphicsState=function(){tt("Q");var t=Pt.pop();return bt=t.key,at=t.size,ai=t.color,Rt=null,this},d.setCurrentTransformationMatrix=function(t){return tt(t.toString()+" cm"),this},d.comment=function(t){return tt("#"+t),this};var di=function(t,n){var i=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var r=n||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var e="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return e},set:function(t){e=t.toString()}}),this},wi=function(t,n,i,r){di.call(this,t,n),this.type="rect";var e=i||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return e},set:function(t){isNaN(t)||(e=parseFloat(t))}});var s=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return s},set:function(t){isNaN(t)||(s=parseFloat(t))}}),this},mi=function(){this.page=Tt,this.currentPage=z,this.pages=K.slice(0),this.pagesContext=Ct.slice(0),this.x=Nt,this.y=kt,this.matrix=jt,this.width=Ni(z),this.height=gi(z),this.outputDestination=Q,this.id="",this.objectNumber=-1};mi.prototype.restore=function(){Tt=this.page,Ct=this.pagesContext,K=this.pages,Nt=this.x,kt=this.y,jt=this.matrix,Li(z=this.currentPage,this.width),Ai(z,this.height),Q=this.outputDestination};var bi=function(t,n,i,r,e){Wt.push(new mi),Tt=z=0,K=[],Nt=t,kt=n,jt=e,mn([i,r])};for(var pi in d.beginFormObject=function(t,n,i,r,e){return bi(t,n,i,r,e),this},d.endFormObject=function(t){return function(t){if(Vt[t])Wt.pop().restore();else{var n=new mi,i="Xo"+(Object.keys(Ut).length+1).toString(10);n.id=i,Vt[t]=i,Ut[i]=n,Dt.publish("addFormObject",n),Wt.pop().restore()}}(t),this},d.doFormObject=function(t,n){var i=Ut[Vt[t]];return tt("q"),tt(n.toString()+" cm"),tt("/"+i.id+" Do"),tt("Q"),this},d.getFormObject=function(t){var n=Ut[Vt[t]];return{x:n.x,y:n.y,width:n.width,height:n.height,matrix:n.matrix}},d.save=function(t,n){return t=t||"generated.pdf",(n=n||{}).returnPromise=n.returnPromise||!1,!1===n.returnPromise?(it(jn(qn()),t),"function"==typeof it.unload&&Y.setTimeout&&setTimeout(it.unload,911),this):new Promise((function(n,i){try{var r=it(jn(qn()),t);"function"==typeof it.unload&&Y.setTimeout&&setTimeout(it.unload,911),n(r)}catch(t){i(t.message)}}))},qt.API)qt.API.hasOwnProperty(pi)&&("events"===pi&&qt.API.events.length?function(t,n){var i,r;for(r=n.length-1;-1!==r;r--)t.subscribe.apply(t,[n[r][0]].concat("function"==typeof(i=n[r][1])?[i]:i))}(Dt,qt.API.events):d[pi]=qt.API[pi]);var Ni=d.getPageWidth=function(t){return(Ct[t=t||z].mediaBox.topRightX-Ct[t].mediaBox.bottomLeftX)/pt},Li=d.setPageWidth=function(t,n){Ct[t].mediaBox.topRightX=n*pt+Ct[t].mediaBox.bottomLeftX},gi=d.getPageHeight=function(t){return(Ct[t=t||z].mediaBox.topRightY-Ct[t].mediaBox.bottomLeftY)/pt},Ai=d.setPageHeight=function(t,n){Ct[t].mediaBox.topRightY=n*pt+Ct[t].mediaBox.bottomLeftY};return d.internal={pdfEscape:wn,getStyle:Tn,getFont:Jn,getFontSize:ft,getCharSpace:ci,getTextColor:ui,getLineHeight:Qn,getLineHeightFactor:ti,getLineWidth:Xn,write:et,getHorizontalCoordinate:ni,getVerticalCoordinate:ii,getCoordinateString:ri,getVerticalCoordinateString:ei,collections:{},newObject:Yt,newAdditionalObject:$t,newObjectDeferred:Kt,newObjectDeferredBegin:Xt,getFilters:rn,putStream:en,events:Dt,scaleFactor:pt,pageSize:{getWidth:function(){return Ni(z)},setWidth:function(t){Li(z,t)},getHeight:function(){return gi(z)},setHeight:function(t){Ai(z,t)}},encryptionOptions:h,encryption:Pn,getEncryptor:function(t){return null!==h?Pn.encryptor(t,0):function(t){return t}},output:Mn,getNumberOfPages:Ln,pages:K,out:tt,f2:j,f3:M,getPageInfo:On,getPageInfoByObjId:In,getCurrentPageInfo:Fn,getPDFVersion:m,Point:di,Rectangle:wi,Matrix:Ht,hasHotfix:En},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Ni(z)},set:function(t){Li(z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return gi(z)},set:function(t){Ai(z,t)},enumerable:!0,configurable:!0}),function(t){for(var n=0,i=ot.length;n<i;n++){var r=dn.call(this,t[n][0],t[n][1],t[n][2],ot[n][3],!0);!1===l&&(v[r]=!0);var e=t[n][0].split("-");vn({id:r,fontName:e[0],fontStyle:e[1]||""})}Dt.publish("addFonts",{fonts:Mt,dictionary:Et})}.call(d,ot),bt="F1",bn(e,i),Dt.publish("initialized"),d}Lt.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},Lt.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Lt.prototype.hexToBytes=function(t){for(var n=[],i=0;i<t.length;i+=2)n.push(String.fromCharCode(parseInt(t.substr(i,2),16)));return n.join("")},Lt.prototype.processOwnerPassword=function(t,n){return pt(wt(n).substr(0,5),t)},Lt.prototype.encryptor=function(t,n){var i=wt(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(t){return pt(i,t)}},yt.prototype.equals=function(t){var n,i="id,objectNumber,equals";if(!t||u(t)!==u(this))return!1;var r=0;for(n in this)if(!(i.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;if(this[n]!==t[n])return!1;r++}for(n in t)t.hasOwnProperty(n)&&i.indexOf(n)<0&&r--;return 0===r},qt.API={events:[]},qt.version="2.5.1";var jt=qt.API,Mt=1,Et=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pt=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ot=function(t){return t.toFixed(2)},It=function(t){return t.toFixed(5)};jt.__acroform__={};var Ft=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},Bt=function(t){return t*Mt},Rt=function(t){var n=new Zt,i=dn.internal.getHeight(t)||0,r=dn.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Ot(r)),Number(Ot(i))],n},Tt=jt.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<n},Ct=jt.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},Dt=jt.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<n)?0:1},zt=jt.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Dt(t,n-1)},Ut=jt.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Tt(t,n-1)},Vt=jt.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ct(t,n-1)},Wt=jt.__acroform__.calculateCoordinates=function(t,n){var i=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,e=t[0],s=t[1],o=t[2],a=t[3],u={};return u.lowerLeft_X=i(e)||0,u.lowerLeft_Y=r(s+a)||0,u.upperRight_X=i(e+o)||0,u.upperRight_Y=r(s)||0,[Number(Ot(u.lowerLeft_X)),Number(Ot(u.lowerLeft_Y)),Number(Ot(u.upperRight_X)),Number(Ot(u.upperRight_Y))]},Ht=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],i=_t(t,t._V||t.DV),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+r+" "+Ot(i.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC");var e=Rt(t);return e.scope=t.scope,e.stream=n.join("\n"),e}},_t=function(t,n){var i=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},e=(n=")"==(n="("==n.substr(0,1)?n.substr(1):n).substr(n.length-1)?n.substr(0,n.length-1):n).split(" ");e=e.map(t.multiline?function(t){return t.split("\n")}:function(t){return[t]});var s=i,o=dn.internal.getHeight(t)||0;o=o<0?-o:o;var a=dn.internal.getWidth(t)||0;a=a<0?-a:a;var u=function(n,i,r){return n+1<e.length&&Gt(i+" "+e[n+1][0],t,r).width<=a-4};s++;t:for(;s>0;){n="",s--;var f,c,h=Gt("3",t,s).height,l=t.multiline?o-s:(o-h)/2,v=l+=2,d=0,w=0,m=0;if(s<=0){n="(...) Tj\n",n+="% Width of Text: "+Gt(n,t,s=12).width+", FieldWidth:"+a+"\n";break}for(var b="",p=0,N=0;N<e.length;N++)if(e.hasOwnProperty(N)){var L=!1;if(1!==e[N].length&&m!==e[N].length-1){if((h+2)*(p+2)+2>o)continue t;b+=e[N][m],L=!0,w=N,N--}else{b=" "==(b+=e[N][m]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var g=parseInt(N),A=u(g,b,s),y=N>=e.length-1;if(A&&!y){b+=" ",m=0;continue}if(A||y){if(y)w=g;else if(t.multiline&&(h+2)*(p+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(p+2)+2>o)continue t;w=g}}for(var k="",S=d;S<=w;S++){var x=e[S];if(t.multiline){if(S===w){k+=x[m]+" ",m=(m+1)%x.length;continue}if(S===d){k+=x[x.length-1]+" ";continue}}k+=x[0]+" "}switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,c=Gt(k,t,s).width,t.textAlign){case"right":f=a-c-2;break;case"center":f=(a-c)/2;break;default:f=2}n+=Ot(f)+" "+Ot(v)+" Td\n",n+="("+Et(k)+") Tj\n",n+=-Ot(f)+" 0 Td\n",v=-(s+2),c=0,d=L?w:w+1,p++,b=""}break}return r.text=n,r.fontSize=s,r},Gt=function(t,n,i){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),e=n.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:e}},Jt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Yt=function(t,n){var i={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===i.type&&t.object===i.object}))&&n.internal.getPageInfo(t.page).pageContext.annotations.push(i)},Kt=function(t,n){if(n.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(nn.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Jt)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Mt=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new tn,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];r.objId=void 0,r.hasAnnotation&&Yt(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(n){!function(t,n){var i=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var e=t[r],s=[],o=e.Rect;if(e.Rect&&(e.Rect=Wt(e.Rect,n)),n.internal.newObjectDeferredBegin(e.objId,!0),e.DA=dn.createDefaultAppearanceStream(e),"object"===u(e)&&"function"==typeof e.getKeyValueListForStream&&(s=e.getKeyValueListForStream()),e.Rect=o,e.hasAppearanceStream&&!e.appearanceStreamContent){var a=Ht(e);s.push({key:"AP",value:"<</N "+a+">>"}),n.internal.acroformPlugin.xForms.push(a)}if(e.appearanceStreamContent){var f="";for(var c in e.appearanceStreamContent)if(e.appearanceStreamContent.hasOwnProperty(c)){var h=e.appearanceStreamContent[c];if(f+="/"+c+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var r in h)if(h.hasOwnProperty(r)){var l=h[r];"function"==typeof l&&(l=l.call(n,e)),f+="/"+r+" "+l+" ",n.internal.acroformPlugin.xForms.indexOf(l)>=0||n.internal.acroformPlugin.xForms.push(l)}}else"function"==typeof(l=h)&&(l=l.call(n,e)),f+="/"+r+" "+l,n.internal.acroformPlugin.xForms.indexOf(l)>=0||n.internal.acroformPlugin.xForms.push(l);f+=">>"}s.push({key:"AP",value:"<<\n"+f+">>"})}n.internal.putStream({additionalKeyValues:s,objectId:e.objId}),n.internal.out("endobj")}i&&function(t,n){for(var i in t)if(t.hasOwnProperty(i)){var r=i,e=t[i];n.internal.newObjectDeferredBegin(e.objId,!0),"object"===u(e)&&"function"==typeof e.putStream&&e.putStream(),delete t[r]}}(n.internal.acroformPlugin.xForms,n)}(n,t)})),t.internal.acroformPlugin.isInitialized=!0}},Xt=jt.__acroform__.arrayToPdfArray=function(t,n,i){var r=function(t){return t};if(Array.isArray(t)){for(var e="[",s=0;s<t.length;s++)switch(0!==s&&(e+=" "),u(t[s])){case"boolean":case"number":case"object":e+=t[s].toString();break;case"string":"/"!==t[s].substr(0,1)?(void 0!==n&&i&&(r=i.internal.getEncryptor(n)),e+="("+Et(r(t[s].toString()))+")"):e+=t[s].toString()}return e+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$t=function(t,n,i){var r=function(t){return t};return void 0!==n&&i&&(r=i.internal.getEncryptor(n)),(t=t||"").toString(),"("+Et(r(t))+")"},Qt=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Qt.prototype.toString=function(){return this.objId+" 0 R"},Qt.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Qt.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var i in n)if(!1===Object.getOwnPropertyDescriptor(this,n[i]).configurable){var r=n[i],e=this[r];e&&(Array.isArray(e)?t.push({key:r,value:Xt(e,this.objId,this.scope)}):e instanceof Qt?(e.scope=this.scope,t.push({key:r,value:e.objId+" 0 R"})):"function"!=typeof e&&t.push({key:r,value:e}))}return t};var Zt=function(){Qt.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};Ft(Zt,Qt);var tn=function(){Qt.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(t){return t};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Et(n(t))+")"}},set:function(n){t=n}})};Ft(tn,Qt);var nn=function t(){Qt.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');n=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(n,3))},set:function(t){this.F=!0===Boolean(t)?Ut(n,3):Vt(n,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');i=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var e="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":e=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof cn)return;s="FieldObject"+t.FieldNum++}var n=function(t){return t};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Et(n(s))+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===f?50/Mt:f},set:function(t){f=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof cn||this instanceof ln))return $t(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var l=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof an==0?$t(l,this.objId,this.scope):l},set:function(t){t=t.toString(),l=this instanceof an==0?"("===t.substr(0,1)?Pt(t.substr(1,t.length-2)):Pt(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?Pt(l.substr(1,l.length-1)):l},set:function(t){t=t.toString(),l=this instanceof an==1?"/"+t:t}});var v=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(v)return v},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof an==0?$t(v,this.objId,this.scope):v},set:function(t){t=t.toString(),v=this instanceof an==0?"("===t.substr(0,1)?Pt(t.substr(1,t.length-2)):Pt(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?Pt(v.substr(1,v.length-1)):v},set:function(t){t=t.toString(),v=this instanceof an==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(t){t=Boolean(t),w=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,1))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,1):Vt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,2))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,2):Vt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,3))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,3):Vt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Ft(nn,Qt);var rn=function(){nn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Xt(n,this.objId,this.scope)},set:function(t){var i,r;r=[],"string"==typeof(i=t)&&(r=function(t,n,i){i||(i=1);for(var r,e=[];r=n.exec(t);)e.push(r[i]);return e}(i,/\((.*?)\)/g)),n=r}}),this.getOptions=function(){return n},this.setOptions=function(t){n=t,this.sort&&n.sort()},this.addOption=function(t){t=(t=t||"").toString(),n.push(t),this.sort&&n.sort()},this.removeOption=function(t,i){for(i=i||!1,t=(t=t||"").toString();-1!==n.indexOf(t)&&(n.splice(n.indexOf(t),1),!1!==i););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,18))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,18):Vt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,19))},set:function(t){!0===this.combo&&(this.Ff=!0===Boolean(t)?Ut(this.Ff,19):Vt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Ut(this.Ff,20),n.sort()):this.Ff=Vt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,22))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,22):Vt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,23))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,23):Vt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,27))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,27):Vt(this.Ff,27)}}),this.hasAppearanceStream=!1};Ft(rn,nn);var en=function(){rn.call(this),this.fontName="helvetica",this.combo=!1};Ft(en,rn);var sn=function(){en.call(this),this.combo=!0};Ft(sn,en);var on=function(){sn.call(this),this.edit=!0};Ft(on,sn);var an=function(){nn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,15))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,15):Vt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,16))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,16):Vt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,17))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,17):Vt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,26))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,26):Vt(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(n).length){var i,r=[];for(i in r.push("<<"),n)r.push("/"+i+" ("+Et(t(n[i]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===u(t)&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}})};Ft(an,nn);var un=function(){an.call(this),this.pushButton=!0};Ft(un,an);var fn=function(){an.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=void 0!==n?n:[]}})};Ft(fn,an);var cn=function(){var t,n;nn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t}});var i,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var n,i=[];for(n in i.push("<<"),r)i.push("/"+n+" ("+Et(t(r[n]))+")");return i.push(">>"),i.join("\n")},set:function(t){"object"===u(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(t){i="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=dn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ft(cn,nn),fn.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var i=this.Kids[n];i.appearanceStreamContent=t.createAppearanceStream(i.optionName),i.caption=t.getCA()}},fn.prototype.createOption=function(t){var n=new cn;return n.Parent=this,n.optionName=t,this.Kids.push(n),wn.call(this.scope,n),n};var hn=function(){an.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=dn.CheckBox.createAppearanceStream()};Ft(hn,an);var ln=function(){nn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,13))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,13):Vt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,21))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,21):Vt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,23))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,23):Vt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,24))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,24):Vt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,25))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,25):Vt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,26))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,26):Vt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ft(ln,nn);var vn=function(){ln.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,14))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,14):Vt(this.Ff,14)}}),this.password=!0};Ft(vn,ln);var dn={CheckBox:{createAppearanceStream:function(){return{N:{On:dn.CheckBox.YesNormal},D:{On:dn.CheckBox.YesPushDown,Off:dn.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color),s=_t(t,t.caption);return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+r+" "+Ot(s.fontSize)+" Tf "+e),i.push("BT"),i.push(s.text),i.push("ET"),i.push("Q"),i.push("EMC"),n.stream=i.join("\n"),n},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),e=[],s=dn.internal.getHeight(t),o=dn.internal.getWidth(t),a=_t(t,t.caption);return e.push("1 g"),e.push("0 0 "+Ot(o)+" "+Ot(s)+" re"),e.push("f"),e.push("q"),e.push("0 0 1 rg"),e.push("0 0 "+Ot(o-1)+" "+Ot(s-1)+" re"),e.push("W"),e.push("n"),e.push("0 g"),e.push("BT"),e.push("/"+i+" "+Ot(a.fontSize)+" Tf "+r),e.push(a.text),e.push("ET"),e.push("Q"),n.stream=e.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),n.stream=i.join("\n"),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:dn.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=dn.RadioButton.Circle.YesNormal,n.D[t]=dn.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((r*dn.internal.Bezier_C).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+e+" "+e+" "+r+" 0 "+r+" c"),i.push("-"+e+" "+r+" -"+r+" "+e+" -"+r+" 0 c"),i.push("-"+r+" -"+e+" -"+e+" -"+r+" 0 -"+r+" c"),i.push(e+" -"+r+" "+r+" -"+e+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((2*r).toFixed(5)),s=Number((e*dn.internal.Bezier_C).toFixed(5)),o=Number((r*dn.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+s+" "+s+" "+e+" 0 "+e+" c"),i.push("-"+s+" "+e+" -"+e+" "+s+" -"+e+" 0 c"),i.push("-"+e+" -"+s+" -"+s+" -"+e+" 0 -"+e+" c"),i.push(s+" -"+e+" "+e+" -"+s+" "+e+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),i.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),i.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),i.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((2*r).toFixed(5)),s=Number((e*dn.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+s+" "+s+" "+e+" 0 "+e+" c"),i.push("-"+s+" "+e+" -"+e+" "+s+" -"+e+" 0 c"),i.push("-"+e+" -"+s+" -"+s+" -"+e+" 0 -"+e+" c"),i.push(s+" -"+e+" "+e+" -"+s+" "+e+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:dn.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=dn.RadioButton.Cross.YesNormal,n.D[t]=dn.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.calculateCross(t);return i.push("q"),i.push("1 1 "+Ot(dn.internal.getWidth(t)-2)+" "+Ot(dn.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Ot(r.x1.x)+" "+Ot(r.x1.y)+" m"),i.push(Ot(r.x2.x)+" "+Ot(r.x2.y)+" l"),i.push(Ot(r.x4.x)+" "+Ot(r.x4.y)+" m"),i.push(Ot(r.x3.x)+" "+Ot(r.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join("\n"),n},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=dn.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ot(dn.internal.getWidth(t)-2)+" "+Ot(dn.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ot(i.x1.x)+" "+Ot(i.x1.y)+" m"),r.push(Ot(i.x2.x)+" "+Ot(i.x2.y)+" l"),r.push(Ot(i.x4.x)+" "+Ot(i.x4.y)+" m"),r.push(Ot(i.x3.x)+" "+Ot(i.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),n.stream=i.join("\n"),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+i}};dn.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=dn.internal.getWidth(t),i=dn.internal.getHeight(t),r=Math.min(n,i);return{x1:{x:(n-r)/2,y:(i-r)/2+r},x2:{x:(n-r)/2+r,y:(i-r)/2},x3:{x:(n-r)/2,y:(i-r)/2},x4:{x:(n-r)/2+r,y:(i-r)/2+r}}}},dn.internal.getWidth=function(t){var n=0;return"object"===u(t)&&(n=Bt(t.Rect[2])),n},dn.internal.getHeight=function(t){var n=0;return"object"===u(t)&&(n=Bt(t.Rect[3])),n};var wn=jt.addField=function(t){if(Kt(this,t),!(t instanceof nn))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};function mn(t){return t.reduce((function(t,n,i){return t[n]=i,t}),{})}jt.AcroFormChoiceField=rn,jt.AcroFormListBox=en,jt.AcroFormComboBox=sn,jt.AcroFormEditBox=on,jt.AcroFormButton=an,jt.AcroFormPushButton=un,jt.AcroFormRadioButton=fn,jt.AcroFormCheckBox=hn,jt.AcroFormTextField=ln,jt.AcroFormPasswordField=vn,jt.AcroFormAppearance=dn,jt.AcroForm={ChoiceField:rn,ListBox:en,ComboBox:sn,EditBox:on,Button:an,PushButton:un,RadioButton:fn,CheckBox:hn,TextField:ln,PasswordField:vn,Appearance:dn},qt.AcroForm={ChoiceField:rn,ListBox:en,ComboBox:sn,EditBox:on,Button:an,PushButton:un,RadioButton:fn,CheckBox:hn,TextField:ln,PasswordField:vn,Appearance:dn},function(t){t.__addimage__={};var n="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var e,s,o,a,u,f=n;if("RGBA"===(r=r||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(y(t))for(u in i)for(o=i[u],e=0;e<o.length;e+=1){for(a=!0,s=0;s<o[e].length;s+=1)if(void 0!==o[e][s]&&o[e][s]!==t[s]){a=!1;break}if(!0===a){f=u;break}}else for(u in i)for(o=i[u],e=0;e<o.length;e+=1){for(a=!0,s=0;s<o[e].length;s+=1)if(void 0!==o[e][s]&&o[e][s]!==t.charCodeAt(s)){a=!1;break}if(!0===a){f=u;break}}return f===n&&r!==n&&(f=r),f},e=function t(n){for(var i=this.internal.write,r=this.internal.putStream,e=(0,this.internal.getFilters)();-1!==e.indexOf("FlateEncode");)e.splice(e.indexOf("FlateEncode"),1);n.objectId=this.internal.newObject();var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:n.width}),s.push({key:"Height",value:n.height}),n.colorSpace===b.INDEXED?s.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(n.palette.length/3-1)+" "+("sMask"in n&&void 0!==n.sMask?n.objectId+2:n.objectId+1)+" 0 R]"}):(s.push({key:"ColorSpace",value:"/"+n.colorSpace}),n.colorSpace===b.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:n.bitsPerComponent}),"decodeParameters"in n&&void 0!==n.decodeParameters&&s.push({key:"DecodeParms",value:"<<"+n.decodeParameters+">>"}),"transparency"in n&&Array.isArray(n.transparency)){for(var o="",a=0,u=n.transparency.length;a<u;a++)o+=n.transparency[a]+" "+n.transparency[a]+" ";s.push({key:"Mask",value:"["+o+"]"})}if(void 0!==n.sMask&&s.push({key:"SMask",value:n.objectId+1+" 0 R"}),r({data:n.data,additionalKeyValues:s,alreadyAppliedFilters:void 0!==n.filter?["/"+n.filter]:void 0,objectId:n.objectId}),i("endobj"),"sMask"in n&&void 0!==n.sMask){var f={width:n.width,height:n.height,colorSpace:"DeviceGray",bitsPerComponent:n.bitsPerComponent,decodeParameters:"/Predictor "+n.predictor+" /Colors 1 /BitsPerComponent "+n.bitsPerComponent+" /Columns "+n.width,data:n.sMask};"filter"in n&&(f.filter=n.filter),t.call(this,f)}if(n.colorSpace===b.INDEXED){var c=this.internal.newObject();r({data:S(new Uint8Array(n.palette)),objectId:c}),i("endobj")}},s=function(){var t=this.internal.collections.addImage_images;for(var n in t)e.call(this,t[n])},o=function(){var t,n=this.internal.collections.addImage_images,i=this.internal.write;for(var r in n)i("/I"+(t=n[r]).index,t.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},f=function(){var t=this.internal.collections.addImage_images;return a.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(n){return"function"==typeof t["process"+n.toUpperCase()]},l=function(t){return"object"===u(t)&&1===t.nodeType},v=function(n,i){if("IMG"===n.nodeName&&n.hasAttribute("src")){var r=""+n.getAttribute("src");if(0===r.indexOf("data:image/"))return tt(unescape(r).split("base64,").pop());var e=t.loadFile(r,!0);if(void 0!==e)return e}if("CANVAS"===n.nodeName){if(0===n.width||0===n.height)throw new Error("Given canvas must have data. Canvas width: "+n.width+", height: "+n.height);var s;switch(i){case"PNG":s="image/png";break;case"WEBP":s="image/webp";break;default:s="image/jpeg"}return tt(n.toDataURL(s,1).split("base64,").pop())}},d=function(t){var n=this.internal.collections.addImage_images;if(n)for(var i in n)if(t===n[i].alias)return n[i]},w=function(t,n,i){return t||n||(t=-96,n=-96),t<0&&(t=-1*i.width*72/t/this.internal.scaleFactor),n<0&&(n=-1*i.height*72/n/this.internal.scaleFactor),0===t&&(t=n*i.width/i.height),0===n&&(n=t*i.height/i.width),[t,n]},m=function(t,n,i,r,e,s){var o=w.call(this,i,r,e),a=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,c=f.call(this);if(i=o[0],r=o[1],c[e.index]=e,s){s*=Math.PI/180;var h=Math.cos(s),l=Math.sin(s),v=function(t){return t.toFixed(4)},d=[v(h),v(l),v(-1*l),v(h),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,a(t),u(n+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(i),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(i),"0","0",a(r),a(t),u(n+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+e.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var p=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},N=t.__addimage__.sHashCode=function(t){var n,i,r=0;if("string"==typeof t)for(i=t.length,n=0;n<i;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;else if(y(t))for(i=t.byteLength/2,n=0;n<i;n++)r=(r<<5)-r+t[n],r|=0;return r},L=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var n=!0;return 0===t.length&&(n=!1),t.length%4!=0&&(n=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(n=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(n=!1),n},g=t.__addimage__.extractImageFromDataUrl=function(t){var n=(t=t||"").split("base64,"),i=null;if(2===n.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(n[0]);Array.isArray(r)&&(i={mimeType:r[1],charset:r[2],data:n[1]})}return i},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var y=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},k=t.__addimage__.binaryStringToUint8Array=function(t){for(var n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var n="",i=y(t)?t:new Uint8Array(t),r=0;r<i.length;r+=8192)n+=String.fromCharCode.apply(null,i.subarray(r,r+8192));return n};t.addImage=function(){var t,i,r,e,s,o,f,c,h;if("number"==typeof arguments[1]?(i=n,r=arguments[1],e=arguments[2],s=arguments[3],o=arguments[4],f=arguments[5],c=arguments[6],h=arguments[7]):(i=arguments[1],r=arguments[2],e=arguments[3],s=arguments[4],o=arguments[5],f=arguments[6],c=arguments[7],h=arguments[8]),"object"===u(t=arguments[0])&&!l(t)&&"imageData"in t){var v=t;t=v.imageData,i=v.format||i||n,r=v.x||r||0,e=v.y||e||0,s=v.w||v.width||s,o=v.h||v.height||o,f=v.alias||f,c=v.compression||c,h=v.rotation||v.angle||h}var d=this.internal.getFilters();if(void 0===c&&-1!==d.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(e))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var w=x.call(this,t,i,f,c);return m.call(this,r,e,s,o,w,h),this};var x=function(i,e,s,o){var a,u,f;if("string"==typeof i&&r(i)===n){i=unescape(i);var w=q(i,!1);(""!==w||void 0!==(w=t.loadFile(i,!0)))&&(i=w)}if(l(i)&&(i=v(i,e)),e=r(i,e),!h(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if((null==(f=s)||0===f.length)&&(s=function(t){return"string"==typeof t||y(t)?N(t):y(t.data)?N(t.data):null}(i)),(a=d.call(this,s))||(A()&&(i instanceof Uint8Array||"RGBA"===e||(u=i,i=k(i))),a=this["process"+e.toUpperCase()](i,c.call(this),s,function(n){return n&&"string"==typeof n&&(n=n.toUpperCase()),n in t.image_compression?n:p.NONE}(o),u)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},q=t.__addimage__.convertBase64ToBinaryString=function(t,n){var i;n="boolean"!=typeof n||n;var r,e="";if("string"==typeof t){r=null!==(i=g(t))?i.data:t;try{e=tt(r)}catch(t){if(n)throw L(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return e};t.getImageProperties=function(i){var e,s,o="";if(l(i)&&(i=v(i)),"string"==typeof i&&r(i)===n&&(""===(o=q(i,!1))&&(o=t.loadFile(i)||""),i=o),s=r(i),!h(s))throw new Error("addImage does not support files of type '"+s+"', please ensure that a plugin for '"+s+"' support is added.");if(!A()||i instanceof Uint8Array||(i=k(i)),!(e=this["process"+s.toUpperCase()](i)))throw new Error("An unknown error occurred whilst processing the image");return e.fileType=s,e}}(qt.API),
|
110
|
+
*/var Nt={print:4,modify:8,copy:16,"annot-forms":32};function Lt(t,n,i,r){this.v=1,this.r=2;var e=192;t.forEach((function(t){if(void 0!==Nt.perm)throw new Error("Invalid permission: "+t);e+=Nt[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var s=(n+this.padding).substr(0,32),o=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^e)),this.encryptionKey=wt(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=pt(this.encryptionKey,this.padding)}function gt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",i=t.length,r=0;r<i;r++){var e=t.charCodeAt(r);n+=e<33||35===e||37===e||40===e||41===e||47===e||60===e||62===e||91===e||93===e||123===e||125===e||e>126?"#"+("0"+e.toString(16)).slice(-2):t[r]}return n}function At(t){if("object"!==u(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,i,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof i||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var e=Math.random().toString(35);return n[t][e]=[i,!!r],e},this.unsubscribe=function(t){for(var i in n)if(n[i][t])return delete n[i][t],0===Object.keys(n[i]).length&&delete n[i],!0;return!1},this.publish=function(i){if(n.hasOwnProperty(i)){var r=Array.prototype.slice.call(arguments,1),e=[];for(var s in n[i]){var o=n[i][s];try{o[0].apply(t,r)}catch(i){Y.console&&X.error("jsPDF PubSub Error",i.message,i)}o[1]&&e.push(s)}e.length&&e.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function yt(t){if(!(this instanceof yt))return new yt(t);var n="opacity,stroke-opacity".split(",");for(var i in t)t.hasOwnProperty(i)&&n.indexOf(i)>=0&&(this[i]=t[i]);this.id="",this.objectNumber=-1}function kt(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function St(t,n,i,r,e){if(!(this instanceof St))return new St(t,n,i,r,e);this.type="axial"===t?2:3,this.coords=n,this.colors=i,kt.call(this,r,e)}function xt(t,n,i,r,e){if(!(this instanceof xt))return new xt(t,n,i,r,e);this.boundingBox=t,this.xStep=n,this.yStep=i,this.stream="",this.cloneIndex=0,kt.call(this,r,e)}function qt(t){var n,i="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],e=arguments[2],s=arguments[3],o=[],a=1,f=16,c="S",h=null;"object"===u(t=t||{})&&(i=t.orientation,r=t.unit||r,e=t.format||e,s=t.compress||t.compressPdf||s,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(f=t.floatPrecision),c=t.defaultPathOperation||"S"),o=t.filters||(!0===s?["FlateEncode"]:o),r=r||"mm",i=(""+(i||"P")).toLowerCase();var l=t.putOnlyUsedFonts||!1,v={},d={internal:{},__private__:{}};d.__private__.PubSub=At;var w="1.3",m=d.__private__.getPdfVersion=function(){return w};d.__private__.setPdfVersion=function(t){w=t};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return b};var p=d.__private__.getPageFormat=function(t){return b[t]};e=e||"a4";var N={COMPAT:"compat",ADVANCED:"advanced"},L=N.COMPAT;function g(){this.saveGraphicsState(),et(new _t(Nt,0,0,-Nt,0,zi()*Nt).toString()+" cm"),this.setFontSize(this.getFontSize()/Nt),c="n",L=N.ADVANCED}function A(){this.restoreGraphicsState(),c="S",L=N.COMPAT}var y=d.__private__.combineFontStyleAndFontWeight=function(t,n){if("bold"==t&&"normal"==n||"bold"==t&&400==n||"normal"==t&&"italic"==n||"bold"==t&&"italic"==n)throw new Error("Invalid Combination of fontweight and fontstyle");return n&&(t=400==n||"normal"===n?"italic"===t?"italic":"normal":700!=n&&"bold"!==n||"normal"!==t?(700==n?"bold":n)+""+t:"bold"),t};d.advancedAPI=function(t){var n=L===N.COMPAT;return n&&g.call(this),"function"!=typeof t||(t(this),n&&A.call(this)),this},d.compatAPI=function(t){var n=L===N.ADVANCED;return n&&A.call(this),"function"!=typeof t||(t(this),n&&g.call(this)),this},d.isAdvancedAPI=function(){return L===N.ADVANCED};var k,S=function(t){if(L!==N.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},x=d.roundToPrecision=d.__private__.roundToPrecision=function(t,i){var r=n||i;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};k=d.hpf=d.__private__.hpf="number"==typeof f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return x(t,f)}:"smart"===f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return x(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return x(t,16)};var q=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return x(t,2)},j=d.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return x(t,3)},M=d.scale=d.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return L===N.COMPAT?t*Nt:L===N.ADVANCED?t:void 0},E=function(t){return L===N.COMPAT?zi()-t:L===N.ADVANCED?t:void 0},P=function(t){return M(E(t))};d.__private__.setPrecision=d.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(n=parseInt(t,10))};var O,I="00000000000000000000000000000000",F=d.__private__.getFileId=function(){return I},B=d.__private__.setFileId=function(t){return I=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():I.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Yn=new Lt(h.userPermissions,h.userPassword,h.ownerPassword,I)),I};d.setFileId=function(t){return B(t),this},d.getFileId=function(){return F()};var R=d.__private__.convertDateToPDFDate=function(t){var n=t.getTimezoneOffset(),i=n<0?"+":"-",r=Math.floor(Math.abs(n/60)),e=Math.abs(n%60),s=[i,U(r),"'",U(e),"'"].join("");return["D:",t.getFullYear(),U(t.getMonth()+1),U(t.getDate()),U(t.getHours()),U(t.getMinutes()),U(t.getSeconds()),s].join("")},T=d.__private__.convertPDFDateToDate=function(t){var n=parseInt(t.substr(2,4),10),i=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),e=parseInt(t.substr(10,2),10),s=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(n,i,r,e,s,o,0)},C=d.__private__.setCreationDate=function(t){var n;if(void 0===t&&(t=new Date),t instanceof Date)n=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");n=t}return O=n},D=d.__private__.getCreationDate=function(t){var n=O;return"jsDate"===t&&(n=T(O)),n};d.setCreationDate=function(t){return C(t),this},d.getCreationDate=function(t){return D(t)};var z,U=d.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},V=d.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,H=[],_=[],G=0,J=[],K=[],$=!1,Q=_,Z=function(){W=0,G=0,_=[],H=[],J=[],Zt=Xt(),tn=Xt()};d.__private__.setCustomOutputDestination=function(t){$=!0,Q=t};var tt=function(t){$||(Q=t)};d.__private__.resetCustomOutputDestination=function(){$=!1,Q=_};var et=d.__private__.out=function(t){return t=t.toString(),G+=t.length+1,Q.push(t),Q},st=d.__private__.write=function(t){return et(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ot=d.__private__.getArrayBuffer=function(t){for(var n=t.length,i=new ArrayBuffer(n),r=new Uint8Array(i);n--;)r[n]=t.charCodeAt(n);return i},at=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return at};var ut=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(t){return ut=L===N.ADVANCED?t/Nt:t,this};var ft,ct=d.__private__.getFontSize=d.getFontSize=function(){return L===N.COMPAT?ut:ut*Nt},ht=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(t){return ht=t,this},d.__private__.getR2L=d.getR2L=function(){return ht};var lt,vt=d.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ft=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ft=t}else ft=parseInt(t,10)};d.__private__.getZoomMode=function(){return ft};var dt,wt=d.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');lt=t};d.__private__.getPageMode=function(){return lt};var mt=d.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');dt=t};d.__private__.getLayoutMode=function(){return dt},d.__private__.setDisplayMode=d.setDisplayMode=function(t,n,i){return vt(t),mt(n),wt(i),this};var bt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(bt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return bt[t]},d.__private__.getDocumentProperties=function(){return bt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var n in bt)bt.hasOwnProperty(n)&&t[n]&&(bt[n]=t[n]);return this},d.__private__.setDocumentProperty=function(t,n){if(-1===Object.keys(bt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return bt[t]=n};var pt,Nt,kt,jt,Mt,Et={},Pt={},Ot=[],It={},Ft={},Bt={},Rt={},Tt=null,Ct=0,Dt=[],zt=new At(d),Ut=t.hotfixes||[],Vt={},Wt={},Ht=[],_t=function t(n,i,r,e,s,o){if(!(this instanceof t))return new t(n,i,r,e,s,o);isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(r)&&(r=0),isNaN(e)&&(e=1),isNaN(s)&&(s=0),isNaN(o)&&(o=0),this._matrix=[n,i,r,e,s,o]};Object.defineProperty(_t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(_t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(_t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(_t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(_t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(_t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(_t.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(_t.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(_t.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(_t.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(_t.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(_t.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(_t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(_t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(_t.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),_t.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(k).join(t)},_t.prototype.multiply=function(t){return new _t(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},_t.prototype.decompose=function(){var t=this.sx,n=this.shy,i=this.shx,r=this.sy,e=this.tx,s=this.ty,o=Math.sqrt(t*t+n*n),a=(t/=o)*i+(n/=o)*r;i-=t*a,r-=n*a;var u=Math.sqrt(i*i+r*r);return a/=u,t*(r/=u)<n*(i/=u)&&(t=-t,n=-n,a=-a,o=-o),{scale:new _t(o,0,0,u,0,0),translate:new _t(1,0,0,1,e,s),rotate:new _t(t,n,-n,t,0,0),skew:new _t(1,0,a,1,0,0)}},_t.prototype.toString=function(){return this.join(" ")},_t.prototype.inversed=function(){var t=this.sx,n=this.shy,i=this.shx,r=this.sy,e=this.tx,s=this.ty,o=1/(t*r-n*i),a=r*o,u=-n*o,f=-i*o,c=t*o;return new _t(a,u,f,c,-a*e-f*s,-u*e-c*s)},_t.prototype.applyToPoint=function(t){return new Oi(t.x*this.sx+t.y*this.shx+this.tx,t.x*this.shy+t.y*this.sy+this.ty)},_t.prototype.applyToRectangle=function(t){var n=this.applyToPoint(t),i=this.applyToPoint(new Oi(t.x+t.w,t.y+t.h));return new Ii(n.x,n.y,i.x-n.x,i.y-n.y)},_t.prototype.clone=function(){return new _t(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},d.Matrix=_t;var Gt=d.matrixMult=function(t,n){return n.multiply(t)},Jt=new _t(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Jt;var Yt=function(t,n){if(!Ft[t]){var i=(n instanceof St?"Sh":"P")+(Object.keys(It).length+1).toString(10);n.id=i,Ft[t]=i,It[i]=n,zt.publish("addPattern",n)}};d.ShadingPattern=St,d.TilingPattern=xt,d.addShadingPattern=function(t,n){return S("addShadingPattern()"),Yt(t,n),this},d.beginTilingPattern=function(t){S("beginTilingPattern()"),Bi(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},d.endTilingPattern=function(t,n){S("endTilingPattern()"),n.stream=K[z].join("\n"),Yt(t,n),zt.publish("endTilingPattern",n),Ht.pop().restore()};var Kt=d.__private__.newObject=function(){var t=Xt();return $t(t,!0),t},Xt=d.__private__.newObjectDeferred=function(){return W++,H[W]=function(){return G},W},$t=function(t,n){return n="boolean"==typeof n&&n,H[t]=G,n&&et(t+" 0 obj"),t},Qt=d.__private__.newAdditionalObject=function(){var t={objId:Xt(),content:""};return J.push(t),t},Zt=Xt(),tn=Xt(),nn=d.__private__.decodeColorString=function(t){var n=t.split(" ");if(2!==n.length||"g"!==n[1]&&"G"!==n[1])5!==n.length||"k"!==n[4]&&"K"!==n[4]||(n=[(1-n[0])*(1-n[3]),(1-n[1])*(1-n[3]),(1-n[2])*(1-n[3]),"r"]);else{var i=parseFloat(n[0]);n=[i,i,i,"r"]}for(var r="#",e=0;e<3;e++)r+=("0"+Math.floor(255*parseFloat(n[e])).toString(16)).slice(-2);return r},rn=d.__private__.encodeColorString=function(t){var n;"string"==typeof t&&(t={ch1:t});var i=t.ch1,r=t.ch2,e=t.ch3,s=t.ch4,o="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof i&&"#"!==i.charAt(0)){var a=new rt(i);if(a.ok)i=a.toHex();else if(!/^\d*\.?\d*$/.test(i))throw new Error('Invalid color "'+i+'" passed to jsPDF.encodeColorString.')}if("string"==typeof i&&/^#[0-9A-Fa-f]{3}$/.test(i)&&(i="#"+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),"string"==typeof i&&/^#[0-9A-Fa-f]{6}$/.test(i)){var f=parseInt(i.substr(1),16);i=f>>16&255,r=f>>8&255,e=255&f}if(void 0===r||void 0===s&&i===r&&r===e)n="string"==typeof i?i+" "+o[0]:2===t.precision?q(i/255)+" "+o[0]:j(i/255)+" "+o[0];else if(void 0===s||"object"===u(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",o[1]].join(" ");n="string"==typeof i?[i,r,e,o[1]].join(" "):2===t.precision?[q(i/255),q(r/255),q(e/255),o[1]].join(" "):[j(i/255),j(r/255),j(e/255),o[1]].join(" ")}else n="string"==typeof i?[i,r,e,s,o[2]].join(" "):2===t.precision?[q(i),q(r),q(e),q(s),o[2]].join(" "):[j(i),j(r),j(e),j(s),o[2]].join(" ");return n},en=d.__private__.getFilters=function(){return o},sn=d.__private__.putStream=function(t){var n=(t=t||{}).data||"",i=t.filters||en(),r=t.alreadyAppliedFilters||[],e=t.addLength1||!1,s=n.length,o=t.objectId,a=function(t){return t};if(null!==h&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(a=Yn.encryptor(o,0));var u={};!0===i&&(i=["FlateEncode"]);var f=t.additionalKeyValues||[],c=(u=void 0!==qt.API.processDataByFilters?qt.API.processDataByFilters(n,i):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==u.data.length&&(f.push({key:"Length",value:u.data.length}),!0===e&&f.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)f.push({key:"Filter",value:c});else{f.push({key:"Filter",value:"["+c+"]"});for(var l=0;l<f.length;l+=1)if("DecodeParms"===f[l].key){for(var v=[],d=0;d<u.reverseChain.split("/").length-1;d+=1)v.push("null");v.push(f[l].value),f[l].value="["+v.join(" ")+"]"}}et("<<");for(var w=0;w<f.length;w++)et("/"+f[w].key+" "+f[w].value);et(">>"),0!==u.data.length&&(et("stream"),et(a(u.data)),et("endstream"))},on=d.__private__.putPage=function(t){var n=t.number,i=t.data,r=t.objId,e=t.contentsObjId;$t(r,!0),et("<</Type /Page"),et("/Parent "+t.rootDictionaryObjId+" 0 R"),et("/Resources "+t.resourceDictionaryObjId+" 0 R"),et("/MediaBox ["+parseFloat(k(t.mediaBox.bottomLeftX))+" "+parseFloat(k(t.mediaBox.bottomLeftY))+" "+k(t.mediaBox.topRightX)+" "+k(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&et("/CropBox ["+k(t.cropBox.bottomLeftX)+" "+k(t.cropBox.bottomLeftY)+" "+k(t.cropBox.topRightX)+" "+k(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&et("/BleedBox ["+k(t.bleedBox.bottomLeftX)+" "+k(t.bleedBox.bottomLeftY)+" "+k(t.bleedBox.topRightX)+" "+k(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&et("/TrimBox ["+k(t.trimBox.bottomLeftX)+" "+k(t.trimBox.bottomLeftY)+" "+k(t.trimBox.topRightX)+" "+k(t.trimBox.topRightY)+"]"),null!==t.artBox&&et("/ArtBox ["+k(t.artBox.bottomLeftX)+" "+k(t.artBox.bottomLeftY)+" "+k(t.artBox.topRightX)+" "+k(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&et("/UserUnit "+t.userUnit),zt.publish("putPage",{objId:r,pageContext:Dt[n],pageNumber:n,page:i}),et("/Contents "+e+" 0 R"),et(">>"),et("endobj");var s=i.join("\n");return L===N.ADVANCED&&(s+="\nQ"),$t(e,!0),sn({data:s,filters:en(),objectId:e}),et("endobj"),r},an=d.__private__.putPages=function(){var t,n,i=[];for(t=1;t<=Ct;t++)Dt[t].objId=Xt(),Dt[t].contentsObjId=Xt();for(t=1;t<=Ct;t++)i.push(on({number:t,data:K[t],objId:Dt[t].objId,contentsObjId:Dt[t].contentsObjId,mediaBox:Dt[t].mediaBox,cropBox:Dt[t].cropBox,bleedBox:Dt[t].bleedBox,trimBox:Dt[t].trimBox,artBox:Dt[t].artBox,userUnit:Dt[t].userUnit,rootDictionaryObjId:Zt,resourceDictionaryObjId:tn}));$t(Zt,!0),et("<</Type /Pages");var r="/Kids [";for(n=0;n<Ct;n++)r+=i[n]+" 0 R ";et(r+"]"),et("/Count "+Ct),et(">>"),et("endobj"),zt.publish("postPutPages")},un=function(t){zt.publish("putFont",{font:t,out:et,newObject:Kt,putStream:sn}),!0!==t.isAlreadyPutted&&(t.objectNumber=Kt(),et("<<"),et("/Type /Font"),et("/BaseFont /"+gt(t.postScriptName)),et("/Subtype /Type1"),"string"==typeof t.encoding&&et("/Encoding /"+t.encoding),et("/FirstChar 32"),et("/LastChar 255"),et(">>"),et("endobj"))},fn=function(){for(var t in Et)Et.hasOwnProperty(t)&&(!1===l||!0===l&&v.hasOwnProperty(t))&&un(Et[t])},cn=function(t){t.objectNumber=Kt();var n=[];n.push({key:"Type",value:"/XObject"}),n.push({key:"Subtype",value:"/Form"}),n.push({key:"BBox",value:"["+[k(t.x),k(t.y),k(t.x+t.width),k(t.y+t.height)].join(" ")+"]"}),n.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var i=t.pages[1].join("\n");sn({data:i,additionalKeyValues:n,objectId:t.objectNumber}),et("endobj")},hn=function(){for(var t in Vt)Vt.hasOwnProperty(t)&&cn(Vt[t])},ln=function(t,n){var i,r=[],e=1/(n-1);for(i=0;i<1;i+=e)r.push(i);r.push(1),0!=t[0].offset&&t.unshift({offset:0,color:t[0].color}),1!=t[t.length-1].offset&&t.push({offset:1,color:t[t.length-1].color});for(var s="",o=0,a=0;a<r.length;a++){for(i=r[a];i>t[o+1].offset;)o++;var u=t[o].offset,f=(i-u)/(t[o+1].offset-u),c=t[o].color,h=t[o+1].color;s+=V(Math.round((1-f)*c[0]+f*h[0]).toString(16))+V(Math.round((1-f)*c[1]+f*h[1]).toString(16))+V(Math.round((1-f)*c[2]+f*h[2]).toString(16))}return s.trim()},vn=function(t,n){n||(n=21);var i=Kt(),r=ln(t.colors,n),e=[];e.push({key:"FunctionType",value:"0"}),e.push({key:"Domain",value:"[0.0 1.0]"}),e.push({key:"Size",value:"["+n+"]"}),e.push({key:"BitsPerSample",value:"8"}),e.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),e.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),sn({data:r,additionalKeyValues:e,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:i}),et("endobj"),t.objectNumber=Kt(),et("<< /ShadingType "+t.type),et("/ColorSpace /DeviceRGB");var s="/Coords ["+k(parseFloat(t.coords[0]))+" "+k(parseFloat(t.coords[1]))+" ";s+=2===t.type?k(parseFloat(t.coords[2]))+" "+k(parseFloat(t.coords[3])):k(parseFloat(t.coords[2]))+" "+k(parseFloat(t.coords[3]))+" "+k(parseFloat(t.coords[4]))+" "+k(parseFloat(t.coords[5])),et(s+="]"),t.matrix&&et("/Matrix ["+t.matrix.toString()+"]"),et("/Function "+i+" 0 R"),et("/Extend [true true]"),et(">>"),et("endobj")},dn=function(t,n){var i=Xt(),r=Kt();n.push({resourcesOid:i,objectOid:r}),t.objectNumber=r;var e=[];e.push({key:"Type",value:"/Pattern"}),e.push({key:"PatternType",value:"1"}),e.push({key:"PaintType",value:"1"}),e.push({key:"TilingType",value:"1"}),e.push({key:"BBox",value:"["+t.boundingBox.map(k).join(" ")+"]"}),e.push({key:"XStep",value:k(t.xStep)}),e.push({key:"YStep",value:k(t.yStep)}),e.push({key:"Resources",value:i+" 0 R"}),t.matrix&&e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),sn({data:t.stream,additionalKeyValues:e,objectId:t.objectNumber}),et("endobj")},wn=function(t){var n;for(n in It)It.hasOwnProperty(n)&&(It[n]instanceof St?vn(It[n]):It[n]instanceof xt&&dn(It[n],t))},mn=function(t){for(var n in t.objectNumber=Kt(),et("<<"),t)switch(n){case"opacity":et("/ca "+q(t[n]));break;case"stroke-opacity":et("/CA "+q(t[n]))}et(">>"),et("endobj")},bn=function(){var t;for(t in Bt)Bt.hasOwnProperty(t)&&mn(Bt[t])},pn=function(){for(var t in et("/XObject <<"),Vt)Vt.hasOwnProperty(t)&&Vt[t].objectNumber>=0&&et("/"+t+" "+Vt[t].objectNumber+" 0 R");zt.publish("putXobjectDict"),et(">>")},Nn=function(){Yn.oid=Kt(),et("<<"),et("/Filter /Standard"),et("/V "+Yn.v),et("/R "+Yn.r),et("/U <"+Yn.toHexString(Yn.U)+">"),et("/O <"+Yn.toHexString(Yn.O)+">"),et("/P "+Yn.P),et(">>"),et("endobj")},Ln=function(){for(var t in et("/Font <<"),Et)Et.hasOwnProperty(t)&&(!1===l||!0===l&&v.hasOwnProperty(t))&&et("/"+t+" "+Et[t].objectNumber+" 0 R");et(">>")},gn=function(){if(Object.keys(It).length>0){for(var t in et("/Shading <<"),It)It.hasOwnProperty(t)&&It[t]instanceof St&&It[t].objectNumber>=0&&et("/"+t+" "+It[t].objectNumber+" 0 R");zt.publish("putShadingPatternDict"),et(">>")}},An=function(t){if(Object.keys(It).length>0){for(var n in et("/Pattern <<"),It)It.hasOwnProperty(n)&&It[n]instanceof d.TilingPattern&&It[n].objectNumber>=0&&It[n].objectNumber<t&&et("/"+n+" "+It[n].objectNumber+" 0 R");zt.publish("putTilingPatternDict"),et(">>")}},yn=function(){if(Object.keys(Bt).length>0){var t;for(t in et("/ExtGState <<"),Bt)Bt.hasOwnProperty(t)&&Bt[t].objectNumber>=0&&et("/"+t+" "+Bt[t].objectNumber+" 0 R");zt.publish("putGStateDict"),et(">>")}},kn=function(t){$t(t.resourcesOid,!0),et("<<"),et("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ln(),gn(),An(t.objectOid),yn(),pn(),et(">>"),et("endobj")},Sn=function(){var t=[];fn(),bn(),hn(),wn(t),zt.publish("putResources"),t.forEach(kn),kn({resourcesOid:tn,objectOid:Number.MAX_SAFE_INTEGER}),zt.publish("postPutResources")},xn=function(){zt.publish("putAdditionalObjects");for(var t=0;t<J.length;t++){var n=J[t];$t(n.objId,!0),et(n.content),et("endobj")}zt.publish("postPutAdditionalObjects")},qn=function(t){Pt[t.fontName]=Pt[t.fontName]||{},Pt[t.fontName][t.fontStyle]=t.id},jn=function(t,n,i,r,e){var s={id:"F"+(Object.keys(Et).length+1).toString(10),postScriptName:t,fontName:n,fontStyle:i,encoding:r,isStandardFont:e||!1,metadata:{}};return zt.publish("addFont",{font:s,instance:this}),Et[s.id]=s,qn(s),s.id},Mn=function(t){for(var n=0,i=at.length;n<i;n++){var r=jn.call(this,t[n][0],t[n][1],t[n][2],at[n][3],!0);!1===l&&(v[r]=!0);var e=t[n][0].split("-");qn({id:r,fontName:e[0],fontStyle:e[1]||""})}zt.publish("addFonts",{fonts:Et,dictionary:Pt})},En=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var n=t.stack||"";~n.indexOf(" at ")&&(n=n.split(" at ")[1]);var i="Error in function "+n.split("\n")[0].split("<")[0]+": "+t.message;if(!Y.console)throw new Error(i);Y.console.error(i,t),Y.alert&&alert(i)}},t.foo.bar=t,t.foo},Pn=function(t,n){var i,r,e,s,o,a,u,f,c;if(e=(n=n||{}).sourceEncoding||"Unicode",o=n.outputEncoding,(n.autoencode||o)&&Et[pt].metadata&&Et[pt].metadata[e]&&Et[pt].metadata[e].encoding&&(s=Et[pt].metadata[e].encoding,!o&&Et[pt].encoding&&(o=Et[pt].encoding),!o&&s.codePages&&(o=s.codePages[0]),"string"==typeof o&&(o=s[o]),o)){for(u=!1,a=[],i=0,r=t.length;i<r;i++)(f=o[t.charCodeAt(i)])?a.push(String.fromCharCode(f)):a.push(t[i]),a[i].charCodeAt(0)>>8&&(u=!0);t=a.join("")}for(i=t.length;void 0===u&&0!==i;)t.charCodeAt(i-1)>>8&&(u=!0),i--;if(!u)return t;for(a=n.noBOM?[]:[254,255],i=0,r=t.length;i<r;i++){if((c=(f=t.charCodeAt(i))>>8)>>8)throw new Error("Character at position "+i+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(f-(c<<8))}return String.fromCharCode.apply(void 0,a)},On=d.__private__.pdfEscape=d.pdfEscape=function(t,n){return Pn(t,n).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},In=d.__private__.beginPage=function(t){K[++Ct]=[],Dt[Ct]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Rn(Ct),tt(K[z])},Fn=function(t,n){var r,s,o;switch(i=n||i,"string"==typeof t&&(r=p(t.toLowerCase()),Array.isArray(r)&&(s=r[0],o=r[1])),Array.isArray(t)&&(s=t[0]*Nt,o=t[1]*Nt),isNaN(s)&&(s=e[0],o=e[1]),(s>14400||o>14400)&&(X.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),s=Math.min(14400,s),o=Math.min(14400,o)),e=[s,o],i.substr(0,1)){case"l":o>s&&(e=[o,s]);break;case"p":s>o&&(e=[o,s])}In(e),wi(vi),et(yi),0!==Mi&&et(Mi+" J"),0!==Ei&&et(Ei+" j"),zt.publish("addPage",{pageNumber:Ct})},Bn=function(t){t>0&&t<=Ct&&(K.splice(t,1),Dt.splice(t,1),Ct--,z>Ct&&(z=Ct),this.setPage(z))},Rn=function(t){t>0&&t<=Ct&&(z=t)},Tn=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return K.length-1},Cn=function(t,n,i){var r,e=void 0;return i=i||{},n=void 0!==n?n:Et[pt].fontStyle,r=(t=void 0!==t?t:Et[pt].fontName).toLowerCase(),void 0!==Pt[r]&&void 0!==Pt[r][n]?e=Pt[r][n]:void 0!==Pt[t]&&void 0!==Pt[t][n]?e=Pt[t][n]:!1===i.disableWarning&&X.warn("Unable to look up font label for font '"+t+"', '"+n+"'. Refer to getFontList() for available fonts."),e||i.noFallback||null==(e=Pt.times[n])&&(e=Pt.times.normal),e},Dn=d.__private__.putInfo=function(){var t=Kt(),n=function(t){return t};for(var i in null!==h&&(n=Yn.encryptor(t,0)),et("<<"),et("/Producer ("+On(n("jsPDF "+qt.version))+")"),bt)bt.hasOwnProperty(i)&&bt[i]&&et("/"+i.substr(0,1).toUpperCase()+i.substr(1)+" ("+On(n(bt[i]))+")");et("/CreationDate ("+On(n(O))+")"),et(">>"),et("endobj")},zn=d.__private__.putCatalog=function(t){var n=(t=t||{}).rootDictionaryObjId||Zt;switch(Kt(),et("<<"),et("/Type /Catalog"),et("/Pages "+n+" 0 R"),ft||(ft="fullwidth"),ft){case"fullwidth":et("/OpenAction [3 0 R /FitH null]");break;case"fullheight":et("/OpenAction [3 0 R /FitV null]");break;case"fullpage":et("/OpenAction [3 0 R /Fit]");break;case"original":et("/OpenAction [3 0 R /XYZ null null 1]");break;default:var i=""+ft;"%"===i.substr(i.length-1)&&(ft=parseInt(ft)/100),"number"==typeof ft&&et("/OpenAction [3 0 R /XYZ null null "+q(ft)+"]")}switch(dt||(dt="continuous"),dt){case"continuous":et("/PageLayout /OneColumn");break;case"single":et("/PageLayout /SinglePage");break;case"two":case"twoleft":et("/PageLayout /TwoColumnLeft");break;case"tworight":et("/PageLayout /TwoColumnRight")}lt&&et("/PageMode /"+lt),zt.publish("putCatalog"),et(">>"),et("endobj")},Un=d.__private__.putTrailer=function(){et("trailer"),et("<<"),et("/Size "+(W+1)),et("/Root "+W+" 0 R"),et("/Info "+(W-1)+" 0 R"),null!==h&&et("/Encrypt "+Yn.oid+" 0 R"),et("/ID [ <"+I+"> <"+I+"> ]"),et(">>")},Vn=d.__private__.putHeader=function(){et("%PDF-"+w),et("%ºß¬à")},Wn=d.__private__.putXRef=function(){var t="0000000000";et("xref"),et("0 "+(W+1)),et("0000000000 65535 f ");for(var n=1;n<=W;n++)et("function"==typeof H[n]?(t+H[n]()).slice(-10)+" 00000 n ":void 0!==H[n]?(t+H[n]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Hn=d.__private__.buildDocument=function(){Z(),tt(_),zt.publish("buildDocument"),Vn(),an(),xn(),Sn(),null!==h&&Nn(),Dn(),zn();var t=G;return Wn(),Un(),et("startxref"),et(""+t),et("%%EOF"),tt(K[z]),_.join("\n")},_n=d.__private__.getBlob=function(t){return new Blob([ot(t)],{type:"application/pdf"})},Gn=d.output=d.__private__.output=En((function(t,n){switch("string"==typeof(n=n||{})?n={filename:n}:n.filename=n.filename||"generated.pdf",t){case void 0:return Hn();case"save":d.save(n.filename);break;case"arraybuffer":return ot(Hn());case"blob":return _n(Hn());case"bloburi":case"bloburl":if(void 0!==Y.URL&&"function"==typeof Y.URL.createObjectURL)return Y.URL&&Y.URL.createObjectURL(_n(Hn()))||void 0;X.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var i="",r=Hn();try{i=nt(r)}catch(t){i=nt(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+n.filename+";base64,"+i;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Y)){var e="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';n.pdfObjectUrl&&(e=n.pdfObjectUrl,s="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+e+'"'+s+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(n)+");<\/script></body></html>",a=Y.open();return null!==a&&a.document.write(o),a}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Y)){var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(n.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+n.filename+'" width="500px" height="400px" /></body></html>',f=Y.open();if(null!==f){f.document.write(u);var c=this;f.document.documentElement.querySelector("#pdfViewer").onload=function(){f.document.title=n.filename,f.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return f}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Y))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",n)+'"></iframe></body></html>',l=Y.open();if(null!==l&&(l.document.write(h),l.document.title=n.filename),l||"undefined"==typeof safari)return l;break;case"datauri":case"dataurl":return Y.document.location.href=this.output("datauristring",n);default:return null}})),Jn=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(r){case"pt":Nt=1;break;case"mm":Nt=72/25.4;break;case"cm":Nt=72/2.54;break;case"in":Nt=72;break;case"px":Nt=1==Jn("px_scaling")?.75:96/72;break;case"pc":case"em":Nt=12;break;case"ex":Nt=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);Nt=r}var Yn=null;C(),B();var Kn=function(t){return null!==h?Yn.encryptor(t,0):function(t){return t}},Xn=d.__private__.getPageInfo=d.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Dt[t].objId,pageNumber:t,pageContext:Dt[t]}},$n=d.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var n in Dt)if(Dt[n].objId===t)break;return Xn(n)},Qn=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Dt[z].objId,pageNumber:z,pageContext:Dt[z]}};d.addPage=function(){return Fn.apply(this,arguments),this},d.setPage=function(){return Rn.apply(this,arguments),tt.call(this,K[z]),this},d.insertPage=function(t){return this.addPage(),this.movePage(z,t),this},d.movePage=function(t,n){var i,r;if(t>n){i=K[t],r=Dt[t];for(var e=t;e>n;e--)K[e]=K[e-1],Dt[e]=Dt[e-1];K[n]=i,Dt[n]=r,this.setPage(n)}else if(t<n){i=K[t],r=Dt[t];for(var s=t;s<n;s++)K[s]=K[s+1],Dt[s]=Dt[s+1];K[n]=i,Dt[n]=r,this.setPage(n)}return this},d.deletePage=function(){return Bn.apply(this,arguments),this},d.__private__.text=d.text=function(t,n,i,r,e){var s,o,a,f,c,h,l,d,w,m=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof n&&("string"==typeof i||Array.isArray(i))){var b=i;i=n,n=t,t=b}if(arguments[3]instanceof _t==0?(a=arguments[4],f=arguments[5],"object"===u(l=arguments[3])&&null!==l||("string"==typeof a&&(f=a,a=null),"string"==typeof l&&(f=l,l=null),"number"==typeof l&&(a=l,l=null),r={flags:l,angle:a,align:f})):(S("The transform parameter of text() with a Matrix value"),w=e),isNaN(n)||isNaN(i)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var p="",g=!1,A="number"==typeof r.lineHeightFactor?r.lineHeightFactor:li,y=m.internal.scaleFactor;function x(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),On(t,l)}function q(t){for(var n,i=t.concat(),r=[],e=i.length;e--;)"string"==typeof(n=i.shift())?r.push(n):Array.isArray(t)&&(1===n.length||void 0===n[1]&&void 0===n[2])?r.push(n[0]):r.push([n[0],n[1],n[2]]);return r}function j(t,n){var i;if("string"==typeof t)i=n(t)[0];else if(Array.isArray(t)){for(var r,e,s=t.concat(),o=[],a=s.length;a--;)"string"==typeof(r=s.shift())?o.push(n(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(e=n(r[0],r[1],r[2]),o.push([e[0],e[1],e[2]]));i=o}return i}var E=!1,P=!0;if("string"==typeof t)E=!0;else if(Array.isArray(t)){var O=t.concat();o=[];for(var I,F=O.length;F--;)("string"!=typeof(I=O.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(P=!1);E=P}if(!1===E)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var B=ut/m.internal.scaleFactor,R=B*(A-1);switch(r.baseline){case"bottom":i-=R;break;case"top":i+=B-R;break;case"hanging":i+=B-2*R;break;case"middle":i+=B/2-R}if((h=r.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,n){return t.concat(m.splitTextToSize(n,h))}),[]))),zt.publish("preProcessText",s={text:t,x:n,y:i,options:r,mutex:{pdfEscape:On,activeFontKey:pt,fonts:Et,activeFontSize:ut}}),t=s.text,a=(r=s.options).angle,w instanceof _t==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),L===N.ADVANCED&&(a=-a);var T=Math.cos(a),C=Math.sin(a);w=new _t(T,C,-C,T,0,0)}else a&&a instanceof _t&&(w=a);L!==N.ADVANCED||w||(w=Jt),void 0!==(c=r.charSpace||qi)&&(p+=k(M(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=r.horizontalScale)&&(p+=k(100*d)+" Tz\n");var D=-1,z=void 0!==r.renderingMode?r.renderingMode:r.stroke,U=m.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var V=void 0!==U.usedRenderingMode?U.usedRenderingMode:-1;-1!==D?p+=D+" Tr\n":-1!==V&&(p+="0 Tr\n"),-1!==D&&(U.usedRenderingMode=D),f=r.align||"left";var W,H=ut*A,_=m.internal.pageSize.getWidth(),G=Et[pt];c=r.charSpace||qi,h=r.maxWidth||0,l=Object.assign({autoencode:!0,noBOM:!0},r.flags);var J=[];if("[object Array]"===Object.prototype.toString.call(t)){var Y;o=q(t),"left"!==f&&(W=o.map((function(t){return m.getStringUnitWidth(t,{font:G,charSpace:c,fontSize:ut,doKerning:!1})*ut/y})));var K,X=0;if("right"===f){n-=W[0],t=[],F=o.length;for(var $=0;$<F;$++)0===$?(K=Ni(n),Y=Li(i)):(K=M(X-W[$]),Y=-H),t.push([o[$],K,Y]),X=W[$]}else if("center"===f){n-=W[0]/2,t=[],F=o.length;for(var Q=0;Q<F;Q++)0===Q?(K=Ni(n),Y=Li(i)):(K=M((X-W[Q])/2),Y=-H),t.push([o[Q],K,Y]),X=W[Q]}else if("left"===f){t=[],F=o.length;for(var Z=0;Z<F;Z++)t.push(o[Z])}else{if("justify"!==f)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],F=o.length,h=0!==h?h:_;for(var tt=0;tt<F;tt++)Y=0===tt?Li(i):-H,K=0===tt?Ni(n):0,J.push(tt<F-1?k(M((h-W[tt])/(o[tt].split(" ").length-1))):0),t.push([o[tt],K,Y])}}var nt="boolean"==typeof r.R2L?r.R2L:ht;!0===nt&&(t=j(t,(function(t,n,i){return[t.split("").reverse().join(""),n,i]}))),zt.publish("postProcessText",s={text:t,x:n,y:i,options:r,mutex:{pdfEscape:On,activeFontKey:pt,fonts:Et,activeFontSize:ut}}),t=s.text,g=s.mutex.isHex||!1;var it=Et[pt].encoding;"WinAnsiEncoding"!==it&&"StandardEncoding"!==it||(t=j(t,(function(t,n,i){return[x(t),n,i]}))),o=q(t),t=[];for(var rt,st,ot,at=0,ft=1,ct=Array.isArray(o[0])?ft:at,lt="",vt=function(t,n,i){var e="";return i instanceof _t?(i="number"==typeof r.angle?Gt(i,new _t(1,0,0,1,t,n)):Gt(new _t(1,0,0,1,t,n),i),L===N.ADVANCED&&(i=Gt(new _t(1,0,0,-1,0,0),i)),e=i.join(" ")+" Tm\n"):e=k(t)+" "+k(n)+" Td\n",e},dt=0;dt<o.length;dt++){switch(lt="",ct){case ft:ot=(g?"<":"(")+o[dt][0]+(g?">":")"),rt=parseFloat(o[dt][1]),st=parseFloat(o[dt][2]);break;case at:ot=(g?"<":"(")+o[dt]+(g?">":")"),rt=Ni(n),st=Li(i)}void 0!==J&&void 0!==J[dt]&&(lt=J[dt]+" Tw\n"),0===dt?t.push(lt+vt(rt,st,w)+ot):ct===at?t.push(lt+ot):ct===ft&&t.push(lt+vt(rt,st,w)+ot)}t=t.join(ct===at?" Tj\nT* ":" Tj\n"),t+=" Tj\n";var wt="BT\n/";return wt+=pt+" "+ut+" Tf\n",wt+=k(ut*A)+" TL\n",wt+=Si+"\n",wt+=p,wt+=t,et(wt+="ET"),v[pt]=!0,m};var Zn=d.__private__.clip=d.clip=function(t){return et("evenodd"===t?"W*":"W"),this};d.clipEvenOdd=function(){return Zn("evenodd")},d.__private__.discardPath=d.discardPath=function(){return et("n"),this};var ti=d.__private__.isValidStyle=function(t){var n=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(n=!0),n};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(t){return ti(t)&&(c=t),this};var ni=d.__private__.getStyle=d.getStyle=function(t){var n=c;switch(t){case"D":case"S":n="S";break;case"F":n="f";break;case"FD":case"DF":n="B";break;case"f":case"f*":case"B":case"B*":n=t}return n},ii=d.close=function(){return et("h"),this};d.stroke=function(){return et("S"),this},d.fill=function(t){return ri("f",t),this},d.fillEvenOdd=function(t){return ri("f*",t),this},d.fillStroke=function(t){return ri("B",t),this},d.fillStrokeEvenOdd=function(t){return ri("B*",t),this};var ri=function(t,n){"object"===u(n)?oi(n,t):et(t)},ei=function(t){null===t||L===N.ADVANCED&&void 0===t||(t=ni(t),et(t))};function si(t,n,i,r,e){var s=new xt(n||this.boundingBox,i||this.xStep,r||this.yStep,this.gState,e||this.matrix);s.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Yt(o,s),s}var oi=function(t,n){var i=Ft[t.key],r=It[i];if(r instanceof St)et("q"),et(ai(n)),r.gState&&d.setGState(r.gState),et(t.matrix.toString()+" cm"),et("/"+i+" sh"),et("Q");else if(r instanceof xt){var e=new _t(1,0,0,-1,0,zi());t.matrix&&(e=e.multiply(t.matrix||Jt),i=si.call(r,t.key,t.boundingBox,t.xStep,t.yStep,e).id),et("q"),et("/Pattern cs"),et("/"+i+" scn"),r.gState&&d.setGState(r.gState),et(n),et("Q")}},ai=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ui=d.moveTo=function(t,n){return et(k(M(t))+" "+k(P(n))+" m"),this},fi=d.lineTo=function(t,n){return et(k(M(t))+" "+k(P(n))+" l"),this},ci=d.curveTo=function(t,n,i,r,e,s){return et([k(M(t)),k(P(n)),k(M(i)),k(P(r)),k(M(e)),k(P(s)),"c"].join(" ")),this};d.__private__.line=d.line=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!ti(e))throw new Error("Invalid arguments passed to jsPDF.line");return L===N.COMPAT?this.lines([[i-t,r-n]],t,n,[1,1],e||"S"):this.lines([[i-t,r-n]],t,n,[1,1]).stroke()},d.__private__.lines=d.lines=function(t,n,i,r,e,s){var o,a,u,f,c,h,l,v;if("number"==typeof t&&(v=i,i=n,n=t,t=v),r=r||[1,1],s=s||!1,isNaN(n)||isNaN(i)||!Array.isArray(t)||!Array.isArray(r)||!ti(e)||"boolean"!=typeof s)throw new Error("Invalid arguments passed to jsPDF.lines");for(ui(n,i),o=r[0],a=r[1],f=t.length,h=n,l=i,u=0;u<f;u++)2===(c=t[u]).length?fi(h=c[0]*o+h,l=c[1]*a+l):ci(c[0]*o+h,c[1]*a+l,c[2]*o+h,c[3]*a+l,h=c[4]*o+h,l=c[5]*a+l);return s&&ii(),ei(e),this},d.path=function(t){for(var n=0;n<t.length;n++){var i=t[n],r=i.c;switch(i.op){case"m":ui(r[0],r[1]);break;case"l":fi(r[0],r[1]);break;case"c":ci.apply(this,r);break;case"h":ii()}}return this},d.__private__.rect=d.rect=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!ti(e))throw new Error("Invalid arguments passed to jsPDF.rect");return L===N.COMPAT&&(r=-r),et([k(M(t)),k(P(n)),k(M(i)),k(M(r)),"re"].join(" ")),ei(e),this},d.__private__.triangle=d.triangle=function(t,n,i,r,e,s,o){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s)||!ti(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[i-t,r-n],[e-i,s-r],[t-e,n-s]],t,n,[1,1],o,!0),this},d.__private__.roundedRect=d.roundedRect=function(t,n,i,r,e,s,o){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s)||!ti(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return e=Math.min(e,.5*i),s=Math.min(s,.5*r),this.lines([[i-2*e,0],[e*a,0,e,s-s*a,e,s],[0,r-2*s],[0,s*a,-e*a,s,-e,s],[2*e-i,0],[-e*a,0,-e,-s*a,-e,-s],[0,2*s-r],[0,-s*a,e*a,-s,e,-s]],t+e,n,[1,1],o,!0),this},d.__private__.ellipse=d.ellipse=function(t,n,i,r,e){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||!ti(e))throw new Error("Invalid arguments passed to jsPDF.ellipse");var s=4/3*(Math.SQRT2-1)*i,o=4/3*(Math.SQRT2-1)*r;return ui(t+i,n),ci(t+i,n-o,t+s,n-r,t,n-r),ci(t-s,n-r,t-i,n-o,t-i,n),ci(t-i,n+o,t-s,n+r,t,n+r),ci(t+s,n+r,t+i,n+o,t+i,n),ei(e),this},d.__private__.circle=d.circle=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||!ti(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,n,i,i,r)},d.setFont=function(t,n,i){return i&&(n=y(n,i)),pt=Cn(t,n,{disableWarning:!1}),this};var hi=d.__private__.getFont=d.getFont=function(){return Et[Cn.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var t,n,i={};for(t in Pt)if(Pt.hasOwnProperty(t))for(n in i[t]=[],Pt[t])Pt[t].hasOwnProperty(n)&&i[t].push(n);return i},d.addFont=function(t,n,i,r,e){var s=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==s.indexOf(arguments[3])?e=arguments[3]:arguments[3]&&-1==s.indexOf(arguments[3])&&(i=y(i,r)),jn.call(this,t,n,i,e=e||"Identity-H")};var li,vi=t.lineWidth||.200025,di=d.__private__.getLineWidth=d.getLineWidth=function(){return vi},wi=d.__private__.setLineWidth=d.setLineWidth=function(t){return vi=t,et(k(M(t))+" w"),this};d.__private__.setLineDash=qt.API.setLineDash=qt.API.setLineDashPattern=function(t,n){if(t=t||[],n=n||0,isNaN(n)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return k(M(t))})).join(" "),n=k(M(n)),et("["+t+"] "+n+" d"),this};var mi=d.__private__.getLineHeight=d.getLineHeight=function(){return ut*li};d.__private__.getLineHeight=d.getLineHeight=function(){return ut*li};var bi=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(li=t),this},pi=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return li};bi(t.lineHeight);var Ni=d.__private__.getHorizontalCoordinate=function(t){return M(t)},Li=d.__private__.getVerticalCoordinate=function(t){return L===N.ADVANCED?t:Dt[z].mediaBox.topRightY-Dt[z].mediaBox.bottomLeftY-M(t)},gi=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(t){return k(Ni(t))},Ai=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(t){return k(Li(t))},yi=t.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return nn(yi)},d.__private__.setStrokeColor=d.setDrawColor=function(t,n,i,r){return yi=rn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"draw",precision:2}),et(yi),this};var ki=t.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return nn(ki)},d.__private__.setFillColor=d.setFillColor=function(t,n,i,r){return ki=rn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"fill",precision:2}),et(ki),this};var Si=t.textColor||"0 g",xi=d.__private__.getTextColor=d.getTextColor=function(){return nn(Si)};d.__private__.setTextColor=d.setTextColor=function(t,n,i,r){return Si=rn({ch1:t,ch2:n,ch3:i,ch4:r,pdfColorType:"text",precision:3}),this};var qi=t.charSpace,ji=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(qi||0)};d.__private__.setCharSpace=d.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qi=t,this};var Mi=0;d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(t){var n=d.CapJoinStyles[t];if(void 0===n)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Mi=n,et(n+" J"),this};var Ei=0;d.__private__.setLineJoin=d.setLineJoin=function(t){var n=d.CapJoinStyles[t];if(void 0===n)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ei=n,et(n+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return et(k(M(t))+" M"),this},d.GState=yt,d.setGState=function(t){(t="string"==typeof t?Bt[Rt[t]]:Pi(null,t)).equals(Tt)||(et("/"+t.id+" gs"),Tt=t)};var Pi=function(t,n){if(!t||!Rt[t]){var i=!1;for(var r in Bt)if(Bt.hasOwnProperty(r)&&Bt[r].equals(n)){i=!0;break}if(i)n=Bt[r];else{var e="GS"+(Object.keys(Bt).length+1).toString(10);Bt[e]=n,n.id=e}return t&&(Rt[t]=n.id),zt.publish("addGState",n),n}};d.addGState=function(t,n){return Pi(t,n),this},d.saveGraphicsState=function(){return et("q"),Ot.push({key:pt,size:ut,color:Si}),this},d.restoreGraphicsState=function(){et("Q");var t=Ot.pop();return pt=t.key,ut=t.size,Si=t.color,Tt=null,this},d.setCurrentTransformationMatrix=function(t){return et(t.toString()+" cm"),this},d.comment=function(t){return et("#"+t),this};var Oi=function(t,n){var i=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var r=n||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var e="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return e},set:function(t){e=t.toString()}}),this},Ii=function(t,n,i,r){Oi.call(this,t,n),this.type="rect";var e=i||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return e},set:function(t){isNaN(t)||(e=parseFloat(t))}});var s=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return s},set:function(t){isNaN(t)||(s=parseFloat(t))}}),this},Fi=function(){this.page=Ct,this.currentPage=z,this.pages=K.slice(0),this.pagesContext=Dt.slice(0),this.x=kt,this.y=jt,this.matrix=Mt,this.width=Ci(z),this.height=zi(z),this.outputDestination=Q,this.id="",this.objectNumber=-1};Fi.prototype.restore=function(){Ct=this.page,Dt=this.pagesContext,K=this.pages,kt=this.x,jt=this.y,Mt=this.matrix,Di(z=this.currentPage,this.width),Ui(z,this.height),Q=this.outputDestination};var Bi=function(t,n,i,r,e){Ht.push(new Fi),Ct=z=0,K=[],kt=t,jt=n,Mt=e,In([i,r])},Ri=function(t){if(Wt[t])Ht.pop().restore();else{var n=new Fi,i="Xo"+(Object.keys(Vt).length+1).toString(10);n.id=i,Wt[t]=i,Vt[i]=n,zt.publish("addFormObject",n),Ht.pop().restore()}};for(var Ti in d.beginFormObject=function(t,n,i,r,e){return Bi(t,n,i,r,e),this},d.endFormObject=function(t){return Ri(t),this},d.doFormObject=function(t,n){var i=Vt[Wt[t]];return et("q"),et(n.toString()+" cm"),et("/"+i.id+" Do"),et("Q"),this},d.getFormObject=function(t){var n=Vt[Wt[t]];return{x:n.x,y:n.y,width:n.width,height:n.height,matrix:n.matrix}},d.save=function(t,n){return t=t||"generated.pdf",(n=n||{}).returnPromise=n.returnPromise||!1,!1===n.returnPromise?(it(_n(Hn()),t),"function"==typeof it.unload&&Y.setTimeout&&setTimeout(it.unload,911),this):new Promise((function(n,i){try{var r=it(_n(Hn()),t);"function"==typeof it.unload&&Y.setTimeout&&setTimeout(it.unload,911),n(r)}catch(t){i(t.message)}}))},qt.API)qt.API.hasOwnProperty(Ti)&&("events"===Ti&&qt.API.events.length?function(t,n){var i,r;for(r=n.length-1;-1!==r;r--)t.subscribe.apply(t,[n[r][0]].concat("function"==typeof(i=n[r][1])?[i]:i))}(zt,qt.API.events):d[Ti]=qt.API[Ti]);var Ci=d.getPageWidth=function(t){return(Dt[t=t||z].mediaBox.topRightX-Dt[t].mediaBox.bottomLeftX)/Nt},Di=d.setPageWidth=function(t,n){Dt[t].mediaBox.topRightX=n*Nt+Dt[t].mediaBox.bottomLeftX},zi=d.getPageHeight=function(t){return(Dt[t=t||z].mediaBox.topRightY-Dt[t].mediaBox.bottomLeftY)/Nt},Ui=d.setPageHeight=function(t,n){Dt[t].mediaBox.topRightY=n*Nt+Dt[t].mediaBox.bottomLeftY};return d.internal={pdfEscape:On,getStyle:ni,getFont:hi,getFontSize:ct,getCharSpace:ji,getTextColor:xi,getLineHeight:mi,getLineHeightFactor:pi,getLineWidth:di,write:st,getHorizontalCoordinate:Ni,getVerticalCoordinate:Li,getCoordinateString:gi,getVerticalCoordinateString:Ai,collections:{},newObject:Kt,newAdditionalObject:Qt,newObjectDeferred:Xt,newObjectDeferredBegin:$t,getFilters:en,putStream:sn,events:zt,scaleFactor:Nt,pageSize:{getWidth:function(){return Ci(z)},setWidth:function(t){Di(z,t)},getHeight:function(){return zi(z)},setHeight:function(t){Ui(z,t)}},encryptionOptions:h,encryption:Yn,getEncryptor:Kn,output:Gn,getNumberOfPages:Tn,pages:K,out:et,f2:q,f3:j,getPageInfo:Xn,getPageInfoByObjId:$n,getCurrentPageInfo:Qn,getPDFVersion:m,Point:Oi,Rectangle:Ii,Matrix:_t,hasHotfix:Jn},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return Ci(z)},set:function(t){Di(z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return zi(z)},set:function(t){Ui(z,t)},enumerable:!0,configurable:!0}),Mn.call(d,at),pt="F1",Fn(e,i),zt.publish("initialized"),d}Lt.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},Lt.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Lt.prototype.hexToBytes=function(t){for(var n=[],i=0;i<t.length;i+=2)n.push(String.fromCharCode(parseInt(t.substr(i,2),16)));return n.join("")},Lt.prototype.processOwnerPassword=function(t,n){return pt(wt(n).substr(0,5),t)},Lt.prototype.encryptor=function(t,n){var i=wt(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(t){return pt(i,t)}},yt.prototype.equals=function(t){var n,i="id,objectNumber,equals";if(!t||u(t)!==u(this))return!1;var r=0;for(n in this)if(!(i.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;if(this[n]!==t[n])return!1;r++}for(n in t)t.hasOwnProperty(n)&&i.indexOf(n)<0&&r--;return 0===r},qt.API={events:[]},qt.version="2.5.1";var jt=qt.API,Mt=1,Et=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pt=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ot=function(t){return t.toFixed(2)},It=function(t){return t.toFixed(5)};jt.__acroform__={};var Ft=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},Bt=function(t){return t*Mt},Rt=function(t){var n=new Zt,i=dn.internal.getHeight(t)||0,r=dn.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Ot(r)),Number(Ot(i))],n},Tt=jt.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<n},Ct=jt.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},Dt=jt.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<n)?0:1},zt=jt.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Dt(t,n-1)},Ut=jt.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Tt(t,n-1)},Vt=jt.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ct(t,n-1)},Wt=jt.__acroform__.calculateCoordinates=function(t,n){var i=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,e=t[0],s=t[1],o=t[2],a=t[3],u={};return u.lowerLeft_X=i(e)||0,u.lowerLeft_Y=r(s+a)||0,u.upperRight_X=i(e+o)||0,u.upperRight_Y=r(s)||0,[Number(Ot(u.lowerLeft_X)),Number(Ot(u.lowerLeft_Y)),Number(Ot(u.upperRight_X)),Number(Ot(u.upperRight_Y))]},Ht=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],i=_t(t,t._V||t.DV),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+r+" "+Ot(i.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC");var e=Rt(t);return e.scope=t.scope,e.stream=n.join("\n"),e}},_t=function(t,n){var i=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},e=(n=")"==(n="("==n.substr(0,1)?n.substr(1):n).substr(n.length-1)?n.substr(0,n.length-1):n).split(" ");e=e.map(t.multiline?function(t){return t.split("\n")}:function(t){return[t]});var s=i,o=dn.internal.getHeight(t)||0;o=o<0?-o:o;var a=dn.internal.getWidth(t)||0;a=a<0?-a:a;var u=function(n,i,r){return n+1<e.length&&Gt(i+" "+e[n+1][0],t,r).width<=a-4};s++;t:for(;s>0;){n="",s--;var f,c,h=Gt("3",t,s).height,l=t.multiline?o-s:(o-h)/2,v=l+=2,d=0,w=0,m=0;if(s<=0){n="(...) Tj\n",n+="% Width of Text: "+Gt(n,t,s=12).width+", FieldWidth:"+a+"\n";break}for(var b="",p=0,N=0;N<e.length;N++)if(e.hasOwnProperty(N)){var L=!1;if(1!==e[N].length&&m!==e[N].length-1){if((h+2)*(p+2)+2>o)continue t;b+=e[N][m],L=!0,w=N,N--}else{b=" "==(b+=e[N][m]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var g=parseInt(N),A=u(g,b,s),y=N>=e.length-1;if(A&&!y){b+=" ",m=0;continue}if(A||y){if(y)w=g;else if(t.multiline&&(h+2)*(p+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(p+2)+2>o)continue t;w=g}}for(var k="",S=d;S<=w;S++){var x=e[S];if(t.multiline){if(S===w){k+=x[m]+" ",m=(m+1)%x.length;continue}if(S===d){k+=x[x.length-1]+" ";continue}}k+=x[0]+" "}switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,c=Gt(k,t,s).width,t.textAlign){case"right":f=a-c-2;break;case"center":f=(a-c)/2;break;default:f=2}n+=Ot(f)+" "+Ot(v)+" Td\n",n+="("+Et(k)+") Tj\n",n+=-Ot(f)+" 0 Td\n",v=-(s+2),c=0,d=L?w:w+1,p++,b=""}break}return r.text=n,r.fontSize=s,r},Gt=function(t,n,i){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),e=n.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:e}},Jt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Yt=function(t,n){var i={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===i.type&&t.object===i.object}))&&n.internal.getPageInfo(t.page).pageContext.annotations.push(i)},Kt=function(t,n){if(n.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(nn.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Jt)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Mt=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new tn,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];r.objId=void 0,r.hasAnnotation&&Yt(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(n){!function(t,n){var i=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var e=t[r],s=[],o=e.Rect;if(e.Rect&&(e.Rect=Wt(e.Rect,n)),n.internal.newObjectDeferredBegin(e.objId,!0),e.DA=dn.createDefaultAppearanceStream(e),"object"===u(e)&&"function"==typeof e.getKeyValueListForStream&&(s=e.getKeyValueListForStream()),e.Rect=o,e.hasAppearanceStream&&!e.appearanceStreamContent){var a=Ht(e);s.push({key:"AP",value:"<</N "+a+">>"}),n.internal.acroformPlugin.xForms.push(a)}if(e.appearanceStreamContent){var f="";for(var c in e.appearanceStreamContent)if(e.appearanceStreamContent.hasOwnProperty(c)){var h=e.appearanceStreamContent[c];if(f+="/"+c+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var r in h)if(h.hasOwnProperty(r)){var l=h[r];"function"==typeof l&&(l=l.call(n,e)),f+="/"+r+" "+l+" ",n.internal.acroformPlugin.xForms.indexOf(l)>=0||n.internal.acroformPlugin.xForms.push(l)}}else"function"==typeof(l=h)&&(l=l.call(n,e)),f+="/"+r+" "+l,n.internal.acroformPlugin.xForms.indexOf(l)>=0||n.internal.acroformPlugin.xForms.push(l);f+=">>"}s.push({key:"AP",value:"<<\n"+f+">>"})}n.internal.putStream({additionalKeyValues:s,objectId:e.objId}),n.internal.out("endobj")}i&&function(t,n){for(var i in t)if(t.hasOwnProperty(i)){var r=i,e=t[i];n.internal.newObjectDeferredBegin(e.objId,!0),"object"===u(e)&&"function"==typeof e.putStream&&e.putStream(),delete t[r]}}(n.internal.acroformPlugin.xForms,n)}(n,t)})),t.internal.acroformPlugin.isInitialized=!0}},Xt=jt.__acroform__.arrayToPdfArray=function(t,n,i){var r=function(t){return t};if(Array.isArray(t)){for(var e="[",s=0;s<t.length;s++)switch(0!==s&&(e+=" "),u(t[s])){case"boolean":case"number":case"object":e+=t[s].toString();break;case"string":"/"!==t[s].substr(0,1)?(void 0!==n&&i&&(r=i.internal.getEncryptor(n)),e+="("+Et(r(t[s].toString()))+")"):e+=t[s].toString()}return e+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$t=function(t,n,i){var r=function(t){return t};return void 0!==n&&i&&(r=i.internal.getEncryptor(n)),(t=t||"").toString(),"("+Et(r(t))+")"},Qt=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Qt.prototype.toString=function(){return this.objId+" 0 R"},Qt.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Qt.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var i in n)if(!1===Object.getOwnPropertyDescriptor(this,n[i]).configurable){var r=n[i],e=this[r];e&&(Array.isArray(e)?t.push({key:r,value:Xt(e,this.objId,this.scope)}):e instanceof Qt?(e.scope=this.scope,t.push({key:r,value:e.objId+" 0 R"})):"function"!=typeof e&&t.push({key:r,value:e}))}return t};var Zt=function(){Qt.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};Ft(Zt,Qt);var tn=function(){Qt.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(t){return t};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Et(n(t))+")"}},set:function(n){t=n}})};Ft(tn,Qt);var nn=function t(){Qt.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');n=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(n,3))},set:function(t){this.F=!0===Boolean(t)?Ut(n,3):Vt(n,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');i=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var e="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":e=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof cn)return;s="FieldObject"+t.FieldNum++}var n=function(t){return t};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Et(n(s))+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===f?50/Mt:f},set:function(t){f=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof cn||this instanceof ln))return $t(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var l=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof an==0?$t(l,this.objId,this.scope):l},set:function(t){t=t.toString(),l=this instanceof an==0?"("===t.substr(0,1)?Pt(t.substr(1,t.length-2)):Pt(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?Pt(l.substr(1,l.length-1)):l},set:function(t){t=t.toString(),l=this instanceof an==1?"/"+t:t}});var v=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(v)return v},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof an==0?$t(v,this.objId,this.scope):v},set:function(t){t=t.toString(),v=this instanceof an==0?"("===t.substr(0,1)?Pt(t.substr(1,t.length-2)):Pt(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?Pt(v.substr(1,v.length-1)):v},set:function(t){t=t.toString(),v=this instanceof an==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(t){t=Boolean(t),w=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,1))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,1):Vt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,2))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,2):Vt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,3))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,3):Vt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Ft(nn,Qt);var rn=function(){nn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Xt(n,this.objId,this.scope)},set:function(t){var i,r;r=[],"string"==typeof(i=t)&&(r=function(t,n,i){i||(i=1);for(var r,e=[];r=n.exec(t);)e.push(r[i]);return e}(i,/\((.*?)\)/g)),n=r}}),this.getOptions=function(){return n},this.setOptions=function(t){n=t,this.sort&&n.sort()},this.addOption=function(t){t=(t=t||"").toString(),n.push(t),this.sort&&n.sort()},this.removeOption=function(t,i){for(i=i||!1,t=(t=t||"").toString();-1!==n.indexOf(t)&&(n.splice(n.indexOf(t),1),!1!==i););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,18))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,18):Vt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,19))},set:function(t){!0===this.combo&&(this.Ff=!0===Boolean(t)?Ut(this.Ff,19):Vt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Ut(this.Ff,20),n.sort()):this.Ff=Vt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,22))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,22):Vt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,23))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,23):Vt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,27))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,27):Vt(this.Ff,27)}}),this.hasAppearanceStream=!1};Ft(rn,nn);var en=function(){rn.call(this),this.fontName="helvetica",this.combo=!1};Ft(en,rn);var sn=function(){en.call(this),this.combo=!0};Ft(sn,en);var on=function(){sn.call(this),this.edit=!0};Ft(on,sn);var an=function(){nn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,15))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,15):Vt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,16))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,16):Vt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,17))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,17):Vt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,26))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,26):Vt(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(n).length){var i,r=[];for(i in r.push("<<"),n)r.push("/"+i+" ("+Et(t(n[i]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===u(t)&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){"string"==typeof t&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}})};Ft(an,nn);var un=function(){an.call(this),this.pushButton=!0};Ft(un,an);var fn=function(){an.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=void 0!==n?n:[]}})};Ft(fn,an);var cn=function(){var t,n;nn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t}});var i,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var n,i=[];for(n in i.push("<<"),r)i.push("/"+n+" ("+Et(t(r[n]))+")");return i.push(">>"),i.join("\n")},set:function(t){"object"===u(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(t){i="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=dn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ft(cn,nn),fn.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var i=this.Kids[n];i.appearanceStreamContent=t.createAppearanceStream(i.optionName),i.caption=t.getCA()}},fn.prototype.createOption=function(t){var n=new cn;return n.Parent=this,n.optionName=t,this.Kids.push(n),wn.call(this.scope,n),n};var hn=function(){an.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=dn.CheckBox.createAppearanceStream()};Ft(hn,an);var ln=function(){nn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,13))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,13):Vt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,21))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,21):Vt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,23))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,23):Vt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,24))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,24):Vt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,25))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,25):Vt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,26))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,26):Vt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ft(ln,nn);var vn=function(){ln.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(zt(this.Ff,14))},set:function(t){this.Ff=!0===Boolean(t)?Ut(this.Ff,14):Vt(this.Ff,14)}}),this.password=!0};Ft(vn,ln);var dn={CheckBox:{createAppearanceStream:function(){return{N:{On:dn.CheckBox.YesNormal},D:{On:dn.CheckBox.YesPushDown,Off:dn.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color),s=_t(t,t.caption);return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+r+" "+Ot(s.fontSize)+" Tf "+e),i.push("BT"),i.push(s.text),i.push("ET"),i.push("Q"),i.push("EMC"),n.stream=i.join("\n"),n},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),e=[],s=dn.internal.getHeight(t),o=dn.internal.getWidth(t),a=_t(t,t.caption);return e.push("1 g"),e.push("0 0 "+Ot(o)+" "+Ot(s)+" re"),e.push("f"),e.push("q"),e.push("0 0 1 rg"),e.push("0 0 "+Ot(o-1)+" "+Ot(s-1)+" re"),e.push("W"),e.push("n"),e.push("0 g"),e.push("BT"),e.push("/"+i+" "+Ot(a.fontSize)+" Tf "+r),e.push(a.text),e.push("ET"),e.push("Q"),n.stream=e.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),n.stream=i.join("\n"),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:dn.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=dn.RadioButton.Circle.YesNormal,n.D[t]=dn.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((r*dn.internal.Bezier_C).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+e+" "+e+" "+r+" 0 "+r+" c"),i.push("-"+e+" "+r+" -"+r+" "+e+" -"+r+" 0 c"),i.push("-"+r+" -"+e+" -"+e+" -"+r+" 0 -"+r+" c"),i.push(e+" -"+r+" "+r+" -"+e+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((2*r).toFixed(5)),s=Number((e*dn.internal.Bezier_C).toFixed(5)),o=Number((r*dn.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+s+" "+s+" "+e+" 0 "+e+" c"),i.push("-"+s+" "+e+" -"+e+" "+s+" -"+e+" 0 c"),i.push("-"+e+" -"+s+" -"+s+" -"+e+" 0 -"+e+" c"),i.push(s+" -"+e+" "+e+" -"+s+" "+e+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),i.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),i.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),i.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.getWidth(t)<=dn.internal.getHeight(t)?dn.internal.getWidth(t)/4:dn.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var e=Number((2*r).toFixed(5)),s=Number((e*dn.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+It(dn.internal.getWidth(t)/2)+" "+It(dn.internal.getHeight(t)/2)+" cm"),i.push(e+" 0 m"),i.push(e+" "+s+" "+s+" "+e+" 0 "+e+" c"),i.push("-"+s+" "+e+" -"+e+" "+s+" -"+e+" 0 c"),i.push("-"+e+" -"+s+" -"+s+" -"+e+" 0 -"+e+" c"),i.push(s+" -"+e+" "+e+" -"+s+" "+e+" 0 c"),i.push("f"),i.push("Q"),n.stream=i.join("\n"),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:dn.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=dn.RadioButton.Cross.YesNormal,n.D[t]=dn.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Rt(t);n.scope=t.scope;var i=[],r=dn.internal.calculateCross(t);return i.push("q"),i.push("1 1 "+Ot(dn.internal.getWidth(t)-2)+" "+Ot(dn.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Ot(r.x1.x)+" "+Ot(r.x1.y)+" m"),i.push(Ot(r.x2.x)+" "+Ot(r.x2.y)+" l"),i.push(Ot(r.x4.x)+" "+Ot(r.x4.y)+" m"),i.push(Ot(r.x3.x)+" "+Ot(r.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join("\n"),n},YesPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=dn.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ot(dn.internal.getWidth(t)-2)+" "+Ot(dn.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ot(i.x1.x)+" "+Ot(i.x1.y)+" m"),r.push(Ot(i.x2.x)+" "+Ot(i.x2.y)+" l"),r.push(Ot(i.x4.x)+" "+Ot(i.x4.y)+" m"),r.push(Ot(i.x3.x)+" "+Ot(i.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join("\n"),n},OffPushDown:function(t){var n=Rt(t);n.scope=t.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Ot(dn.internal.getWidth(t))+" "+Ot(dn.internal.getHeight(t))+" re"),i.push("f"),n.stream=i.join("\n"),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+i}};dn.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=dn.internal.getWidth(t),i=dn.internal.getHeight(t),r=Math.min(n,i);return{x1:{x:(n-r)/2,y:(i-r)/2+r},x2:{x:(n-r)/2+r,y:(i-r)/2},x3:{x:(n-r)/2,y:(i-r)/2},x4:{x:(n-r)/2+r,y:(i-r)/2+r}}}},dn.internal.getWidth=function(t){var n=0;return"object"===u(t)&&(n=Bt(t.Rect[2])),n},dn.internal.getHeight=function(t){var n=0;return"object"===u(t)&&(n=Bt(t.Rect[3])),n};var wn=jt.addField=function(t){if(Kt(this,t),!(t instanceof nn))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};function mn(t){return t.reduce((function(t,n,i){return t[n]=i,t}),{})}jt.AcroFormChoiceField=rn,jt.AcroFormListBox=en,jt.AcroFormComboBox=sn,jt.AcroFormEditBox=on,jt.AcroFormButton=an,jt.AcroFormPushButton=un,jt.AcroFormRadioButton=fn,jt.AcroFormCheckBox=hn,jt.AcroFormTextField=ln,jt.AcroFormPasswordField=vn,jt.AcroFormAppearance=dn,jt.AcroForm={ChoiceField:rn,ListBox:en,ComboBox:sn,EditBox:on,Button:an,PushButton:un,RadioButton:fn,CheckBox:hn,TextField:ln,PasswordField:vn,Appearance:dn},qt.AcroForm={ChoiceField:rn,ListBox:en,ComboBox:sn,EditBox:on,Button:an,PushButton:un,RadioButton:fn,CheckBox:hn,TextField:ln,PasswordField:vn,Appearance:dn},function(t){t.__addimage__={};var n="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var e,s,o,a,u,f=n;if("RGBA"===(r=r||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(y(t))for(u in i)for(o=i[u],e=0;e<o.length;e+=1){for(a=!0,s=0;s<o[e].length;s+=1)if(void 0!==o[e][s]&&o[e][s]!==t[s]){a=!1;break}if(!0===a){f=u;break}}else for(u in i)for(o=i[u],e=0;e<o.length;e+=1){for(a=!0,s=0;s<o[e].length;s+=1)if(void 0!==o[e][s]&&o[e][s]!==t.charCodeAt(s)){a=!1;break}if(!0===a){f=u;break}}return f===n&&r!==n&&(f=r),f},e=function t(n){for(var i=this.internal.write,r=this.internal.putStream,e=(0,this.internal.getFilters)();-1!==e.indexOf("FlateEncode");)e.splice(e.indexOf("FlateEncode"),1);n.objectId=this.internal.newObject();var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:n.width}),s.push({key:"Height",value:n.height}),n.colorSpace===b.INDEXED?s.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(n.palette.length/3-1)+" "+("sMask"in n&&void 0!==n.sMask?n.objectId+2:n.objectId+1)+" 0 R]"}):(s.push({key:"ColorSpace",value:"/"+n.colorSpace}),n.colorSpace===b.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:n.bitsPerComponent}),"decodeParameters"in n&&void 0!==n.decodeParameters&&s.push({key:"DecodeParms",value:"<<"+n.decodeParameters+">>"}),"transparency"in n&&Array.isArray(n.transparency)){for(var o="",a=0,u=n.transparency.length;a<u;a++)o+=n.transparency[a]+" "+n.transparency[a]+" ";s.push({key:"Mask",value:"["+o+"]"})}if(void 0!==n.sMask&&s.push({key:"SMask",value:n.objectId+1+" 0 R"}),r({data:n.data,additionalKeyValues:s,alreadyAppliedFilters:void 0!==n.filter?["/"+n.filter]:void 0,objectId:n.objectId}),i("endobj"),"sMask"in n&&void 0!==n.sMask){var f={width:n.width,height:n.height,colorSpace:"DeviceGray",bitsPerComponent:n.bitsPerComponent,decodeParameters:"/Predictor "+n.predictor+" /Colors 1 /BitsPerComponent "+n.bitsPerComponent+" /Columns "+n.width,data:n.sMask};"filter"in n&&(f.filter=n.filter),t.call(this,f)}if(n.colorSpace===b.INDEXED){var c=this.internal.newObject();r({data:S(new Uint8Array(n.palette)),objectId:c}),i("endobj")}},s=function(){var t=this.internal.collections.addImage_images;for(var n in t)e.call(this,t[n])},o=function(){var t,n=this.internal.collections.addImage_images,i=this.internal.write;for(var r in n)i("/I"+(t=n[r]).index,t.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},f=function(){var t=this.internal.collections.addImage_images;return a.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(n){return"function"==typeof t["process"+n.toUpperCase()]},l=function(t){return"object"===u(t)&&1===t.nodeType},v=function(n,i){if("IMG"===n.nodeName&&n.hasAttribute("src")){var r=""+n.getAttribute("src");if(0===r.indexOf("data:image/"))return tt(unescape(r).split("base64,").pop());var e=t.loadFile(r,!0);if(void 0!==e)return e}if("CANVAS"===n.nodeName){if(0===n.width||0===n.height)throw new Error("Given canvas must have data. Canvas width: "+n.width+", height: "+n.height);var s;switch(i){case"PNG":s="image/png";break;case"WEBP":s="image/webp";break;default:s="image/jpeg"}return tt(n.toDataURL(s,1).split("base64,").pop())}},d=function(t){var n=this.internal.collections.addImage_images;if(n)for(var i in n)if(t===n[i].alias)return n[i]},w=function(t,n,i){return t||n||(t=-96,n=-96),t<0&&(t=-1*i.width*72/t/this.internal.scaleFactor),n<0&&(n=-1*i.height*72/n/this.internal.scaleFactor),0===t&&(t=n*i.width/i.height),0===n&&(n=t*i.height/i.width),[t,n]},m=function(t,n,i,r,e,s){var o=w.call(this,i,r,e),a=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,c=f.call(this);if(i=o[0],r=o[1],c[e.index]=e,s){s*=Math.PI/180;var h=Math.cos(s),l=Math.sin(s),v=function(t){return t.toFixed(4)},d=[v(h),v(l),v(-1*l),v(h),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,a(t),u(n+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(i),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(i),"0","0",a(r),a(t),u(n+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+e.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var p=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},N=t.__addimage__.sHashCode=function(t){var n,i,r=0;if("string"==typeof t)for(i=t.length,n=0;n<i;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;else if(y(t))for(i=t.byteLength/2,n=0;n<i;n++)r=(r<<5)-r+t[n],r|=0;return r},L=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var n=!0;return 0===t.length&&(n=!1),t.length%4!=0&&(n=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(n=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(n=!1),n},g=t.__addimage__.extractImageFromDataUrl=function(t){var n=(t=t||"").split("base64,"),i=null;if(2===n.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(n[0]);Array.isArray(r)&&(i={mimeType:r[1],charset:r[2],data:n[1]})}return i},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var y=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},k=t.__addimage__.binaryStringToUint8Array=function(t){for(var n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var n="",i=y(t)?t:new Uint8Array(t),r=0;r<i.length;r+=8192)n+=String.fromCharCode.apply(null,i.subarray(r,r+8192));return n};t.addImage=function(){var t,i,r,e,s,o,f,c,h;if("number"==typeof arguments[1]?(i=n,r=arguments[1],e=arguments[2],s=arguments[3],o=arguments[4],f=arguments[5],c=arguments[6],h=arguments[7]):(i=arguments[1],r=arguments[2],e=arguments[3],s=arguments[4],o=arguments[5],f=arguments[6],c=arguments[7],h=arguments[8]),"object"===u(t=arguments[0])&&!l(t)&&"imageData"in t){var v=t;t=v.imageData,i=v.format||i||n,r=v.x||r||0,e=v.y||e||0,s=v.w||v.width||s,o=v.h||v.height||o,f=v.alias||f,c=v.compression||c,h=v.rotation||v.angle||h}var d=this.internal.getFilters();if(void 0===c&&-1!==d.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(e))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var w=x.call(this,t,i,f,c);return m.call(this,r,e,s,o,w,h),this};var x=function(i,e,s,o){var a,u,f;if("string"==typeof i&&r(i)===n){i=unescape(i);var w=q(i,!1);(""!==w||void 0!==(w=t.loadFile(i,!0)))&&(i=w)}if(l(i)&&(i=v(i,e)),e=r(i,e),!h(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if((null==(f=s)||0===f.length)&&(s=function(t){return"string"==typeof t||y(t)?N(t):y(t.data)?N(t.data):null}(i)),(a=d.call(this,s))||(A()&&(i instanceof Uint8Array||"RGBA"===e||(u=i,i=k(i))),a=this["process"+e.toUpperCase()](i,c.call(this),s,function(n){return n&&"string"==typeof n&&(n=n.toUpperCase()),n in t.image_compression?n:p.NONE}(o),u)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},q=t.__addimage__.convertBase64ToBinaryString=function(t,n){var i;n="boolean"!=typeof n||n;var r,e="";if("string"==typeof t){r=null!==(i=g(t))?i.data:t;try{e=tt(r)}catch(t){if(n)throw L(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return e};t.getImageProperties=function(i){var e,s,o="";if(l(i)&&(i=v(i)),"string"==typeof i&&r(i)===n&&(""===(o=q(i,!1))&&(o=t.loadFile(i)||""),i=o),s=r(i),!h(s))throw new Error("addImage does not support files of type '"+s+"', please ensure that a plugin for '"+s+"' support is added.");if(!A()||i instanceof Uint8Array||(i=k(i)),!(e=this["process"+s.toUpperCase()](i)))throw new Error("An unknown error occurred whilst processing the image");return e.fileType=s,e}}(qt.API),
|
111
111
|
/**
|
112
112
|
* @license
|
113
113
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
@@ -131,7 +131,7 @@ function(t){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[6515
|
|
131
131
|
* Licensed under the MIT License.
|
132
132
|
* http://opensource.org/licenses/mit-license
|
133
133
|
*/
|
134
|
-
function(t){var n=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(n){t=n}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(t){i=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var e={};Object.defineProperty(this,"style",{get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(t,n){var i;if("2d"!==(t=t||"2d"))return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(qt.API),function(t){var n={left:0,top:0,bottom:0,right:0},i=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),e.call(this))},e=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(n){t=n}});var n=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var e=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var s=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return s},set:function(t){s=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,n){r.call(this);var i=(n=n||{}).fontSize||this.getFontSize(),e=n.font||this.getFont(),s=n.scaleFactor||this.internal.scaleFactor,o=0,a=0,u=0,f=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var c=n.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,n){return t.concat(f.splitTextToSize(n,c))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(u=this.getStringUnitWidth(t[h],{font:e})*i)&&(o=u);return 0!==o&&(a=t.length),{w:o/=s,h:Math.max((a*i*this.getLineHeightFactor()-i*(this.getLineHeightFactor()-1))/s,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new s(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var t;t=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var e=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,a=this.internal.__cell__.margins||n,u=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,f&&u&&(this.printHeaderRow(t.lineNumber,!0),t.y+=u[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===i?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:"center",baseline:"top",maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:"left",baseline:"top",maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,i,f,c,h){if(r.call(this),!f)throw new Error("No data for PDF table.");var l,v,d,w,m=[],b=[],p=[],N={},L={},g=[],A=[],y=(h=h||{}).autoSize||!1,k=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,x=h.margins||Object.assign({width:this.getPageWidth()},n),q="number"==typeof h.padding?h.padding:3,j=h.headerBackgroundColor||"#c8c8c8",M=h.headerTextColor||"#000";if(e.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=q,this.internal.__cell__.headerBackgroundColor=j,this.internal.__cell__.headerTextColor=M,this.setFontSize(S),null==c)b=m=Object.keys(f[0]),p=m.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===u(c[0]))for(m=c.map((function(t){return t.name})),b=c.map((function(t){return t.prompt||t.name||""})),p=c.map((function(t){return t.align||"left"})),l=0;l<c.length;l+=1)L[c[l].name]=c[l].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(b=m=c,p=m.map((function(){return"left"})));if(y||Array.isArray(c)&&"string"==typeof c[0])for(l=0;l<m.length;l+=1){for(N[w=m[l]]=f.map((function(t){return t[w]})),this.setFont(void 0,"bold"),g.push(this.getTextDimensions(b[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=N[w],this.setFont(void 0,"normal"),d=0;d<v.length;d+=1)g.push(this.getTextDimensions(v[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[w]=Math.max.apply(null,g)+q+q,g=[]}if(k){var E={};for(l=0;l<m.length;l+=1)E[m[l]]={},E[m[l]].text=b[l],E[m[l]].align=p[l];var P=a.call(this,E,L);A=m.map((function(n){return new s(t,i,L[n],P,E[n].text,void 0,E[n].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var O=c.reduce((function(t,n){return t[n.name]=n.align,t}),{});for(l=0;l<f.length;l+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:l,data:f[l]},this);var I=a.call(this,f[l],L);for(d=0;d<m.length;d+=1){var F=f[l][m[d]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:l,col:d,data:F},this),o.call(this,new s(t,i,L[m[d]],I,F,l+2,O[m[d]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=i,this};var a=function(t,n){var i=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,e=this.internal.scaleFactor;return Object.keys(t).map((function(r){var e=t[r];return this.splitTextToSize(e.hasOwnProperty("text")?e.text:e,n[r]-i-i)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/e+i+i}),this).reduce((function(t,n){return Math.max(t,n)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,n){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var e;if(i=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){e=this.internal.__cell__.tableHeaderRow[f].clone(),n&&(e.y=this.internal.__cell__.margins.top||0,u.push(e)),e.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,e),this.setTextColor(c)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),i=!1}}(qt.API);var bn={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pn=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Nn=mn(pn),Ln=[100,200,300,400,500,600,700,800,900],gn=mn(Ln);function An(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),i=function(t){return bn[t=t||"normal"]?t:"normal"}(t.style),r=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),e=function(t){return"number"==typeof Nn[t=t||"normal"]?t:"normal"}(t.stretch);return{family:n,style:i,weight:r,stretch:e,src:t.src||[],ref:t.ref||{name:n,style:[e,i,r].join(" ")}}}function yn(t,n,i,r){var e;for(e=i;e>=0&&e<n.length;e+=r)if(t[n[e]])return t[n[e]];for(e=i;e>=0&&e<n.length;e-=r)if(t[n[e]])return t[n[e]]}var kn={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Sn={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function xn(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function qn(t){return t.trimLeft()}function jn(t,n){for(var i=0;i<t.length;){if(t.charAt(i)===n)return[t.substring(0,i),t.substring(i+1)];i+=1}return null}function Mn(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===n?null:[n[0],t.substring(n[0].length)]}var En,Pn,On,In,Fn=["times"];!function(t){var n,i,r,e,s,o,a,f,c,h=function(t){return this.isStrokeTransparent=(t=t||{}).isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new f,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new o,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new o,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new l(this),n=this.internal.f2,i=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,e=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,f=this.internal.Matrix,c=new h}]);var l=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var n=t;Object.defineProperty(this,"pdf",{get:function(){return n}});var i=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return i},set:function(t){i=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var e=0;Object.defineProperty(this,"posX",{get:function(){return e},set:function(t){isNaN(t)||(e=t)}});var s=0;Object.defineProperty(this,"posY",{get:function(){return s},set:function(t){isNaN(t)||(s=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(t){var n;"number"==typeof t?n=[t,t,t,t]:((n=new Array(4))[0]=t[0],n[1]=t.length>=2?t[1]:n[0],n[2]=t.length>=3?t[2]:n[0],n[3]=t.length>=4?t[3]:n[1]),c.margin=n}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var u=[];Object.defineProperty(this,"pageBreaks",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof h&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var f=[];Object.defineProperty(this,"ctxStack",{get:function(){return f},set:function(t){f=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var n;n=v(t),this.ctx.fillStyle=n.style,this.ctx.isFillTransparent=0===n.a,this.ctx.fillOpacity=n.a,this.pdf.setFillColor(n.r,n.g,n.b,{a:n.a}),this.pdf.setTextColor(n.r,n.g,n.b,{a:n.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var n=v(t);this.ctx.strokeStyle=n.style,this.ctx.isStrokeTransparent=0===n.a,this.ctx.strokeOpacity=n.a,0===n.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(n.r,n.g,n.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var l=null;function d(t,n){if(null===l){var i=function(t){var n=[];return Object.keys(t).forEach((function(i){t[i].forEach((function(t){var r=null;switch(t){case"bold":r={family:i,weight:"bold"};break;case"italic":r={family:i,style:"italic"};break;case"bolditalic":r={family:i,weight:"bold",style:"italic"};break;case"":case"normal":r={family:i}}null!==r&&(r.ref={name:i,style:t},n.push(r))}))})),n}(t.getFontList());l=function(t){for(var n={},i=0;i<t.length;++i){var r=An(t[i]),e=r.family,s=r.stretch,o=r.style,a=r.weight;n[e]=n[e]||{},n[e][s]=n[e][s]||{},n[e][s][o]=n[e][s][o]||{},n[e][s][o][a]=r}return n}(i.concat(n))}return l}var w=null;Object.defineProperty(this,"fontFaces",{get:function(){return w},set:function(t){l=null,w=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var n;if(this.ctx.font=t,null!==(n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var i=n[1],r=n[3],e=n[4],s=n[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(e)[2];e="px"===o?Math.floor(parseFloat(e)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(e)*this.pdf.getFontSize()):Math.floor(parseFloat(e)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(e);var a=function(t){var n,i,r=[],e=t.trim();if(""===e)return Fn;if(e in Sn)return[Sn[e]];for(;""!==e;){switch(i=null,n=(e=qn(e)).charAt(0)){case'"':case"'":i=jn(e.substring(1),n);break;default:i=Mn(e)}if(null===i)return Fn;if(r.push(i[0]),""!==(e=qn(i[1]))&&","!==e.charAt(0))return Fn;e=e.replace(/^,/,"")}return r}(s);if(this.fontFaces){var u=function(t,n,i){for(var r=(i=i||{}).defaultFontFamily||"times",e=Object.assign({},kn,i.genericFontFamilies||{}),s=null,o=null,a=0;a<n.length;++a)if(e[(s=An(n[a])).family]&&(s.family=e[s.family]),t.hasOwnProperty(s.family)){o=t[s.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+xn(s)+"' and default family '"+r+"'.");if(o=function(t,n){if(n[t])return n[t];var i=Nn[t],r=yn(n,pn,i,i<=Nn.normal?-1:1);if(!r)throw new Error("Could not find a matching font-stretch value for "+t);return r}(s.stretch,o),o=function(t,n){if(n[t])return n[t];for(var i=bn[t],r=0;r<i.length;++r)if(n[i[r]])return n[i[r]];throw new Error("Could not find a matching font-style for "+t)}(s.style,o),!(o=function(t,n){if(n[t])return n[t];if(400===t&&n[500])return n[500];if(500===t&&n[400])return n[400];var i=yn(n,Ln,gn[t],t<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+t);return i}(s.weight,o)))throw new Error("Failed to resolve a font for the rule '"+xn(s)+"'.");return o}(d(this.pdf,this.fontFaces),a.map((function(t){return{family:t,stretch:"normal",weight:r,style:i}})));this.pdf.setFont(u.ref.name,u.ref.style)}else{var f="";("bold"===r||parseInt(r,10)>=700||"bold"===i)&&(f="bold"),"italic"===i&&(f+="italic"),0===f.length&&(f="normal");for(var c="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},l=0;l<a.length;l++){if(void 0!==this.pdf.internal.getFont(a[l],f,{noFallback:!0,disableWarning:!0})){c=a[l];break}if("bolditalic"===f&&void 0!==this.pdf.internal.getFont(a[l],"bold",{noFallback:!0,disableWarning:!0}))c=a[l],f="bold";else if(void 0!==this.pdf.internal.getFont(a[l],"normal",{noFallback:!0,disableWarning:!0})){c=a[l],f="normal";break}}if(""===c)for(var v=0;v<a.length;v++)if(h[a[v]]){c=h[a[v]];break}this.pdf.setFont(c=""===c?"Times":c,f)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,C.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,C.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};l.prototype.setLineDash=function(t){this.lineDash=t},l.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},l.prototype.fill=function(){g.call(this,"fill",!1)},l.prototype.stroke=function(){g.call(this,"stroke",!1)},l.prototype.beginPath=function(){this.path=[{type:"begin"}]},l.prototype.moveTo=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var i=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"mt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(t,n)},l.prototype.closePath=function(){var t=new o(0,0),n=0;for(n=this.path.length-1;-1!==n;n--)if("begin"===this.path[n].type&&"object"===u(this.path[n+1])&&"number"==typeof this.path[n+1].x){t=new o(this.path[n+1].x,this.path[n+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(t.x,t.y)},l.prototype.lineTo=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var i=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"lt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(i.x,i.y)},l.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),g.call(this,null,!0)},l.prototype.quadraticCurveTo=function(t,n,i,r){if(isNaN(i)||isNaN(r)||isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var e=this.ctx.transform.applyToPoint(new o(i,r)),s=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"qct",x1:s.x,y1:s.y,x:e.x,y:e.y}),this.ctx.lastPoint=new o(e.x,e.y)},l.prototype.bezierCurveTo=function(t,n,i,r,e,s){if(isNaN(e)||isNaN(s)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new o(e,s)),u=this.ctx.transform.applyToPoint(new o(t,n)),f=this.ctx.transform.applyToPoint(new o(i,r));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:f.x,y2:f.y,x:a.x,y:a.y}),this.ctx.lastPoint=new o(a.x,a.y)},l.prototype.arc=function(t,n,i,r,e,s){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e))throw X.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(s=Boolean(s),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new o(t,n));t=a.x,n=a.y;var u=this.ctx.transform.applyToPoint(new o(0,i)),f=this.ctx.transform.applyToPoint(new o(0,0));i=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2))}Math.abs(e-r)>=2*Math.PI&&(r=0,e=2*Math.PI),this.path.push({type:"arc",x:t,y:n,radius:i,startAngle:r,endAngle:e,counterclockwise:s})},l.prototype.arcTo=function(){throw new Error("arcTo not implemented.")},l.prototype.rect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,n),this.lineTo(t+i,n),this.lineTo(t+i,n+r),this.lineTo(t,n+r),this.lineTo(t,n),this.lineTo(t+i,n),this.lineTo(t,n)},l.prototype.fillRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var e={};"butt"!==this.lineCap&&(e.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(e.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,n,i,r),this.fill(),e.hasOwnProperty("lineCap")&&(this.lineCap=e.lineCap),e.hasOwnProperty("lineJoin")&&(this.lineJoin=e.lineJoin)}},l.prototype.strokeRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(t,n,i,r),this.stroke())},l.prototype.clearRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,n,i,r))},l.prototype.save=function(t){t="boolean"!=typeof t||t;for(var n=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("q");if(this.pdf.setPage(n),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},l.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var n=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("Q");this.pdf.setPage(n),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},l.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var v=function(t){var n,i,r,e;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))n=0,i=0,r=0,e=0;else{var s=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==s)n=parseInt(s[1]),i=parseInt(s[2]),r=parseInt(s[3]),e=1;else if(null!==(s=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))n=parseInt(s[1]),i=parseInt(s[2]),r=parseInt(s[3]),e=parseFloat(s[4]);else{if(e=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new rt(t);t=o.ok?o.toHex():"#000000"}4===t.length?(n=t.substring(1,2),n+=n,i=t.substring(2,3),i+=i,r=t.substring(3,4),r+=r):(n=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7)),n=parseInt(n,16),i=parseInt(i,16),r=parseInt(r,16)}}return{r:n,g:i,b:r,a:e,style:t}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},w=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};l.prototype.fillText=function(t,n,i,r){if(isNaN(n)||isNaN(i)||"string"!=typeof t)throw X.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!d.call(this)){var e=B(this.ctx.transform.rotation);M.call(this,{text:t,x:n,y:i,scale:this.ctx.transform.scaleX,angle:e,align:this.textAlign,maxWidth:r})}},l.prototype.strokeText=function(t,n,i,r){if(isNaN(n)||isNaN(i)||"string"!=typeof t)throw X.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){r=isNaN(r)?void 0:r;var e=B(this.ctx.transform.rotation);M.call(this,{text:t,x:n,y:i,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:e,align:this.textAlign,maxWidth:r})}},l.prototype.measureText=function(t){if("string"!=typeof t)throw X.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var n=this.pdf,i=this.pdf.internal.scaleFactor,r=n.internal.getFontSize(),e=n.getStringUnitWidth(t)*r/n.internal.scaleFactor;return new function(t){var n=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return n}}),this}({width:e*=Math.round(96*i/72*1e4)/1e4})},l.prototype.scale=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var i=new f(t,0,0,n,0,0);this.ctx.transform=this.ctx.transform.multiply(i)},l.prototype.rotate=function(t){if(isNaN(t))throw X.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var n=new f(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.translate=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var i=new f(1,0,0,1,t,n);this.ctx.transform=this.ctx.transform.multiply(i)},l.prototype.transform=function(t,n,i,r,e,s){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s))throw X.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new f(t,n,i,r,e,s);this.ctx.transform=this.ctx.transform.multiply(o)},l.prototype.setTransform=function(t,n,i,r,e,s){t=isNaN(t)?1:t,n=isNaN(n)?0:n,i=isNaN(i)?0:i,r=isNaN(r)?1:r,e=isNaN(e)?0:e,s=isNaN(s)?0:s,this.ctx.transform=new f(t,n,i,r,e,s)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};l.prototype.drawImage=function(t,n,i,r,e,s,o,u,c){var h=this.pdf.getImageProperties(t),l=1,v=1,d=1,w=1;void 0!==r&&void 0!==u&&(d=u/r,w=c/e,l=h.width/r*u/r,v=h.height/e*c/e),void 0===s&&(s=n,o=i,n=0,i=0),void 0!==r&&void 0===u&&(u=r,c=e),void 0===r&&void 0===u&&(u=h.width,c=h.height);for(var p,g=this.ctx.transform.decompose(),y=B(g.rotate.shx),k=new f,S=(k=(k=(k=k.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new a(s-n*d,o-i*w,r*l,e*v)),x=b.call(this,S),q=[],j=0;j<x.length;j+=1)-1===q.indexOf(x[j])&&q.push(x[j]);if(L(q),this.autoPaging)for(var M=q[0],E=q[q.length-1],P=M;P<E+1;P++){this.pdf.setPage(P);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===P?this.posY+this.margin[0]:this.margin[0],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],R=1===P?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(P-2)*F;if(0!==this.ctx.clip_path.length){var T=this.path;p=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(p,this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=T}var C=JSON.parse(JSON.stringify(S));C=N([C],this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset)[0];var D=(P>M||P<E)&&m.call(this);D&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,F,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",C.x,C.y,C.w,C.h,null,null,y),D&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,y)};var b=function(t,n,i){var r=[];i=i||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var e=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+e)/i)+1);break;case"arc":r.push(Math.floor((t.y+e-t.radius)/i)+1),r.push(Math.floor((t.y+e+t.radius)/i)+1);break;case"qct":var s=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((s.y+e)/i)+1),r.push(Math.floor((s.y+s.h+e)/i)+1);break;case"bct":var o=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+e)/i)+1),r.push(Math.floor((o.y+o.h+e)/i)+1);break;case"rect":r.push(Math.floor((t.y+e)/i)+1),r.push(Math.floor((t.y+t.h+e)/i)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)p.call(this);return r},p=function(){var t=this.fillStyle,n=this.strokeStyle,i=this.font,r=this.lineCap,e=this.lineWidth,s=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=n,this.font=i,this.lineCap=r,this.lineWidth=e,this.lineJoin=s},N=function(t,n,i){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=n,t[r].y2+=i;case"qct":t[r].x1+=n,t[r].y1+=i;default:t[r].x+=n,t[r].y+=i}return t},L=function(t){return t.sort((function(t,n){return t-n}))},g=function(t,n){for(var i,r,e=this.fillStyle,s=this.strokeStyle,o=this.lineCap,a=this.lineWidth,u=Math.abs(a*this.ctx.transform.scaleX),f=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),l=[],v=0;v<h.length;v++)if(void 0!==h[v].x)for(var d=b.call(this,h[v]),w=0;w<d.length;w+=1)-1===l.indexOf(d[w])&&l.push(d[w]);for(var g=0;g<l.length;g++)for(;this.pdf.internal.getNumberOfPages()<l[g];)p.call(this);if(L(l),this.autoPaging)for(var y=l[0],k=l[l.length-1],S=y;S<k+1;S++){this.pdf.setPage(S),this.fillStyle=e,this.strokeStyle=s,this.lineCap=o,this.lineWidth=u,this.lineJoin=f;var x=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],q=1===S?this.posY+this.margin[0]:this.margin[0],j=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===S?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(S-2)*j;if(0!==this.ctx.clip_path.length){var E=this.path;i=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(i,this.posX+this.margin[3],-M+q+this.ctx.prevPageLastElemOffset),A.call(this,t,!0),this.path=E}if(r=JSON.parse(JSON.stringify(c)),this.path=N(r,this.posX+this.margin[3],-M+q+this.ctx.prevPageLastElemOffset),!1===n||0===S){var P=(S>y||S<k)&&m.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],x,j,null).clip().discardPath()),A.call(this,t,n),P&&this.pdf.restoreGraphicsState()}this.lineWidth=a}else this.lineWidth=u,A.call(this,t,n),this.lineWidth=a;this.path=c},A=function(t,n){if(("stroke"!==t||n||!w.call(this))&&("stroke"===t||n||!d.call(this))){for(var i,r,e=[],s=this.path,o=0;o<s.length;o++){var a=s[o];switch(a.type){case"begin":e.push({begin:!0});break;case"close":e.push({close:!0});break;case"mt":e.push({start:a,deltas:[],abs:[]});break;case"lt":var u=e.length;if(s[o-1]&&!isNaN(s[o-1].x)&&(i=[a.x-s[o-1].x,a.y-s[o-1].y],u>0))for(;u>=0;u--)if(!0!==e[u-1].close&&!0!==e[u-1].begin){e[u-1].deltas.push(i),e[u-1].abs.push(a);break}break;case"bct":e[e.length-1].deltas.push(i=[a.x1-s[o-1].x,a.y1-s[o-1].y,a.x2-s[o-1].x,a.y2-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y]);break;case"qct":e[e.length-1].deltas.push(i=[s[o-1].x+2/3*(a.x1-s[o-1].x)-s[o-1].x,s[o-1].y+2/3*(a.y1-s[o-1].y)-s[o-1].y,a.x+2/3*(a.x1-a.x)-s[o-1].x,a.y+2/3*(a.y1-a.y)-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y]);break;case"arc":e.push({deltas:[],abs:[],arc:!0}),Array.isArray(e[e.length-1].abs)&&e[e.length-1].abs.push(a)}}r=n?null:"stroke"===t?"stroke":"fill";for(var f=!1,c=0;c<e.length;c++)if(e[c].arc)for(var h=e[c].abs,l=0;l<h.length;l++){var v=h[l];"arc"===v.type?S.call(this,v.x,v.y,v.radius,v.startAngle,v.endAngle,v.counterclockwise,void 0,n,!f):E.call(this,v.x,v.y),f=!0}else!0===e[c].close?(this.pdf.internal.out("h"),f=!1):!0!==e[c].begin&&(P.call(this,e[c].deltas,e[c].start.x,e[c].start.y),f=!0);r&&x.call(this,r),n&&q.call(this)}},y=function(t){var n=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,i=n*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-i;case"top":return t+n-i;case"hanging":return t+n-2*i;case"middle":return t+n/2-i;default:return t}},k=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};l.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,n){this.colorStops.push([t,n])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},l.prototype.createPattern=function(){return this.createLinearGradient()},l.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,n,i,r,e,s,o,a,u){for(var f=I.call(this,i,r,e,s),c=0;c<f.length;c++){var h=f[c];0===c&&(u?j.call(this,h.x1+t,h.y1+n):E.call(this,h.x1+t,h.y1+n)),O.call(this,t,n,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?q.call(this):x.call(this,o)},x=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},q=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(t,n){this.pdf.internal.out(i(t)+" "+r(n)+" m")},M=function(t){var n;switch(t.align){case"right":case"end":n="right";break;case"center":n="center";break;default:n="left"}var i=this.pdf.getTextDimensions(t.text),r=y.call(this,t.y),e=k.call(this,r)-i.h,s=this.ctx.transform.applyToPoint(new o(t.x,r)),u=this.ctx.transform.decompose(),c=new f;c=(c=(c=c.multiply(u.translate)).multiply(u.skew)).multiply(u.scale);for(var h,l,v,d=this.ctx.transform.applyToRectangle(new a(t.x,r,i.w,i.h)),w=c.applyToRectangle(new a(t.x,e,i.w,i.h)),p=b.call(this,w),g=[],S=0;S<p.length;S+=1)-1===g.indexOf(p[S])&&g.push(p[S]);if(L(g),this.autoPaging)for(var x=g[0],q=g[g.length-1],j=x;j<q+1;j++){this.pdf.setPage(j);var M=1===j?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.margin[2],P=E-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],I=O-this.margin[3],F=1===j?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(j-2)*P;if(0!==this.ctx.clip_path.length){var B=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(h,this.posX+this.margin[3],-1*F+M),A.call(this,"fill",!0),this.path=B}var R=N([JSON.parse(JSON.stringify(w))],this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(l=this.pdf.internal.getFontSize(),this.pdf.setFontSize(l*t.scale),this.lineWidth=(v=this.lineWidth)*t.scale);var T="text"!==this.autoPaging;if(T||R.y+R.h<=E){if(T||R.y>=M&&R.x<=O){var C=T?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-R.x)[0],D=N([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset)[0],z=T&&(j>x||j<q)&&m.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,P,null).clip().discardPath()),this.pdf.text(C,D.x,D.y,{angle:t.angle,align:n,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else R.y<E&&(this.ctx.prevPageLastElemOffset+=E-R.y);t.scale>=.01&&(this.pdf.setFontSize(l),this.lineWidth=v)}else t.scale>=.01&&(l=this.pdf.internal.getFontSize(),this.pdf.setFontSize(l*t.scale),this.lineWidth=(v=this.lineWidth)*t.scale),this.pdf.text(t.text,s.x+this.posX,s.y+this.posY,{angle:t.angle,align:n,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(l),this.lineWidth=v)},E=function(t,n,e,s){s=s||0,this.pdf.internal.out(i(t+(e=e||0))+" "+r(n+s)+" l")},P=function(t,n,i){return this.pdf.lines(t,n,i,null,null)},O=function(t,i,r,o,a,u,f,c){this.pdf.internal.out([n(e(r+t)),n(s(o+i)),n(e(a+t)),n(s(u+i)),n(e(f+t)),n(s(c+i)),"c"].join(" "))},I=function(t,n,i,r){for(var e=2*Math.PI,s=Math.PI/2;n>i;)n-=e;var o=Math.abs(i-n);o<e&&r&&(o=e-o);for(var a=[],u=r?-1:1,f=n;o>1e-5;){var c=f+u*Math.min(o,s);a.push(F.call(this,t,f,c)),o-=Math.abs(c-f),f=c}return a},F=function(t,n,i){var r=(i-n)/2,e=t*Math.cos(r),s=t*Math.sin(r),o=e,a=-s,u=o*o+a*a,f=u+o*e+a*s,c=4/3*(Math.sqrt(2*u*f)-f)/(o*s-a*e),h=o-c*a,l=a+c*o,v=h,d=-l,w=r+n,m=Math.cos(w),b=Math.sin(w);return{x1:t*Math.cos(n),y1:t*Math.sin(n),x2:h*m-l*b,y2:h*b+l*m,x3:v*m-d*b,y3:v*b+d*m,x4:t*Math.cos(i),y4:t*Math.sin(i)}},B=function(t){return 180*t/Math.PI},R=function(t,n,i,r,e,s){var o=t+.5*(i-t),u=n+.5*(r-n),f=e+.5*(i-e),c=s+.5*(r-s),h=Math.min(t,e,o,f),l=Math.max(t,e,o,f),v=Math.min(n,s,u,c),d=Math.max(n,s,u,c);return new a(h,v,l-h,d-v)},T=function(t,n,i,r,e,s,o,u){var f,c,h,l,v,d,w,m,b,p,N,L,g,A,y=i-t,k=r-n,S=e-i,x=s-r,q=o-e,j=u-s;for(c=0;c<41;c++)b=(w=(h=t+(f=c/40)*y)+f*((v=i+f*S)-h))+f*(v+f*(e+f*q-v)-w),p=(m=(l=n+f*k)+f*((d=r+f*x)-l))+f*(d+f*(s+f*j-d)-m),0==c?(N=b,L=p,g=b,A=p):(N=Math.min(N,b),L=Math.min(L,p),g=Math.max(g,b),A=Math.max(A,p));return new a(Math.round(N),Math.round(L),Math.round(g-N),Math.round(A-L))},C=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}}}(qt.API),
|
134
|
+
function(t){var n=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(n){t=n}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(t){i=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var e={};Object.defineProperty(this,"style",{get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(t,n){var i;if("2d"!==(t=t||"2d"))return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(qt.API),function(t){var n={left:0,top:0,bottom:0,right:0},i=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),e.call(this))},e=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(n){t=n}});var n=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var e=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var s=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return s},set:function(t){s=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,n){r.call(this);var i=(n=n||{}).fontSize||this.getFontSize(),e=n.font||this.getFont(),s=n.scaleFactor||this.internal.scaleFactor,o=0,a=0,u=0,f=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var c=n.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,n){return t.concat(f.splitTextToSize(n,c))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(u=this.getStringUnitWidth(t[h],{font:e})*i)&&(o=u);return 0!==o&&(a=t.length),{w:o/=s,h:Math.max((a*i*this.getLineHeightFactor()-i*(this.getLineHeightFactor()-1))/s,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new s(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var t;t=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var e=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,a=this.internal.__cell__.margins||n,u=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,f&&u&&(this.printHeaderRow(t.lineNumber,!0),t.y+=u[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===i?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:"center",baseline:"top",maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:"left",baseline:"top",maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,i,f,c,h){if(r.call(this),!f)throw new Error("No data for PDF table.");var l,v,d,w,m=[],b=[],p=[],N={},L={},g=[],A=[],y=(h=h||{}).autoSize||!1,k=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,x=h.margins||Object.assign({width:this.getPageWidth()},n),q="number"==typeof h.padding?h.padding:3,j=h.headerBackgroundColor||"#c8c8c8",M=h.headerTextColor||"#000";if(e.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=q,this.internal.__cell__.headerBackgroundColor=j,this.internal.__cell__.headerTextColor=M,this.setFontSize(S),null==c)b=m=Object.keys(f[0]),p=m.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===u(c[0]))for(m=c.map((function(t){return t.name})),b=c.map((function(t){return t.prompt||t.name||""})),p=c.map((function(t){return t.align||"left"})),l=0;l<c.length;l+=1)L[c[l].name]=c[l].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(b=m=c,p=m.map((function(){return"left"})));if(y||Array.isArray(c)&&"string"==typeof c[0])for(l=0;l<m.length;l+=1){for(N[w=m[l]]=f.map((function(t){return t[w]})),this.setFont(void 0,"bold"),g.push(this.getTextDimensions(b[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=N[w],this.setFont(void 0,"normal"),d=0;d<v.length;d+=1)g.push(this.getTextDimensions(v[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[w]=Math.max.apply(null,g)+q+q,g=[]}if(k){var E={};for(l=0;l<m.length;l+=1)E[m[l]]={},E[m[l]].text=b[l],E[m[l]].align=p[l];var P=a.call(this,E,L);A=m.map((function(n){return new s(t,i,L[n],P,E[n].text,void 0,E[n].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var O=c.reduce((function(t,n){return t[n.name]=n.align,t}),{});for(l=0;l<f.length;l+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:l,data:f[l]},this);var I=a.call(this,f[l],L);for(d=0;d<m.length;d+=1){var F=f[l][m[d]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:l,col:d,data:F},this),o.call(this,new s(t,i,L[m[d]],I,F,l+2,O[m[d]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=i,this};var a=function(t,n){var i=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,e=this.internal.scaleFactor;return Object.keys(t).map((function(r){var e=t[r];return this.splitTextToSize(e.hasOwnProperty("text")?e.text:e,n[r]-i-i)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/e+i+i}),this).reduce((function(t,n){return Math.max(t,n)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,n){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var e;if(i=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){e=this.internal.__cell__.tableHeaderRow[f].clone(),n&&(e.y=this.internal.__cell__.margins.top||0,u.push(e)),e.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,e),this.setTextColor(c)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),i=!1}}(qt.API);var bn={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pn=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Nn=mn(pn),Ln=[100,200,300,400,500,600,700,800,900],gn=mn(Ln);function An(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),i=function(t){return bn[t=t||"normal"]?t:"normal"}(t.style),r=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),e=function(t){return"number"==typeof Nn[t=t||"normal"]?t:"normal"}(t.stretch);return{family:n,style:i,weight:r,stretch:e,src:t.src||[],ref:t.ref||{name:n,style:[e,i,r].join(" ")}}}function yn(t,n,i,r){var e;for(e=i;e>=0&&e<n.length;e+=r)if(t[n[e]])return t[n[e]];for(e=i;e>=0&&e<n.length;e-=r)if(t[n[e]])return t[n[e]]}var kn={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Sn={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function xn(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function qn(t){return t.trimLeft()}function jn(t,n){for(var i=0;i<t.length;){if(t.charAt(i)===n)return[t.substring(0,i),t.substring(i+1)];i+=1}return null}function Mn(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===n?null:[n[0],t.substring(n[0].length)]}var En,Pn,On,In,Fn=["times"];!function(t){var n,i,r,e,s,o,a,f,c,h=function(t){return this.isStrokeTransparent=(t=t||{}).isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new f,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new o,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new o,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new l(this),n=this.internal.f2,i=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,e=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,f=this.internal.Matrix,c=new h}]);var l=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var n=t;Object.defineProperty(this,"pdf",{get:function(){return n}});var i=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return i},set:function(t){i=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var e=0;Object.defineProperty(this,"posX",{get:function(){return e},set:function(t){isNaN(t)||(e=t)}});var s=0;Object.defineProperty(this,"posY",{get:function(){return s},set:function(t){isNaN(t)||(s=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(t){var n;"number"==typeof t?n=[t,t,t,t]:((n=new Array(4))[0]=t[0],n[1]=t.length>=2?t[1]:n[0],n[2]=t.length>=3?t[2]:n[0],n[3]=t.length>=4?t[3]:n[1]),c.margin=n}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var u=[];Object.defineProperty(this,"pageBreaks",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof h&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var f=[];Object.defineProperty(this,"ctxStack",{get:function(){return f},set:function(t){f=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var n;n=v(t),this.ctx.fillStyle=n.style,this.ctx.isFillTransparent=0===n.a,this.ctx.fillOpacity=n.a,this.pdf.setFillColor(n.r,n.g,n.b,{a:n.a}),this.pdf.setTextColor(n.r,n.g,n.b,{a:n.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var n=v(t);this.ctx.strokeStyle=n.style,this.ctx.isStrokeTransparent=0===n.a,this.ctx.strokeOpacity=n.a,0===n.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(n.r,n.g,n.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var l=null;function d(t,n){if(null===l){var i=function(t){var n=[];return Object.keys(t).forEach((function(i){t[i].forEach((function(t){var r=null;switch(t){case"bold":r={family:i,weight:"bold"};break;case"italic":r={family:i,style:"italic"};break;case"bolditalic":r={family:i,weight:"bold",style:"italic"};break;case"":case"normal":r={family:i}}null!==r&&(r.ref={name:i,style:t},n.push(r))}))})),n}(t.getFontList());l=function(t){for(var n={},i=0;i<t.length;++i){var r=An(t[i]),e=r.family,s=r.stretch,o=r.style,a=r.weight;n[e]=n[e]||{},n[e][s]=n[e][s]||{},n[e][s][o]=n[e][s][o]||{},n[e][s][o][a]=r}return n}(i.concat(n))}return l}var w=null;Object.defineProperty(this,"fontFaces",{get:function(){return w},set:function(t){l=null,w=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var n;if(this.ctx.font=t,null!==(n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var i=n[1],r=n[3],e=n[4],s=n[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(e)[2];e="px"===o?Math.floor(parseFloat(e)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(e)*this.pdf.getFontSize()):Math.floor(parseFloat(e)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(e);var a=function(t){var n,i,r=[],e=t.trim();if(""===e)return Fn;if(e in Sn)return[Sn[e]];for(;""!==e;){switch(i=null,n=(e=qn(e)).charAt(0)){case'"':case"'":i=jn(e.substring(1),n);break;default:i=Mn(e)}if(null===i)return Fn;if(r.push(i[0]),""!==(e=qn(i[1]))&&","!==e.charAt(0))return Fn;e=e.replace(/^,/,"")}return r}(s);if(this.fontFaces){var u=function(t,n,i){for(var r=(i=i||{}).defaultFontFamily||"times",e=Object.assign({},kn,i.genericFontFamilies||{}),s=null,o=null,a=0;a<n.length;++a)if(e[(s=An(n[a])).family]&&(s.family=e[s.family]),t.hasOwnProperty(s.family)){o=t[s.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+xn(s)+"' and default family '"+r+"'.");if(o=function(t,n){if(n[t])return n[t];var i=Nn[t],r=yn(n,pn,i,i<=Nn.normal?-1:1);if(!r)throw new Error("Could not find a matching font-stretch value for "+t);return r}(s.stretch,o),o=function(t,n){if(n[t])return n[t];for(var i=bn[t],r=0;r<i.length;++r)if(n[i[r]])return n[i[r]];throw new Error("Could not find a matching font-style for "+t)}(s.style,o),!(o=function(t,n){if(n[t])return n[t];if(400===t&&n[500])return n[500];if(500===t&&n[400])return n[400];var i=yn(n,Ln,gn[t],t<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+t);return i}(s.weight,o)))throw new Error("Failed to resolve a font for the rule '"+xn(s)+"'.");return o}(d(this.pdf,this.fontFaces),a.map((function(t){return{family:t,stretch:"normal",weight:r,style:i}})));this.pdf.setFont(u.ref.name,u.ref.style)}else{var f="";("bold"===r||parseInt(r,10)>=700||"bold"===i)&&(f="bold"),"italic"===i&&(f+="italic"),0===f.length&&(f="normal");for(var c="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},l=0;l<a.length;l++){if(void 0!==this.pdf.internal.getFont(a[l],f,{noFallback:!0,disableWarning:!0})){c=a[l];break}if("bolditalic"===f&&void 0!==this.pdf.internal.getFont(a[l],"bold",{noFallback:!0,disableWarning:!0}))c=a[l],f="bold";else if(void 0!==this.pdf.internal.getFont(a[l],"normal",{noFallback:!0,disableWarning:!0})){c=a[l],f="normal";break}}if(""===c)for(var v=0;v<a.length;v++)if(h[a[v]]){c=h[a[v]];break}this.pdf.setFont(c=""===c?"Times":c,f)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,C.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,C.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};l.prototype.setLineDash=function(t){this.lineDash=t},l.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},l.prototype.fill=function(){g.call(this,"fill",!1)},l.prototype.stroke=function(){g.call(this,"stroke",!1)},l.prototype.beginPath=function(){this.path=[{type:"begin"}]},l.prototype.moveTo=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var i=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"mt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(t,n)},l.prototype.closePath=function(){var t=new o(0,0),n=0;for(n=this.path.length-1;-1!==n;n--)if("begin"===this.path[n].type&&"object"===u(this.path[n+1])&&"number"==typeof this.path[n+1].x){t=new o(this.path[n+1].x,this.path[n+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(t.x,t.y)},l.prototype.lineTo=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var i=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"lt",x:i.x,y:i.y}),this.ctx.lastPoint=new o(i.x,i.y)},l.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),g.call(this,null,!0)},l.prototype.quadraticCurveTo=function(t,n,i,r){if(isNaN(i)||isNaN(r)||isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var e=this.ctx.transform.applyToPoint(new o(i,r)),s=this.ctx.transform.applyToPoint(new o(t,n));this.path.push({type:"qct",x1:s.x,y1:s.y,x:e.x,y:e.y}),this.ctx.lastPoint=new o(e.x,e.y)},l.prototype.bezierCurveTo=function(t,n,i,r,e,s){if(isNaN(e)||isNaN(s)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new o(e,s)),u=this.ctx.transform.applyToPoint(new o(t,n)),f=this.ctx.transform.applyToPoint(new o(i,r));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:f.x,y2:f.y,x:a.x,y:a.y}),this.ctx.lastPoint=new o(a.x,a.y)},l.prototype.arc=function(t,n,i,r,e,s){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e))throw X.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(s=Boolean(s),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new o(t,n));t=a.x,n=a.y;var u=this.ctx.transform.applyToPoint(new o(0,i)),f=this.ctx.transform.applyToPoint(new o(0,0));i=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2))}Math.abs(e-r)>=2*Math.PI&&(r=0,e=2*Math.PI),this.path.push({type:"arc",x:t,y:n,radius:i,startAngle:r,endAngle:e,counterclockwise:s})},l.prototype.arcTo=function(){throw new Error("arcTo not implemented.")},l.prototype.rect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,n),this.lineTo(t+i,n),this.lineTo(t+i,n+r),this.lineTo(t,n+r),this.lineTo(t,n),this.lineTo(t+i,n),this.lineTo(t,n)},l.prototype.fillRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var e={};"butt"!==this.lineCap&&(e.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(e.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,n,i,r),this.fill(),e.hasOwnProperty("lineCap")&&(this.lineCap=e.lineCap),e.hasOwnProperty("lineJoin")&&(this.lineJoin=e.lineJoin)}},l.prototype.strokeRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(t,n,i,r),this.stroke())},l.prototype.clearRect=function(t,n,i,r){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw X.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,n,i,r))},l.prototype.save=function(t){t="boolean"!=typeof t||t;for(var n=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("q");if(this.pdf.setPage(n),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},l.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var n=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("Q");this.pdf.setPage(n),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},l.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var v=function(t){var n,i,r,e;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))n=0,i=0,r=0,e=0;else{var s=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==s)n=parseInt(s[1]),i=parseInt(s[2]),r=parseInt(s[3]),e=1;else if(null!==(s=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))n=parseInt(s[1]),i=parseInt(s[2]),r=parseInt(s[3]),e=parseFloat(s[4]);else{if(e=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new rt(t);t=o.ok?o.toHex():"#000000"}4===t.length?(n=t.substring(1,2),n+=n,i=t.substring(2,3),i+=i,r=t.substring(3,4),r+=r):(n=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7)),n=parseInt(n,16),i=parseInt(i,16),r=parseInt(r,16)}}return{r:n,g:i,b:r,a:e,style:t}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},w=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};l.prototype.fillText=function(t,n,i,r){if(isNaN(n)||isNaN(i)||"string"!=typeof t)throw X.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!d.call(this)){var e=B(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;M.call(this,{text:t,x:n,y:i,scale:s,angle:e,align:this.textAlign,maxWidth:r})}},l.prototype.strokeText=function(t,n,i,r){if(isNaN(n)||isNaN(i)||"string"!=typeof t)throw X.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){r=isNaN(r)?void 0:r;var e=B(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;M.call(this,{text:t,x:n,y:i,scale:s,renderingMode:"stroke",angle:e,align:this.textAlign,maxWidth:r})}},l.prototype.measureText=function(t){if("string"!=typeof t)throw X.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var n=this.pdf,i=this.pdf.internal.scaleFactor,r=n.internal.getFontSize(),e=n.getStringUnitWidth(t)*r/n.internal.scaleFactor,s=function(t){var n=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return n}}),this};return new s({width:e*=Math.round(96*i/72*1e4)/1e4})},l.prototype.scale=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var i=new f(t,0,0,n,0,0);this.ctx.transform=this.ctx.transform.multiply(i)},l.prototype.rotate=function(t){if(isNaN(t))throw X.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var n=new f(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.translate=function(t,n){if(isNaN(t)||isNaN(n))throw X.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var i=new f(1,0,0,1,t,n);this.ctx.transform=this.ctx.transform.multiply(i)},l.prototype.transform=function(t,n,i,r,e,s){if(isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(e)||isNaN(s))throw X.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new f(t,n,i,r,e,s);this.ctx.transform=this.ctx.transform.multiply(o)},l.prototype.setTransform=function(t,n,i,r,e,s){t=isNaN(t)?1:t,n=isNaN(n)?0:n,i=isNaN(i)?0:i,r=isNaN(r)?1:r,e=isNaN(e)?0:e,s=isNaN(s)?0:s,this.ctx.transform=new f(t,n,i,r,e,s)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};l.prototype.drawImage=function(t,n,i,r,e,s,o,u,c){var h=this.pdf.getImageProperties(t),l=1,v=1,d=1,w=1;void 0!==r&&void 0!==u&&(d=u/r,w=c/e,l=h.width/r*u/r,v=h.height/e*c/e),void 0===s&&(s=n,o=i,n=0,i=0),void 0!==r&&void 0===u&&(u=r,c=e),void 0===r&&void 0===u&&(u=h.width,c=h.height);for(var p,g=this.ctx.transform.decompose(),y=B(g.rotate.shx),k=new f,S=(k=(k=(k=k.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new a(s-n*d,o-i*w,r*l,e*v)),x=b.call(this,S),q=[],j=0;j<x.length;j+=1)-1===q.indexOf(x[j])&&q.push(x[j]);if(L(q),this.autoPaging)for(var M=q[0],E=q[q.length-1],P=M;P<E+1;P++){this.pdf.setPage(P);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===P?this.posY+this.margin[0]:this.margin[0],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],R=1===P?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(P-2)*F;if(0!==this.ctx.clip_path.length){var T=this.path;p=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(p,this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=T}var C=JSON.parse(JSON.stringify(S));C=N([C],this.posX+this.margin[3],-R+I+this.ctx.prevPageLastElemOffset)[0];var D=(P>M||P<E)&&m.call(this);D&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,F,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",C.x,C.y,C.w,C.h,null,null,y),D&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,y)};var b=function(t,n,i){var r=[];i=i||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var e=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+e)/i)+1);break;case"arc":r.push(Math.floor((t.y+e-t.radius)/i)+1),r.push(Math.floor((t.y+e+t.radius)/i)+1);break;case"qct":var s=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((s.y+e)/i)+1),r.push(Math.floor((s.y+s.h+e)/i)+1);break;case"bct":var o=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+e)/i)+1),r.push(Math.floor((o.y+o.h+e)/i)+1);break;case"rect":r.push(Math.floor((t.y+e)/i)+1),r.push(Math.floor((t.y+t.h+e)/i)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)p.call(this);return r},p=function(){var t=this.fillStyle,n=this.strokeStyle,i=this.font,r=this.lineCap,e=this.lineWidth,s=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=n,this.font=i,this.lineCap=r,this.lineWidth=e,this.lineJoin=s},N=function(t,n,i){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=n,t[r].y2+=i;case"qct":t[r].x1+=n,t[r].y1+=i;default:t[r].x+=n,t[r].y+=i}return t},L=function(t){return t.sort((function(t,n){return t-n}))},g=function(t,n){for(var i,r,e=this.fillStyle,s=this.strokeStyle,o=this.lineCap,a=this.lineWidth,u=Math.abs(a*this.ctx.transform.scaleX),f=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),l=[],v=0;v<h.length;v++)if(void 0!==h[v].x)for(var d=b.call(this,h[v]),w=0;w<d.length;w+=1)-1===l.indexOf(d[w])&&l.push(d[w]);for(var g=0;g<l.length;g++)for(;this.pdf.internal.getNumberOfPages()<l[g];)p.call(this);if(L(l),this.autoPaging)for(var y=l[0],k=l[l.length-1],S=y;S<k+1;S++){this.pdf.setPage(S),this.fillStyle=e,this.strokeStyle=s,this.lineCap=o,this.lineWidth=u,this.lineJoin=f;var x=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],q=1===S?this.posY+this.margin[0]:this.margin[0],j=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===S?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(S-2)*j;if(0!==this.ctx.clip_path.length){var E=this.path;i=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(i,this.posX+this.margin[3],-M+q+this.ctx.prevPageLastElemOffset),A.call(this,t,!0),this.path=E}if(r=JSON.parse(JSON.stringify(c)),this.path=N(r,this.posX+this.margin[3],-M+q+this.ctx.prevPageLastElemOffset),!1===n||0===S){var P=(S>y||S<k)&&m.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],x,j,null).clip().discardPath()),A.call(this,t,n),P&&this.pdf.restoreGraphicsState()}this.lineWidth=a}else this.lineWidth=u,A.call(this,t,n),this.lineWidth=a;this.path=c},A=function(t,n){if(("stroke"!==t||n||!w.call(this))&&("stroke"===t||n||!d.call(this))){for(var i,r,e=[],s=this.path,o=0;o<s.length;o++){var a=s[o];switch(a.type){case"begin":e.push({begin:!0});break;case"close":e.push({close:!0});break;case"mt":e.push({start:a,deltas:[],abs:[]});break;case"lt":var u=e.length;if(s[o-1]&&!isNaN(s[o-1].x)&&(i=[a.x-s[o-1].x,a.y-s[o-1].y],u>0))for(;u>=0;u--)if(!0!==e[u-1].close&&!0!==e[u-1].begin){e[u-1].deltas.push(i),e[u-1].abs.push(a);break}break;case"bct":e[e.length-1].deltas.push(i=[a.x1-s[o-1].x,a.y1-s[o-1].y,a.x2-s[o-1].x,a.y2-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y]);break;case"qct":e[e.length-1].deltas.push(i=[s[o-1].x+2/3*(a.x1-s[o-1].x)-s[o-1].x,s[o-1].y+2/3*(a.y1-s[o-1].y)-s[o-1].y,a.x+2/3*(a.x1-a.x)-s[o-1].x,a.y+2/3*(a.y1-a.y)-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y]);break;case"arc":e.push({deltas:[],abs:[],arc:!0}),Array.isArray(e[e.length-1].abs)&&e[e.length-1].abs.push(a)}}r=n?null:"stroke"===t?"stroke":"fill";for(var f=!1,c=0;c<e.length;c++)if(e[c].arc)for(var h=e[c].abs,l=0;l<h.length;l++){var v=h[l];"arc"===v.type?S.call(this,v.x,v.y,v.radius,v.startAngle,v.endAngle,v.counterclockwise,void 0,n,!f):E.call(this,v.x,v.y),f=!0}else!0===e[c].close?(this.pdf.internal.out("h"),f=!1):!0!==e[c].begin&&(P.call(this,e[c].deltas,e[c].start.x,e[c].start.y),f=!0);r&&x.call(this,r),n&&q.call(this)}},y=function(t){var n=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,i=n*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-i;case"top":return t+n-i;case"hanging":return t+n-2*i;case"middle":return t+n/2-i;default:return t}},k=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};l.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,n){this.colorStops.push([t,n])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},l.prototype.createPattern=function(){return this.createLinearGradient()},l.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,n,i,r,e,s,o,a,u){for(var f=I.call(this,i,r,e,s),c=0;c<f.length;c++){var h=f[c];0===c&&(u?j.call(this,h.x1+t,h.y1+n):E.call(this,h.x1+t,h.y1+n)),O.call(this,t,n,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?q.call(this):x.call(this,o)},x=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},q=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(t,n){this.pdf.internal.out(i(t)+" "+r(n)+" m")},M=function(t){var n;switch(t.align){case"right":case"end":n="right";break;case"center":n="center";break;default:n="left"}var i=this.pdf.getTextDimensions(t.text),r=y.call(this,t.y),e=k.call(this,r)-i.h,s=this.ctx.transform.applyToPoint(new o(t.x,r)),u=this.ctx.transform.decompose(),c=new f;c=(c=(c=c.multiply(u.translate)).multiply(u.skew)).multiply(u.scale);for(var h,l,v,d=this.ctx.transform.applyToRectangle(new a(t.x,r,i.w,i.h)),w=c.applyToRectangle(new a(t.x,e,i.w,i.h)),p=b.call(this,w),g=[],S=0;S<p.length;S+=1)-1===g.indexOf(p[S])&&g.push(p[S]);if(L(g),this.autoPaging)for(var x=g[0],q=g[g.length-1],j=x;j<q+1;j++){this.pdf.setPage(j);var M=1===j?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.margin[2],P=E-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],I=O-this.margin[3],F=1===j?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(j-2)*P;if(0!==this.ctx.clip_path.length){var B=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(h,this.posX+this.margin[3],-1*F+M),A.call(this,"fill",!0),this.path=B}var R=N([JSON.parse(JSON.stringify(w))],this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(l=this.pdf.internal.getFontSize(),this.pdf.setFontSize(l*t.scale),this.lineWidth=(v=this.lineWidth)*t.scale);var T="text"!==this.autoPaging;if(T||R.y+R.h<=E){if(T||R.y>=M&&R.x<=O){var C=T?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-R.x)[0],D=N([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset)[0],z=T&&(j>x||j<q)&&m.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,P,null).clip().discardPath()),this.pdf.text(C,D.x,D.y,{angle:t.angle,align:n,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else R.y<E&&(this.ctx.prevPageLastElemOffset+=E-R.y);t.scale>=.01&&(this.pdf.setFontSize(l),this.lineWidth=v)}else t.scale>=.01&&(l=this.pdf.internal.getFontSize(),this.pdf.setFontSize(l*t.scale),this.lineWidth=(v=this.lineWidth)*t.scale),this.pdf.text(t.text,s.x+this.posX,s.y+this.posY,{angle:t.angle,align:n,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(l),this.lineWidth=v)},E=function(t,n,e,s){s=s||0,this.pdf.internal.out(i(t+(e=e||0))+" "+r(n+s)+" l")},P=function(t,n,i){return this.pdf.lines(t,n,i,null,null)},O=function(t,i,r,o,a,u,f,c){this.pdf.internal.out([n(e(r+t)),n(s(o+i)),n(e(a+t)),n(s(u+i)),n(e(f+t)),n(s(c+i)),"c"].join(" "))},I=function(t,n,i,r){for(var e=2*Math.PI,s=Math.PI/2;n>i;)n-=e;var o=Math.abs(i-n);o<e&&r&&(o=e-o);for(var a=[],u=r?-1:1,f=n;o>1e-5;){var c=f+u*Math.min(o,s);a.push(F.call(this,t,f,c)),o-=Math.abs(c-f),f=c}return a},F=function(t,n,i){var r=(i-n)/2,e=t*Math.cos(r),s=t*Math.sin(r),o=e,a=-s,u=o*o+a*a,f=u+o*e+a*s,c=4/3*(Math.sqrt(2*u*f)-f)/(o*s-a*e),h=o-c*a,l=a+c*o,v=h,d=-l,w=r+n,m=Math.cos(w),b=Math.sin(w);return{x1:t*Math.cos(n),y1:t*Math.sin(n),x2:h*m-l*b,y2:h*b+l*m,x3:v*m-d*b,y3:v*b+d*m,x4:t*Math.cos(i),y4:t*Math.sin(i)}},B=function(t){return 180*t/Math.PI},R=function(t,n,i,r,e,s){var o=t+.5*(i-t),u=n+.5*(r-n),f=e+.5*(i-e),c=s+.5*(r-s),h=Math.min(t,e,o,f),l=Math.max(t,e,o,f),v=Math.min(n,s,u,c),d=Math.max(n,s,u,c);return new a(h,v,l-h,d-v)},T=function(t,n,i,r,e,s,o,u){var f,c,h,l,v,d,w,m,b,p,N,L,g,A,y=i-t,k=r-n,S=e-i,x=s-r,q=o-e,j=u-s;for(c=0;c<41;c++)b=(w=(h=t+(f=c/40)*y)+f*((v=i+f*S)-h))+f*(v+f*(e+f*q-v)-w),p=(m=(l=n+f*k)+f*((d=r+f*x)-l))+f*(d+f*(s+f*j-d)-m),0==c?(N=b,L=p,g=b,A=p):(N=Math.min(N,b),L=Math.min(L,p),g=Math.max(g,b),A=Math.max(A,p));return new a(Math.round(N),Math.round(L),Math.round(g-N),Math.round(A-L))},C=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}}}(qt.API),
|
135
135
|
/**
|
136
136
|
* @license
|
137
137
|
* jsPDF filters PlugIn
|
@@ -149,7 +149,7 @@ function(){var t=function(t){var n,i,r,e,s,o,a,u,f,c;for(/[^\x00-\xFF]/.test(t),
|
|
149
149
|
* Licensed under the MIT License.
|
150
150
|
* http://opensource.org/licenses/mit-license
|
151
151
|
*/
|
152
|
-
function(t){t.loadFile=function(t,n,i){return function(t,n,i){n=!1!==n,i="function"==typeof i?i:function(){};var r=void 0;try{r=function(t,n,i){var r=new XMLHttpRequest,e=0,s=function(t){var n=t.length,i=[],r=String.fromCharCode;for(e=0;e<n;e+=1)i.push(r(255&t.charCodeAt(e)));return i.join("")};if(r.open("GET",t,!n),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===n&&(r.onload=function(){i(200===r.status?s(this.responseText):void 0)}),r.send(null),n&&200===r.status)return s(r.responseText)}(t,n,i)}catch(t){}return r}(t,n,i)},t.loadImageFile=t.loadFile}(qt.API),function(t){function n(){return(Y.html2canvas?Promise.resolve(Y.html2canvas):import("./p-3cce003d.js").then((function(t){return t.h}))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(Y.DOMPurify?Promise.resolve(Y.DOMPurify):import("./p-bf9e18d4.js").then((function(t){return t.p}))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var r=function(t){var n=u(t);return"undefined"===n?"undefined":"string"===n||t instanceof String?"string":"number"===n||t instanceof Number?"number":"function"===n||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===n?"object":"unknown"},e=function(t,n){var i=document.createElement(t);for(var r in n.className&&(i.className=n.className),n.innerHTML&&n.dompurify&&(i.innerHTML=n.dompurify.sanitize(n.innerHTML)),n.style)i.style[r]=n.style[r];return i},s=function t(n){var i=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),i);return(r=r.setProgress(1,t,1,[t])).set(n)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,n){return t.__proto__=n||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,n){return this.then((function(){switch(n=n||function(t){switch(r(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).then((function(n){return this.set({src:e("div",{innerHTML:t,dompurify:n})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},n=function t(n,i){for(var r=3===n.nodeType?document.createTextNode(n.nodeValue):n.cloneNode(!1),e=n.firstChild;e;e=e.nextSibling)!0!==i&&1===e.nodeType&&"SCRIPT"===e.nodeName||r.appendChild(t(e,i));return 1===n.nodeType&&("CANVAS"===n.nodeName?(r.width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0)):"TEXTAREA"!==n.nodeName&&"SELECT"!==n.nodeName||(r.value=n.value),r.addEventListener("load",(function(){r.scrollTop=n.scrollTop,r.scrollLeft=n.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===n.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=e("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=e("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.container.firstChild.appendChild(e("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then((function(t){var n=Object.assign({},this.opt.html2canvas);return delete n.onrendered,t(this.prop.container,n)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then((function(t){var n=this.opt.jsPDF,i=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,e=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,n.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,n.context2d.posX=this.opt.x,n.context2d.posY=this.opt.y,n.context2d.margin=this.opt.margin,n.context2d.fontFaces=i,i)for(var s=0;s<i.length;++s){var o=i[s],a=o.src.find((function(t){return"truetype"===t.format}));a&&n.addFont(a.url,o.ref.name,o.ref.style)}return e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,n.context2d.save(!0),t(this.prop.container,e)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,n,i){return"img"===(i=i||"pdf").toLowerCase()||"image"===i.toLowerCase()?this.outputImg(t,n):this.outputPdf(t,n)},s.prototype.outputPdf=function(t,n){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,n)}))},s.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},s.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==r(t))return this;var n=Object.keys(t||{}).map((function(n){if(n in s.template.prop)return function(){this.prop[n]=t[n]};switch(n){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[n]=t[n]}}}),this);return this.then((function(){return this.thenList(n)}))},s.prototype.get=function(t,n){return this.then((function(){var i=t in s.template.prop?this.prop[t]:this.opt[t];return n?n(i):i}))},s.prototype.setMargin=function(t){return this.then((function(){switch(r(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},s.prototype.setPageSize=function(t){function n(t,n){return Math.floor(t*n/72*96)}return this.then((function(){(t=t||qt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:n(t.inner.width,t.k),height:n(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},s.prototype.setProgress=function(t,n,i,r){return null!=t&&(this.progress.val=t),null!=n&&(this.progress.state=n),null!=i&&(this.progress.n=i),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,n,i,r){return this.setProgress(t?this.progress.val+t:null,n||null,i?this.progress.n+i:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(t,n){var i=this;return this.thenCore(t,n,(function(t,n){return i.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(n){return i.updateProgress(null,t),n})).then(t,n).then((function(t){return i.updateProgress(1),t}))}))},s.prototype.thenCore=function(t,n,i){i=i||Promise.prototype.then,t&&(t=t.bind(this)),n&&(n=n.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),e=i.call(r,t,n);return s.convert(e,this.__proto__)},s.prototype.thenExternal=function(t,n){return Promise.prototype.then.call(this,t,n)},s.prototype.thenList=function(t){var n=this;return t.forEach((function(t){n=n.thenCore(t)})),n},s.prototype.catch=function(t){t&&(t=t.bind(this));var n=Promise.prototype.catch.call(this,t);return s.convert(n,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,qt.getPageSize=function(t,n,i){if("object"===u(t)){var r=t;t=r.orientation,n=r.unit||n,i=r.format||i}n=n||"mm",i=i||"a4",t=(""+(t||"P")).toLowerCase();var e,s=(""+i).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(n){case"pt":e=1;break;case"mm":e=72/25.4;break;case"cm":e=72/2.54;break;case"in":e=72;break;case"px":e=.75;break;case"pc":case"em":e=12;break;case"ex":e=6;break;default:throw"Invalid unit: "+n}var a,f=0,c=0;if(o.hasOwnProperty(s))f=o[s][1]/e,c=o[s][0]/e;else try{f=i[1],c=i[0]}catch(t){throw new Error("Invalid format: "+i)}if("p"===t||"portrait"===t)t="p",c>f&&(a=c,c=f,f=a);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",f>c&&(a=c,c=f,f=a)}return{width:c,height:f,unit:n,k:e,orientation:t}},t.html=function(t,n){(n=n||{}).callback=n.callback||function(){},n.html2canvas=n.html2canvas||{},n.html2canvas.canvas=n.html2canvas.canvas||this.canvas,n.jsPDF=n.jsPDF||this,n.fontFaces=n.fontFaces?n.fontFaces.map(An):null;var i=new s(n);return n.worker?i:i.from(t).doCallback()}}(qt.API),qt.API.addJS=function(t){return On=t,this.internal.events.subscribe("postPutResources",(function(){En=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(En+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Pn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+On+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==En&&void 0!==Pn&&this.internal.out("/Names <</JavaScript "+En+" 0 R>>")})),this
|
152
|
+
function(t){t.loadFile=function(t,n,i){return function(t,n,i){n=!1!==n,i="function"==typeof i?i:function(){};var r=void 0;try{r=function(t,n,i){var r=new XMLHttpRequest,e=0,s=function(t){var n=t.length,i=[],r=String.fromCharCode;for(e=0;e<n;e+=1)i.push(r(255&t.charCodeAt(e)));return i.join("")};if(r.open("GET",t,!n),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===n&&(r.onload=function(){i(200===r.status?s(this.responseText):void 0)}),r.send(null),n&&200===r.status)return s(r.responseText)}(t,n,i)}catch(t){}return r}(t,n,i)},t.loadImageFile=t.loadFile}(qt.API),function(t){function n(){return(Y.html2canvas?Promise.resolve(Y.html2canvas):import("./p-a99832c1.js").then((function(t){return t.h}))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(Y.DOMPurify?Promise.resolve(Y.DOMPurify):import("./p-7cc13b24.js").then((function(t){return t.p}))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var r=function(t){var n=u(t);return"undefined"===n?"undefined":"string"===n||t instanceof String?"string":"number"===n||t instanceof Number?"number":"function"===n||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===n?"object":"unknown"},e=function(t,n){var i=document.createElement(t);for(var r in n.className&&(i.className=n.className),n.innerHTML&&n.dompurify&&(i.innerHTML=n.dompurify.sanitize(n.innerHTML)),n.style)i.style[r]=n.style[r];return i},s=function t(n){var i=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),i);return(r=r.setProgress(1,t,1,[t])).set(n)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,n){return t.__proto__=n||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,n){return this.then((function(){switch(n=n||function(t){switch(r(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).then((function(n){return this.set({src:e("div",{innerHTML:t,dompurify:n})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},n=function t(n,i){for(var r=3===n.nodeType?document.createTextNode(n.nodeValue):n.cloneNode(!1),e=n.firstChild;e;e=e.nextSibling)!0!==i&&1===e.nodeType&&"SCRIPT"===e.nodeName||r.appendChild(t(e,i));return 1===n.nodeType&&("CANVAS"===n.nodeName?(r.width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0)):"TEXTAREA"!==n.nodeName&&"SELECT"!==n.nodeName||(r.value=n.value),r.addEventListener("load",(function(){r.scrollTop=n.scrollTop,r.scrollLeft=n.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===n.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=e("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=e("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.container.firstChild.appendChild(e("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then((function(t){var n=Object.assign({},this.opt.html2canvas);return delete n.onrendered,t(this.prop.container,n)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then((function(t){var n=this.opt.jsPDF,i=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,e=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,n.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,n.context2d.posX=this.opt.x,n.context2d.posY=this.opt.y,n.context2d.margin=this.opt.margin,n.context2d.fontFaces=i,i)for(var s=0;s<i.length;++s){var o=i[s],a=o.src.find((function(t){return"truetype"===t.format}));a&&n.addFont(a.url,o.ref.name,o.ref.style)}return e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,n.context2d.save(!0),t(this.prop.container,e)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,n,i){return"img"===(i=i||"pdf").toLowerCase()||"image"===i.toLowerCase()?this.outputImg(t,n):this.outputPdf(t,n)},s.prototype.outputPdf=function(t,n){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,n)}))},s.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},s.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==r(t))return this;var n=Object.keys(t||{}).map((function(n){if(n in s.template.prop)return function(){this.prop[n]=t[n]};switch(n){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[n]=t[n]}}}),this);return this.then((function(){return this.thenList(n)}))},s.prototype.get=function(t,n){return this.then((function(){var i=t in s.template.prop?this.prop[t]:this.opt[t];return n?n(i):i}))},s.prototype.setMargin=function(t){return this.then((function(){switch(r(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},s.prototype.setPageSize=function(t){function n(t,n){return Math.floor(t*n/72*96)}return this.then((function(){(t=t||qt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:n(t.inner.width,t.k),height:n(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},s.prototype.setProgress=function(t,n,i,r){return null!=t&&(this.progress.val=t),null!=n&&(this.progress.state=n),null!=i&&(this.progress.n=i),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,n,i,r){return this.setProgress(t?this.progress.val+t:null,n||null,i?this.progress.n+i:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(t,n){var i=this;return this.thenCore(t,n,(function(t,n){return i.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(n){return i.updateProgress(null,t),n})).then(t,n).then((function(t){return i.updateProgress(1),t}))}))},s.prototype.thenCore=function(t,n,i){i=i||Promise.prototype.then,t&&(t=t.bind(this)),n&&(n=n.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),e=i.call(r,t,n);return s.convert(e,this.__proto__)},s.prototype.thenExternal=function(t,n){return Promise.prototype.then.call(this,t,n)},s.prototype.thenList=function(t){var n=this;return t.forEach((function(t){n=n.thenCore(t)})),n},s.prototype.catch=function(t){t&&(t=t.bind(this));var n=Promise.prototype.catch.call(this,t);return s.convert(n,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,qt.getPageSize=function(t,n,i){if("object"===u(t)){var r=t;t=r.orientation,n=r.unit||n,i=r.format||i}n=n||"mm",i=i||"a4",t=(""+(t||"P")).toLowerCase();var e,s=(""+i).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(n){case"pt":e=1;break;case"mm":e=72/25.4;break;case"cm":e=72/2.54;break;case"in":e=72;break;case"px":e=.75;break;case"pc":case"em":e=12;break;case"ex":e=6;break;default:throw"Invalid unit: "+n}var a,f=0,c=0;if(o.hasOwnProperty(s))f=o[s][1]/e,c=o[s][0]/e;else try{f=i[1],c=i[0]}catch(t){throw new Error("Invalid format: "+i)}if("p"===t||"portrait"===t)t="p",c>f&&(a=c,c=f,f=a);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",f>c&&(a=c,c=f,f=a)}return{width:c,height:f,unit:n,k:e,orientation:t}},t.html=function(t,n){(n=n||{}).callback=n.callback||function(){},n.html2canvas=n.html2canvas||{},n.html2canvas.canvas=n.html2canvas.canvas||this.canvas,n.jsPDF=n.jsPDF||this,n.fontFaces=n.fontFaces?n.fontFaces.map(An):null;var i=new s(n);return n.worker?i:i.from(t).doCallback()}}(qt.API),qt.API.addJS=function(t){return On=t,this.internal.events.subscribe("postPutResources",(function(){En=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(En+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Pn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+On+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==En&&void 0!==Pn&&this.internal.out("/Names <</JavaScript "+En+" 0 R>>")})),this
|
153
153
|
/**
|
154
154
|
* @license
|
155
155
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
@@ -280,7 +280,7 @@ function(t){t.processBMP=function(n,i,r,e){var s=new Hn(n,!1),o=s.width,a=s.heig
|
|
280
280
|
* Licensed under the MIT License.
|
281
281
|
* http://opensource.org/licenses/mit-license
|
282
282
|
*/
|
283
|
-
function(t){t.processWEBP=function(n,i,r,e){var s=new _n(n,!1),o=s.width,a=s.height,u={data:s.getData(),width:o,height:a},f=new Wn(100).encode(u,100);return t.processJPEG.call(this,f,i,r,e)}}(qt.API),qt.API.processRGBA=function(t,n,i){for(var r=t.data,e=r.length,s=new Uint8Array(e/4*3),o=new Uint8Array(e/4),a=0,u=0,f=0;f<e;f+=4){var c=r[f+1],h=r[f+2],l=r[f+3];s[a++]=r[f],s[a++]=c,s[a++]=h,o[u++]=l}var v=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:v,index:n,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},qt.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Rn=(Bn=qt.API).getCharWidthsArray=function(t,n){var i,r,e=(n=n||{}).font||this.internal.getFont(),s=n.fontSize||this.internal.getFontSize(),o=n.charSpace||this.internal.getCharSpace(),a=n.widths?n.widths:e.metadata.Unicode.widths,f=a.fof?a.fof:1,c=n.kerning?n.kerning:e.metadata.Unicode.kerning,h=c.fof?c.fof:1,l=!1!==n.doKerning,v=0,d=t.length,w=0,m=a[0]||f,b=[];for(i=0;i<d;i++)r=t.charCodeAt(i),"function"==typeof e.metadata.widthOfString?b.push((e.metadata.widthOfGlyph(e.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(v=l&&"object"===u(c[r])&&!isNaN(parseInt(c[r][w],10))?c[r][w]/h:0,b.push((a[r]||m)/f+v)),w=r;return b},Tn=Bn.getStringUnitWidth=function(t,n){var i=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),e=n.charSpace||this.internal.getCharSpace();return Bn.processArabic&&(t=Bn.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,i,e)/i:Rn.apply(this,arguments).reduce((function(t,n){return t+n}),0)},Cn=function(t,n,i,r){for(var e=[],s=0,o=t.length,a=0;s!==o&&a+n[s]<i;)a+=n[s],s++;e.push(t.slice(0,s));var u=s;for(a=0;s!==o;)a+n[s]>r&&(e.push(t.slice(u,s)),a=0,u=s),a+=n[s],s++;return u!==s&&e.push(t.slice(u,s)),e},Dn=function(t,n,i){i||(i={});var r,e,s,o,a,u,f,c=[],h=[c],l=i.textIndent||0,v=0,d=0,w=t.split(" "),m=Rn.apply(this,[" ",i])[0];if(u=-1===i.lineIndent?w[0].length+2:i.lineIndent||0){var b=Array(u).join(" "),p=[];w.map((function(t){(t=t.split(/\s*\n/)).length>1?p=p.concat(t.map((function(t,n){return(n&&t.length?"\n":"")+t}))):p.push(t[0])})),w=p,u=Tn.apply(this,[b,i])}for(s=0,o=w.length;s<o;s++){var N=0;if(r=w[s],u&&"\n"==r[0]&&(r=r.substr(1),N=1),l+v+(d=(e=Rn.apply(this,[r,i])).reduce((function(t,n){return t+n}),0))>n||N){if(d>n){for(a=Cn.apply(this,[r,e,n-(l+v),n]),c.push(a.shift()),c=[a.pop()];a.length;)h.push([a.shift()]);d=e.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,n){return t+n}),0)}else c=[r];h.push(c),l=d+u,v=m}else c.push(r),l+=v+d,v=m}return f=u?function(t,n){return(n?b:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(f)},Bn.splitTextToSize=function(t,n,i){var r,e=(i=i||{}).fontSize||this.internal.getFontSize(),s=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var n=this.internal.getFont(t.fontName,t.fontStyle);return n.metadata.Unicode?{widths:n.metadata.Unicode.widths||{0:1},kerning:n.metadata.Unicode.kerning||{}}:{font:n.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,i);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*n/e;s.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/e:0,s.lineIndent=i.lineIndent;var a,u,f=[];for(a=0,u=r.length;a<u;a++)f=f.concat(Dn.apply(this,[r[a],o,s]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="klmnopqrstuvwxyz",i={},r={},e=0;e<16;e++)i[n[e]]="0123456789abcdef"[e],r["0123456789abcdef"[e]]=n[e];var s=function(t){return"0x"+parseInt(t,10).toString(16)},o=t.__fontmetrics__.compress=function(t){var n,i,e,a,f=["{"];for(var c in t){if(n=t[c],isNaN(parseInt(c,10))?i="'"+c+"'":(c=parseInt(c,10),i=(i=s(c).slice(2)).slice(0,-1)+r[i.slice(-1)]),"number"==typeof n)n<0?(e=s(n).slice(3),a="-"):(e=s(n).slice(2),a=""),e=a+e.slice(0,-1)+r[e.slice(-1)];else{if("object"!==u(n))throw new Error("Don't know what to do with value type "+u(n)+".");e=o(n)}f.push(i+e)}return f.push("}"),f.join("")},a=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var n,r,e,s,o={},a=1,u=o,f=[],c="",h="",l=t.length-1,v=1;v<l;v+=1)"'"==(s=t[v])?n?(e=n.join(""),n=void 0):n=[]:n?n.push(s):"{"==s?(f.push([u,e]),u={},e=void 0):"}"==s?((r=f.pop())[0][r[1]]=u,e=void 0,u=r[0]):"-"==s?a=-1:void 0===e?i.hasOwnProperty(s)?(c+=i[s],e=parseInt(c,16)*a,a=1,c=""):c+=s:i.hasOwnProperty(s)?(h+=i[s],u[e]=parseInt(h,16)*a,a=1,e=void 0,h=""):h+=s;return o},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},h={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var n=t.font,i=h.Unicode[n.postScriptName];i&&(n.metadata.Unicode={},n.metadata.Unicode.widths=i.widths,n.metadata.Unicode.kerning=i.kerning);var r=c.Unicode[n.postScriptName];r&&(n.metadata.Unicode.encoding=r,n.encoding=r.codePages[0])}])}(qt.API),
|
283
|
+
function(t){t.processWEBP=function(n,i,r,e){var s=new _n(n,!1),o=s.width,a=s.height,u={data:s.getData(),width:o,height:a},f=new Wn(100).encode(u,100);return t.processJPEG.call(this,f,i,r,e)}}(qt.API),qt.API.processRGBA=function(t,n,i){for(var r=t.data,e=r.length,s=new Uint8Array(e/4*3),o=new Uint8Array(e/4),a=0,u=0,f=0;f<e;f+=4){var c=r[f+1],h=r[f+2],l=r[f+3];s[a++]=r[f],s[a++]=c,s[a++]=h,o[u++]=l}var v=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:v,index:n,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},qt.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Rn=(Bn=qt.API).getCharWidthsArray=function(t,n){var i,r,e=(n=n||{}).font||this.internal.getFont(),s=n.fontSize||this.internal.getFontSize(),o=n.charSpace||this.internal.getCharSpace(),a=n.widths?n.widths:e.metadata.Unicode.widths,f=a.fof?a.fof:1,c=n.kerning?n.kerning:e.metadata.Unicode.kerning,h=c.fof?c.fof:1,l=!1!==n.doKerning,v=0,d=t.length,w=0,m=a[0]||f,b=[];for(i=0;i<d;i++)r=t.charCodeAt(i),"function"==typeof e.metadata.widthOfString?b.push((e.metadata.widthOfGlyph(e.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(v=l&&"object"===u(c[r])&&!isNaN(parseInt(c[r][w],10))?c[r][w]/h:0,b.push((a[r]||m)/f+v)),w=r;return b},Tn=Bn.getStringUnitWidth=function(t,n){var i=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),e=n.charSpace||this.internal.getCharSpace();return Bn.processArabic&&(t=Bn.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,i,e)/i:Rn.apply(this,arguments).reduce((function(t,n){return t+n}),0)},Cn=function(t,n,i,r){for(var e=[],s=0,o=t.length,a=0;s!==o&&a+n[s]<i;)a+=n[s],s++;e.push(t.slice(0,s));var u=s;for(a=0;s!==o;)a+n[s]>r&&(e.push(t.slice(u,s)),a=0,u=s),a+=n[s],s++;return u!==s&&e.push(t.slice(u,s)),e},Dn=function(t,n,i){i||(i={});var r,e,s,o,a,u,f,c=[],h=[c],l=i.textIndent||0,v=0,d=0,w=t.split(" "),m=Rn.apply(this,[" ",i])[0];if(u=-1===i.lineIndent?w[0].length+2:i.lineIndent||0){var b=Array(u).join(" "),p=[];w.map((function(t){(t=t.split(/\s*\n/)).length>1?p=p.concat(t.map((function(t,n){return(n&&t.length?"\n":"")+t}))):p.push(t[0])})),w=p,u=Tn.apply(this,[b,i])}for(s=0,o=w.length;s<o;s++){var N=0;if(r=w[s],u&&"\n"==r[0]&&(r=r.substr(1),N=1),l+v+(d=(e=Rn.apply(this,[r,i])).reduce((function(t,n){return t+n}),0))>n||N){if(d>n){for(a=Cn.apply(this,[r,e,n-(l+v),n]),c.push(a.shift()),c=[a.pop()];a.length;)h.push([a.shift()]);d=e.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,n){return t+n}),0)}else c=[r];h.push(c),l=d+u,v=m}else c.push(r),l+=v+d,v=m}return f=u?function(t,n){return(n?b:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(f)},Bn.splitTextToSize=function(t,n,i){var r,e=(i=i||{}).fontSize||this.internal.getFontSize(),s=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var n=this.internal.getFont(t.fontName,t.fontStyle);return n.metadata.Unicode?{widths:n.metadata.Unicode.widths||{0:1},kerning:n.metadata.Unicode.kerning||{}}:{font:n.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,i);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*n/e;s.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/e:0,s.lineIndent=i.lineIndent;var a,u,f=[];for(a=0,u=r.length;a<u;a++)f=f.concat(Dn.apply(this,[r[a],o,s]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="klmnopqrstuvwxyz",i={},r={},e=0;e<n.length;e++)i[n[e]]="0123456789abcdef"[e],r["0123456789abcdef"[e]]=n[e];var s=function(t){return"0x"+parseInt(t,10).toString(16)},o=t.__fontmetrics__.compress=function(t){var n,i,e,a,f=["{"];for(var c in t){if(n=t[c],isNaN(parseInt(c,10))?i="'"+c+"'":(c=parseInt(c,10),i=(i=s(c).slice(2)).slice(0,-1)+r[i.slice(-1)]),"number"==typeof n)n<0?(e=s(n).slice(3),a="-"):(e=s(n).slice(2),a=""),e=a+e.slice(0,-1)+r[e.slice(-1)];else{if("object"!==u(n))throw new Error("Don't know what to do with value type "+u(n)+".");e=o(n)}f.push(i+e)}return f.push("}"),f.join("")},a=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var n,r,e,s,o={},a=1,u=o,f=[],c="",h="",l=t.length-1,v=1;v<l;v+=1)"'"==(s=t[v])?n?(e=n.join(""),n=void 0):n=[]:n?n.push(s):"{"==s?(f.push([u,e]),u={},e=void 0):"}"==s?((r=f.pop())[0][r[1]]=u,e=void 0,u=r[0]):"-"==s?a=-1:void 0===e?i.hasOwnProperty(s)?(c+=i[s],e=parseInt(c,16)*a,a=1,c=""):c+=s:i.hasOwnProperty(s)?(h+=i[s],u[e]=parseInt(h,16)*a,a=1,e=void 0,h=""):h+=s;return o},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},h={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var n=t.font,i=h.Unicode[n.postScriptName];i&&(n.metadata.Unicode={},n.metadata.Unicode.widths=i.widths,n.metadata.Unicode.kerning=i.kerning);var r=c.Unicode[n.postScriptName];r&&(n.metadata.Unicode.encoding=r,n.encoding=r.codePages[0])}])}(qt.API),
|
284
284
|
/**
|
285
285
|
* @license
|
286
286
|
* Licensed under the MIT License.
|
@@ -310,7 +310,7 @@ function(t){var n=function(t){for(var n=t.length,i=new Uint8Array(n),r=0;r<n;r++
|
|
310
310
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
311
311
|
* ====================================================================
|
312
312
|
*/
|
313
|
-
function(){function t(){return(Y.canvg?Promise.resolve(Y.canvg):import("./p-
|
313
|
+
function(){function t(){return(Y.canvg?Promise.resolve(Y.canvg):import("./p-1260db08.js")).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}qt.API.addSvgAsImage=function(n,i,r,e,s,o,a,u){if(isNaN(i)||isNaN(r))throw X.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(e)||isNaN(s))throw X.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=e,f.height=s;var c=f.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,f.width,f.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return t().then((function(t){return t.fromString(c,n,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){l.addImage(f.toDataURL("image/jpeg",1),i,r,e,s,a,u)}))}}(),qt.API.putTotalPages=function(t){var n,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),i=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var e=0;e<this.internal.pages[r].length;e++)this.internal.pages[r][e]=this.internal.pages[r][e].replace(n,i);return this},qt.API.viewerPreferences=function(t,n){var i;t=t||{},n=n||!1;var r,e,s,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),f=[],c=0,h=0,l=0;function v(t,n){var i,r=!1;for(i=0;i<t.length;i+=1)t[i]===n&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,"reset"===t||!0===n){var d=a.length;for(l=0;l<d;l+=1)i[a[l]].value=i[a[l]].defaultValue,i[a[l]].explicitSet=!1}if("object"===u(t))for(e in t)if(s=t[e],v(a,e)&&void 0!==s){if("boolean"===i[e].type&&"boolean"==typeof s)i[e].value=s;else if("name"===i[e].type&&v(i[e].valueSet,s))i[e].value=s;else if("integer"===i[e].type&&Number.isInteger(s))i[e].value=s;else if("array"===i[e].type){for(c=0;c<s.length;c+=1)if(r=!0,1===s[c].length&&"number"==typeof s[c][0])f.push(String(s[c]-1));else if(s[c].length>1){for(h=0;h<s[c].length;h+=1)"number"!=typeof s[c][h]&&(r=!1);!0===r&&f.push([s[c][0]-1,s[c][1]-1].join(" "))}i[e].value="["+f.join(" ")+"]"}else i[e].value=i[e].defaultValue;i[e].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,n=[];for(t in i)!0===i[t].explicitSet&&n.push("name"===i[t].type?"/"+t+" /"+i[t].value:"/"+t+" "+i[t].value);0!==n.length&&this.internal.write("/ViewerPreferences\n<<\n"+n.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this
|
314
314
|
/** ====================================================================
|
315
315
|
* @license
|
316
316
|
* jsPDF XMP metadata plugin
|