@verdocs/web-sdk 4.0.8 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-cfdfab36.js +4 -4
- package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button_3.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dialog_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +15 -19280
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_14.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-floating-menu.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +19275 -5
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_10.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +9 -9
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +8 -1
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +6 -2
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +17 -1
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +5 -1
- package/dist/collection/components/controls/verdocs-floating-menu/verdocs-floating-menu.js +6 -1
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +4 -1
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +4 -1
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +15 -3
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +9 -1
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +4 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +9 -1
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +5 -1
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +2 -2
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +2 -2
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/components/EnvelopeStore.js +1 -1
- package/dist/components/TemplateFieldStore.js +2 -2
- package/dist/components/TemplateRoleStore.js +1 -1
- package/dist/components/TemplateStore.js +2 -2
- package/dist/components/Types.js +1 -1
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +171 -0
- package/dist/components/index2.js +2 -193
- package/dist/components/index4.js +193 -2
- package/dist/components/utils.js +3 -3
- package/dist/components/verdocs-activity-box.js +0 -1
- package/dist/components/verdocs-auth.js +0 -1
- package/dist/components/verdocs-build.js +0 -1
- package/dist/components/verdocs-button-panel.js +2 -3
- package/dist/components/verdocs-button2.js +1 -2
- package/dist/components/verdocs-checkbox2.js +0 -1
- package/dist/components/verdocs-component-error2.js +0 -1
- package/dist/components/verdocs-contact-picker2.js +0 -1
- package/dist/components/verdocs-dialog2.js +1 -2
- package/dist/components/verdocs-dropdown2.js +1 -2
- package/dist/components/verdocs-envelope-document-page2.js +1 -2
- package/dist/components/verdocs-envelope-recipient-link2.js +0 -1
- package/dist/components/verdocs-envelope-recipient-summary2.js +0 -1
- package/dist/components/verdocs-envelope-sidebar.js +2 -3
- package/dist/components/verdocs-envelopes-list.js +6 -7
- package/dist/components/verdocs-field-attachment2.js +0 -1
- package/dist/components/verdocs-field-checkbox2.js +1 -2
- package/dist/components/verdocs-field-date2.js +3 -4
- package/dist/components/verdocs-field-dropdown2.js +1 -2
- package/dist/components/verdocs-field-initial2.js +1 -2
- package/dist/components/verdocs-field-payment.js +0 -1
- package/dist/components/verdocs-field-radio-button2.js +1 -2
- package/dist/components/verdocs-field-signature2.js +1 -2
- package/dist/components/verdocs-field-textarea2.js +1 -2
- package/dist/components/verdocs-field-textbox2.js +1 -2
- package/dist/components/verdocs-field-timestamp2.js +3 -4
- package/dist/components/verdocs-file-chooser2.js +1 -2
- package/dist/components/verdocs-floating-menu.js +1 -2
- package/dist/components/verdocs-help-icon2.js +1 -2
- package/dist/components/verdocs-initial-dialog2.js +1 -2
- package/dist/components/verdocs-kba-dialog.js +2 -3
- package/dist/components/verdocs-loader2.js +1 -2
- package/dist/components/verdocs-ok-dialog2.js +1 -2
- package/dist/components/verdocs-organization-card.js +8 -4
- package/dist/components/verdocs-pagination2.js +1 -2
- package/dist/components/verdocs-portal2.js +1 -2
- package/dist/components/verdocs-preview2.js +0 -1
- package/dist/components/verdocs-progress-bar2.js +2 -2
- package/dist/components/verdocs-quick-filter2.js +1 -2
- package/dist/components/verdocs-quick-functions2.js +1 -2
- package/dist/components/verdocs-radio-button2.js +1 -2
- package/dist/components/verdocs-search-box2.js +0 -1
- package/dist/components/verdocs-search-tabs.js +1 -2
- package/dist/components/verdocs-search.js +1 -2
- package/dist/components/verdocs-select-input2.js +1 -2
- package/dist/components/verdocs-send2.js +2 -3
- package/dist/components/verdocs-settings-api-keys2.js +0 -1
- package/dist/components/verdocs-settings-members2.js +1 -2
- package/dist/components/verdocs-settings-organization2.js +0 -1
- package/dist/components/verdocs-settings-profile2.js +0 -1
- package/dist/components/verdocs-settings.js +0 -1
- package/dist/components/verdocs-sign.js +2 -3
- package/dist/components/verdocs-signature-dialog2.js +1 -2
- package/dist/components/verdocs-spinner2.js +1 -2
- package/dist/components/verdocs-status-indicator2.js +2 -3
- package/dist/components/verdocs-table2.js +0 -1
- package/dist/components/verdocs-tabs2.js +0 -1
- package/dist/components/verdocs-template-attachments2.js +0 -1
- package/dist/components/verdocs-template-build-tabs2.js +0 -1
- package/dist/components/verdocs-template-card.js +1 -2
- package/dist/components/verdocs-template-create2.js +0 -1
- package/dist/components/verdocs-template-document-page2.js +2 -3
- package/dist/components/verdocs-template-field-properties2.js +0 -1
- package/dist/components/verdocs-template-fields2.js +1 -2
- package/dist/components/verdocs-template-name2.js +0 -1
- package/dist/components/verdocs-template-reminders2.js +0 -1
- package/dist/components/verdocs-template-role-properties2.js +7 -8
- package/dist/components/verdocs-template-roles2.js +0 -1
- package/dist/components/verdocs-template-sender2.js +1 -2
- package/dist/components/verdocs-template-star2.js +1 -2
- package/dist/components/verdocs-template-tags.js +1 -2
- package/dist/components/verdocs-template-visibility2.js +0 -1
- package/dist/components/verdocs-templates-list.js +1 -2
- package/dist/components/verdocs-text-input2.js +2 -3
- package/dist/components/verdocs-toggle-button2.js +1 -2
- package/dist/components/verdocs-toggle.js +0 -1
- package/dist/components/verdocs-toolbar-icon2.js +1 -2
- package/dist/components/verdocs-upload-dialog2.js +1 -2
- package/dist/components/verdocs-view2.js +0 -1
- package/dist/custom-elements.json +11 -11
- package/dist/esm/index-b89cf6a4.js +4 -4
- package/dist/esm/verdocs-button-panel.entry.js +2 -2
- package/dist/esm/verdocs-button_3.entry.js +4 -4
- package/dist/esm/verdocs-checkbox_5.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm/verdocs-dialog_2.entry.js +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -19266
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_14.entry.js +4 -4
- package/dist/esm/verdocs-file-chooser_2.entry.js +3 -2
- package/dist/esm/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card.entry.js +19272 -2
- package/dist/esm/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_10.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm/verdocs-radio-button_3.entry.js +9 -9
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-spinner.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-toolbar-icon.entry.js +1 -1
- package/dist/esm-es5/index-b89cf6a4.js +1 -1
- package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_14.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-toolbar-icon.entry.js +1 -1
- package/{loader → dist/loader}/cdn.js +1 -1
- package/{loader → dist/loader}/index.cjs.js +1 -1
- package/{loader → dist/loader}/index.d.ts +1 -1
- package/dist/loader/index.es2017.js +2 -0
- package/{loader → dist/loader}/index.js +2 -2
- package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +7 -0
- package/dist/types/components/controls/verdocs-button-panel/verdocs-button-panel.d.ts +4 -0
- package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +16 -0
- package/dist/types/components/controls/verdocs-file-chooser/verdocs-file-chooser.d.ts +4 -0
- package/dist/types/components/controls/verdocs-floating-menu/verdocs-floating-menu.d.ts +5 -0
- package/dist/types/components/controls/verdocs-help-icon/verdocs-help-icon.d.ts +3 -0
- package/dist/types/components/controls/verdocs-loader/verdocs-loader.d.ts +3 -0
- package/dist/types/components/controls/verdocs-organization-card/verdocs-organization-card.d.ts +3 -0
- package/dist/types/components/controls/verdocs-pagination/verdocs-pagination.d.ts +3 -0
- package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +8 -0
- package/dist/types/components/controls/verdocs-progress-bar/verdocs-progress-bar.d.ts +3 -0
- package/dist/types/components.d.ts +228 -0
- package/dist/verdocs-web-sdk/{p-b355111d.entry.js → p-0003dac3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fa51066b.entry.js → p-039c572c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0ac52131.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3ae988e6.entry.js → p-0bd91b17.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e26e9907.system.entry.js → p-164d9eb4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fb3afee2.system.entry.js → p-165bbc34.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b661c95f.system.entry.js → p-192fe783.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9e86a14a.entry.js → p-216757ff.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-a396eee6.entry.js → p-3c3570cc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-14fe476a.entry.js → p-50035423.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0191eac7.system.entry.js → p-5714caa0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ba19b1d8.system.entry.js → p-5727dd92.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0e44d592.system.entry.js → p-5b9c0b5d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0f5dc1c5.system.entry.js → p-5f8341f5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-eeece233.entry.js → p-65d71829.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dee3aeec.entry.js → p-6a88d98b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8164d8bf.system.entry.js → p-6cd31085.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-32e396c5.system.entry.js → p-6f1df8e8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6d52b500.entry.js → p-6fe0d270.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3415ddee.system.entry.js → p-71a93045.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-756791df.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-503072b6.entry.js → p-780c095e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-832bc1b5.entry.js → p-79407dd8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7602d431.entry.js → p-794109d4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-846ee5dd.entry.js → p-79a5e9a6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-75f98b48.system.entry.js → p-79cef953.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1e6cecc0.entry.js → p-7a9b4f83.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-854a3caa.entry.js → p-7ab60efa.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3999bace.system.entry.js → p-7d035035.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bd9f7023.system.entry.js → p-819187c7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-819fb18d.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b12f1302.entry.js → p-82fbf5b5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-83d0f5e1.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-c327f3e6.system.entry.js → p-8b5d40b6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2cc1724f.entry.js → p-8fbf27ec.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-907bf2f3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3d9d0c2e.system.entry.js → p-943c7b8f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a708333.system.entry.js → p-95e2ff59.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0017dee2.system.entry.js → p-99c29b9c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0664e011.system.entry.js → p-a164376d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e504ebcd.entry.js → p-a88760cd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7db995b0.system.entry.js → p-aaa5c11a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bca3887c.system.entry.js → p-ac014bc9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-91483dea.system.entry.js → p-ae6a23ba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac9b5e3f.system.entry.js → p-b259c449.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7aacdd81.entry.js → p-c22eccdd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8eed20fe.entry.js → p-c244e090.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-235d82f0.system.entry.js → p-c6645da7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-44acae9e.system.entry.js → p-ca71117e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4ae82766.entry.js → p-cdb8b832.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-656ba4ba.system.entry.js → p-da9d0886.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-db6a7e39.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-db9ef2cc.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0f12fb66.entry.js → p-ea798c11.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-817b0210.entry.js → p-eb86419b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bf31565b.system.entry.js → p-ecfe6d7e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +7 -6
- package/dist/docs.d.ts +0 -435
- package/dist/docs.json +0 -15188
- package/dist/verdocs-web-sdk/p-294fd56c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3102c8fb.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-77fe89f5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8bb229dd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c7d2e9c4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c81bc939.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ed863acf.entry.js +0 -1
- package/loader/index.es2017.js +0 -2
- /package/{loader → dist/loader}/package.json +0 -0
@@ -1 +1 @@
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]};return t(i,n)};return function(i,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var r=0,e=i.length,s;r<e;r++){if(s||!(r in i)){if(!s)s=Array.prototype.slice.call(i,0,r);s[r]=i[r]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-e748b2d2.system.js","./p-e0ac9edf.system.js"],(function(t){"use strict";var i,n,r,e;return{setters:[function(t){i=t.r;n=t.h;r=t.H},function(t){e=t.c}],execute:function(){var s={};var u=[];function h(t,i){if(Array.isArray(t)){for(var n=0,r=t;n<r.length;n++){var e=r[n];h(e,i)}return}if(typeof t==="object"){for(var e in t){h(e,t[e])}return}a(Object.getOwnPropertyNames(i));s[t]=Object.assign(s[t]||{},i)}function o(t){return s[t]||{}}function f(){return __spreadArray([],new Set(u),true)}function a(t){u.push.apply(u,t)}function c(t,i){var n;var r=t.length;var e=[];for(n=0;n<r;n++){e.push(i(t[n]))}return e}function v(t,i){var n;var r=t.length;var e=[];for(n=0;n<r;n++){if(i(t[n])){e.push(t[n])}}return e}function l(t){return t%360*Math.PI/180}function d(t){return t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t,i,n,r){if(i==null||n==null){r=r||t.bbox();if(i==null){i=r.width/r.height*n}else if(n==null){n=r.height/r.width*i}}return{width:i,height:n}}function p(t,i){var n;var r=t.origin;var e=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";var s=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(r!=null){n=Array.isArray(r)?r:typeof r==="object"?[r.x,r.y]:[r,r],e=n[0],s=n[1]}var u=typeof e==="string";var h=typeof s==="string";if(u||h){var o=i.bbox(),f=o.height,a=o.width,c=o.x,v=o.y;if(u){e=e.includes("left")?c:e.includes("right")?c+a:c+a/2}if(h){s=s.includes("top")?v:s.includes("bottom")?v+f:v+f/2}}return[e,s]}var g=new Set(["desc","metadata","title"]);var y=function(t){return g.has(t.nodeName)};var m=function(t,i,n){if(n===void 0){n={}}var r=__assign({},i);for(var e in r){if(r[e].valueOf()===n[e]){delete r[e]}}if(Object.keys(r).length){t.node.setAttribute("data-svgjs",JSON.stringify(r))}else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};var x="http://www.w3.org/2000/svg";var _="http://www.w3.org/1999/xhtml";var b="http://www.w3.org/2000/xmlns/";var M="http://www.w3.org/1999/xlink";var k={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};var j=function(){function t(){}return t}();var A={};var L="___SYMBOL___ROOT___";function V(t,i){if(i===void 0){i=x}return k.document.createElementNS(i,t)}function O(t,i){if(i===void 0){i=false}if(t instanceof j)return t;if(typeof t==="object"){return H(t)}if(t==null){return new A[L]}if(typeof t==="string"&&t.charAt(0)!=="<"){return H(k.document.querySelector(t))}var n=i?k.document.createElement("div"):V("svg");n.innerHTML=t;t=H(n.firstChild);n.removeChild(n.firstChild);return t}function B(t,i){return i&&(i instanceof k.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:V(t)}function E(t){if(!t)return null;if(t.instance instanceof j)return t.instance;if(t.nodeName==="#document-fragment"){return new A.Fragment(t)}var i=C(t.nodeName||"Dom");if(i==="LinearGradient"||i==="RadialGradient"){i="Gradient"}else if(!A[i]){i="Dom"}return new A[i](t)}var H=E;function Z(t,i,n){if(i===void 0){i=t.name}if(n===void 0){n=false}A[i]=t;if(n)A[L]=t;a(Object.getOwnPropertyNames(t.prototype));return t}function S(t){return A[t]}var T=1e3;function F(t){return"Svgjs"+C(t)+T++}function D(t){for(var i=t.children.length-1;i>=0;i--){D(t.children[i])}if(t.id){t.id=F(t.nodeName);return t}return t}function I(t,i){var n,r;t=Array.isArray(t)?t:[t];for(r=t.length-1;r>=0;r--){for(n in i){t[r].prototype[n]=i[n]}}}function z(t){return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}var r=i[i.length-1];if(r&&r.constructor===Object&&!(r instanceof Array)){return t.apply(this,i.slice(0,-1)).attr(r)}else{return t.apply(this,i)}}}function N(){return this.parent().children()}function P(){return this.parent().index(this)}function G(){return this.siblings()[this.position()+1]}function R(){return this.siblings()[this.position()-1]}function Y(){var t=this.position();var i=this.parent();i.add(this.remove(),t+1);return this}function X(){var t=this.position();var i=this.parent();i.add(this.remove(),t?t-1:0);return this}function $(){var t=this.parent();t.add(this.remove());return this}function Q(){var t=this.parent();t.add(this.remove(),0);return this}function U(t){t=O(t);t.remove();var i=this.position();this.parent().add(t,i);return this}function J(t){t=O(t);t.remove();var i=this.position();this.parent().add(t,i+1);return this}function q(t){t=O(t);t.before(this);return this}function W(t){t=O(t);t.after(this);return this}h("Dom",{siblings:N,position:P,next:G,prev:R,forward:Y,backward:X,front:$,back:Q,before:U,after:J,insertBefore:q,insertAfter:W});var K=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;var tt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;var it=/rgb\((\d+),(\d+),(\d+)\)/;var nt=/(#[a-z_][a-z0-9\-_]*)/i;var rt=/\)\s*,?\s*/;var et=/\s/g;var st=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;var ut=/^rgb\(/;var ht=/^(\s+)?$/;var ot=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;var ft=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;var at=/[\s,]+/;var ct=/[MLHVCSQTAZ]/i;function vt(){var t=this.attr("class");return t==null?[]:t.trim().split(at)}function lt(t){return this.classes().indexOf(t)!==-1}function dt(t){if(!this.hasClass(t)){var i=this.classes();i.push(t);this.attr("class",i.join(" "))}return this}function Ct(t){if(this.hasClass(t)){this.attr("class",this.classes().filter((function(i){return i!==t})).join(" "))}return this}function wt(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}h("Dom",{classes:vt,hasClass:lt,addClass:dt,removeClass:Ct,toggleClass:wt});function pt(t,i){var n={};if(arguments.length===0){this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){var i=t.split(/\s*:\s*/);n[i[0]]=i[1]}));return n}if(arguments.length<2){if(Array.isArray(t)){for(var r=0,e=t;r<e.length;r++){var s=e[r];var u=s;n[s]=this.node.style.getPropertyValue(u)}return n}if(typeof t==="string"){return this.node.style.getPropertyValue(t)}if(typeof t==="object"){for(var s in t){this.node.style.setProperty(s,t[s]==null||ht.test(t[s])?"":t[s])}}}if(arguments.length===2){this.node.style.setProperty(t,i==null||ht.test(i)?"":i)}return this}function gt(){return this.css("display","")}function yt(){return this.css("display","none")}function mt(){return this.css("display")!=="none"}h("Dom",{css:pt,show:gt,hide:yt,visible:mt});function xt(t,i,n){if(t==null){return this.data(c(v(this.node.attributes,(function(t){return t.nodeName.indexOf("data-")===0})),(function(t){return t.nodeName.slice(5)})))}else if(t instanceof Array){var r={};for(var e=0,s=t;e<s.length;e++){var u=s[e];r[u]=this.data(u)}return r}else if(typeof t==="object"){for(i in t){this.data(i,t[i])}}else if(arguments.length<2){try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}}else{this.attr("data-"+t,i===null?null:n===true||typeof i==="string"||typeof i==="number"?i:JSON.stringify(i))}return this}h("Dom",{data:xt});function _t(t,i){if(typeof arguments[0]==="object"){for(var n in t){this.remember(n,t[n])}}else if(arguments.length===1){return this.memory()[t]}else{this.memory()[t]=i}return this}function bt(){if(arguments.length===0){this._memory={}}else{for(var t=arguments.length-1;t>=0;t--){delete this.memory()[arguments[t]]}}return this}function Mt(){return this._memory=this._memory||{}}h("Dom",{remember:_t,forget:bt,memory:Mt});function kt(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function jt(t){var i=Math.round(t);var n=Math.max(0,Math.min(255,i));var r=n.toString(16);return r.length===1?"0"+r:r}function At(t,i){for(var n=i.length;n--;){if(t[i[n]]==null){return false}}return true}function Lt(t,i){var n=At(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:At(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:At(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:At(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:At(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:At(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};n.space=i||n.space;return n}function Vt(t){if(t==="lab"||t==="xyz"||t==="lch"){return true}else{return false}}function Ot(t,i,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return t+(i-t)*6*n;if(n<1/2)return i;if(n<2/3)return t+(i-t)*(2/3-n)*6;return t}var Bt=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.isColor=function(i){return i&&(i instanceof t||this.isRgb(i)||this.test(i))};t.isRgb=function(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"};t.random=function(i,n){if(i===void 0){i="vibrant"}var r=Math.random,e=Math.round,s=Math.sin,u=Math.PI;if(i==="vibrant"){var h=(81-57)*r()+57;var o=(83-45)*r()+45;var f=360*r();var a=new t(h,o,f,"lch");return a}else if(i==="sine"){n=n==null?r():n;var c=e(80*s(2*u*n/.5+.01)+150);var v=e(50*s(2*u*n/.5+4.6)+200);var l=e(100*s(2*u*n/.5+2.3)+150);var a=new t(c,v,l);return a}else if(i==="pastel"){var h=(94-86)*r()+86;var o=(26-9)*r()+9;var d=360*r();var a=new t(h,o,d,"lch");return a}else if(i==="dark"){var h=10+10*r();var o=(125-75)*r()+86;var C=360*r();var a=new t(h,o,C,"lch");return a}else if(i==="rgb"){var c=255*r();var v=255*r();var l=255*r();var a=new t(c,v,l);return a}else if(i==="lab"){var h=100*r();var w=256*r()-128;var l=256*r()-128;var a=new t(h,w,l,"lab");return a}else if(i==="grey"){var p=255*r();var a=new t(p,p,p);return a}else{throw new Error("Unsupported random color mode")}};t.test=function(t){return typeof t==="string"&&(st.test(t)||ut.test(t))};t.prototype.cmyk=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=Math.min(1-u,1-h,1-o);if(f===1){return new t(0,0,0,1,"cmyk")}var a=(1-u-f)/(1-f);var c=(1-h-f)/(1-f);var v=(1-o-f)/(1-f);var l=new t(a,c,v,f,"cmyk");return l};t.prototype.hsl=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=Math.max(u,h,o);var a=Math.min(u,h,o);var c=(f+a)/2;var v=f===a;var l=f-a;var d=v?0:c>.5?l/(2-f-a):l/(f+a);var C=v?0:f===u?((h-o)/l+(h<o?6:0))/6:f===h?((o-u)/l+2)/6:f===o?((u-h)/l+4)/6:0;var w=new t(360*C,100*d,100*c,"hsl");return w};t.prototype.init=function(t,i,n,r,e){if(t===void 0){t=0}if(i===void 0){i=0}if(n===void 0){n=0}if(r===void 0){r=0}if(e===void 0){e="rgb"}t=!t?0:t;if(this.space){for(var s in this.space){delete this[this.space[s]]}}if(typeof t==="number"){e=typeof r==="string"?r:e;r=typeof r==="string"?0:r;Object.assign(this,{_a:t,_b:i,_c:n,_d:r,space:e})}else if(t instanceof Array){this.space=i||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){var u=Lt(t,i);Object.assign(this,u)}else if(typeof t==="string"){if(ut.test(t)){var h=t.replace(et,"");var o=it.exec(h).slice(1,4).map((function(t){return parseInt(t)})),f=o[0],a=o[1],c=o[2];Object.assign(this,{_a:f,_b:a,_c:c,_d:0,space:"rgb"})}else if(st.test(t)){var v=function(t){return parseInt(t,16)};var l=tt.exec(kt(t)).map(v),d=l[1],C=l[2],w=l[3];Object.assign(this,{_a:d,_b:C,_c:w,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color")}var p=this,g=p._a,y=p._b,m=p._c,x=p._d;var _=this.space==="rgb"?{r:g,g:y,b:m}:this.space==="xyz"?{x:g,y:y,z:m}:this.space==="hsl"?{h:g,s:y,l:m}:this.space==="lab"?{l:g,a:y,b:m}:this.space==="lch"?{l:g,c:y,h:m}:this.space==="cmyk"?{c:g,m:y,y:m,k:x}:{};Object.assign(this,_)};t.prototype.lab=function(){var i=this.xyz(),n=i.x,r=i.y,e=i.z;var s=116*r-16;var u=500*(n-r);var h=200*(r-e);var o=new t(s,u,h,"lab");return o};t.prototype.lch=function(){var i=this.lab(),n=i.l,r=i.a,e=i.b;var s=Math.sqrt(Math.pow(r,2)+Math.pow(e,2));var u=180*Math.atan2(e,r)/Math.PI;if(u<0){u*=-1;u=360-u}var h=new t(n,s,u,"lch");return h};t.prototype.rgb=function(){if(this.space==="rgb"){return this}else if(Vt(this.space)){var i=this,n=i.x,r=i.y,e=i.z;if(this.space==="lab"||this.space==="lch"){var s=this,u=s.l,h=s.a,o=s.b;if(this.space==="lch"){var f=this,a=f.c,c=f.h;var v=Math.PI/180;h=a*Math.cos(v*c);o=a*Math.sin(v*c)}var l=(u+16)/116;var d=h/500+l;var C=l-o/200;var w=16/116;var p=.008856;var g=7.787;n=.95047*(Math.pow(d,3)>p?Math.pow(d,3):(d-w)/g);r=1*(Math.pow(l,3)>p?Math.pow(l,3):(l-w)/g);e=1.08883*(Math.pow(C,3)>p?Math.pow(C,3):(C-w)/g)}var y=n*3.2406+r*-1.5372+e*-.4986;var m=n*-.9689+r*1.8758+e*.0415;var x=n*.0557+r*-.204+e*1.057;var _=Math.pow;var b=.0031308;var M=y>b?1.055*_(y,1/2.4)-.055:12.92*y;var k=m>b?1.055*_(m,1/2.4)-.055:12.92*m;var j=x>b?1.055*_(x,1/2.4)-.055:12.92*x;var A=new t(255*M,255*k,255*j);return A}else if(this.space==="hsl"){var L=this,V=L.h,O=L.s,u=L.l;V/=360;O/=100;u/=100;if(O===0){u*=255;var B=new t(u,u,u);return B}var E=u<.5?u*(1+O):u+O-u*O;var H=2*u-E;var M=255*Ot(H,E,V+1/3);var k=255*Ot(H,E,V);var j=255*Ot(H,E,V-1/3);var A=new t(M,k,j);return A}else if(this.space==="cmyk"){var Z=this,a=Z.c,S=Z.m,T=Z.y,F=Z.k;var M=255*(1-Math.min(1,a*(1-F)+F));var k=255*(1-Math.min(1,S*(1-F)+F));var j=255*(1-Math.min(1,T*(1-F)+F));var A=new t(M,k,j);return A}else{return this}};t.prototype.toArray=function(){var t=this,i=t._a,n=t._b,r=t._c,e=t._d,s=t.space;return[i,n,r,e,s]};t.prototype.toHex=function(){var t=this._clamped().map(jt),i=t[0],n=t[1],r=t[2];return"#".concat(i).concat(n).concat(r)};t.prototype.toRgb=function(){var t=this._clamped(),i=t[0],n=t[1],r=t[2];var e="rgb(".concat(i,",").concat(n,",").concat(r,")");return e};t.prototype.toString=function(){return this.toHex()};t.prototype.xyz=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92;var a=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92;var c=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var v=(f*.4124+a*.3576+c*.1805)/.95047;var l=(f*.2126+a*.7152+c*.0722)/1;var d=(f*.0193+a*.1192+c*.9505)/1.08883;var C=v>.008856?Math.pow(v,1/3):7.787*v+16/116;var w=l>.008856?Math.pow(l,1/3):7.787*l+16/116;var p=d>.008856?Math.pow(d,1/3):7.787*d+16/116;var g=new t(C,w,p,"xyz");return g};t.prototype._clamped=function(){var t=this.rgb(),i=t._a,n=t._b,r=t._c;var e=Math.max,s=Math.min,u=Math.round;var h=function(t){return e(0,s(u(t),255))};return[i,n,r].map(h)};return t}();var Et=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.clone=function(){return new t(this)};t.prototype.init=function(t,i){var n={x:0,y:0};var r=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:i};this.x=r.x==null?n.x:r.x;this.y=r.y==null?n.y:r.y;return this};t.prototype.toArray=function(){return[this.x,this.y]};t.prototype.transform=function(t){return this.clone().transformO(t)};t.prototype.transformO=function(t){if(!St.isMatrixLike(t)){t=new St(t)}var i=this,n=i.x,r=i.y;this.x=t.a*n+t.c*r+t.e;this.y=t.b*n+t.d*r+t.f;return this};return t}();function Ht(t,i){return new Et(t,i).transformO(this.screenCTM().inverseO())}function Zt(t,i,n){return Math.abs(i-t)<1e-6}var St=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.formatTransforms=function(t){var i=t.flip==="both"||t.flip===true;var n=t.flip&&(i||t.flip==="x")?-1:1;var r=t.flip&&(i||t.flip==="y")?-1:1;var e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;var s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;var u=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n;var h=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r;var o=t.shear||0;var f=t.rotate||t.theta||0;var a=new Et(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);var c=a.x;var v=a.y;var l=new Et(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN);var d=l.x;var C=l.y;var w=new Et(t.translate||t.tx||t.translateX,t.ty||t.translateY);var p=w.x;var g=w.y;var y=new Et(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);var m=y.x;var x=y.y;return{scaleX:u,scaleY:h,skewX:e,skewY:s,shear:o,theta:f,rx:m,ry:x,tx:p,ty:g,ox:c,oy:v,px:d,py:C}};t.fromArray=function(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}};t.isMatrixLike=function(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null};t.matrixMultiply=function(t,i,n){var r=t.a*i.a+t.c*i.b;var e=t.b*i.a+t.d*i.b;var s=t.a*i.c+t.c*i.d;var u=t.b*i.c+t.d*i.d;var h=t.e+t.a*i.e+t.c*i.f;var o=t.f+t.b*i.e+t.d*i.f;n.a=r;n.b=e;n.c=s;n.d=u;n.e=h;n.f=o;return n};t.prototype.around=function(t,i,n){return this.clone().aroundO(t,i,n)};t.prototype.aroundO=function(t,i,n){var r=t||0;var e=i||0;return this.translateO(-r,-e).lmultiplyO(n).translateO(r,e)};t.prototype.clone=function(){return new t(this)};t.prototype.decompose=function(t,i){if(t===void 0){t=0}if(i===void 0){i=0}var n=this.a;var r=this.b;var e=this.c;var s=this.d;var u=this.e;var h=this.f;var o=n*s-r*e;var f=o>0?1:-1;var a=f*Math.sqrt(n*n+r*r);var c=Math.atan2(f*r,f*n);var v=180/Math.PI*c;var l=Math.cos(c);var d=Math.sin(c);var C=(n*e+r*s)/o;var w=e*a/(C*n-r)||s*a/(C*r+n);var p=u-t+t*l*a+i*(C*l*a-d*w);var g=h-i+t*d*a+i*(C*d*a+l*w);return{scaleX:a,scaleY:w,shear:C,rotate:v,translateX:p,translateY:g,originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};t.prototype.equals=function(i){if(i===this)return true;var n=new t(i);return Zt(this.a,n.a)&&Zt(this.b,n.b)&&Zt(this.c,n.c)&&Zt(this.d,n.d)&&Zt(this.e,n.e)&&Zt(this.f,n.f)};t.prototype.flip=function(t,i){return this.clone().flipO(t,i)};t.prototype.flipO=function(t,i){return t==="x"?this.scaleO(-1,1,i,0):t==="y"?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)};t.prototype.init=function(i){var n=t.fromArray([1,0,0,1,0,0]);i=i instanceof wi?i.matrixify():typeof i==="string"?t.fromArray(i.split(at).map(parseFloat)):Array.isArray(i)?t.fromArray(i):typeof i==="object"&&t.isMatrixLike(i)?i:typeof i==="object"?(new t).transform(i):arguments.length===6?t.fromArray([].slice.call(arguments)):n;this.a=i.a!=null?i.a:n.a;this.b=i.b!=null?i.b:n.b;this.c=i.c!=null?i.c:n.c;this.d=i.d!=null?i.d:n.d;this.e=i.e!=null?i.e:n.e;this.f=i.f!=null?i.f:n.f;return this};t.prototype.inverse=function(){return this.clone().inverseO()};t.prototype.inverseO=function(){var t=this.a;var i=this.b;var n=this.c;var r=this.d;var e=this.e;var s=this.f;var u=t*r-i*n;if(!u)throw new Error("Cannot invert "+this);var h=r/u;var o=-i/u;var f=-n/u;var a=t/u;var c=-(h*e+f*s);var v=-(o*e+a*s);this.a=h;this.b=o;this.c=f;this.d=a;this.e=c;this.f=v;return this};t.prototype.lmultiply=function(t){return this.clone().lmultiplyO(t)};t.prototype.lmultiplyO=function(i){var n=this;var r=i instanceof t?i:new t(i);return t.matrixMultiply(r,n,this)};t.prototype.multiply=function(t){return this.clone().multiplyO(t)};t.prototype.multiplyO=function(i){var n=this;var r=i instanceof t?i:new t(i);return t.matrixMultiply(n,r,this)};t.prototype.rotate=function(t,i,n){return this.clone().rotateO(t,i,n)};t.prototype.rotateO=function(t,i,n){if(i===void 0){i=0}if(n===void 0){n=0}t=l(t);var r=Math.cos(t);var e=Math.sin(t);var s=this,u=s.a,h=s.b,o=s.c,f=s.d,a=s.e,c=s.f;this.a=u*r-h*e;this.b=h*r+u*e;this.c=o*r-f*e;this.d=f*r+o*e;this.e=a*r-c*e+n*e-i*r+i;this.f=c*r+a*e-i*e-n*r+n;return this};t.prototype.scale=function(){var t;return(t=this.clone()).scaleO.apply(t,arguments)};t.prototype.scaleO=function(t,i,n,r){if(i===void 0){i=t}if(n===void 0){n=0}if(r===void 0){r=0}if(arguments.length===3){r=n;n=i;i=t}var e=this,s=e.a,u=e.b,h=e.c,o=e.d,f=e.e,a=e.f;this.a=s*t;this.b=u*i;this.c=h*t;this.d=o*i;this.e=f*t-n*t+n;this.f=a*i-r*i+r;return this};t.prototype.shear=function(t,i,n){return this.clone().shearO(t,i,n)};t.prototype.shearO=function(t,i,n){if(i===void 0){i=0}if(n===void 0){n=0}var r=this,e=r.a,s=r.b,u=r.c,h=r.d,o=r.e,f=r.f;this.a=e+s*t;this.c=u+h*t;this.e=o+f*t-n*t;return this};t.prototype.skew=function(){var t;return(t=this.clone()).skewO.apply(t,arguments)};t.prototype.skewO=function(t,i,n,r){if(i===void 0){i=t}if(n===void 0){n=0}if(r===void 0){r=0}if(arguments.length===3){r=n;n=i;i=t}t=l(t);i=l(i);var e=Math.tan(t);var s=Math.tan(i);var u=this,h=u.a,o=u.b,f=u.c,a=u.d,c=u.e,v=u.f;this.a=h+o*e;this.b=o+h*s;this.c=f+a*e;this.d=a+f*s;this.e=c+v*e-r*e;this.f=v+c*s-n*s;return this};t.prototype.skewX=function(t,i,n){return this.skew(t,0,i,n)};t.prototype.skewY=function(t,i,n){return this.skew(0,t,i,n)};t.prototype.toArray=function(){return[this.a,this.b,this.c,this.d,this.e,this.f]};t.prototype.toString=function(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"};t.prototype.transform=function(i){if(t.isMatrixLike(i)){var n=new t(i);return n.multiplyO(this)}var r=t.formatTransforms(i);var e=this;var s=new Et(r.ox,r.oy).transform(e),u=s.x,h=s.y;var o=(new t).translateO(r.rx,r.ry).lmultiplyO(e).translateO(-u,-h).scaleO(r.scaleX,r.scaleY).skewO(r.skewX,r.skewY).shearO(r.shear).rotateO(r.theta).translateO(u,h);if(isFinite(r.px)||isFinite(r.py)){var f=new Et(u,h).transform(o);var a=isFinite(r.px)?r.px-f.x:0;var c=isFinite(r.py)?r.py-f.y:0;o.translateO(a,c)}o.translateO(r.tx,r.ty);return o};t.prototype.translate=function(t,i){return this.clone().translateO(t,i)};t.prototype.translateO=function(t,i){this.e+=t||0;this.f+=i||0;return this};t.prototype.valueOf=function(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};return t}();function Tt(){return new St(this.node.getCTM())}function Ft(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){var t=this.rect(1,1);var i=t.node.getScreenCTM();t.remove();return new St(i)}return new St(this.node.getScreenCTM())}catch(t){console.warn("Cannot get CTM from SVG node ".concat(this.node.nodeName,". Is the element rendered?"));return new St}}Z(St,"Matrix");function Dt(){if(!Dt.nodes){var t=O().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");var i=t.path().node;Dt.nodes={svg:t,path:i}}if(!Dt.nodes.svg.node.parentNode){var n=k.document.body||k.document.documentElement;Dt.nodes.svg.addTo(n)}return Dt.nodes}function It(t){return!t.width&&!t.height&&!t.x&&!t.y}function zt(t){return t===k.document||(k.document.documentElement.contains||function(t){while(t.parentNode){t=t.parentNode}return t===k.document}).call(k.document.documentElement,t)}var Nt=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.addOffset=function(){this.x+=k.window.pageXOffset;this.y+=k.window.pageYOffset;return new t(this)};t.prototype.init=function(t){var i=[0,0,0,0];t=typeof t==="string"?t.split(at).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):i;this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this};t.prototype.isNulled=function(){return It(this)};t.prototype.merge=function(i){var n=Math.min(this.x,i.x);var r=Math.min(this.y,i.y);var e=Math.max(this.x+this.width,i.x+i.width)-n;var s=Math.max(this.y+this.height,i.y+i.height)-r;return new t(n,r,e,s)};t.prototype.toArray=function(){return[this.x,this.y,this.width,this.height]};t.prototype.toString=function(){return this.x+" "+this.y+" "+this.width+" "+this.height};t.prototype.transform=function(i){if(!(i instanceof St)){i=new St(i)}var n=Infinity;var r=-Infinity;var e=Infinity;var s=-Infinity;var u=[new Et(this.x,this.y),new Et(this.x2,this.y),new Et(this.x,this.y2),new Et(this.x2,this.y2)];u.forEach((function(t){t=t.transform(i);n=Math.min(n,t.x);r=Math.max(r,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(n,e,r-n,s-e)};return t}();function Pt(t,i,n){var r;try{r=i(t.node);if(It(r)&&!zt(t.node)){throw new Error("Element not in the dom")}}catch(i){r=n(t)}return r}function Gt(){var t=function(t){return t.getBBox()};var i=function(t){try{var i=t.clone().addTo(Dt().svg).show();var n=i.node.getBBox();i.remove();return n}catch(i){throw new Error('Getting bbox of element "'.concat(t.node.nodeName,'" is not possible: ').concat(i.toString()))}};var n=Pt(this,t,i);var r=new Nt(n);return r}function Rt(t){var i=function(t){return t.getBoundingClientRect()};var n=function(t){throw new Error('Getting rbox of element "'.concat(t.node.nodeName,'" is not possible'))};var r=Pt(this,i,n);var e=new Nt(r);if(t){return e.transform(t.screenCTM().inverseO())}return e.addOffset()}function Yt(t,i){var n=this.bbox();return t>n.x&&i>n.y&&t<n.x+n.width&&i<n.y+n.height}h({viewbox:{viewbox:function(t,i,n,r){if(t==null)return new Nt(this.attr("viewBox"));return this.attr("viewBox",new Nt(t,i,n,r))},zoom:function(t,i){var n=this.attr(["width","height"]),r=n.width,e=n.height;if(!r&&!e||typeof r==="string"||typeof e==="string"){r=this.node.clientWidth;e=this.node.clientHeight}if(!r||!e){throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element")}var s=this.viewbox();var u=r/s.width;var h=e/s.height;var o=Math.min(u,h);if(t==null){return o}var f=o/t;if(f===Infinity)f=Number.MAX_SAFE_INTEGER/100;i=i||new Et(r/2/u+s.x,e/2/h+s.y);var a=new Nt(s).transform(new St({scale:f,origin:i}));return this.viewbox(a)}}});Z(Nt,"Box");var Xt=function(t){__extends(i,t);function i(i){if(i===void 0){i=[]}var n=[];for(var r=1;r<arguments.length;r++){n[r-1]=arguments[r]}var e=t.apply(this,__spreadArray([i],n,false))||this;if(typeof i==="number")return e;e.length=0;e.push.apply(e,i);return e}return i}(Array);I([Xt],{each:function(t){var i=[];for(var n=1;n<arguments.length;n++){i[n-1]=arguments[n]}if(typeof t==="function"){return this.map((function(i,n,r){return t.call(i,i,n,r)}))}else{return this.map((function(n){return n[t].apply(n,i)}))}},toArray:function(){return Array.prototype.concat.apply([],this)}});var $t=["toArray","constructor","each"];Xt.extend=function(t){t=t.reduce((function(t,i){if($t.includes(i))return t;if(i[0]==="_")return t;if(i in Array.prototype){t["$"+i]=Array.prototype[i]}t[i]=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return this.each.apply(this,__spreadArray([i],t,false))};return t}),{});I([Xt],t)};function Qt(t,i){return new Xt(c((i||k.document).querySelectorAll(t),(function(t){return E(t)})))}function Ut(t){return Qt(t,this.node)}function Jt(t){return E(this.node.querySelector(t))}var qt=0;var Wt={};function Kt(t){var i=t.getEventHolder();if(i===k.window)i=Wt;if(!i.events)i.events={};return i.events}function ti(t){return t.getEventTarget()}function ii(t){var i=t.getEventHolder();if(i===k.window)i=Wt;if(i.events)i.events={}}function ni(t,i,n,r,e){var s=n.bind(r||t);var u=O(t);var h=Kt(u);var o=ti(u);i=Array.isArray(i)?i:i.split(at);if(!n._svgjsListenerId){n._svgjsListenerId=++qt}i.forEach((function(t){var i=t.split(".")[0];var r=t.split(".")[1]||"*";h[i]=h[i]||{};h[i][r]=h[i][r]||{};h[i][r][n._svgjsListenerId]=s;o.addEventListener(i,s,e||false)}))}function ri(t,i,n,r){var e=O(t);var s=Kt(e);var u=ti(e);if(typeof n==="function"){n=n._svgjsListenerId;if(!n)return}i=Array.isArray(i)?i:(i||"").split(at);i.forEach((function(t){var i=t&&t.split(".")[0];var h=t&&t.split(".")[1];var o,f;if(n){if(s[i]&&s[i][h||"*"]){u.removeEventListener(i,s[i][h||"*"][n],r||false);delete s[i][h||"*"][n]}}else if(i&&h){if(s[i]&&s[i][h]){for(f in s[i][h]){ri(u,[i,h].join("."),f)}delete s[i][h]}}else if(h){for(t in s){for(o in s[t]){if(h===o){ri(u,[t,h].join("."))}}}}else if(i){if(s[i]){for(o in s[i]){ri(u,[i,o].join("."))}delete s[i]}}else{for(t in s){ri(u,t)}ii(e)}}))}function ei(t,i,n,r){var e=ti(t);if(i instanceof k.window.Event){e.dispatchEvent(i)}else{i=new k.window.CustomEvent(i,__assign({detail:n,cancelable:true},r));e.dispatchEvent(i)}return i}var si=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.addEventListener=function(){};i.prototype.dispatch=function(t,i,n){return ei(this,t,i,n)};i.prototype.dispatchEvent=function(t){var i=this.getEventHolder().events;if(!i)return true;var n=i[t.type];for(var r in n){for(var e in n[r]){n[r][e](t)}}return!t.defaultPrevented};i.prototype.fire=function(t,i,n){this.dispatch(t,i,n);return this};i.prototype.getEventHolder=function(){return this};i.prototype.getEventTarget=function(){return this};i.prototype.off=function(t,i,n){ri(this,t,i,n);return this};i.prototype.on=function(t,i,n,r){ni(this,t,i,n,r);return this};i.prototype.removeEventListener=function(){};return i}(j);Z(si,"EventTarget");function ui(){}var hi={duration:400,ease:">",delay:0};var oi={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var fi=function(t){__extends(i,t);function i(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}var r=t.apply(this,i)||this;r.init.apply(r,i);return r}i.prototype.clone=function(){return new this.constructor(this)};i.prototype.init=function(t){if(typeof t==="number")return this;this.length=0;this.push.apply(this,this.parse(t));return this};i.prototype.parse=function(t){if(t===void 0){t=[]}if(t instanceof Array)return t;return t.trim().split(at).map(parseFloat)};i.prototype.toArray=function(){return Array.prototype.concat.apply([],this)};i.prototype.toSet=function(){return new Set(this)};i.prototype.toString=function(){return this.join(" ")};i.prototype.valueOf=function(){var t=[];t.push.apply(t,this);return t};return i}(Array);var ai=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.convert=function(i){return new t(this.value,i)};t.prototype.divide=function(i){i=new t(i);return new t(this/i,this.unit||i.unit)};t.prototype.init=function(i,n){n=Array.isArray(i)?i[1]:n;i=Array.isArray(i)?i[0]:i;this.value=0;this.unit=n||"";if(typeof i==="number"){this.value=isNaN(i)?0:!isFinite(i)?i<0?-34e37:+34e37:i}else if(typeof i==="string"){n=i.match(K);if(n){this.value=parseFloat(n[1]);if(n[5]==="%"){this.value/=100}else if(n[5]==="s"){this.value*=1e3}this.unit=n[5]}}else{if(i instanceof t){this.value=i.valueOf();this.unit=i.unit}}return this};t.prototype.minus=function(i){i=new t(i);return new t(this-i,this.unit||i.unit)};t.prototype.plus=function(i){i=new t(i);return new t(this+i,this.unit||i.unit)};t.prototype.times=function(i){i=new t(i);return new t(this*i,this.unit||i.unit)};t.prototype.toArray=function(){return[this.value,this.unit]};t.prototype.toJSON=function(){return this.toString()};t.prototype.toString=function(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit};t.prototype.valueOf=function(){return this.value};return t}();var ci=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);var vi=[];function li(t){vi.push(t)}function di(t,i,n){var r=this;if(t==null){t={};i=this.node.attributes;for(var e=0,s=i;e<s.length;e++){var u=s[e];t[u.nodeName]=ot.test(u.nodeValue)?parseFloat(u.nodeValue):u.nodeValue}return t}else if(t instanceof Array){return t.reduce((function(t,i){t[i]=r.attr(i);return t}),{})}else if(typeof t==="object"&&t.constructor===Object){for(i in t)this.attr(i,t[i])}else if(i===null){this.node.removeAttribute(t)}else if(i==null){i=this.node.getAttribute(t);return i==null?oi[t]:ot.test(i)?parseFloat(i):i}else{i=vi.reduce((function(i,n){return n(t,i,r)}),i);if(typeof i==="number"){i=new ai(i)}else if(ci.has(t)&&Bt.isColor(i)){i=new Bt(i)}else if(i.constructor===Array){i=new fi(i)}if(t==="leading"){if(this.leading){this.leading(i)}}else{typeof n==="string"?this.node.setAttributeNS(n,t,i.toString()):this.node.setAttribute(t,i.toString())}if(this.rebuild&&(t==="font-size"||t==="x")){this.rebuild()}}return this}var Ci=function(t){__extends(i,t);function i(i,n){var r=t.call(this)||this;r.node=i;r.type=i.nodeName;if(n&&i!==n){r.attr(n)}return r}i.prototype.add=function(t,i){t=O(t);if(t.removeNamespace&&this.node instanceof k.window.SVGElement){t.removeNamespace()}if(i==null){this.node.appendChild(t.node)}else if(t.node!==this.node.childNodes[i]){this.node.insertBefore(t.node,this.node.childNodes[i])}return this};i.prototype.addTo=function(t,i){return O(t).put(this,i)};i.prototype.children=function(){return new Xt(c(this.node.children,(function(t){return E(t)})))};i.prototype.clear=function(){while(this.node.hasChildNodes()){this.node.removeChild(this.node.lastChild)}return this};i.prototype.clone=function(t,i){if(t===void 0){t=true}if(i===void 0){i=true}this.writeDataToDom();var n=this.node.cloneNode(t);if(i){n=D(n)}return new this.constructor(n)};i.prototype.each=function(t,i){var n=this.children();var r,e;for(r=0,e=n.length;r<e;r++){t.apply(n[r],[r,n]);if(i){n[r].each(t,i)}}return this};i.prototype.element=function(t,n){return this.put(new i(V(t),n))};i.prototype.first=function(){return E(this.node.firstChild)};i.prototype.get=function(t){return E(this.node.childNodes[t])};i.prototype.getEventHolder=function(){return this.node};i.prototype.getEventTarget=function(){return this.node};i.prototype.has=function(t){return this.index(t)>=0};i.prototype.html=function(t,i){return this.xml(t,i,_)};i.prototype.id=function(t){if(typeof t==="undefined"&&!this.node.id){this.node.id=F(this.type)}return this.attr("id",t)};i.prototype.index=function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)};i.prototype.last=function(){return E(this.node.lastChild)};i.prototype.matches=function(t){var i=this.node;var n=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return n&&n.call(i,t)};i.prototype.parent=function(t){var i=this;if(!i.node.parentNode)return null;i=E(i.node.parentNode);if(!t)return i;do{if(typeof t==="string"?i.matches(t):i instanceof t)return i}while(i=E(i.node.parentNode));return i};i.prototype.put=function(t,i){t=O(t);this.add(t,i);return t};i.prototype.putIn=function(t,i){return O(t).add(this,i)};i.prototype.remove=function(){if(this.parent()){this.parent().removeElement(this)}return this};i.prototype.removeElement=function(t){this.node.removeChild(t.node);return this};i.prototype.replace=function(t){t=O(t);if(this.node.parentNode){this.node.parentNode.replaceChild(t.node,this.node)}return t};i.prototype.round=function(t,i){if(t===void 0){t=2}if(i===void 0){i=null}var n=Math.pow(10,t);var r=this.attr(i);for(var e in r){if(typeof r[e]==="number"){r[e]=Math.round(r[e]*n)/n}}this.attr(r);return this};i.prototype.svg=function(t,i){return this.xml(t,i,x)};i.prototype.toString=function(){return this.id()};i.prototype.words=function(t){this.node.textContent=t;return this};i.prototype.wrap=function(t){var i=this.parent();if(!i){return this.addTo(t)}var n=i.index(this);return i.put(t,n).put(this)};i.prototype.writeDataToDom=function(){this.each((function(){this.writeDataToDom()}));return this};i.prototype.xml=function(t,i,n){if(typeof t==="boolean"){n=i;i=t;t=null}if(t==null||typeof t==="function"){i=i==null?true:i;this.writeDataToDom();var r=this;if(t!=null){r=E(r.node.cloneNode(true));if(i){var e=t(r);r=e||r;if(e===false)return""}r.each((function(){var i=t(this);var n=i||this;if(i===false){this.remove()}else if(i&&this!==n){this.replace(n)}}),true)}return i?r.node.outerHTML:r.node.innerHTML}i=i==null?false:i;var s=V("wrapper",n);var u=k.document.createDocumentFragment();s.innerHTML=t;for(var h=s.children.length;h--;){u.appendChild(s.firstElementChild)}var o=this.parent();return i?this.replace(u)&&o:this.add(u)};return i}(si);I(Ci,{attr:di,find:Ut,findOne:Jt});Z(Ci,"Dom");var wi=function(t){__extends(i,t);function i(i,n){var r,e;var s=t.call(this,i,n)||this;s.dom={};s.node.instance=s;if(i.hasAttribute("data-svgjs")||i.hasAttribute("svgjs:data")){s.setData((e=(r=JSON.parse(i.getAttribute("data-svgjs")))!==null&&r!==void 0?r:JSON.parse(i.getAttribute("svgjs:data")))!==null&&e!==void 0?e:{})}return s}i.prototype.center=function(t,i){return this.cx(t).cy(i)};i.prototype.cx=function(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)};i.prototype.cy=function(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)};i.prototype.defs=function(){var t=this.root();return t&&t.defs()};i.prototype.dmove=function(t,i){return this.dx(t).dy(i)};i.prototype.dx=function(t){if(t===void 0){t=0}return this.x(new ai(t).plus(this.x()))};i.prototype.dy=function(t){if(t===void 0){t=0}return this.y(new ai(t).plus(this.y()))};i.prototype.getEventHolder=function(){return this};i.prototype.height=function(t){return this.attr("height",t)};i.prototype.move=function(t,i){return this.x(t).y(i)};i.prototype.parents=function(t){if(t===void 0){t=this.root()}var i=typeof t==="string";if(!i){t=O(t)}var n=new Xt;var r=this;while((r=r.parent())&&r.node!==k.document&&r.nodeName!=="#document-fragment"){n.push(r);if(!i&&r.node===t.node){break}if(i&&r.matches(t)){break}if(r.node===this.root().node){return null}}return n};i.prototype.reference=function(t){t=this.attr(t);if(!t)return null;var i=(t+"").match(nt);return i?O(i[1]):null};i.prototype.root=function(){var t=this.parent(S(L));return t&&t.root()};i.prototype.setData=function(t){this.dom=t;return this};i.prototype.size=function(t,i){var n=w(this,t,i);return this.width(new ai(n.width)).height(new ai(n.height))};i.prototype.width=function(t){return this.attr("width",t)};i.prototype.writeDataToDom=function(){m(this,this.dom);return t.prototype.writeDataToDom.call(this)};i.prototype.x=function(t){return this.attr("x",t)};i.prototype.y=function(t){return this.attr("y",t)};return i}(Ci);I(wi,{bbox:Gt,rbox:Rt,inside:Yt,point:Ht,ctm:Tt,screenCTM:Ft});Z(wi,"Element");var pi={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return i==="color"?t:t+"-"+i}};["fill","stroke"].forEach((function(t){var i={};var n;i[t]=function(i){if(typeof i==="undefined"){return this.attr(t)}if(typeof i==="string"||i instanceof Bt||Bt.isRgb(i)||i instanceof wi){this.attr(t,i)}else{for(n=pi[t].length-1;n>=0;n--){if(i[pi[t][n]]!=null){this.attr(pi.prefix(t,pi[t][n]),i[pi[t][n]])}}}return this};h(["Element","Runner"],i)}));h(["Element","Runner"],{matrix:function(t,i,n,r,e,s){if(t==null){return new St(this)}return this.attr("transform",new St(t,i,n,r,e,s))},rotate:function(t,i,n){return this.transform({rotate:t,ox:i,oy:n},true)},skew:function(t,i,n,r){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:i,oy:n},true):this.transform({skew:[t,i],ox:n,oy:r},true)},shear:function(t,i,n){return this.transform({shear:t,ox:i,oy:n},true)},scale:function(t,i,n,r){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:i,oy:n},true):this.transform({scale:[t,i],ox:n,oy:r},true)},translate:function(t,i){return this.transform({translate:[t,i]},true)},relative:function(t,i){return this.transform({relative:[t,i]},true)},flip:function(t,i){if(t===void 0){t="both"}if(i===void 0){i="center"}if("xybothtrue".indexOf(t)===-1){i=t;t="both"}return this.transform({flip:t,origin:i},true)},opacity:function(t){return this.attr("opacity",t)}});h("radius",{radius:function(t,i){if(i===void 0){i=t}var n=(this._element||this).type;return n==="radialGradient"?this.attr("r",new ai(t)):this.rx(t).ry(i)}});h("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Et(this.node.getPointAtLength(t))}});h(["Element","Runner"],{font:function(t,i){if(typeof t==="object"){for(i in t)this.font(i,t[i]);return this}return t==="leading"?this.leading(i):t==="anchor"?this.attr("text-anchor",i):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,i):this.attr(t,i)}});var gi=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){var n=function(t){if(t===null){this.off(i)}else{this.on(i,t)}return this};t[i]=n;return t}),{});h("Element",gi);function yi(){return this.attr("transform",null)}function mi(){var t=(this.attr("transform")||"").split(rt).slice(0,-1).map((function(t){var i=t.trim().split("(");return[i[0],i[1].split(at).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){if(i[0]==="matrix"){return t.lmultiply(St.fromArray(i[1]))}return t[i[0]].apply(t,i[1])}),new St);return t}function xi(t,i){if(this===t)return this;if(y(this.node))return this.addTo(t,i);var n=this.screenCTM();var r=t.screenCTM().inverse();this.addTo(t,i).untransform().transform(r.multiply(n));return this}function _i(t){return this.toParent(this.root(),t)}function bi(t,i){if(t==null||typeof t==="string"){var n=new St(this).decompose();return t==null?n:n[t]}if(!St.isMatrixLike(t)){t=__assign(__assign({},t),{origin:p(t,this)})}var r=i===true?this:i||false;var e=new St(r).transform(t);return this.attr("transform",e)}h("Element",{untransform:yi,matrixify:mi,toParent:xi,toRoot:_i,transform:bi});var Mi=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.flatten=function(){this.each((function(){if(this instanceof i){return this.flatten().ungroup()}}));return this};i.prototype.ungroup=function(t,i){if(t===void 0){t=this.parent()}if(i===void 0){i=t.index(this)}i=i===-1?t.children().length:i;this.each((function(n,r){return r[r.length-n-1].toParent(t,i)}));return this.remove()};return i}(wi);Z(Mi,"Container");var ki=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("defs",i),n)||this}i.prototype.flatten=function(){return this};i.prototype.ungroup=function(){return this};return i}(Mi);Z(ki,"Defs");var ji=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}return i}(wi);Z(ji,"Shape");function Ai(t){return this.attr("rx",t)}function Li(t){return this.attr("ry",t)}function Vi(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function Oi(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function Bi(t){return this.attr("cx",t)}function Ei(t){return this.attr("cy",t)}function Hi(t){return t==null?this.rx()*2:this.rx(new ai(t).divide(2))}function Zi(t){return t==null?this.ry()*2:this.ry(new ai(t).divide(2))}var Si={__proto__:null,cx:Bi,cy:Ei,height:Zi,rx:Ai,ry:Li,width:Hi,x:Vi,y:Oi};var Ti=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("ellipse",i),n)||this}i.prototype.size=function(t,i){var n=w(this,t,i);return this.rx(new ai(n.width).divide(2)).ry(new ai(n.height).divide(2))};return i}(ji);I(Ti,Si);h("Container",{ellipse:z((function(t,i){if(t===void 0){t=0}if(i===void 0){i=t}return this.put(new Ti).size(t,i).move(0,0)}))});Z(Ti,"Ellipse");var Fi=function(t){__extends(i,t);function i(i){if(i===void 0){i=k.document.createDocumentFragment()}return t.call(this,i)||this}i.prototype.xml=function(i,n,r){if(typeof i==="boolean"){r=n;n=i;i=null}if(i==null||typeof i==="function"){var e=new Ci(V("wrapper",r));e.add(this.node.cloneNode(true));return e.xml(false,r)}return t.prototype.xml.call(this,i,false,r)};return i}(Ci);Z(Fi,"Fragment");function Di(t,i){return(this._element||this).type==="radialGradient"?this.attr({fx:new ai(t),fy:new ai(i)}):this.attr({x1:new ai(t),y1:new ai(i)})}function Ii(t,i){return(this._element||this).type==="radialGradient"?this.attr({cx:new ai(t),cy:new ai(i)}):this.attr({x2:new ai(t),y2:new ai(i)})}var zi={__proto__:null,from:Di,to:Ii};var Ni=function(t){__extends(i,t);function i(i,n){return t.call(this,B(i+"Gradient",typeof i==="string"?null:i),n)||this}i.prototype.attr=function(i,n,r){if(i==="transform")i="gradientTransform";return t.prototype.attr.call(this,i,n,r)};i.prototype.bbox=function(){return new Nt};i.prototype.targets=function(){return Qt("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Mi);I(Ni,zi);h({Container:{gradient:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).gradient.apply(t,i)}},Defs:{gradient:z((function(t,i){return this.put(new Ni(t)).update(i)}))}});Z(Ni,"Gradient");var Pi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("pattern",i),n)||this}i.prototype.attr=function(i,n,r){if(i==="transform")i="patternTransform";return t.prototype.attr.call(this,i,n,r)};i.prototype.bbox=function(){return new Nt};i.prototype.targets=function(){return Qt("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Mi);h({Container:{pattern:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).pattern.apply(t,i)}},Defs:{pattern:z((function(t,i,n){return this.put(new Pi).update(n).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}});Z(Pi,"Pattern");var Gi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("image",i),n)||this}i.prototype.load=function(t,i){if(!t)return this;var n=new k.window.Image;ni(n,"load",(function(t){var r=this.parent(Pi);if(this.width()===0&&this.height()===0){this.size(n.width,n.height)}if(r instanceof Pi){if(r.width()===0&&r.height()===0){r.size(this.width(),this.height())}}if(typeof i==="function"){i.call(this,t)}}),this);ni(n,"load error",(function(){ri(n)}));return this.attr("href",n.src=t,M)};return i}(ji);li((function(t,i,n){if(t==="fill"||t==="stroke"){if(ft.test(i)){i=n.root().defs().image(i)}}if(i instanceof Gi){i=n.root().defs().pattern(0,0,(function(t){t.add(i)}))}return i}));h({Container:{image:z((function(t,i){return this.put(new Gi).size(0,0).load(t,i)}))}});Z(Gi,"Image");var Ri=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){var t=-Infinity;var i=-Infinity;var n=Infinity;var r=Infinity;this.forEach((function(e){t=Math.max(e[0],t);i=Math.max(e[1],i);n=Math.min(e[0],n);r=Math.min(e[1],r)}));return new Nt(n,r,t-n,i-r)};i.prototype.move=function(t,i){var n=this.bbox();t-=n.x;i-=n.y;if(!isNaN(t)&&!isNaN(i)){for(var r=this.length-1;r>=0;r--){this[r]=[this[r][0]+t,this[r][1]+i]}}return this};i.prototype.parse=function(t){if(t===void 0){t=[0,0]}var i=[];if(t instanceof Array){t=Array.prototype.concat.apply([],t)}else{t=t.trim().split(at).map(parseFloat)}if(t.length%2!==0)t.pop();for(var n=0,r=t.length;n<r;n=n+2){i.push([t[n],t[n+1]])}return i};i.prototype.size=function(t,i){var n;var r=this.bbox();for(n=this.length-1;n>=0;n--){if(r.width)this[n][0]=(this[n][0]-r.x)*t/r.width+r.x;if(r.height)this[n][1]=(this[n][1]-r.y)*i/r.height+r.y}return this};i.prototype.toLine=function(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}};i.prototype.toString=function(){var t=[];for(var i=0,n=this.length;i<n;i++){t.push(this[i].join(","))}return t.join(" ")};i.prototype.transform=function(t){return this.clone().transformO(t)};i.prototype.transformO=function(t){if(!St.isMatrixLike(t)){t=new St(t)}for(var i=this.length;i--;){var n=this[i],r=n[0],e=n[1];this[i][0]=t.a*r+t.c*e+t.e;this[i][1]=t.b*r+t.d*e+t.f}return this};return i}(fi);var Yi=Ri;function Xi(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function $i(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function Qi(t){var i=this.bbox();return t==null?i.width:this.size(t,i.height)}function Ui(t){var i=this.bbox();return t==null?i.height:this.size(i.width,t)}var Ji={__proto__:null,MorphArray:Yi,height:Ui,width:Qi,x:Xi,y:$i};var qi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("line",i),n)||this}i.prototype.array=function(){return new Ri([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])};i.prototype.move=function(t,i){return this.attr(this.array().move(t,i).toLine())};i.prototype.plot=function(t,i,n,r){if(t==null){return this.array()}else if(typeof i!=="undefined"){t={x1:t,y1:i,x2:n,y2:r}}else{t=new Ri(t).toLine()}return this.attr(t)};i.prototype.size=function(t,i){var n=w(this,t,i);return this.attr(this.array().size(n.width,n.height).toLine())};return i}(ji);I(qi,Ji);h({Container:{line:z((function(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}return qi.prototype.plot.apply(this.put(new qi),t[0]!=null?t:[0,0,0,0])}))}});Z(qi,"Line");var Wi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("marker",i),n)||this}i.prototype.height=function(t){return this.attr("markerHeight",t)};i.prototype.orient=function(t){return this.attr("orient",t)};i.prototype.ref=function(t,i){return this.attr("refX",t).attr("refY",i)};i.prototype.toString=function(){return"url(#"+this.id()+")"};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.width=function(t){return this.attr("markerWidth",t)};return i}(Mi);h({Container:{marker:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).marker.apply(t,i)}},Defs:{marker:z((function(t,i,n){return this.put(new Wi).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(n)}))},marker:{marker:function(t,i,n,r){var e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Wi?arguments[1]:this.defs().marker(i,n,r);return this.attr(e,t)}}});Z(Wi,"Marker");function Ki(t,i){return function(n){if(n==null)return this[t];this[t]=n;if(i)i.call(this);return this}}var tn={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,i,n,r){return function(e){if(e<0){if(t>0){return i/t*e}else if(n>0){return r/n*e}else{return 0}}else if(e>1){if(n<1){return(1-r)/(1-n)*e+(r-n)/(1-n)}else if(t<1){return(1-i)/(1-t)*e+(i-t)/(1-t)}else{return 1}}else{return 3*e*Math.pow(1-e,2)*i+3*Math.pow(e,2)*(1-e)*r+Math.pow(e,3)}}},steps:function(t,i){if(i===void 0){i="end"}i=i.split("-").reverse()[0];var n=t;if(i==="none"){--n}else if(i==="both"){++n}return function(r,e){if(e===void 0){e=false}var s=Math.floor(r*t);var u=r*s%1===0;if(i==="start"||i==="both"){++s}if(e&&u){--s}if(r>=0&&s<0){s=0}if(r<=1&&s>n){s=n}return s/n}}};var nn=function(){function t(){}t.prototype.done=function(){return false};return t}();var rn=function(t){__extends(i,t);function i(i){if(i===void 0){i=hi.ease}var n=t.call(this)||this;n.ease=tn[i]||i;return n}i.prototype.step=function(t,i,n){if(typeof t!=="number"){return n<1?t:i}return t+(i-t)*this.ease(n)};return i}(nn);var en=function(t){__extends(i,t);function i(i){var n=t.call(this)||this;n.stepper=i;return n}i.prototype.done=function(t){return t.done};i.prototype.step=function(t,i,n,r){return this.stepper(t,i,n,r)};return i}(nn);function sn(){var t=(this._duration||500)/1e3;var i=this._overshoot||0;var n=1e-10;var r=Math.PI;var e=Math.log(i/100+n);var s=-e/Math.sqrt(r*r+e*e);var u=3.9/(s*t);this.d=2*s*u;this.k=u*u}var un=function(t){__extends(i,t);function i(i,n){if(i===void 0){i=500}if(n===void 0){n=0}var r=t.call(this)||this;r.duration(i).overshoot(n);return r}i.prototype.step=function(t,i,n,r){if(typeof t==="string")return t;r.done=n===Infinity;if(n===Infinity)return i;if(n===0)return t;if(n>100)n=16;n/=1e3;var e=r.velocity||0;var s=-this.d*e-this.k*(t-i);var u=t+e*n+s*n*n/2;r.velocity=e+s*n;r.done=Math.abs(i-u)+Math.abs(e)<.002;return r.done?i:u};return i}(en);I(un,{duration:Ki("_duration",sn),overshoot:Ki("_overshoot",sn)});var hn=function(t){__extends(i,t);function i(i,n,r,e){if(i===void 0){i=.1}if(n===void 0){n=.01}if(r===void 0){r=0}if(e===void 0){e=1e3}var s=t.call(this)||this;s.p(i).i(n).d(r).windup(e);return s}i.prototype.step=function(t,i,n,r){if(typeof t==="string")return t;r.done=n===Infinity;if(n===Infinity)return i;if(n===0)return t;var e=i-t;var s=(r.integral||0)+e*n;var u=(e-(r.error||0))/n;var h=this._windup;if(h!==false){s=Math.max(-h,Math.min(s,h))}r.error=e;r.integral=s;r.done=Math.abs(e)<.001;return r.done?i:t+(this.P*e+this.I*s+this.D*u)};return i}(en);I(hn,{windup:Ki("_windup"),p:Ki("P"),i:Ki("I"),d:Ki("D")});var on={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};var fn={M:function(t,i,n){i.x=n.x=t[0];i.y=n.y=t[1];return["M",i.x,i.y]},L:function(t,i){i.x=t[0];i.y=t[1];return["L",t[0],t[1]]},H:function(t,i){i.x=t[0];return["H",t[0]]},V:function(t,i){i.y=t[0];return["V",t[0]]},C:function(t,i){i.x=t[4];i.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){i.x=t[2];i.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){i.x=t[2];i.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){i.x=t[0];i.y=t[1];return["T",t[0],t[1]]},Z:function(t,i,n){i.x=n.x;i.y=n.y;return["Z"]},A:function(t,i){i.x=t[5];i.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};var an="mlhvqtcsaz".split("");for(var cn=0,vn=an.length;cn<vn;++cn){fn[an[cn]]=function(t){return function(i,n,r){if(t==="H")i[0]=i[0]+n.x;else if(t==="V")i[0]=i[0]+n.y;else if(t==="A"){i[5]=i[5]+n.x;i[6]=i[6]+n.y}else{for(var e=0,s=i.length;e<s;++e){i[e]=i[e]+(e%2?n.y:n.x)}}return fn[t](i,n,r)}}(an[cn].toUpperCase())}function ln(t){var i=t.segment[0];return fn[i](t.segment.slice(1),t.p,t.p0)}function dn(t){return t.segment.length&&t.segment.length-1===on[t.segment[0].toUpperCase()]}function Cn(t,i){t.inNumber&&wn(t,false);var n=ct.test(i);if(n){t.segment=[i]}else{var r=t.lastCommand;var e=r.toLowerCase();var s=r===e;t.segment=[e==="m"?s?"l":"L":r]}t.inSegment=true;t.lastCommand=t.segment[0];return n}function wn(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=i;t.number="";t.pointSeen=false;t.hasExponent=false;if(dn(t)){pn(t)}}function pn(t){t.inSegment=false;if(t.absolute){t.segment=ln(t)}t.segments.push(t.segment)}function gn(t){if(!t.segment.length)return false;var i=t.segment[0].toUpperCase()==="A";var n=t.segment.length;return i&&(n===4||n===5)}function yn(t){return t.lastToken.toUpperCase()==="E"}var mn=new Set([" ",",","\t","\n","\r","\f"]);function xn(t,i){if(i===void 0){i=true}var n=0;var r="";var e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:i,p0:new Et,p:new Et};while(e.lastToken=r,r=t.charAt(n++)){if(!e.inSegment){if(Cn(e,r)){continue}}if(r==="."){if(e.pointSeen||e.hasExponent){wn(e,false);--n;continue}e.inNumber=true;e.pointSeen=true;e.number+=r;continue}if(!isNaN(parseInt(r))){if(e.number==="0"||gn(e)){e.inNumber=true;e.number=r;wn(e,true);continue}e.inNumber=true;e.number+=r;continue}if(mn.has(r)){if(e.inNumber){wn(e,false)}continue}if(r==="-"||r==="+"){if(e.inNumber&&!yn(e)){wn(e,false);--n;continue}e.number+=r;e.inNumber=true;continue}if(r.toUpperCase()==="E"){e.number+=r;e.hasExponent=true;continue}if(ct.test(r)){if(e.inNumber){wn(e,false)}else if(!dn(e)){throw new Error("parser Error")}else{pn(e)}--n}}if(e.inNumber){wn(e,false)}if(e.inSegment&&dn(e)){pn(e)}return e.segments}function _n(t){var i="";for(var n=0,r=t.length;n<r;n++){i+=t[n][0];if(t[n][1]!=null){i+=t[n][1];if(t[n][2]!=null){i+=" ";i+=t[n][2];if(t[n][3]!=null){i+=" ";i+=t[n][3];i+=" ";i+=t[n][4];if(t[n][5]!=null){i+=" ";i+=t[n][5];i+=" ";i+=t[n][6];if(t[n][7]!=null){i+=" ";i+=t[n][7]}}}}}}return i+" "}var bn=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){Dt().path.setAttribute("d",this.toString());return new Nt(Dt.nodes.path.getBBox())};i.prototype.move=function(t,i){var n=this.bbox();t-=n.x;i-=n.y;if(!isNaN(t)&&!isNaN(i)){for(var r=void 0,e=this.length-1;e>=0;e--){r=this[e][0];if(r==="M"||r==="L"||r==="T"){this[e][1]+=t;this[e][2]+=i}else if(r==="H"){this[e][1]+=t}else if(r==="V"){this[e][1]+=i}else if(r==="C"||r==="S"||r==="Q"){this[e][1]+=t;this[e][2]+=i;this[e][3]+=t;this[e][4]+=i;if(r==="C"){this[e][5]+=t;this[e][6]+=i}}else if(r==="A"){this[e][6]+=t;this[e][7]+=i}}}return this};i.prototype.parse=function(t){if(t===void 0){t="M0 0"}if(Array.isArray(t)){t=Array.prototype.concat.apply([],t).toString()}return xn(t)};i.prototype.size=function(t,i){var n=this.bbox();var r,e;n.width=n.width===0?1:n.width;n.height=n.height===0?1:n.height;for(r=this.length-1;r>=0;r--){e=this[r][0];if(e==="M"||e==="L"||e==="T"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x;this[r][2]=(this[r][2]-n.y)*i/n.height+n.y}else if(e==="H"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x}else if(e==="V"){this[r][1]=(this[r][1]-n.y)*i/n.height+n.y}else if(e==="C"||e==="S"||e==="Q"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x;this[r][2]=(this[r][2]-n.y)*i/n.height+n.y;this[r][3]=(this[r][3]-n.x)*t/n.width+n.x;this[r][4]=(this[r][4]-n.y)*i/n.height+n.y;if(e==="C"){this[r][5]=(this[r][5]-n.x)*t/n.width+n.x;this[r][6]=(this[r][6]-n.y)*i/n.height+n.y}}else if(e==="A"){this[r][1]=this[r][1]*t/n.width;this[r][2]=this[r][2]*i/n.height;this[r][6]=(this[r][6]-n.x)*t/n.width+n.x;this[r][7]=(this[r][7]-n.y)*i/n.height+n.y}}return this};i.prototype.toString=function(){return _n(this)};return i}(fi);var Mn=function(t){var i=typeof t;if(i==="number"){return ai}else if(i==="string"){if(Bt.isColor(t)){return Bt}else if(at.test(t)){return ct.test(t)?bn:fi}else if(K.test(t)){return ai}else{return jn}}else if(On.indexOf(t.constructor)>-1){return t.constructor}else if(Array.isArray(t)){return fi}else if(i==="object"){return Vn}else{return jn}};var kn=function(){function t(t){this._stepper=t||new rn("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}t.prototype.at=function(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)};t.prototype.done=function(){var t=this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),true);return t};t.prototype.from=function(t){if(t==null){return this._from}this._from=this._set(t);return this};t.prototype.stepper=function(t){if(t==null)return this._stepper;this._stepper=t;return this};t.prototype.to=function(t){if(t==null){return this._to}this._to=this._set(t);return this};t.prototype.type=function(t){if(t==null){return this._type}this._type=t;return this};t.prototype._set=function(t){if(!this._type){this.type(Mn(t))}var i=new this._type(t);if(this._type===Bt){i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i}if(this._type===Vn){i=this._to?i.align(this._to):this._from?i.align(this._from):i}i=i.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){t.done=true;return t}));return i};return t}();var jn=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this};t.prototype.toArray=function(){return[this.value]};t.prototype.valueOf=function(){return this.value};return t}();var An=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(i){if(Array.isArray(i)){i={scaleX:i[0],scaleY:i[1],shear:i[2],rotate:i[3],translateX:i[4],translateY:i[5],originX:i[6],originY:i[7]}}Object.assign(this,t.defaults,i);return this};t.prototype.toArray=function(){var t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]};return t}();An.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};var Ln=function(t,i){return t[0]<i[0]?-1:t[0]>i[0]?1:0};var Vn=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.align=function(t){var i;var n=this.values;for(var r=0,e=n.length;r<e;++r){if(n[r+1]===t[r+1]){if(n[r+1]===Bt&&t[r+7]!==n[r+7]){var s=t[r+7];var u=new Bt(this.values.splice(r+3,5))[s]().toArray();(i=this.values).splice.apply(i,__spreadArray([r+3,0],u,false))}r+=n[r+2]+2;continue}if(!t[r+1]){return this}var h=(new t[r+1]).toArray();var o=n[r+2]+3;n.splice.apply(n,__spreadArray([r,o,t[r],t[r+1],t[r+2]],h,false));r+=n[r+2]+2}return this};t.prototype.init=function(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};var i=[];for(var n in t){var r=Mn(t[n]);var e=new r(t[n]).toArray();i.push(__spreadArray([n,r,e.length],e,true))}i.sort(Ln);this.values=i.reduce((function(t,i){return t.concat(i)}),[]);return this};t.prototype.toArray=function(){return this.values};t.prototype.valueOf=function(){var t={};var i=this.values;while(i.length){var n=i.shift();var r=i.shift();var e=i.shift();var s=i.splice(0,e);t[n]=new r(s)}return t};return t}();var On=[jn,An,Vn];function Bn(t){if(t===void 0){t=[]}On.push.apply(On,[].concat(t))}function En(){I(On,{to:function(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray:function(t){this.init(t);return this},toConsumable:function(){return this.toArray()},morph:function(t,i,n,r,e){var s=function(t,s){return r.step(t,i[s],n,e[s],e)};return this.fromArray(t.map(s))}})}var Hn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("path",i),n)||this}i.prototype.array=function(){return this._array||(this._array=new bn(this.attr("d")))};i.prototype.clear=function(){delete this._array;return this};i.prototype.height=function(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)};i.prototype.move=function(t,i){return this.attr("d",this.array().move(t,i))};i.prototype.plot=function(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new bn(t))};i.prototype.size=function(t,i){var n=w(this,t,i);return this.attr("d",this.array().size(n.width,n.height))};i.prototype.width=function(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)};i.prototype.x=function(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)};i.prototype.y=function(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)};return i}(ji);Hn.prototype.MorphArray=bn;h({Container:{path:z((function(t){return this.put(new Hn).plot(t||new bn)}))}});Z(Hn,"Path");function Zn(){return this._array||(this._array=new Ri(this.attr("points")))}function Sn(){delete this._array;return this}function Tn(t,i){return this.attr("points",this.array().move(t,i))}function Fn(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new Ri(t))}function Dn(t,i){var n=w(this,t,i);return this.attr("points",this.array().size(n.width,n.height))}var In={__proto__:null,array:Zn,clear:Sn,move:Tn,plot:Fn,size:Dn};var zn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("polygon",i),n)||this}return i}(ji);h({Container:{polygon:z((function(t){return this.put(new zn).plot(t||new Ri)}))}});I(zn,Ji);I(zn,In);Z(zn,"Polygon");var Nn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("polyline",i),n)||this}return i}(ji);h({Container:{polyline:z((function(t){return this.put(new Nn).plot(t||new Ri)}))}});I(Nn,Ji);I(Nn,In);Z(Nn,"Polyline");var Pn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("rect",i),n)||this}return i}(ji);I(Pn,{rx:Ai,ry:Li});h({Container:{rect:z((function(t,i){return this.put(new Pn).size(t,i)}))}});Z(Pn,"Rect");var Gn=function(){function t(){this._first=null;this._last=null}t.prototype.first=function(){return this._first&&this._first.value};t.prototype.last=function(){return this._last&&this._last.value};t.prototype.push=function(t){var i=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){i.prev=this._last;this._last.next=i;this._last=i}else{this._last=i;this._first=i}return i};t.prototype.remove=function(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null};t.prototype.shift=function(){var t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value};return t}();var Rn={nextDraw:null,frames:new Gn,timeouts:new Gn,immediates:new Gn,timer:function(){return k.window.performance||k.window.Date},transforms:[],frame:function(t){var i=Rn.frames.push({run:t});if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return i},timeout:function(t,i){i=i||0;var n=Rn.timer().now()+i;var r=Rn.timeouts.push({run:t,time:n});if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return r},immediate:function(t){var i=Rn.immediates.push(t);if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return i},cancelFrame:function(t){t!=null&&Rn.frames.remove(t)},clearTimeout:function(t){t!=null&&Rn.timeouts.remove(t)},cancelImmediate:function(t){t!=null&&Rn.immediates.remove(t)},_draw:function(t){var i=null;var n=Rn.timeouts.last();while(i=Rn.timeouts.shift()){if(t>=i.time){i.run()}else{Rn.timeouts.push(i)}if(i===n)break}var r=null;var e=Rn.frames.last();while(r!==e&&(r=Rn.frames.shift())){r.run(t)}var s=null;while(s=Rn.immediates.shift()){s()}Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?k.window.requestAnimationFrame(Rn._draw):null}};var Yn=function(t){var i=t.start;var n=t.runner.duration();var r=i+n;return{start:i,duration:n,end:r,runner:t.runner}};var Xn=function(){var t=k.window;return(t.performance||t.Date).now()};var $n=function(t){__extends(i,t);function i(i){if(i===void 0){i=Xn}var n=t.call(this)||this;n._timeSource=i;n.terminate();return n}i.prototype.active=function(){return!!this._nextFrame};i.prototype.finish=function(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()};i.prototype.getEndTime=function(){var t=this.getLastRunnerInfo();var i=t?t.runner.duration():0;var n=t?t.start:this._time;return n+i};i.prototype.getEndTimeOfTimeline=function(){var t=this._runners.map((function(t){return t.start+t.runner.duration()}));return Math.max.apply(Math,__spreadArray([0],t,false))};i.prototype.getLastRunnerInfo=function(){return this.getRunnerInfoById(this._lastRunnerId)};i.prototype.getRunnerInfoById=function(t){return this._runners[this._runnerIds.indexOf(t)]||null};i.prototype.pause=function(){this._paused=true;return this._continue()};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.play=function(){this._paused=false;return this.updateTime()._continue()};i.prototype.reverse=function(t){var i=this.speed();if(t==null)return this.speed(-i);var n=Math.abs(i);return this.speed(t?-n:n)};i.prototype.schedule=function(t,i,n){if(t==null){return this._runners.map(Yn)}var r=0;var e=this.getEndTime();i=i||0;if(n==null||n==="last"||n==="after"){r=e}else if(n==="absolute"||n==="start"){r=i;i=0}else if(n==="now"){r=this._time}else if(n==="relative"){var s=this.getRunnerInfoById(t.id);if(s){r=s.start+i;i=0}}else if(n==="with-last"){var u=this.getLastRunnerInfo();var h=u?u.start:this._time;r=h}else{throw new Error('Invalid value for the "when" parameter')}t.unschedule();t.timeline(this);var o=t.persist();var f={persist:o===null?this._persist:o,start:r+i,runner:t};this._lastRunnerId=t.id;this._runners.push(f);this._runners.sort((function(t,i){return t.start-i.start}));this._runnerIds=this._runners.map((function(t){return t.runner.id}));this.updateTime()._continue();return this};i.prototype.seek=function(t){return this.time(this._time+t)};i.prototype.source=function(t){if(t==null)return this._timeSource;this._timeSource=t;return this};i.prototype.speed=function(t){if(t==null)return this._speed;this._speed=t;return this};i.prototype.stop=function(){this.time(0);return this.pause()};i.prototype.time=function(t){if(t==null)return this._time;this._time=t;return this._continue(true)};i.prototype.unschedule=function(t){var i=this._runnerIds.indexOf(t.id);if(i<0)return this;this._runners.splice(i,1);this._runnerIds.splice(i,1);t.timeline(null);return this};i.prototype.updateTime=function(){if(!this.active()){this._lastSourceTime=this._timeSource()}return this};i.prototype._continue=function(t){if(t===void 0){t=false}Rn.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=Rn.frame(this._step);return this};i.prototype._stepFn=function(t){if(t===void 0){t=false}var i=this._timeSource();var n=i-this._lastSourceTime;if(t)n=0;var r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=i;if(!t){this._time+=r;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(var e=this._runners.length;e--;){var s=this._runners[e];var u=s.runner;var h=this._time-s.start;if(h<=0){u.reset()}}var o=false;for(var f=0,a=this._runners.length;f<a;f++){var s=this._runners[f];var u=s.runner;var c=r;var h=this._time-s.start;if(h<=0){o=true;continue}else if(h<c){c=h}if(!u.active())continue;var v=u.step(c).done;if(!v){o=true}else if(s.persist!==true){var l=u.duration()-u.time()+this._time;if(l+s.persist<this._time){u.unschedule();--f;--a}}}if(o&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0){this._continue()}else{this.pause();this.fire("finished")}return this};i.prototype.terminate=function(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)};return i}(si);h({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new $n;return this._timeline}else{this._timeline=t;return this}}}});var Qn=function(t){__extends(i,t);function i(n){var r=t.call(this)||this;r.id=i.id++;n=n==null?hi.duration:n;n=typeof n==="function"?new en(n):n;r._element=null;r._timeline=null;r.done=false;r._queue=[];r._duration=typeof n==="number"&&n;r._isDeclarative=n instanceof en;r._stepper=r._isDeclarative?n:new rn;r._history={};r.enabled=true;r._time=0;r._lastTime=0;r._reseted=true;r.transforms=new St;r.transformId=1;r._haveReversed=false;r._reverse=false;r._loopsDone=0;r._swing=false;r._wait=0;r._times=1;r._frameId=null;r._persist=r._isDeclarative?true:null;return r}i.sanitise=function(t,i,n){var r,e,s,u,h;var o=1;var f=false;var a=0;t=t!==null&&t!==void 0?t:hi.duration;i=i!==null&&i!==void 0?i:hi.delay;n=n||"last";if(typeof t==="object"&&!(t instanceof nn)){i=(r=t.delay)!==null&&r!==void 0?r:i;n=(e=t.when)!==null&&e!==void 0?e:n;f=t.swing||f;o=(s=t.times)!==null&&s!==void 0?s:o;a=(u=t.wait)!==null&&u!==void 0?u:a;t=(h=t.duration)!==null&&h!==void 0?h:hi.duration}return{duration:t,delay:i,swing:f,times:o,wait:a,when:n}};i.prototype.active=function(t){if(t==null)return this.enabled;this.enabled=t;return this};i.prototype.addTransform=function(t){this.transforms.lmultiplyO(t);return this};i.prototype.after=function(t){return this.on("finished",t)};i.prototype.animate=function(t,n,r){var e=i.sanitise(t,n,r);var s=new i(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)};i.prototype.clearTransform=function(){this.transforms=new St;return this};i.prototype.clearTransformsFromQueue=function(){if(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id)){this._queue=this._queue.filter((function(t){return!t.isTransform}))}};i.prototype.delay=function(t){return this.animate(0,t)};i.prototype.duration=function(){return this._times*(this._wait+this._duration)-this._wait};i.prototype.during=function(t){return this.queue(null,t)};i.prototype.ease=function(t){this._stepper=new rn(t);return this};i.prototype.element=function(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this};i.prototype.finish=function(){return this.step(Infinity)};i.prototype.loop=function(t,i,n){if(typeof t==="object"){i=t.swing;n=t.wait;t=t.times}this._times=t||Infinity;this._swing=i||false;this._wait=n||0;if(this._times===true){this._times=Infinity}return this};i.prototype.loops=function(t){var i=this._duration+this._wait;if(t==null){var n=Math.floor(this._time/i);var r=this._time-n*i;var e=r/this._duration;return Math.min(n+e,this._times)}var s=Math.floor(t);var u=t%1;var h=i*s+this._duration*u;return this.time(h)};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.position=function(t){var i=this._time;var n=this._duration;var r=this._wait;var e=this._times;var s=this._swing;var u=this._reverse;var h;if(t==null){var o=function(t){var i=s*Math.floor(t%(2*(r+n))/(r+n));var e=i&&!u||!i&&u;var h=Math.pow(-1,e)*(t%(r+n))/n+e;var o=Math.max(Math.min(h,1),0);return o};var f=e*(r+n)-r;h=i<=0?Math.round(o(1e-5)):i<f?o(i):Math.round(o(f-1e-5));return h}var a=Math.floor(this.loops());var c=s&&a%2===0;var v=c&&!u||u&&c;h=a+(v?t:1-t);return this.loops(h)};i.prototype.progress=function(t){if(t==null){return Math.min(1,this._time/this.duration())}return this.time(t*this.duration())};i.prototype.queue=function(t,i,n,r){this._queue.push({initialiser:t||ui,runner:i||ui,retarget:n,isTransform:r,initialised:false,finished:false});var e=this.timeline();e&&this.timeline()._continue();return this};i.prototype.reset=function(){if(this._reseted)return this;this.time(0);this._reseted=true;return this};i.prototype.reverse=function(t){this._reverse=t==null?!this._reverse:t;return this};i.prototype.schedule=function(t,i,n){if(!(t instanceof $n)){n=i;i=t;t=this.timeline()}if(!t){throw Error("Runner cannot be scheduled without timeline")}t.schedule(this,i,n);return this};i.prototype.step=function(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;var i=this.position();var n=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;var r=this.duration();var e=this._lastTime<=0&&this._time>0;var s=this._lastTime<r&&this._time>=r;this._lastTime=this._time;if(e){this.fire("start",this)}var u=this._isDeclarative;this.done=!u&&!s&&this._time>=r;this._reseted=false;var h=false;if(n||u){this._initialise(n);this.transforms=new St;h=this._run(u?t:i);this.fire("step",this)}this.done=this.done||h&&u;if(s){this.fire("finished",this)}return this};i.prototype.time=function(t){if(t==null){return this._time}var i=t-this._time;this.step(i);return this};i.prototype.timeline=function(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this};i.prototype.unschedule=function(){var t=this.timeline();t&&t.unschedule(this);return this};i.prototype._initialise=function(t){if(!t&&!this._isDeclarative)return;for(var i=0,n=this._queue.length;i<n;++i){var r=this._queue[i];var e=this._isDeclarative||!r.initialised&&t;t=!r.finished;if(e&&t){r.initialiser.call(this);r.initialised=true}}};i.prototype._rememberMorpher=function(t,i){this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){var n=this.timeline();n&&n.play()}};i.prototype._run=function(t){var i=true;for(var n=0,r=this._queue.length;n<r;++n){var e=this._queue[n];var s=e.runner.call(this,t);e.finished=e.finished||s===true;i=i&&e.finished}return i};i.prototype._tryRetarget=function(t,i,n){if(this._history[t]){if(!this._history[t].caller.initialised){var r=this._queue.indexOf(this._history[t].caller);this._queue.splice(r,1);return false}if(this._history[t].caller.retarget){this._history[t].caller.retarget.call(this,i,n)}else{this._history[t].morpher.to(i)}this._history[t].caller.finished=false;var e=this.timeline();e&&e.play();return true}return false};return i}(si);Qn.id=0;var Un=function(){function t(t,i,n){if(t===void 0){t=new St}if(i===void 0){i=-1}if(n===void 0){n=true}this.transforms=t;this.id=i;this.done=n}t.prototype.clearTransformsFromQueue=function(){};return t}();I([Qn,Un],{mergeWith:function(t){return new Un(t.transforms.lmultiply(this.transforms),t.id)}});var Jn=function(t,i){return t.lmultiplyO(i)};var qn=function(t){return t.transforms};function Wn(){var t=this._transformationRunners.runners;var i=t.map(qn).reduce(Jn,new St);this.transform(i);this._transformationRunners.merge();if(this._transformationRunners.length()===1){this._frameId=null}}var Kn=function(){function t(){this.runners=[];this.ids=[]}t.prototype.add=function(t){if(this.runners.includes(t))return;var i=t.id+1;this.runners.push(t);this.ids.push(i);return this};t.prototype.clearBefore=function(t){var i=this.ids.indexOf(t+1)||1;this.ids.splice(0,i,0);this.runners.splice(0,i,new Un).forEach((function(t){return t.clearTransformsFromQueue()}));return this};t.prototype.edit=function(t,i){var n=this.ids.indexOf(t+1);this.ids.splice(n,1,t+1);this.runners.splice(n,1,i);return this};t.prototype.getByID=function(t){return this.runners[this.ids.indexOf(t+1)]};t.prototype.length=function(){return this.ids.length};t.prototype.merge=function(){var t=null;for(var i=0;i<this.runners.length;++i){var n=this.runners[i];var r=t&&n.done&&t.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id));if(r){this.remove(n.id);var e=n.mergeWith(t);this.edit(t.id,e);t=e;--i}else{t=n}}return this};t.prototype.remove=function(t){var i=this.ids.indexOf(t+1);this.ids.splice(i,1);this.runners.splice(i,1);return this};return t}();h({Element:{animate:function(t,i,n){var r=Qn.sanitise(t,i,n);var e=this.timeline();return new Qn(r.duration).loop(r).element(this).timeline(e.play()).schedule(r.delay,r.when)},delay:function(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore:function(t){this._transformationRunners.clearBefore(t.id)},_currentTransform:function(t){return this._transformationRunners.runners.filter((function(i){return i.id<=t.id})).map(qn).reduce(Jn,new St)},_addRunner:function(t){this._transformationRunners.add(t);Rn.cancelImmediate(this._frameId);this._frameId=Rn.immediate(Wn.bind(this))},_prepareRunner:function(){if(this._frameId==null){this._transformationRunners=(new Kn).add(new Un(new St(this)))}}}});var tr=function(t,i){return t.filter((function(t){return!i.includes(t)}))};I(Qn,{attr:function(t,i){return this.styleAttr("attr",t,i)},css:function(t,i){return this.styleAttr("css",t,i)},styleAttr:function(t,i,n){var r;if(typeof i==="string"){return this.styleAttr(t,(r={},r[i]=n,r))}var e=i;if(this._tryRetarget(t,e))return this;var s=new kn(this._stepper).to(e);var u=Object.keys(e);this.queue((function(){s=s.from(this.element()[t](u))}),(function(i){this.element()[t](s.at(i).valueOf());return s.done()}),(function(i){var n=Object.keys(i);var r=tr(n,u);if(r.length){var h=this.element()[t](r);var o=new Vn(s.from()).valueOf();Object.assign(o,h);s.from(o)}var f=new Vn(s.to()).valueOf();Object.assign(f,i);s.to(f);u=n;e=i}));this._rememberMorpher(t,s);return this},zoom:function(t,i){if(this._tryRetarget("zoom",t,i))return this;var n=new kn(this._stepper).to(new ai(t));this.queue((function(){n=n.from(this.element().zoom())}),(function(t){this.element().zoom(n.at(t),i);return n.done()}),(function(t,r){i=r;n.to(t)}));this._rememberMorpher("zoom",n);return this},transform:function(t,i,n){i=t.relative||i;if(this._isDeclarative&&!i&&this._tryRetarget("transform",t)){return this}var r=St.isMatrixLike(t);n=t.affine!=null?t.affine:n!=null?n:!r;var e=new kn(this._stepper).type(n?An:St);var s;var u;var h;var o;var f;function a(){u=u||this.element();s=s||p(t,u);f=new St(i?undefined:u);u._addRunner(this);if(!i){u._clearTransformRunnersBefore(this)}}function c(a){if(!i)this.clearTransform();var c=new Et(s).transform(u._currentTransform(this)),v=c.x,l=c.y;var d=new St(__assign(__assign({},t),{origin:[v,l]}));var C=this._isDeclarative&&h?h:f;if(n){d=d.decompose(v,l);C=C.decompose(v,l);var w=d.rotate;var p=C.rotate;var g=[w-360,w,w+360];var y=g.map((function(t){return Math.abs(t-p)}));var m=Math.min.apply(Math,y);var x=y.indexOf(m);d.rotate=g[x]}if(i){if(!r){d.rotate=t.rotate||0}if(this._isDeclarative&&o){C.rotate=o}}e.from(C);e.to(d);var _=e.at(a);o=_.rotate;h=new St(_);this.addTransform(h);u._addRunner(this);return e.done()}function v(i){if((i.origin||"center").toString()!==(t.origin||"center").toString()){s=p(i,u)}t=__assign(__assign({},i),{origin:s})}this.queue(a,c,v,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x:function(t){return this._queueNumber("x",t)},y:function(t){return this._queueNumber("y",t)},ax:function(t){return this._queueNumber("ax",t)},ay:function(t){return this._queueNumber("ay",t)},dx:function(t){if(t===void 0){t=0}return this._queueNumberDelta("x",t)},dy:function(t){if(t===void 0){t=0}return this._queueNumberDelta("y",t)},dmove:function(t,i){return this.dx(t).dy(i)},_queueNumberDelta:function(t,i){i=new ai(i);if(this._tryRetarget(t,i))return this;var n=new kn(this._stepper).to(i);var r=null;this.queue((function(){r=this.element()[t]();n.from(r);n.to(r+i)}),(function(i){this.element()[t](n.at(i));return n.done()}),(function(t){n.to(r+new ai(t))}));this._rememberMorpher(t,n);return this},_queueObject:function(t,i){if(this._tryRetarget(t,i))return this;var n=new kn(this._stepper).to(i);this.queue((function(){n.from(this.element()[t]())}),(function(i){this.element()[t](n.at(i));return n.done()}));this._rememberMorpher(t,n);return this},_queueNumber:function(t,i){return this._queueObject(t,new ai(i))},cx:function(t){return this._queueNumber("cx",t)},cy:function(t){return this._queueNumber("cy",t)},move:function(t,i){return this.x(t).y(i)},amove:function(t,i){return this.ax(t).ay(i)},center:function(t,i){return this.cx(t).cy(i)},size:function(t,i){var n;if(!t||!i){n=this._element.bbox()}if(!t){t=n.width/n.height*i}if(!i){i=n.height/n.width*t}return this.width(t).height(i)},width:function(t){return this._queueNumber("width",t)},height:function(t){return this._queueNumber("height",t)},plot:function(t,i,n,r){if(arguments.length===4){return this.plot([t,i,n,r])}if(this._tryRetarget("plot",t))return this;var e=new kn(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading:function(t){return this._queueNumber("leading",t)},viewbox:function(t,i,n,r){return this._queueObject("viewbox",new Nt(t,i,n,r))},update:function(t){if(typeof t!=="object"){return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]})}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});I(Qn,{rx:Ai,ry:Li,from:Di,to:Ii});Z(Qn,"Runner");var ir=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r=t.call(this,B("svg",i),n)||this;r.namespace();return r}i.prototype.defs=function(){if(!this.isRoot())return this.root().defs();return E(this.node.querySelector("defs"))||this.put(new ki)};i.prototype.isRoot=function(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"};i.prototype.namespace=function(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",M,b)};i.prototype.removeNamespace=function(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,b).attr("xmlns:svgjs",null,b)};i.prototype.root=function(){if(this.isRoot())return this;return t.prototype.root.call(this)};return i}(Mi);h({Container:{nested:z((function(){return this.put(new ir)}))}});Z(ir,"Svg",true);var nr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("symbol",i),n)||this}return i}(Mi);h({Container:{symbol:z((function(){return this.put(new nr)}))}});Z(nr,"Symbol");function rr(t){if(this._build===false){this.clear()}this.node.appendChild(k.document.createTextNode(t));return this}function er(){return this.node.getComputedTextLength()}function sr(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.x}return this.attr("x",this.attr("x")+t-i.x)}function ur(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.y}return this.attr("y",this.attr("y")+t-i.y)}function hr(t,i,n){if(n===void 0){n=this.bbox()}return this.x(t,n).y(i,n)}function or(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cx}return this.attr("x",this.attr("x")+t-i.cx)}function fr(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cy}return this.attr("y",this.attr("y")+t-i.cy)}function ar(t,i,n){if(n===void 0){n=this.bbox()}return this.cx(t,n).cy(i,n)}function cr(t){return this.attr("x",t)}function vr(t){return this.attr("y",t)}function lr(t,i){return this.ax(t).ay(i)}function dr(t){this._build=!!t;return this}var Cr={__proto__:null,amove:lr,ax:cr,ay:vr,build:dr,center:ar,cx:or,cy:fr,length:er,move:hr,plain:rr,x:sr,y:ur};var wr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r;var e=t.call(this,B("text",i),n)||this;e.dom.leading=(r=e.dom.leading)!==null&&r!==void 0?r:new ai(1.3);e._rebuild=true;e._build=false;return e}i.prototype.leading=function(t){if(t==null){return this.dom.leading}this.dom.leading=new ai(t);return this.rebuild()};i.prototype.rebuild=function(t){if(typeof t==="boolean"){this._rebuild=t}if(this._rebuild){var i=this;var n=0;var r=this.dom.leading;this.each((function(t){if(y(this.node))return;var e=k.window.getComputedStyle(this.node).getPropertyValue("font-size");var s=r*new ai(e);if(this.dom.newLined){this.attr("x",i.attr("x"));if(this.text()==="\n"){n+=s}else{this.attr("dy",t?s+n:0);n=0}}}));this.fire("rebuild")}return this};i.prototype.setData=function(t){this.dom=t;this.dom.leading=new ai(t.leading||1.3);return this};i.prototype.writeDataToDom=function(){m(this,this.dom,{leading:1.3});return this};i.prototype.text=function(t){if(t===undefined){var i=this.node.childNodes;var n=0;t="";for(var r=0,e=i.length;r<e;++r){if(i[r].nodeName==="textPath"||y(i[r])){if(r===0)n=r+1;continue}if(r!==n&&i[r].nodeType!==3&&E(i[r]).dom.newLined===true){t+="\n"}t+=i[r].textContent}return t}this.clear().build(true);if(typeof t==="function"){t.call(this,this)}else{t=(t+"").split("\n");for(var s=0,u=t.length;s<u;s++){this.newLine(t[s])}}return this.build(false).rebuild()};return i}(ji);I(wr,Cr);h({Container:{text:z((function(t){if(t===void 0){t=""}return this.put(new wr).text(t)})),plain:z((function(t){if(t===void 0){t=""}return this.put(new wr).plain(t)}))}});Z(wr,"Text");var pr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r=t.call(this,B("tspan",i),n)||this;r._build=false;return r}i.prototype.dx=function(t){return this.attr("dx",t)};i.prototype.dy=function(t){return this.attr("dy",t)};i.prototype.newLine=function(){this.dom.newLined=true;var t=this.parent();if(!(t instanceof wr)){return this}var i=t.index(this);var n=k.window.getComputedStyle(this.node).getPropertyValue("font-size");var r=t.dom.leading*new ai(n);return this.dy(i?r:0).attr("x",t.x())};i.prototype.text=function(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else{this.plain(t)}return this};return i}(ji);I(pr,Cr);h({Tspan:{tspan:z((function(t){if(t===void 0){t=""}var i=new pr;if(!this._build){this.clear()}return this.put(i).text(t)}))},Text:{newLine:function(t){if(t===void 0){t=""}return this.tspan(t).newLine()}}});Z(pr,"Tspan");var gr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("circle",i),n)||this}i.prototype.radius=function(t){return this.attr("r",t)};i.prototype.rx=function(t){return this.attr("r",t)};i.prototype.ry=function(t){return this.rx(t)};i.prototype.size=function(t){return this.radius(new ai(t).divide(2))};return i}(ji);I(gr,{x:Vi,y:Oi,cx:Bi,cy:Ei,width:Hi,height:Zi});h({Container:{circle:z((function(t){if(t===void 0){t=0}return this.put(new gr).size(t).move(0,0)}))}});Z(gr,"Circle");var yr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("clipPath",i),n)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unclip()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return Qt("svg [clip-path*="+this.id()+"]")};return i}(Mi);h({Container:{clip:z((function(){return this.defs().put(new yr)}))},Element:{clipper:function(){return this.reference("clip-path")},clipWith:function(t){var i=t instanceof yr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip:function(){return this.attr("clip-path",null)}}});Z(yr,"ClipPath");var mr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("foreignObject",i),n)||this}return i}(wi);h({Container:{foreignObject:z((function(t,i){return this.put(new mr).size(t,i)}))}});Z(mr,"ForeignObject");function xr(t,i){this.children().forEach((function(n){var r;try{r=n.bbox()}catch(t){return}var e=new St(n);var s=e.translate(t,i).transform(e.inverse());var u=new Et(r.x,r.y).transform(s);n.move(u.x,u.y)}));return this}function _r(t){return this.dmove(t,0)}function br(t){return this.dmove(0,t)}function Mr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.height;return this.size(i.width,t,i)}function kr(t,i,n){if(t===void 0){t=0}if(i===void 0){i=0}if(n===void 0){n=this.bbox()}var r=t-n.x;var e=i-n.y;return this.dmove(r,e)}function jr(t,i,n){if(n===void 0){n=this.bbox()}var r=w(this,t,i,n);var e=r.width/n.width;var s=r.height/n.height;this.children().forEach((function(t){var i=new Et(n).transform(new St(t).inverse());t.scale(e,s,i.x,i.y)}));return this}function Ar(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.width;return this.size(t,i.height,i)}function Lr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.x;return this.move(t,i.y,i)}function Vr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.y;return this.move(i.x,t,i)}var Or={__proto__:null,dmove:xr,dx:_r,dy:br,height:Mr,move:kr,size:jr,width:Ar,x:Lr,y:Vr};var Br=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("g",i),n)||this}return i}(Mi);I(Br,Or);h({Container:{group:z((function(){return this.put(new Br)}))}});Z(Br,"G");var Er=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("a",i),n)||this}i.prototype.target=function(t){return this.attr("target",t)};i.prototype.to=function(t){return this.attr("href",t,M)};return i}(Mi);I(Er,Or);h({Container:{link:z((function(t){return this.put(new Er).to(t)}))},Element:{unlink:function(){var t=this.linker();if(!t)return this;var i=t.parent();if(!i){return this.remove()}var n=i.index(t);i.add(this,n);t.remove();return this},linkTo:function(t){var i=this.linker();if(!i){i=new Er;this.wrap(i)}if(typeof t==="function"){t.call(i,i)}else{i.to(t)}return this},linker:function(){var t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a"){return t}return null}}});Z(Er,"A");var Hr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("mask",i),n)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unmask()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return Qt("svg [mask*="+this.id()+"]")};return i}(Mi);h({Container:{mask:z((function(){return this.defs().put(new Hr)}))},Element:{masker:function(){return this.reference("mask")},maskWith:function(t){var i=t instanceof Hr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask:function(){return this.attr("mask",null)}}});Z(Hr,"Mask");var Zr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("stop",i),n)||this}i.prototype.update=function(t){if(typeof t==="number"||t instanceof ai){t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new ai(t.offset));return this};return i}(wi);h({Gradient:{stop:function(t,i,n){return this.put(new Zr).update(t,i,n)}}});Z(Zr,"Stop");function Sr(t,i){if(!t)return"";if(!i)return t;var n=t+"{";for(var r in i){n+=d(r)+":"+i[r]+";"}n+="}";return n}var Tr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("style",i),n)||this}i.prototype.addText=function(t){if(t===void 0){t=""}this.node.textContent+=t;return this};i.prototype.font=function(t,i,n){if(n===void 0){n={}}return this.rule("@font-face",__assign({fontFamily:t,src:i},n))};i.prototype.rule=function(t,i){return this.addText(Sr(t,i))};return i}(wi);h("Dom",{style:function(t,i){return this.put(new Tr).rule(t,i)},fontface:function(t,i,n){return this.put(new Tr).font(t,i,n)}});Z(Tr,"Style");var Fr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("textPath",i),n)||this}i.prototype.array=function(){var t=this.track();return t?t.array():null};i.prototype.plot=function(t){var i=this.track();var n=null;if(i){n=i.plot(t)}return t==null?n:this};i.prototype.track=function(){return this.reference("href")};return i}(wr);h({Container:{textPath:z((function(t,i){if(!(t instanceof wr)){t=this.text(t)}return t.path(i)}))},Text:{path:z((function(t,i){if(i===void 0){i=true}var n=new Fr;if(!(t instanceof Hn)){t=this.defs().path(t)}n.attr("href","#"+t,M);var r;if(i){while(r=this.node.firstChild){n.node.appendChild(r)}}return this.put(n)})),textPath:function(){return this.findOne("textPath")}},Path:{text:z((function(t){if(!(t instanceof wr)){t=(new wr).addTo(this.parent()).text(t)}return t.path(this)})),targets:function(){var t=this;return Qt("svg textPath").filter((function(i){return(i.attr("href")||"").includes(t.id())}))}}});Fr.prototype.MorphArray=bn;Z(Fr,"TextPath");var Dr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("use",i),n)||this}i.prototype.use=function(t,i){return this.attr("href",(i||"")+"#"+t,M)};return i}(ji);h({Container:{use:z((function(t,i){return this.put(new Dr).use(t,i)}))}});Z(Dr,"Use");var Ir=O;I([ir,nr,Gi,Pi,Wi],o("viewbox"));I([qi,Nn,zn,Hn],o("marker"));I(wr,o("Text"));I(Hn,o("Path"));I(ki,o("Defs"));I([wr,pr],o("Tspan"));I([Pn,Ti,Ni,Qn],o("radius"));I(si,o("EventTarget"));I(Ci,o("Dom"));I(wi,o("Element"));I(ji,o("Shape"));I([Mi,Fi],o("Container"));I(Ni,o("Gradient"));I(Qn,o("Runner"));Xt.extend(f());Bn([ai,Bt,Nt,St,fi,Ri,bn,Et]);En();function zr(){var t={entities:[]};var i;var n=[];function r(t,n,r){i=Ir().addTo(t).size(n,r);i.entities=[];i.lines=i.group();i.labels=i.group()}function e(t,i){var n;var r=t.group().attr({id:i.id});t.entities.push(r);i.background_color=i.background_color?i.background_color:"#f06";i.color=i.color?i.color:"#ffffff";i.radius=i.radius?i.radius:0;r.entity=r.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr((n={fill:"#ffffff",stroke:i.color},n["stroke-width"]=2,n)).radius(i.radius);if(i.class){r.entity.attr("class",i.class)}r.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color});r.move(i.x,i.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((function(t){i.labels.text(t.value).x(t.x).y(t.y)}))}}function u(t,i){i.forEach((function(i){return h(t,i)}))}function h(t,i){var n="";var r=i.color||"#4c56cb";var e=t.findOne("#"+i.from.element);var s=t.findOne("#"+i.to.element);var u=o(i,e,s);n+=a(e,i.from.point)+","+c(e,i.from.point)+" ";u.forEach((function(t){return n+=t.x+","+t.y+" "}));if(i.to.point==="top"){n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}else if(i.to.point==="bottom"){n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}else{n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}if(!i.polyline){i.polyline=t.lines.polyline(n).fill("none").stroke({color:r,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}else{i.polyline.plot(n)}}function o(t,i,n){var r=[];var e=c(i,t.from.point);var s=c(n,t.to.point);var u=a(i,t.from.point);var h=a(n,t.to.point);var o=f(t.from.point);var v=f(t.to.point);var l=o-v;if(l===0){if(t.from.point==="top"){if(e<=s){r.push({x:u,y:e-20});r.push({x:h,y:e-20})}else{r.push({x:u,y:s-20});r.push({x:h,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){r.push({x:u,y:s+20});r.push({x:h,y:s+20})}else{r.push({x:u,y:e+20});r.push({x:h,y:e+20})}}else{if(u<=h){r.push({x:h+20,y:e});r.push({x:h+20,y:s})}else{r.push({x:u+20,y:e});r.push({x:u+20,y:s})}}}if(l===2||l===-2){if(u!==h){r.push({x:u,y:s+(e-s)/2});r.push({x:h,y:s+(e-s)/2})}}if(l===1||l===-1||l===3||l===-3){if(t.from.point==="top"){if(e<s+20){r.push({x:u,y:e-20});r.push({x:h+20,y:e-20});r.push({x:h+20,y:s})}else{r.push({x:u,y:s})}}if(t.from.point==="bottom"){if(e>s-20){r.push({x:u,y:e+20});r.push({x:h+20,y:e+20});r.push({x:h+20,y:s})}else{r.push({x:u,y:s})}}}return r}function f(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function a(t,i){var n=t.entity.attr("width");var r=t.entity.attr("x");switch(i){case"top":case"bottom":return r+n/2;default:return r-n/2}}function c(t,i){var n=t.entity.attr("height");var r=t.entity.attr("y");switch(i){case"top":return r;case"bottom":return r+n;default:return r}}function v(){i.entities.forEach((function(t){return t.remove()}));i.entities=[];n=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((function(t){return{id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}}));t.entities.map((function(t){t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((function(t){return e(i,t)}));n=t.lines;u(i,n)}function l(i){t=i;v()}return{initalize:r,update:l}}var Nr='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';var Pr=Nr;var Gr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';var Rr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>';var Yr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var Xr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var $r='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var Qr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var Ur='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';var Jr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>';var qr='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var Wr='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var Kr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';var te='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>';var ie='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var ne='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var re='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';var ee='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>';var se='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var ue='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var he='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var oe='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var fe=140;var ae=40;var ce=40;var ve=t("verdocs_status_indicator",function(){function t(t){i(this,t);this.recipientStatusIcons=[];this.size="normal";this.theme="light";this.status=undefined;this.envelope=undefined;this.isOpen=undefined;this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){var t=this;var i;this.popper=e(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((i=this.envelope)===null||i===void 0?void 0:i.recipients){var n=[];this.envelope.recipients.forEach((function(t){var i=t.sequence-1;n[i]||(n[i]=[]);var r="r-".concat(i,"-").concat(n[i].length);n[i].push(__assign(__assign({},t),{id:r}))}));var r=Object.keys(n).length;var s=r*ae+(r+1)*ce;var u=0;Object.values(n).forEach((function(t){var i=t.length*fe+(t.length+1)*ce;if(i>u){u=i}}));var h=[];var o=[];var f=[];var a=ce;Object.entries(n).forEach((function(i){var r=i[0],e=i[1];var s=e.length*(fe+ce);var c=u-s;var v=ce/2+c/2;e.forEach((function(i,e){var s;var u=(i.full_name||"Unknown").toUpperCase().split(" "),c=u[0],l=u[1];var d="".concat(c," ").concat(l===null||l===void 0?void 0:l.substring(0,1));var C={id:i.id,text:d,icon:t.getStatusIcon(i.status),x:e*(fe+ce)+v,y:a,width:fe,height:ae,color:t.getStatusColor(i.status),radius:8};h.push(C);f.push({icon:t.getStatusIcon(i.status),x:e*(fe+ce)+v+(fe-32),y:a+ae/2-13});(s=n[+r-1])===null||s===void 0?void 0:s.forEach((function(n){var r={id:"line-".concat(n.id,"-").concat(C.id),from:{element:n.id,point:"bottom"},to:{element:C.id,point:"top"},color:t.getStatusColor(i.status)};o.push(r)}))}));a+=ae+ce}));this.recipientStatusIcons=f;var c=zr();c.initalize("#".concat(this.containerId),u,s);c.update({entities:h,lines:o})}};t.prototype.showDropdown=function(){var t,i;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));(i=this.popper)===null||i===void 0?void 0:i.update()};t.prototype.handleHideDropdown=function(t){var i,n;if(((i=t===null||t===void 0?void 0:t.target)===null||i===void 0?void 0:i.localName)==="button"&&((n=t===null||t===void 0?void 0:t.target)===null||n===void 0?void 0:n.className)==="arrow"){return}this.hide()};t.prototype.toggleDropdown=function(){if(this.isOpen){this.hide()}else{this.showDropdown()}};t.prototype.hide=function(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}))};t.prototype.getStatusColor=function(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}};t.prototype.getStatusIcon=function(t){switch(t){case"accepted":return this.theme==="light"?Rr:Gr;case"complete":return this.theme==="light"?Qr:$r;case"in progress":return this.theme==="light"?Wr:qr;case"canceled":return this.theme==="light"?Xr:Yr;case"declined":return this.theme==="light"?Jr:Ur;case"invited":return this.theme==="light"?Wr:qr;case"opened":return this.theme==="light"?te:Kr;case"signed":return this.theme==="light"?ee:re;case"submitted":return this.theme==="light"?oe:he;case"some-signed":return this.theme==="light"?ue:se;default:case"pending":return this.theme==="light"?ne:ie}};t.prototype.getStatusMessage=function(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}};t.prototype.render=function(){var t=this;var i,e;var s=this.status||((i=this.envelope)===null||i===void 0?void 0:i.status)||"pending"||"accepted";if(!this.status&&((e=this.envelope)===null||e===void 0?void 0:e.recipients)){var u=this.envelope.recipients.filter((function(t){return t.status==="submitted"}));if(u.length>0&&u.length!==this.envelope.recipients.length){s="some-signed"}}var h=this.getStatusIcon(s);var o=this.getStatusMessage(s);return n(r,{key:"4f448a7efa8648f23fa6fca7c1684998c54a2869",ref:function(i){return t.summaryComponent=i},class:"".concat(this.theme," ").concat(this.size," ").concat(this.envelope?"has-document":""),"aria-label":"Click to View Details",onClick:function(i){i.stopPropagation();i.preventDefault();t.envelope&&t.toggleDropdown()},onBlur:function(i){return t.envelope&&t.handleHideDropdown(i)}},n("span",{key:"8849c6dbf2be4339630768f064e76cb660919f15",class:"icon",innerHTML:h}),n("span",{key:"ae89d44c5b7bc18d1670957097c36ed044645a23",class:"content"},o),n("div",{key:"65779af7d179cba0d6d685834f4da129472590c0",class:"detail-panel",ref:function(i){return t.detailPanel=i}},n("div",{key:"9b564f492cdcaa5fdb4b622a0ea32be625f0cd57",id:"".concat(this.containerId)}),this.recipientStatusIcons.map((function(t){return n("span",{innerHTML:t.icon,style:{position:"absolute",top:"".concat(t.y,"px"),left:"".concat(t.x,"px")}})}))))};return t}());ve.style=Pr}}}));
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]};return t(i,n)};return function(i,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var r=0,e=i.length,s;r<e;r++){if(s||!(r in i)){if(!s)s=Array.prototype.slice.call(i,0,r);s[r]=i[r]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-e748b2d2.system.js","./p-e0ac9edf.system.js"],(function(t){"use strict";var i,n,r,e;return{setters:[function(t){i=t.r;n=t.h;r=t.H},function(t){e=t.c}],execute:function(){var s={};var u=[];function h(t,i){if(Array.isArray(t)){for(var n=0,r=t;n<r.length;n++){var e=r[n];h(e,i)}return}if(typeof t==="object"){for(var e in t){h(e,t[e])}return}a(Object.getOwnPropertyNames(i));s[t]=Object.assign(s[t]||{},i)}function o(t){return s[t]||{}}function f(){return __spreadArray([],new Set(u),true)}function a(t){u.push.apply(u,t)}function c(t,i){var n;var r=t.length;var e=[];for(n=0;n<r;n++){e.push(i(t[n]))}return e}function v(t,i){var n;var r=t.length;var e=[];for(n=0;n<r;n++){if(i(t[n])){e.push(t[n])}}return e}function l(t){return t%360*Math.PI/180}function d(t){return t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t,i,n,r){if(i==null||n==null){r=r||t.bbox();if(i==null){i=r.width/r.height*n}else if(n==null){n=r.height/r.width*i}}return{width:i,height:n}}function p(t,i){var n;var r=t.origin;var e=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";var s=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(r!=null){n=Array.isArray(r)?r:typeof r==="object"?[r.x,r.y]:[r,r],e=n[0],s=n[1]}var u=typeof e==="string";var h=typeof s==="string";if(u||h){var o=i.bbox(),f=o.height,a=o.width,c=o.x,v=o.y;if(u){e=e.includes("left")?c:e.includes("right")?c+a:c+a/2}if(h){s=s.includes("top")?v:s.includes("bottom")?v+f:v+f/2}}return[e,s]}var g=new Set(["desc","metadata","title"]);var y=function(t){return g.has(t.nodeName)};var m=function(t,i,n){if(n===void 0){n={}}var r=__assign({},i);for(var e in r){if(r[e].valueOf()===n[e]){delete r[e]}}if(Object.keys(r).length){t.node.setAttribute("data-svgjs",JSON.stringify(r))}else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};var x="http://www.w3.org/2000/svg";var _="http://www.w3.org/1999/xhtml";var b="http://www.w3.org/2000/xmlns/";var M="http://www.w3.org/1999/xlink";var k={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};var j=function(){function t(){}return t}();var A={};var L="___SYMBOL___ROOT___";function V(t,i){if(i===void 0){i=x}return k.document.createElementNS(i,t)}function O(t,i){if(i===void 0){i=false}if(t instanceof j)return t;if(typeof t==="object"){return H(t)}if(t==null){return new A[L]}if(typeof t==="string"&&t.charAt(0)!=="<"){return H(k.document.querySelector(t))}var n=i?k.document.createElement("div"):V("svg");n.innerHTML=t;t=H(n.firstChild);n.removeChild(n.firstChild);return t}function B(t,i){return i&&(i instanceof k.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:V(t)}function E(t){if(!t)return null;if(t.instance instanceof j)return t.instance;if(t.nodeName==="#document-fragment"){return new A.Fragment(t)}var i=C(t.nodeName||"Dom");if(i==="LinearGradient"||i==="RadialGradient"){i="Gradient"}else if(!A[i]){i="Dom"}return new A[i](t)}var H=E;function Z(t,i,n){if(i===void 0){i=t.name}if(n===void 0){n=false}A[i]=t;if(n)A[L]=t;a(Object.getOwnPropertyNames(t.prototype));return t}function S(t){return A[t]}var T=1e3;function F(t){return"Svgjs"+C(t)+T++}function D(t){for(var i=t.children.length-1;i>=0;i--){D(t.children[i])}if(t.id){t.id=F(t.nodeName);return t}return t}function I(t,i){var n,r;t=Array.isArray(t)?t:[t];for(r=t.length-1;r>=0;r--){for(n in i){t[r].prototype[n]=i[n]}}}function z(t){return function(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}var r=i[i.length-1];if(r&&r.constructor===Object&&!(r instanceof Array)){return t.apply(this,i.slice(0,-1)).attr(r)}else{return t.apply(this,i)}}}function N(){return this.parent().children()}function P(){return this.parent().index(this)}function G(){return this.siblings()[this.position()+1]}function R(){return this.siblings()[this.position()-1]}function Y(){var t=this.position();var i=this.parent();i.add(this.remove(),t+1);return this}function X(){var t=this.position();var i=this.parent();i.add(this.remove(),t?t-1:0);return this}function $(){var t=this.parent();t.add(this.remove());return this}function Q(){var t=this.parent();t.add(this.remove(),0);return this}function U(t){t=O(t);t.remove();var i=this.position();this.parent().add(t,i);return this}function J(t){t=O(t);t.remove();var i=this.position();this.parent().add(t,i+1);return this}function q(t){t=O(t);t.before(this);return this}function W(t){t=O(t);t.after(this);return this}h("Dom",{siblings:N,position:P,next:G,prev:R,forward:Y,backward:X,front:$,back:Q,before:U,after:J,insertBefore:q,insertAfter:W});var K=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;var tt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;var it=/rgb\((\d+),(\d+),(\d+)\)/;var nt=/(#[a-z_][a-z0-9\-_]*)/i;var rt=/\)\s*,?\s*/;var et=/\s/g;var st=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;var ut=/^rgb\(/;var ht=/^(\s+)?$/;var ot=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;var ft=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;var at=/[\s,]+/;var ct=/[MLHVCSQTAZ]/i;function vt(){var t=this.attr("class");return t==null?[]:t.trim().split(at)}function lt(t){return this.classes().indexOf(t)!==-1}function dt(t){if(!this.hasClass(t)){var i=this.classes();i.push(t);this.attr("class",i.join(" "))}return this}function Ct(t){if(this.hasClass(t)){this.attr("class",this.classes().filter((function(i){return i!==t})).join(" "))}return this}function wt(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}h("Dom",{classes:vt,hasClass:lt,addClass:dt,removeClass:Ct,toggleClass:wt});function pt(t,i){var n={};if(arguments.length===0){this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){var i=t.split(/\s*:\s*/);n[i[0]]=i[1]}));return n}if(arguments.length<2){if(Array.isArray(t)){for(var r=0,e=t;r<e.length;r++){var s=e[r];var u=s;n[s]=this.node.style.getPropertyValue(u)}return n}if(typeof t==="string"){return this.node.style.getPropertyValue(t)}if(typeof t==="object"){for(var s in t){this.node.style.setProperty(s,t[s]==null||ht.test(t[s])?"":t[s])}}}if(arguments.length===2){this.node.style.setProperty(t,i==null||ht.test(i)?"":i)}return this}function gt(){return this.css("display","")}function yt(){return this.css("display","none")}function mt(){return this.css("display")!=="none"}h("Dom",{css:pt,show:gt,hide:yt,visible:mt});function xt(t,i,n){if(t==null){return this.data(c(v(this.node.attributes,(function(t){return t.nodeName.indexOf("data-")===0})),(function(t){return t.nodeName.slice(5)})))}else if(t instanceof Array){var r={};for(var e=0,s=t;e<s.length;e++){var u=s[e];r[u]=this.data(u)}return r}else if(typeof t==="object"){for(i in t){this.data(i,t[i])}}else if(arguments.length<2){try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}}else{this.attr("data-"+t,i===null?null:n===true||typeof i==="string"||typeof i==="number"?i:JSON.stringify(i))}return this}h("Dom",{data:xt});function _t(t,i){if(typeof arguments[0]==="object"){for(var n in t){this.remember(n,t[n])}}else if(arguments.length===1){return this.memory()[t]}else{this.memory()[t]=i}return this}function bt(){if(arguments.length===0){this._memory={}}else{for(var t=arguments.length-1;t>=0;t--){delete this.memory()[arguments[t]]}}return this}function Mt(){return this._memory=this._memory||{}}h("Dom",{remember:_t,forget:bt,memory:Mt});function kt(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function jt(t){var i=Math.round(t);var n=Math.max(0,Math.min(255,i));var r=n.toString(16);return r.length===1?"0"+r:r}function At(t,i){for(var n=i.length;n--;){if(t[i[n]]==null){return false}}return true}function Lt(t,i){var n=At(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:At(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:At(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:At(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:At(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:At(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};n.space=i||n.space;return n}function Vt(t){if(t==="lab"||t==="xyz"||t==="lch"){return true}else{return false}}function Ot(t,i,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return t+(i-t)*6*n;if(n<1/2)return i;if(n<2/3)return t+(i-t)*(2/3-n)*6;return t}var Bt=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.isColor=function(i){return i&&(i instanceof t||this.isRgb(i)||this.test(i))};t.isRgb=function(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"};t.random=function(i,n){if(i===void 0){i="vibrant"}var r=Math.random,e=Math.round,s=Math.sin,u=Math.PI;if(i==="vibrant"){var h=(81-57)*r()+57;var o=(83-45)*r()+45;var f=360*r();var a=new t(h,o,f,"lch");return a}else if(i==="sine"){n=n==null?r():n;var c=e(80*s(2*u*n/.5+.01)+150);var v=e(50*s(2*u*n/.5+4.6)+200);var l=e(100*s(2*u*n/.5+2.3)+150);var a=new t(c,v,l);return a}else if(i==="pastel"){var h=(94-86)*r()+86;var o=(26-9)*r()+9;var d=360*r();var a=new t(h,o,d,"lch");return a}else if(i==="dark"){var h=10+10*r();var o=(125-75)*r()+86;var C=360*r();var a=new t(h,o,C,"lch");return a}else if(i==="rgb"){var c=255*r();var v=255*r();var l=255*r();var a=new t(c,v,l);return a}else if(i==="lab"){var h=100*r();var w=256*r()-128;var l=256*r()-128;var a=new t(h,w,l,"lab");return a}else if(i==="grey"){var p=255*r();var a=new t(p,p,p);return a}else{throw new Error("Unsupported random color mode")}};t.test=function(t){return typeof t==="string"&&(st.test(t)||ut.test(t))};t.prototype.cmyk=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=Math.min(1-u,1-h,1-o);if(f===1){return new t(0,0,0,1,"cmyk")}var a=(1-u-f)/(1-f);var c=(1-h-f)/(1-f);var v=(1-o-f)/(1-f);var l=new t(a,c,v,f,"cmyk");return l};t.prototype.hsl=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=Math.max(u,h,o);var a=Math.min(u,h,o);var c=(f+a)/2;var v=f===a;var l=f-a;var d=v?0:c>.5?l/(2-f-a):l/(f+a);var C=v?0:f===u?((h-o)/l+(h<o?6:0))/6:f===h?((o-u)/l+2)/6:f===o?((u-h)/l+4)/6:0;var w=new t(360*C,100*d,100*c,"hsl");return w};t.prototype.init=function(t,i,n,r,e){if(t===void 0){t=0}if(i===void 0){i=0}if(n===void 0){n=0}if(r===void 0){r=0}if(e===void 0){e="rgb"}t=!t?0:t;if(this.space){for(var s in this.space){delete this[this.space[s]]}}if(typeof t==="number"){e=typeof r==="string"?r:e;r=typeof r==="string"?0:r;Object.assign(this,{_a:t,_b:i,_c:n,_d:r,space:e})}else if(t instanceof Array){this.space=i||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){var u=Lt(t,i);Object.assign(this,u)}else if(typeof t==="string"){if(ut.test(t)){var h=t.replace(et,"");var o=it.exec(h).slice(1,4).map((function(t){return parseInt(t)})),f=o[0],a=o[1],c=o[2];Object.assign(this,{_a:f,_b:a,_c:c,_d:0,space:"rgb"})}else if(st.test(t)){var v=function(t){return parseInt(t,16)};var l=tt.exec(kt(t)).map(v),d=l[1],C=l[2],w=l[3];Object.assign(this,{_a:d,_b:C,_c:w,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color")}var p=this,g=p._a,y=p._b,m=p._c,x=p._d;var _=this.space==="rgb"?{r:g,g:y,b:m}:this.space==="xyz"?{x:g,y:y,z:m}:this.space==="hsl"?{h:g,s:y,l:m}:this.space==="lab"?{l:g,a:y,b:m}:this.space==="lch"?{l:g,c:y,h:m}:this.space==="cmyk"?{c:g,m:y,y:m,k:x}:{};Object.assign(this,_)};t.prototype.lab=function(){var i=this.xyz(),n=i.x,r=i.y,e=i.z;var s=116*r-16;var u=500*(n-r);var h=200*(r-e);var o=new t(s,u,h,"lab");return o};t.prototype.lch=function(){var i=this.lab(),n=i.l,r=i.a,e=i.b;var s=Math.sqrt(Math.pow(r,2)+Math.pow(e,2));var u=180*Math.atan2(e,r)/Math.PI;if(u<0){u*=-1;u=360-u}var h=new t(n,s,u,"lch");return h};t.prototype.rgb=function(){if(this.space==="rgb"){return this}else if(Vt(this.space)){var i=this,n=i.x,r=i.y,e=i.z;if(this.space==="lab"||this.space==="lch"){var s=this,u=s.l,h=s.a,o=s.b;if(this.space==="lch"){var f=this,a=f.c,c=f.h;var v=Math.PI/180;h=a*Math.cos(v*c);o=a*Math.sin(v*c)}var l=(u+16)/116;var d=h/500+l;var C=l-o/200;var w=16/116;var p=.008856;var g=7.787;n=.95047*(Math.pow(d,3)>p?Math.pow(d,3):(d-w)/g);r=1*(Math.pow(l,3)>p?Math.pow(l,3):(l-w)/g);e=1.08883*(Math.pow(C,3)>p?Math.pow(C,3):(C-w)/g)}var y=n*3.2406+r*-1.5372+e*-.4986;var m=n*-.9689+r*1.8758+e*.0415;var x=n*.0557+r*-.204+e*1.057;var _=Math.pow;var b=.0031308;var M=y>b?1.055*_(y,1/2.4)-.055:12.92*y;var k=m>b?1.055*_(m,1/2.4)-.055:12.92*m;var j=x>b?1.055*_(x,1/2.4)-.055:12.92*x;var A=new t(255*M,255*k,255*j);return A}else if(this.space==="hsl"){var L=this,V=L.h,O=L.s,u=L.l;V/=360;O/=100;u/=100;if(O===0){u*=255;var B=new t(u,u,u);return B}var E=u<.5?u*(1+O):u+O-u*O;var H=2*u-E;var M=255*Ot(H,E,V+1/3);var k=255*Ot(H,E,V);var j=255*Ot(H,E,V-1/3);var A=new t(M,k,j);return A}else if(this.space==="cmyk"){var Z=this,a=Z.c,S=Z.m,T=Z.y,F=Z.k;var M=255*(1-Math.min(1,a*(1-F)+F));var k=255*(1-Math.min(1,S*(1-F)+F));var j=255*(1-Math.min(1,T*(1-F)+F));var A=new t(M,k,j);return A}else{return this}};t.prototype.toArray=function(){var t=this,i=t._a,n=t._b,r=t._c,e=t._d,s=t.space;return[i,n,r,e,s]};t.prototype.toHex=function(){var t=this._clamped().map(jt),i=t[0],n=t[1],r=t[2];return"#".concat(i).concat(n).concat(r)};t.prototype.toRgb=function(){var t=this._clamped(),i=t[0],n=t[1],r=t[2];var e="rgb(".concat(i,",").concat(n,",").concat(r,")");return e};t.prototype.toString=function(){return this.toHex()};t.prototype.xyz=function(){var i=this.rgb(),n=i._a,r=i._b,e=i._c;var s=[n,r,e].map((function(t){return t/255})),u=s[0],h=s[1],o=s[2];var f=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92;var a=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92;var c=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var v=(f*.4124+a*.3576+c*.1805)/.95047;var l=(f*.2126+a*.7152+c*.0722)/1;var d=(f*.0193+a*.1192+c*.9505)/1.08883;var C=v>.008856?Math.pow(v,1/3):7.787*v+16/116;var w=l>.008856?Math.pow(l,1/3):7.787*l+16/116;var p=d>.008856?Math.pow(d,1/3):7.787*d+16/116;var g=new t(C,w,p,"xyz");return g};t.prototype._clamped=function(){var t=this.rgb(),i=t._a,n=t._b,r=t._c;var e=Math.max,s=Math.min,u=Math.round;var h=function(t){return e(0,s(u(t),255))};return[i,n,r].map(h)};return t}();var Et=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.clone=function(){return new t(this)};t.prototype.init=function(t,i){var n={x:0,y:0};var r=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:i};this.x=r.x==null?n.x:r.x;this.y=r.y==null?n.y:r.y;return this};t.prototype.toArray=function(){return[this.x,this.y]};t.prototype.transform=function(t){return this.clone().transformO(t)};t.prototype.transformO=function(t){if(!St.isMatrixLike(t)){t=new St(t)}var i=this,n=i.x,r=i.y;this.x=t.a*n+t.c*r+t.e;this.y=t.b*n+t.d*r+t.f;return this};return t}();function Ht(t,i){return new Et(t,i).transformO(this.screenCTM().inverseO())}function Zt(t,i,n){return Math.abs(i-t)<1e-6}var St=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.formatTransforms=function(t){var i=t.flip==="both"||t.flip===true;var n=t.flip&&(i||t.flip==="x")?-1:1;var r=t.flip&&(i||t.flip==="y")?-1:1;var e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;var s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;var u=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n;var h=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r;var o=t.shear||0;var f=t.rotate||t.theta||0;var a=new Et(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);var c=a.x;var v=a.y;var l=new Et(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN);var d=l.x;var C=l.y;var w=new Et(t.translate||t.tx||t.translateX,t.ty||t.translateY);var p=w.x;var g=w.y;var y=new Et(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);var m=y.x;var x=y.y;return{scaleX:u,scaleY:h,skewX:e,skewY:s,shear:o,theta:f,rx:m,ry:x,tx:p,ty:g,ox:c,oy:v,px:d,py:C}};t.fromArray=function(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}};t.isMatrixLike=function(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null};t.matrixMultiply=function(t,i,n){var r=t.a*i.a+t.c*i.b;var e=t.b*i.a+t.d*i.b;var s=t.a*i.c+t.c*i.d;var u=t.b*i.c+t.d*i.d;var h=t.e+t.a*i.e+t.c*i.f;var o=t.f+t.b*i.e+t.d*i.f;n.a=r;n.b=e;n.c=s;n.d=u;n.e=h;n.f=o;return n};t.prototype.around=function(t,i,n){return this.clone().aroundO(t,i,n)};t.prototype.aroundO=function(t,i,n){var r=t||0;var e=i||0;return this.translateO(-r,-e).lmultiplyO(n).translateO(r,e)};t.prototype.clone=function(){return new t(this)};t.prototype.decompose=function(t,i){if(t===void 0){t=0}if(i===void 0){i=0}var n=this.a;var r=this.b;var e=this.c;var s=this.d;var u=this.e;var h=this.f;var o=n*s-r*e;var f=o>0?1:-1;var a=f*Math.sqrt(n*n+r*r);var c=Math.atan2(f*r,f*n);var v=180/Math.PI*c;var l=Math.cos(c);var d=Math.sin(c);var C=(n*e+r*s)/o;var w=e*a/(C*n-r)||s*a/(C*r+n);var p=u-t+t*l*a+i*(C*l*a-d*w);var g=h-i+t*d*a+i*(C*d*a+l*w);return{scaleX:a,scaleY:w,shear:C,rotate:v,translateX:p,translateY:g,originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};t.prototype.equals=function(i){if(i===this)return true;var n=new t(i);return Zt(this.a,n.a)&&Zt(this.b,n.b)&&Zt(this.c,n.c)&&Zt(this.d,n.d)&&Zt(this.e,n.e)&&Zt(this.f,n.f)};t.prototype.flip=function(t,i){return this.clone().flipO(t,i)};t.prototype.flipO=function(t,i){return t==="x"?this.scaleO(-1,1,i,0):t==="y"?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)};t.prototype.init=function(i){var n=t.fromArray([1,0,0,1,0,0]);i=i instanceof wi?i.matrixify():typeof i==="string"?t.fromArray(i.split(at).map(parseFloat)):Array.isArray(i)?t.fromArray(i):typeof i==="object"&&t.isMatrixLike(i)?i:typeof i==="object"?(new t).transform(i):arguments.length===6?t.fromArray([].slice.call(arguments)):n;this.a=i.a!=null?i.a:n.a;this.b=i.b!=null?i.b:n.b;this.c=i.c!=null?i.c:n.c;this.d=i.d!=null?i.d:n.d;this.e=i.e!=null?i.e:n.e;this.f=i.f!=null?i.f:n.f;return this};t.prototype.inverse=function(){return this.clone().inverseO()};t.prototype.inverseO=function(){var t=this.a;var i=this.b;var n=this.c;var r=this.d;var e=this.e;var s=this.f;var u=t*r-i*n;if(!u)throw new Error("Cannot invert "+this);var h=r/u;var o=-i/u;var f=-n/u;var a=t/u;var c=-(h*e+f*s);var v=-(o*e+a*s);this.a=h;this.b=o;this.c=f;this.d=a;this.e=c;this.f=v;return this};t.prototype.lmultiply=function(t){return this.clone().lmultiplyO(t)};t.prototype.lmultiplyO=function(i){var n=this;var r=i instanceof t?i:new t(i);return t.matrixMultiply(r,n,this)};t.prototype.multiply=function(t){return this.clone().multiplyO(t)};t.prototype.multiplyO=function(i){var n=this;var r=i instanceof t?i:new t(i);return t.matrixMultiply(n,r,this)};t.prototype.rotate=function(t,i,n){return this.clone().rotateO(t,i,n)};t.prototype.rotateO=function(t,i,n){if(i===void 0){i=0}if(n===void 0){n=0}t=l(t);var r=Math.cos(t);var e=Math.sin(t);var s=this,u=s.a,h=s.b,o=s.c,f=s.d,a=s.e,c=s.f;this.a=u*r-h*e;this.b=h*r+u*e;this.c=o*r-f*e;this.d=f*r+o*e;this.e=a*r-c*e+n*e-i*r+i;this.f=c*r+a*e-i*e-n*r+n;return this};t.prototype.scale=function(){var t;return(t=this.clone()).scaleO.apply(t,arguments)};t.prototype.scaleO=function(t,i,n,r){if(i===void 0){i=t}if(n===void 0){n=0}if(r===void 0){r=0}if(arguments.length===3){r=n;n=i;i=t}var e=this,s=e.a,u=e.b,h=e.c,o=e.d,f=e.e,a=e.f;this.a=s*t;this.b=u*i;this.c=h*t;this.d=o*i;this.e=f*t-n*t+n;this.f=a*i-r*i+r;return this};t.prototype.shear=function(t,i,n){return this.clone().shearO(t,i,n)};t.prototype.shearO=function(t,i,n){if(i===void 0){i=0}if(n===void 0){n=0}var r=this,e=r.a,s=r.b,u=r.c,h=r.d,o=r.e,f=r.f;this.a=e+s*t;this.c=u+h*t;this.e=o+f*t-n*t;return this};t.prototype.skew=function(){var t;return(t=this.clone()).skewO.apply(t,arguments)};t.prototype.skewO=function(t,i,n,r){if(i===void 0){i=t}if(n===void 0){n=0}if(r===void 0){r=0}if(arguments.length===3){r=n;n=i;i=t}t=l(t);i=l(i);var e=Math.tan(t);var s=Math.tan(i);var u=this,h=u.a,o=u.b,f=u.c,a=u.d,c=u.e,v=u.f;this.a=h+o*e;this.b=o+h*s;this.c=f+a*e;this.d=a+f*s;this.e=c+v*e-r*e;this.f=v+c*s-n*s;return this};t.prototype.skewX=function(t,i,n){return this.skew(t,0,i,n)};t.prototype.skewY=function(t,i,n){return this.skew(0,t,i,n)};t.prototype.toArray=function(){return[this.a,this.b,this.c,this.d,this.e,this.f]};t.prototype.toString=function(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"};t.prototype.transform=function(i){if(t.isMatrixLike(i)){var n=new t(i);return n.multiplyO(this)}var r=t.formatTransforms(i);var e=this;var s=new Et(r.ox,r.oy).transform(e),u=s.x,h=s.y;var o=(new t).translateO(r.rx,r.ry).lmultiplyO(e).translateO(-u,-h).scaleO(r.scaleX,r.scaleY).skewO(r.skewX,r.skewY).shearO(r.shear).rotateO(r.theta).translateO(u,h);if(isFinite(r.px)||isFinite(r.py)){var f=new Et(u,h).transform(o);var a=isFinite(r.px)?r.px-f.x:0;var c=isFinite(r.py)?r.py-f.y:0;o.translateO(a,c)}o.translateO(r.tx,r.ty);return o};t.prototype.translate=function(t,i){return this.clone().translateO(t,i)};t.prototype.translateO=function(t,i){this.e+=t||0;this.f+=i||0;return this};t.prototype.valueOf=function(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};return t}();function Tt(){return new St(this.node.getCTM())}function Ft(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){var t=this.rect(1,1);var i=t.node.getScreenCTM();t.remove();return new St(i)}return new St(this.node.getScreenCTM())}catch(t){console.warn("Cannot get CTM from SVG node ".concat(this.node.nodeName,". Is the element rendered?"));return new St}}Z(St,"Matrix");function Dt(){if(!Dt.nodes){var t=O().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");var i=t.path().node;Dt.nodes={svg:t,path:i}}if(!Dt.nodes.svg.node.parentNode){var n=k.document.body||k.document.documentElement;Dt.nodes.svg.addTo(n)}return Dt.nodes}function It(t){return!t.width&&!t.height&&!t.x&&!t.y}function zt(t){return t===k.document||(k.document.documentElement.contains||function(t){while(t.parentNode){t=t.parentNode}return t===k.document}).call(k.document.documentElement,t)}var Nt=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.addOffset=function(){this.x+=k.window.pageXOffset;this.y+=k.window.pageYOffset;return new t(this)};t.prototype.init=function(t){var i=[0,0,0,0];t=typeof t==="string"?t.split(at).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):i;this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this};t.prototype.isNulled=function(){return It(this)};t.prototype.merge=function(i){var n=Math.min(this.x,i.x);var r=Math.min(this.y,i.y);var e=Math.max(this.x+this.width,i.x+i.width)-n;var s=Math.max(this.y+this.height,i.y+i.height)-r;return new t(n,r,e,s)};t.prototype.toArray=function(){return[this.x,this.y,this.width,this.height]};t.prototype.toString=function(){return this.x+" "+this.y+" "+this.width+" "+this.height};t.prototype.transform=function(i){if(!(i instanceof St)){i=new St(i)}var n=Infinity;var r=-Infinity;var e=Infinity;var s=-Infinity;var u=[new Et(this.x,this.y),new Et(this.x2,this.y),new Et(this.x,this.y2),new Et(this.x2,this.y2)];u.forEach((function(t){t=t.transform(i);n=Math.min(n,t.x);r=Math.max(r,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(n,e,r-n,s-e)};return t}();function Pt(t,i,n){var r;try{r=i(t.node);if(It(r)&&!zt(t.node)){throw new Error("Element not in the dom")}}catch(i){r=n(t)}return r}function Gt(){var t=function(t){return t.getBBox()};var i=function(t){try{var i=t.clone().addTo(Dt().svg).show();var n=i.node.getBBox();i.remove();return n}catch(i){throw new Error('Getting bbox of element "'.concat(t.node.nodeName,'" is not possible: ').concat(i.toString()))}};var n=Pt(this,t,i);var r=new Nt(n);return r}function Rt(t){var i=function(t){return t.getBoundingClientRect()};var n=function(t){throw new Error('Getting rbox of element "'.concat(t.node.nodeName,'" is not possible'))};var r=Pt(this,i,n);var e=new Nt(r);if(t){return e.transform(t.screenCTM().inverseO())}return e.addOffset()}function Yt(t,i){var n=this.bbox();return t>n.x&&i>n.y&&t<n.x+n.width&&i<n.y+n.height}h({viewbox:{viewbox:function(t,i,n,r){if(t==null)return new Nt(this.attr("viewBox"));return this.attr("viewBox",new Nt(t,i,n,r))},zoom:function(t,i){var n=this.attr(["width","height"]),r=n.width,e=n.height;if(!r&&!e||typeof r==="string"||typeof e==="string"){r=this.node.clientWidth;e=this.node.clientHeight}if(!r||!e){throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element")}var s=this.viewbox();var u=r/s.width;var h=e/s.height;var o=Math.min(u,h);if(t==null){return o}var f=o/t;if(f===Infinity)f=Number.MAX_SAFE_INTEGER/100;i=i||new Et(r/2/u+s.x,e/2/h+s.y);var a=new Nt(s).transform(new St({scale:f,origin:i}));return this.viewbox(a)}}});Z(Nt,"Box");var Xt=function(t){__extends(i,t);function i(i){if(i===void 0){i=[]}var n=[];for(var r=1;r<arguments.length;r++){n[r-1]=arguments[r]}var e=t.apply(this,__spreadArray([i],n,false))||this;if(typeof i==="number")return e;e.length=0;e.push.apply(e,i);return e}return i}(Array);I([Xt],{each:function(t){var i=[];for(var n=1;n<arguments.length;n++){i[n-1]=arguments[n]}if(typeof t==="function"){return this.map((function(i,n,r){return t.call(i,i,n,r)}))}else{return this.map((function(n){return n[t].apply(n,i)}))}},toArray:function(){return Array.prototype.concat.apply([],this)}});var $t=["toArray","constructor","each"];Xt.extend=function(t){t=t.reduce((function(t,i){if($t.includes(i))return t;if(i[0]==="_")return t;if(i in Array.prototype){t["$"+i]=Array.prototype[i]}t[i]=function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return this.each.apply(this,__spreadArray([i],t,false))};return t}),{});I([Xt],t)};function Qt(t,i){return new Xt(c((i||k.document).querySelectorAll(t),(function(t){return E(t)})))}function Ut(t){return Qt(t,this.node)}function Jt(t){return E(this.node.querySelector(t))}var qt=0;var Wt={};function Kt(t){var i=t.getEventHolder();if(i===k.window)i=Wt;if(!i.events)i.events={};return i.events}function ti(t){return t.getEventTarget()}function ii(t){var i=t.getEventHolder();if(i===k.window)i=Wt;if(i.events)i.events={}}function ni(t,i,n,r,e){var s=n.bind(r||t);var u=O(t);var h=Kt(u);var o=ti(u);i=Array.isArray(i)?i:i.split(at);if(!n._svgjsListenerId){n._svgjsListenerId=++qt}i.forEach((function(t){var i=t.split(".")[0];var r=t.split(".")[1]||"*";h[i]=h[i]||{};h[i][r]=h[i][r]||{};h[i][r][n._svgjsListenerId]=s;o.addEventListener(i,s,e||false)}))}function ri(t,i,n,r){var e=O(t);var s=Kt(e);var u=ti(e);if(typeof n==="function"){n=n._svgjsListenerId;if(!n)return}i=Array.isArray(i)?i:(i||"").split(at);i.forEach((function(t){var i=t&&t.split(".")[0];var h=t&&t.split(".")[1];var o,f;if(n){if(s[i]&&s[i][h||"*"]){u.removeEventListener(i,s[i][h||"*"][n],r||false);delete s[i][h||"*"][n]}}else if(i&&h){if(s[i]&&s[i][h]){for(f in s[i][h]){ri(u,[i,h].join("."),f)}delete s[i][h]}}else if(h){for(t in s){for(o in s[t]){if(h===o){ri(u,[t,h].join("."))}}}}else if(i){if(s[i]){for(o in s[i]){ri(u,[i,o].join("."))}delete s[i]}}else{for(t in s){ri(u,t)}ii(e)}}))}function ei(t,i,n,r){var e=ti(t);if(i instanceof k.window.Event){e.dispatchEvent(i)}else{i=new k.window.CustomEvent(i,__assign({detail:n,cancelable:true},r));e.dispatchEvent(i)}return i}var si=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.addEventListener=function(){};i.prototype.dispatch=function(t,i,n){return ei(this,t,i,n)};i.prototype.dispatchEvent=function(t){var i=this.getEventHolder().events;if(!i)return true;var n=i[t.type];for(var r in n){for(var e in n[r]){n[r][e](t)}}return!t.defaultPrevented};i.prototype.fire=function(t,i,n){this.dispatch(t,i,n);return this};i.prototype.getEventHolder=function(){return this};i.prototype.getEventTarget=function(){return this};i.prototype.off=function(t,i,n){ri(this,t,i,n);return this};i.prototype.on=function(t,i,n,r){ni(this,t,i,n,r);return this};i.prototype.removeEventListener=function(){};return i}(j);Z(si,"EventTarget");function ui(){}var hi={duration:400,ease:">",delay:0};var oi={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var fi=function(t){__extends(i,t);function i(){var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}var r=t.apply(this,i)||this;r.init.apply(r,i);return r}i.prototype.clone=function(){return new this.constructor(this)};i.prototype.init=function(t){if(typeof t==="number")return this;this.length=0;this.push.apply(this,this.parse(t));return this};i.prototype.parse=function(t){if(t===void 0){t=[]}if(t instanceof Array)return t;return t.trim().split(at).map(parseFloat)};i.prototype.toArray=function(){return Array.prototype.concat.apply([],this)};i.prototype.toSet=function(){return new Set(this)};i.prototype.toString=function(){return this.join(" ")};i.prototype.valueOf=function(){var t=[];t.push.apply(t,this);return t};return i}(Array);var ai=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.convert=function(i){return new t(this.value,i)};t.prototype.divide=function(i){i=new t(i);return new t(this/i,this.unit||i.unit)};t.prototype.init=function(i,n){n=Array.isArray(i)?i[1]:n;i=Array.isArray(i)?i[0]:i;this.value=0;this.unit=n||"";if(typeof i==="number"){this.value=isNaN(i)?0:!isFinite(i)?i<0?-34e37:+34e37:i}else if(typeof i==="string"){n=i.match(K);if(n){this.value=parseFloat(n[1]);if(n[5]==="%"){this.value/=100}else if(n[5]==="s"){this.value*=1e3}this.unit=n[5]}}else{if(i instanceof t){this.value=i.valueOf();this.unit=i.unit}}return this};t.prototype.minus=function(i){i=new t(i);return new t(this-i,this.unit||i.unit)};t.prototype.plus=function(i){i=new t(i);return new t(this+i,this.unit||i.unit)};t.prototype.times=function(i){i=new t(i);return new t(this*i,this.unit||i.unit)};t.prototype.toArray=function(){return[this.value,this.unit]};t.prototype.toJSON=function(){return this.toString()};t.prototype.toString=function(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit};t.prototype.valueOf=function(){return this.value};return t}();var ci=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);var vi=[];function li(t){vi.push(t)}function di(t,i,n){var r=this;if(t==null){t={};i=this.node.attributes;for(var e=0,s=i;e<s.length;e++){var u=s[e];t[u.nodeName]=ot.test(u.nodeValue)?parseFloat(u.nodeValue):u.nodeValue}return t}else if(t instanceof Array){return t.reduce((function(t,i){t[i]=r.attr(i);return t}),{})}else if(typeof t==="object"&&t.constructor===Object){for(i in t)this.attr(i,t[i])}else if(i===null){this.node.removeAttribute(t)}else if(i==null){i=this.node.getAttribute(t);return i==null?oi[t]:ot.test(i)?parseFloat(i):i}else{i=vi.reduce((function(i,n){return n(t,i,r)}),i);if(typeof i==="number"){i=new ai(i)}else if(ci.has(t)&&Bt.isColor(i)){i=new Bt(i)}else if(i.constructor===Array){i=new fi(i)}if(t==="leading"){if(this.leading){this.leading(i)}}else{typeof n==="string"?this.node.setAttributeNS(n,t,i.toString()):this.node.setAttribute(t,i.toString())}if(this.rebuild&&(t==="font-size"||t==="x")){this.rebuild()}}return this}var Ci=function(t){__extends(i,t);function i(i,n){var r=t.call(this)||this;r.node=i;r.type=i.nodeName;if(n&&i!==n){r.attr(n)}return r}i.prototype.add=function(t,i){t=O(t);if(t.removeNamespace&&this.node instanceof k.window.SVGElement){t.removeNamespace()}if(i==null){this.node.appendChild(t.node)}else if(t.node!==this.node.childNodes[i]){this.node.insertBefore(t.node,this.node.childNodes[i])}return this};i.prototype.addTo=function(t,i){return O(t).put(this,i)};i.prototype.children=function(){return new Xt(c(this.node.children,(function(t){return E(t)})))};i.prototype.clear=function(){while(this.node.hasChildNodes()){this.node.removeChild(this.node.lastChild)}return this};i.prototype.clone=function(t,i){if(t===void 0){t=true}if(i===void 0){i=true}this.writeDataToDom();var n=this.node.cloneNode(t);if(i){n=D(n)}return new this.constructor(n)};i.prototype.each=function(t,i){var n=this.children();var r,e;for(r=0,e=n.length;r<e;r++){t.apply(n[r],[r,n]);if(i){n[r].each(t,i)}}return this};i.prototype.element=function(t,n){return this.put(new i(V(t),n))};i.prototype.first=function(){return E(this.node.firstChild)};i.prototype.get=function(t){return E(this.node.childNodes[t])};i.prototype.getEventHolder=function(){return this.node};i.prototype.getEventTarget=function(){return this.node};i.prototype.has=function(t){return this.index(t)>=0};i.prototype.html=function(t,i){return this.xml(t,i,_)};i.prototype.id=function(t){if(typeof t==="undefined"&&!this.node.id){this.node.id=F(this.type)}return this.attr("id",t)};i.prototype.index=function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)};i.prototype.last=function(){return E(this.node.lastChild)};i.prototype.matches=function(t){var i=this.node;var n=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return n&&n.call(i,t)};i.prototype.parent=function(t){var i=this;if(!i.node.parentNode)return null;i=E(i.node.parentNode);if(!t)return i;do{if(typeof t==="string"?i.matches(t):i instanceof t)return i}while(i=E(i.node.parentNode));return i};i.prototype.put=function(t,i){t=O(t);this.add(t,i);return t};i.prototype.putIn=function(t,i){return O(t).add(this,i)};i.prototype.remove=function(){if(this.parent()){this.parent().removeElement(this)}return this};i.prototype.removeElement=function(t){this.node.removeChild(t.node);return this};i.prototype.replace=function(t){t=O(t);if(this.node.parentNode){this.node.parentNode.replaceChild(t.node,this.node)}return t};i.prototype.round=function(t,i){if(t===void 0){t=2}if(i===void 0){i=null}var n=Math.pow(10,t);var r=this.attr(i);for(var e in r){if(typeof r[e]==="number"){r[e]=Math.round(r[e]*n)/n}}this.attr(r);return this};i.prototype.svg=function(t,i){return this.xml(t,i,x)};i.prototype.toString=function(){return this.id()};i.prototype.words=function(t){this.node.textContent=t;return this};i.prototype.wrap=function(t){var i=this.parent();if(!i){return this.addTo(t)}var n=i.index(this);return i.put(t,n).put(this)};i.prototype.writeDataToDom=function(){this.each((function(){this.writeDataToDom()}));return this};i.prototype.xml=function(t,i,n){if(typeof t==="boolean"){n=i;i=t;t=null}if(t==null||typeof t==="function"){i=i==null?true:i;this.writeDataToDom();var r=this;if(t!=null){r=E(r.node.cloneNode(true));if(i){var e=t(r);r=e||r;if(e===false)return""}r.each((function(){var i=t(this);var n=i||this;if(i===false){this.remove()}else if(i&&this!==n){this.replace(n)}}),true)}return i?r.node.outerHTML:r.node.innerHTML}i=i==null?false:i;var s=V("wrapper",n);var u=k.document.createDocumentFragment();s.innerHTML=t;for(var h=s.children.length;h--;){u.appendChild(s.firstElementChild)}var o=this.parent();return i?this.replace(u)&&o:this.add(u)};return i}(si);I(Ci,{attr:di,find:Ut,findOne:Jt});Z(Ci,"Dom");var wi=function(t){__extends(i,t);function i(i,n){var r,e;var s=t.call(this,i,n)||this;s.dom={};s.node.instance=s;if(i.hasAttribute("data-svgjs")||i.hasAttribute("svgjs:data")){s.setData((e=(r=JSON.parse(i.getAttribute("data-svgjs")))!==null&&r!==void 0?r:JSON.parse(i.getAttribute("svgjs:data")))!==null&&e!==void 0?e:{})}return s}i.prototype.center=function(t,i){return this.cx(t).cy(i)};i.prototype.cx=function(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)};i.prototype.cy=function(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)};i.prototype.defs=function(){var t=this.root();return t&&t.defs()};i.prototype.dmove=function(t,i){return this.dx(t).dy(i)};i.prototype.dx=function(t){if(t===void 0){t=0}return this.x(new ai(t).plus(this.x()))};i.prototype.dy=function(t){if(t===void 0){t=0}return this.y(new ai(t).plus(this.y()))};i.prototype.getEventHolder=function(){return this};i.prototype.height=function(t){return this.attr("height",t)};i.prototype.move=function(t,i){return this.x(t).y(i)};i.prototype.parents=function(t){if(t===void 0){t=this.root()}var i=typeof t==="string";if(!i){t=O(t)}var n=new Xt;var r=this;while((r=r.parent())&&r.node!==k.document&&r.nodeName!=="#document-fragment"){n.push(r);if(!i&&r.node===t.node){break}if(i&&r.matches(t)){break}if(r.node===this.root().node){return null}}return n};i.prototype.reference=function(t){t=this.attr(t);if(!t)return null;var i=(t+"").match(nt);return i?O(i[1]):null};i.prototype.root=function(){var t=this.parent(S(L));return t&&t.root()};i.prototype.setData=function(t){this.dom=t;return this};i.prototype.size=function(t,i){var n=w(this,t,i);return this.width(new ai(n.width)).height(new ai(n.height))};i.prototype.width=function(t){return this.attr("width",t)};i.prototype.writeDataToDom=function(){m(this,this.dom);return t.prototype.writeDataToDom.call(this)};i.prototype.x=function(t){return this.attr("x",t)};i.prototype.y=function(t){return this.attr("y",t)};return i}(Ci);I(wi,{bbox:Gt,rbox:Rt,inside:Yt,point:Ht,ctm:Tt,screenCTM:Ft});Z(wi,"Element");var pi={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return i==="color"?t:t+"-"+i}};["fill","stroke"].forEach((function(t){var i={};var n;i[t]=function(i){if(typeof i==="undefined"){return this.attr(t)}if(typeof i==="string"||i instanceof Bt||Bt.isRgb(i)||i instanceof wi){this.attr(t,i)}else{for(n=pi[t].length-1;n>=0;n--){if(i[pi[t][n]]!=null){this.attr(pi.prefix(t,pi[t][n]),i[pi[t][n]])}}}return this};h(["Element","Runner"],i)}));h(["Element","Runner"],{matrix:function(t,i,n,r,e,s){if(t==null){return new St(this)}return this.attr("transform",new St(t,i,n,r,e,s))},rotate:function(t,i,n){return this.transform({rotate:t,ox:i,oy:n},true)},skew:function(t,i,n,r){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:i,oy:n},true):this.transform({skew:[t,i],ox:n,oy:r},true)},shear:function(t,i,n){return this.transform({shear:t,ox:i,oy:n},true)},scale:function(t,i,n,r){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:i,oy:n},true):this.transform({scale:[t,i],ox:n,oy:r},true)},translate:function(t,i){return this.transform({translate:[t,i]},true)},relative:function(t,i){return this.transform({relative:[t,i]},true)},flip:function(t,i){if(t===void 0){t="both"}if(i===void 0){i="center"}if("xybothtrue".indexOf(t)===-1){i=t;t="both"}return this.transform({flip:t,origin:i},true)},opacity:function(t){return this.attr("opacity",t)}});h("radius",{radius:function(t,i){if(i===void 0){i=t}var n=(this._element||this).type;return n==="radialGradient"?this.attr("r",new ai(t)):this.rx(t).ry(i)}});h("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Et(this.node.getPointAtLength(t))}});h(["Element","Runner"],{font:function(t,i){if(typeof t==="object"){for(i in t)this.font(i,t[i]);return this}return t==="leading"?this.leading(i):t==="anchor"?this.attr("text-anchor",i):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,i):this.attr(t,i)}});var gi=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){var n=function(t){if(t===null){this.off(i)}else{this.on(i,t)}return this};t[i]=n;return t}),{});h("Element",gi);function yi(){return this.attr("transform",null)}function mi(){var t=(this.attr("transform")||"").split(rt).slice(0,-1).map((function(t){var i=t.trim().split("(");return[i[0],i[1].split(at).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){if(i[0]==="matrix"){return t.lmultiply(St.fromArray(i[1]))}return t[i[0]].apply(t,i[1])}),new St);return t}function xi(t,i){if(this===t)return this;if(y(this.node))return this.addTo(t,i);var n=this.screenCTM();var r=t.screenCTM().inverse();this.addTo(t,i).untransform().transform(r.multiply(n));return this}function _i(t){return this.toParent(this.root(),t)}function bi(t,i){if(t==null||typeof t==="string"){var n=new St(this).decompose();return t==null?n:n[t]}if(!St.isMatrixLike(t)){t=__assign(__assign({},t),{origin:p(t,this)})}var r=i===true?this:i||false;var e=new St(r).transform(t);return this.attr("transform",e)}h("Element",{untransform:yi,matrixify:mi,toParent:xi,toRoot:_i,transform:bi});var Mi=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.flatten=function(){this.each((function(){if(this instanceof i){return this.flatten().ungroup()}}));return this};i.prototype.ungroup=function(t,i){if(t===void 0){t=this.parent()}if(i===void 0){i=t.index(this)}i=i===-1?t.children().length:i;this.each((function(n,r){return r[r.length-n-1].toParent(t,i)}));return this.remove()};return i}(wi);Z(Mi,"Container");var ki=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("defs",i),n)||this}i.prototype.flatten=function(){return this};i.prototype.ungroup=function(){return this};return i}(Mi);Z(ki,"Defs");var ji=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}return i}(wi);Z(ji,"Shape");function Ai(t){return this.attr("rx",t)}function Li(t){return this.attr("ry",t)}function Vi(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function Oi(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function Bi(t){return this.attr("cx",t)}function Ei(t){return this.attr("cy",t)}function Hi(t){return t==null?this.rx()*2:this.rx(new ai(t).divide(2))}function Zi(t){return t==null?this.ry()*2:this.ry(new ai(t).divide(2))}var Si={__proto__:null,cx:Bi,cy:Ei,height:Zi,rx:Ai,ry:Li,width:Hi,x:Vi,y:Oi};var Ti=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("ellipse",i),n)||this}i.prototype.size=function(t,i){var n=w(this,t,i);return this.rx(new ai(n.width).divide(2)).ry(new ai(n.height).divide(2))};return i}(ji);I(Ti,Si);h("Container",{ellipse:z((function(t,i){if(t===void 0){t=0}if(i===void 0){i=t}return this.put(new Ti).size(t,i).move(0,0)}))});Z(Ti,"Ellipse");var Fi=function(t){__extends(i,t);function i(i){if(i===void 0){i=k.document.createDocumentFragment()}return t.call(this,i)||this}i.prototype.xml=function(i,n,r){if(typeof i==="boolean"){r=n;n=i;i=null}if(i==null||typeof i==="function"){var e=new Ci(V("wrapper",r));e.add(this.node.cloneNode(true));return e.xml(false,r)}return t.prototype.xml.call(this,i,false,r)};return i}(Ci);Z(Fi,"Fragment");function Di(t,i){return(this._element||this).type==="radialGradient"?this.attr({fx:new ai(t),fy:new ai(i)}):this.attr({x1:new ai(t),y1:new ai(i)})}function Ii(t,i){return(this._element||this).type==="radialGradient"?this.attr({cx:new ai(t),cy:new ai(i)}):this.attr({x2:new ai(t),y2:new ai(i)})}var zi={__proto__:null,from:Di,to:Ii};var Ni=function(t){__extends(i,t);function i(i,n){return t.call(this,B(i+"Gradient",typeof i==="string"?null:i),n)||this}i.prototype.attr=function(i,n,r){if(i==="transform")i="gradientTransform";return t.prototype.attr.call(this,i,n,r)};i.prototype.bbox=function(){return new Nt};i.prototype.targets=function(){return Qt("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Mi);I(Ni,zi);h({Container:{gradient:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).gradient.apply(t,i)}},Defs:{gradient:z((function(t,i){return this.put(new Ni(t)).update(i)}))}});Z(Ni,"Gradient");var Pi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("pattern",i),n)||this}i.prototype.attr=function(i,n,r){if(i==="transform")i="patternTransform";return t.prototype.attr.call(this,i,n,r)};i.prototype.bbox=function(){return new Nt};i.prototype.targets=function(){return Qt("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Mi);h({Container:{pattern:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).pattern.apply(t,i)}},Defs:{pattern:z((function(t,i,n){return this.put(new Pi).update(n).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}});Z(Pi,"Pattern");var Gi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("image",i),n)||this}i.prototype.load=function(t,i){if(!t)return this;var n=new k.window.Image;ni(n,"load",(function(t){var r=this.parent(Pi);if(this.width()===0&&this.height()===0){this.size(n.width,n.height)}if(r instanceof Pi){if(r.width()===0&&r.height()===0){r.size(this.width(),this.height())}}if(typeof i==="function"){i.call(this,t)}}),this);ni(n,"load error",(function(){ri(n)}));return this.attr("href",n.src=t,M)};return i}(ji);li((function(t,i,n){if(t==="fill"||t==="stroke"){if(ft.test(i)){i=n.root().defs().image(i)}}if(i instanceof Gi){i=n.root().defs().pattern(0,0,(function(t){t.add(i)}))}return i}));h({Container:{image:z((function(t,i){return this.put(new Gi).size(0,0).load(t,i)}))}});Z(Gi,"Image");var Ri=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){var t=-Infinity;var i=-Infinity;var n=Infinity;var r=Infinity;this.forEach((function(e){t=Math.max(e[0],t);i=Math.max(e[1],i);n=Math.min(e[0],n);r=Math.min(e[1],r)}));return new Nt(n,r,t-n,i-r)};i.prototype.move=function(t,i){var n=this.bbox();t-=n.x;i-=n.y;if(!isNaN(t)&&!isNaN(i)){for(var r=this.length-1;r>=0;r--){this[r]=[this[r][0]+t,this[r][1]+i]}}return this};i.prototype.parse=function(t){if(t===void 0){t=[0,0]}var i=[];if(t instanceof Array){t=Array.prototype.concat.apply([],t)}else{t=t.trim().split(at).map(parseFloat)}if(t.length%2!==0)t.pop();for(var n=0,r=t.length;n<r;n=n+2){i.push([t[n],t[n+1]])}return i};i.prototype.size=function(t,i){var n;var r=this.bbox();for(n=this.length-1;n>=0;n--){if(r.width)this[n][0]=(this[n][0]-r.x)*t/r.width+r.x;if(r.height)this[n][1]=(this[n][1]-r.y)*i/r.height+r.y}return this};i.prototype.toLine=function(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}};i.prototype.toString=function(){var t=[];for(var i=0,n=this.length;i<n;i++){t.push(this[i].join(","))}return t.join(" ")};i.prototype.transform=function(t){return this.clone().transformO(t)};i.prototype.transformO=function(t){if(!St.isMatrixLike(t)){t=new St(t)}for(var i=this.length;i--;){var n=this[i],r=n[0],e=n[1];this[i][0]=t.a*r+t.c*e+t.e;this[i][1]=t.b*r+t.d*e+t.f}return this};return i}(fi);var Yi=Ri;function Xi(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function $i(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function Qi(t){var i=this.bbox();return t==null?i.width:this.size(t,i.height)}function Ui(t){var i=this.bbox();return t==null?i.height:this.size(i.width,t)}var Ji={__proto__:null,MorphArray:Yi,height:Ui,width:Qi,x:Xi,y:$i};var qi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("line",i),n)||this}i.prototype.array=function(){return new Ri([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])};i.prototype.move=function(t,i){return this.attr(this.array().move(t,i).toLine())};i.prototype.plot=function(t,i,n,r){if(t==null){return this.array()}else if(typeof i!=="undefined"){t={x1:t,y1:i,x2:n,y2:r}}else{t=new Ri(t).toLine()}return this.attr(t)};i.prototype.size=function(t,i){var n=w(this,t,i);return this.attr(this.array().size(n.width,n.height).toLine())};return i}(ji);I(qi,Ji);h({Container:{line:z((function(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}return qi.prototype.plot.apply(this.put(new qi),t[0]!=null?t:[0,0,0,0])}))}});Z(qi,"Line");var Wi=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("marker",i),n)||this}i.prototype.height=function(t){return this.attr("markerHeight",t)};i.prototype.orient=function(t){return this.attr("orient",t)};i.prototype.ref=function(t,i){return this.attr("refX",t).attr("refY",i)};i.prototype.toString=function(){return"url(#"+this.id()+")"};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.width=function(t){return this.attr("markerWidth",t)};return i}(Mi);h({Container:{marker:function(){var t;var i=[];for(var n=0;n<arguments.length;n++){i[n]=arguments[n]}return(t=this.defs()).marker.apply(t,i)}},Defs:{marker:z((function(t,i,n){return this.put(new Wi).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(n)}))},marker:{marker:function(t,i,n,r){var e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Wi?arguments[1]:this.defs().marker(i,n,r);return this.attr(e,t)}}});Z(Wi,"Marker");function Ki(t,i){return function(n){if(n==null)return this[t];this[t]=n;if(i)i.call(this);return this}}var tn={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,i,n,r){return function(e){if(e<0){if(t>0){return i/t*e}else if(n>0){return r/n*e}else{return 0}}else if(e>1){if(n<1){return(1-r)/(1-n)*e+(r-n)/(1-n)}else if(t<1){return(1-i)/(1-t)*e+(i-t)/(1-t)}else{return 1}}else{return 3*e*Math.pow(1-e,2)*i+3*Math.pow(e,2)*(1-e)*r+Math.pow(e,3)}}},steps:function(t,i){if(i===void 0){i="end"}i=i.split("-").reverse()[0];var n=t;if(i==="none"){--n}else if(i==="both"){++n}return function(r,e){if(e===void 0){e=false}var s=Math.floor(r*t);var u=r*s%1===0;if(i==="start"||i==="both"){++s}if(e&&u){--s}if(r>=0&&s<0){s=0}if(r<=1&&s>n){s=n}return s/n}}};var nn=function(){function t(){}t.prototype.done=function(){return false};return t}();var rn=function(t){__extends(i,t);function i(i){if(i===void 0){i=hi.ease}var n=t.call(this)||this;n.ease=tn[i]||i;return n}i.prototype.step=function(t,i,n){if(typeof t!=="number"){return n<1?t:i}return t+(i-t)*this.ease(n)};return i}(nn);var en=function(t){__extends(i,t);function i(i){var n=t.call(this)||this;n.stepper=i;return n}i.prototype.done=function(t){return t.done};i.prototype.step=function(t,i,n,r){return this.stepper(t,i,n,r)};return i}(nn);function sn(){var t=(this._duration||500)/1e3;var i=this._overshoot||0;var n=1e-10;var r=Math.PI;var e=Math.log(i/100+n);var s=-e/Math.sqrt(r*r+e*e);var u=3.9/(s*t);this.d=2*s*u;this.k=u*u}var un=function(t){__extends(i,t);function i(i,n){if(i===void 0){i=500}if(n===void 0){n=0}var r=t.call(this)||this;r.duration(i).overshoot(n);return r}i.prototype.step=function(t,i,n,r){if(typeof t==="string")return t;r.done=n===Infinity;if(n===Infinity)return i;if(n===0)return t;if(n>100)n=16;n/=1e3;var e=r.velocity||0;var s=-this.d*e-this.k*(t-i);var u=t+e*n+s*n*n/2;r.velocity=e+s*n;r.done=Math.abs(i-u)+Math.abs(e)<.002;return r.done?i:u};return i}(en);I(un,{duration:Ki("_duration",sn),overshoot:Ki("_overshoot",sn)});var hn=function(t){__extends(i,t);function i(i,n,r,e){if(i===void 0){i=.1}if(n===void 0){n=.01}if(r===void 0){r=0}if(e===void 0){e=1e3}var s=t.call(this)||this;s.p(i).i(n).d(r).windup(e);return s}i.prototype.step=function(t,i,n,r){if(typeof t==="string")return t;r.done=n===Infinity;if(n===Infinity)return i;if(n===0)return t;var e=i-t;var s=(r.integral||0)+e*n;var u=(e-(r.error||0))/n;var h=this._windup;if(h!==false){s=Math.max(-h,Math.min(s,h))}r.error=e;r.integral=s;r.done=Math.abs(e)<.001;return r.done?i:t+(this.P*e+this.I*s+this.D*u)};return i}(en);I(hn,{windup:Ki("_windup"),p:Ki("P"),i:Ki("I"),d:Ki("D")});var on={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};var fn={M:function(t,i,n){i.x=n.x=t[0];i.y=n.y=t[1];return["M",i.x,i.y]},L:function(t,i){i.x=t[0];i.y=t[1];return["L",t[0],t[1]]},H:function(t,i){i.x=t[0];return["H",t[0]]},V:function(t,i){i.y=t[0];return["V",t[0]]},C:function(t,i){i.x=t[4];i.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){i.x=t[2];i.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){i.x=t[2];i.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){i.x=t[0];i.y=t[1];return["T",t[0],t[1]]},Z:function(t,i,n){i.x=n.x;i.y=n.y;return["Z"]},A:function(t,i){i.x=t[5];i.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};var an="mlhvqtcsaz".split("");for(var cn=0,vn=an.length;cn<vn;++cn){fn[an[cn]]=function(t){return function(i,n,r){if(t==="H")i[0]=i[0]+n.x;else if(t==="V")i[0]=i[0]+n.y;else if(t==="A"){i[5]=i[5]+n.x;i[6]=i[6]+n.y}else{for(var e=0,s=i.length;e<s;++e){i[e]=i[e]+(e%2?n.y:n.x)}}return fn[t](i,n,r)}}(an[cn].toUpperCase())}function ln(t){var i=t.segment[0];return fn[i](t.segment.slice(1),t.p,t.p0)}function dn(t){return t.segment.length&&t.segment.length-1===on[t.segment[0].toUpperCase()]}function Cn(t,i){t.inNumber&&wn(t,false);var n=ct.test(i);if(n){t.segment=[i]}else{var r=t.lastCommand;var e=r.toLowerCase();var s=r===e;t.segment=[e==="m"?s?"l":"L":r]}t.inSegment=true;t.lastCommand=t.segment[0];return n}function wn(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=i;t.number="";t.pointSeen=false;t.hasExponent=false;if(dn(t)){pn(t)}}function pn(t){t.inSegment=false;if(t.absolute){t.segment=ln(t)}t.segments.push(t.segment)}function gn(t){if(!t.segment.length)return false;var i=t.segment[0].toUpperCase()==="A";var n=t.segment.length;return i&&(n===4||n===5)}function yn(t){return t.lastToken.toUpperCase()==="E"}var mn=new Set([" ",",","\t","\n","\r","\f"]);function xn(t,i){if(i===void 0){i=true}var n=0;var r="";var e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:i,p0:new Et,p:new Et};while(e.lastToken=r,r=t.charAt(n++)){if(!e.inSegment){if(Cn(e,r)){continue}}if(r==="."){if(e.pointSeen||e.hasExponent){wn(e,false);--n;continue}e.inNumber=true;e.pointSeen=true;e.number+=r;continue}if(!isNaN(parseInt(r))){if(e.number==="0"||gn(e)){e.inNumber=true;e.number=r;wn(e,true);continue}e.inNumber=true;e.number+=r;continue}if(mn.has(r)){if(e.inNumber){wn(e,false)}continue}if(r==="-"||r==="+"){if(e.inNumber&&!yn(e)){wn(e,false);--n;continue}e.number+=r;e.inNumber=true;continue}if(r.toUpperCase()==="E"){e.number+=r;e.hasExponent=true;continue}if(ct.test(r)){if(e.inNumber){wn(e,false)}else if(!dn(e)){throw new Error("parser Error")}else{pn(e)}--n}}if(e.inNumber){wn(e,false)}if(e.inSegment&&dn(e)){pn(e)}return e.segments}function _n(t){var i="";for(var n=0,r=t.length;n<r;n++){i+=t[n][0];if(t[n][1]!=null){i+=t[n][1];if(t[n][2]!=null){i+=" ";i+=t[n][2];if(t[n][3]!=null){i+=" ";i+=t[n][3];i+=" ";i+=t[n][4];if(t[n][5]!=null){i+=" ";i+=t[n][5];i+=" ";i+=t[n][6];if(t[n][7]!=null){i+=" ";i+=t[n][7]}}}}}}return i+" "}var bn=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){Dt().path.setAttribute("d",this.toString());return new Nt(Dt.nodes.path.getBBox())};i.prototype.move=function(t,i){var n=this.bbox();t-=n.x;i-=n.y;if(!isNaN(t)&&!isNaN(i)){for(var r=void 0,e=this.length-1;e>=0;e--){r=this[e][0];if(r==="M"||r==="L"||r==="T"){this[e][1]+=t;this[e][2]+=i}else if(r==="H"){this[e][1]+=t}else if(r==="V"){this[e][1]+=i}else if(r==="C"||r==="S"||r==="Q"){this[e][1]+=t;this[e][2]+=i;this[e][3]+=t;this[e][4]+=i;if(r==="C"){this[e][5]+=t;this[e][6]+=i}}else if(r==="A"){this[e][6]+=t;this[e][7]+=i}}}return this};i.prototype.parse=function(t){if(t===void 0){t="M0 0"}if(Array.isArray(t)){t=Array.prototype.concat.apply([],t).toString()}return xn(t)};i.prototype.size=function(t,i){var n=this.bbox();var r,e;n.width=n.width===0?1:n.width;n.height=n.height===0?1:n.height;for(r=this.length-1;r>=0;r--){e=this[r][0];if(e==="M"||e==="L"||e==="T"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x;this[r][2]=(this[r][2]-n.y)*i/n.height+n.y}else if(e==="H"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x}else if(e==="V"){this[r][1]=(this[r][1]-n.y)*i/n.height+n.y}else if(e==="C"||e==="S"||e==="Q"){this[r][1]=(this[r][1]-n.x)*t/n.width+n.x;this[r][2]=(this[r][2]-n.y)*i/n.height+n.y;this[r][3]=(this[r][3]-n.x)*t/n.width+n.x;this[r][4]=(this[r][4]-n.y)*i/n.height+n.y;if(e==="C"){this[r][5]=(this[r][5]-n.x)*t/n.width+n.x;this[r][6]=(this[r][6]-n.y)*i/n.height+n.y}}else if(e==="A"){this[r][1]=this[r][1]*t/n.width;this[r][2]=this[r][2]*i/n.height;this[r][6]=(this[r][6]-n.x)*t/n.width+n.x;this[r][7]=(this[r][7]-n.y)*i/n.height+n.y}}return this};i.prototype.toString=function(){return _n(this)};return i}(fi);var Mn=function(t){var i=typeof t;if(i==="number"){return ai}else if(i==="string"){if(Bt.isColor(t)){return Bt}else if(at.test(t)){return ct.test(t)?bn:fi}else if(K.test(t)){return ai}else{return jn}}else if(On.indexOf(t.constructor)>-1){return t.constructor}else if(Array.isArray(t)){return fi}else if(i==="object"){return Vn}else{return jn}};var kn=function(){function t(t){this._stepper=t||new rn("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}t.prototype.at=function(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)};t.prototype.done=function(){var t=this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),true);return t};t.prototype.from=function(t){if(t==null){return this._from}this._from=this._set(t);return this};t.prototype.stepper=function(t){if(t==null)return this._stepper;this._stepper=t;return this};t.prototype.to=function(t){if(t==null){return this._to}this._to=this._set(t);return this};t.prototype.type=function(t){if(t==null){return this._type}this._type=t;return this};t.prototype._set=function(t){if(!this._type){this.type(Mn(t))}var i=new this._type(t);if(this._type===Bt){i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i}if(this._type===Vn){i=this._to?i.align(this._to):this._from?i.align(this._from):i}i=i.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){t.done=true;return t}));return i};return t}();var jn=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this};t.prototype.toArray=function(){return[this.value]};t.prototype.valueOf=function(){return this.value};return t}();var An=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(i){if(Array.isArray(i)){i={scaleX:i[0],scaleY:i[1],shear:i[2],rotate:i[3],translateX:i[4],translateY:i[5],originX:i[6],originY:i[7]}}Object.assign(this,t.defaults,i);return this};t.prototype.toArray=function(){var t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]};return t}();An.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};var Ln=function(t,i){return t[0]<i[0]?-1:t[0]>i[0]?1:0};var Vn=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.align=function(t){var i;var n=this.values;for(var r=0,e=n.length;r<e;++r){if(n[r+1]===t[r+1]){if(n[r+1]===Bt&&t[r+7]!==n[r+7]){var s=t[r+7];var u=new Bt(this.values.splice(r+3,5))[s]().toArray();(i=this.values).splice.apply(i,__spreadArray([r+3,0],u,false))}r+=n[r+2]+2;continue}if(!t[r+1]){return this}var h=(new t[r+1]).toArray();var o=n[r+2]+3;n.splice.apply(n,__spreadArray([r,o,t[r],t[r+1],t[r+2]],h,false));r+=n[r+2]+2}return this};t.prototype.init=function(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};var i=[];for(var n in t){var r=Mn(t[n]);var e=new r(t[n]).toArray();i.push(__spreadArray([n,r,e.length],e,true))}i.sort(Ln);this.values=i.reduce((function(t,i){return t.concat(i)}),[]);return this};t.prototype.toArray=function(){return this.values};t.prototype.valueOf=function(){var t={};var i=this.values;while(i.length){var n=i.shift();var r=i.shift();var e=i.shift();var s=i.splice(0,e);t[n]=new r(s)}return t};return t}();var On=[jn,An,Vn];function Bn(t){if(t===void 0){t=[]}On.push.apply(On,[].concat(t))}function En(){I(On,{to:function(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray:function(t){this.init(t);return this},toConsumable:function(){return this.toArray()},morph:function(t,i,n,r,e){var s=function(t,s){return r.step(t,i[s],n,e[s],e)};return this.fromArray(t.map(s))}})}var Hn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("path",i),n)||this}i.prototype.array=function(){return this._array||(this._array=new bn(this.attr("d")))};i.prototype.clear=function(){delete this._array;return this};i.prototype.height=function(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)};i.prototype.move=function(t,i){return this.attr("d",this.array().move(t,i))};i.prototype.plot=function(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new bn(t))};i.prototype.size=function(t,i){var n=w(this,t,i);return this.attr("d",this.array().size(n.width,n.height))};i.prototype.width=function(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)};i.prototype.x=function(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)};i.prototype.y=function(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)};return i}(ji);Hn.prototype.MorphArray=bn;h({Container:{path:z((function(t){return this.put(new Hn).plot(t||new bn)}))}});Z(Hn,"Path");function Zn(){return this._array||(this._array=new Ri(this.attr("points")))}function Sn(){delete this._array;return this}function Tn(t,i){return this.attr("points",this.array().move(t,i))}function Fn(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new Ri(t))}function Dn(t,i){var n=w(this,t,i);return this.attr("points",this.array().size(n.width,n.height))}var In={__proto__:null,array:Zn,clear:Sn,move:Tn,plot:Fn,size:Dn};var zn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("polygon",i),n)||this}return i}(ji);h({Container:{polygon:z((function(t){return this.put(new zn).plot(t||new Ri)}))}});I(zn,Ji);I(zn,In);Z(zn,"Polygon");var Nn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("polyline",i),n)||this}return i}(ji);h({Container:{polyline:z((function(t){return this.put(new Nn).plot(t||new Ri)}))}});I(Nn,Ji);I(Nn,In);Z(Nn,"Polyline");var Pn=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("rect",i),n)||this}return i}(ji);I(Pn,{rx:Ai,ry:Li});h({Container:{rect:z((function(t,i){return this.put(new Pn).size(t,i)}))}});Z(Pn,"Rect");var Gn=function(){function t(){this._first=null;this._last=null}t.prototype.first=function(){return this._first&&this._first.value};t.prototype.last=function(){return this._last&&this._last.value};t.prototype.push=function(t){var i=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){i.prev=this._last;this._last.next=i;this._last=i}else{this._last=i;this._first=i}return i};t.prototype.remove=function(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null};t.prototype.shift=function(){var t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value};return t}();var Rn={nextDraw:null,frames:new Gn,timeouts:new Gn,immediates:new Gn,timer:function(){return k.window.performance||k.window.Date},transforms:[],frame:function(t){var i=Rn.frames.push({run:t});if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return i},timeout:function(t,i){i=i||0;var n=Rn.timer().now()+i;var r=Rn.timeouts.push({run:t,time:n});if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return r},immediate:function(t){var i=Rn.immediates.push(t);if(Rn.nextDraw===null){Rn.nextDraw=k.window.requestAnimationFrame(Rn._draw)}return i},cancelFrame:function(t){t!=null&&Rn.frames.remove(t)},clearTimeout:function(t){t!=null&&Rn.timeouts.remove(t)},cancelImmediate:function(t){t!=null&&Rn.immediates.remove(t)},_draw:function(t){var i=null;var n=Rn.timeouts.last();while(i=Rn.timeouts.shift()){if(t>=i.time){i.run()}else{Rn.timeouts.push(i)}if(i===n)break}var r=null;var e=Rn.frames.last();while(r!==e&&(r=Rn.frames.shift())){r.run(t)}var s=null;while(s=Rn.immediates.shift()){s()}Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?k.window.requestAnimationFrame(Rn._draw):null}};var Yn=function(t){var i=t.start;var n=t.runner.duration();var r=i+n;return{start:i,duration:n,end:r,runner:t.runner}};var Xn=function(){var t=k.window;return(t.performance||t.Date).now()};var $n=function(t){__extends(i,t);function i(i){if(i===void 0){i=Xn}var n=t.call(this)||this;n._timeSource=i;n.terminate();return n}i.prototype.active=function(){return!!this._nextFrame};i.prototype.finish=function(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()};i.prototype.getEndTime=function(){var t=this.getLastRunnerInfo();var i=t?t.runner.duration():0;var n=t?t.start:this._time;return n+i};i.prototype.getEndTimeOfTimeline=function(){var t=this._runners.map((function(t){return t.start+t.runner.duration()}));return Math.max.apply(Math,__spreadArray([0],t,false))};i.prototype.getLastRunnerInfo=function(){return this.getRunnerInfoById(this._lastRunnerId)};i.prototype.getRunnerInfoById=function(t){return this._runners[this._runnerIds.indexOf(t)]||null};i.prototype.pause=function(){this._paused=true;return this._continue()};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.play=function(){this._paused=false;return this.updateTime()._continue()};i.prototype.reverse=function(t){var i=this.speed();if(t==null)return this.speed(-i);var n=Math.abs(i);return this.speed(t?-n:n)};i.prototype.schedule=function(t,i,n){if(t==null){return this._runners.map(Yn)}var r=0;var e=this.getEndTime();i=i||0;if(n==null||n==="last"||n==="after"){r=e}else if(n==="absolute"||n==="start"){r=i;i=0}else if(n==="now"){r=this._time}else if(n==="relative"){var s=this.getRunnerInfoById(t.id);if(s){r=s.start+i;i=0}}else if(n==="with-last"){var u=this.getLastRunnerInfo();var h=u?u.start:this._time;r=h}else{throw new Error('Invalid value for the "when" parameter')}t.unschedule();t.timeline(this);var o=t.persist();var f={persist:o===null?this._persist:o,start:r+i,runner:t};this._lastRunnerId=t.id;this._runners.push(f);this._runners.sort((function(t,i){return t.start-i.start}));this._runnerIds=this._runners.map((function(t){return t.runner.id}));this.updateTime()._continue();return this};i.prototype.seek=function(t){return this.time(this._time+t)};i.prototype.source=function(t){if(t==null)return this._timeSource;this._timeSource=t;return this};i.prototype.speed=function(t){if(t==null)return this._speed;this._speed=t;return this};i.prototype.stop=function(){this.time(0);return this.pause()};i.prototype.time=function(t){if(t==null)return this._time;this._time=t;return this._continue(true)};i.prototype.unschedule=function(t){var i=this._runnerIds.indexOf(t.id);if(i<0)return this;this._runners.splice(i,1);this._runnerIds.splice(i,1);t.timeline(null);return this};i.prototype.updateTime=function(){if(!this.active()){this._lastSourceTime=this._timeSource()}return this};i.prototype._continue=function(t){if(t===void 0){t=false}Rn.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=Rn.frame(this._step);return this};i.prototype._stepFn=function(t){if(t===void 0){t=false}var i=this._timeSource();var n=i-this._lastSourceTime;if(t)n=0;var r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=i;if(!t){this._time+=r;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(var e=this._runners.length;e--;){var s=this._runners[e];var u=s.runner;var h=this._time-s.start;if(h<=0){u.reset()}}var o=false;for(var f=0,a=this._runners.length;f<a;f++){var s=this._runners[f];var u=s.runner;var c=r;var h=this._time-s.start;if(h<=0){o=true;continue}else if(h<c){c=h}if(!u.active())continue;var v=u.step(c).done;if(!v){o=true}else if(s.persist!==true){var l=u.duration()-u.time()+this._time;if(l+s.persist<this._time){u.unschedule();--f;--a}}}if(o&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0){this._continue()}else{this.pause();this.fire("finished")}return this};i.prototype.terminate=function(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)};return i}(si);h({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new $n;return this._timeline}else{this._timeline=t;return this}}}});var Qn=function(t){__extends(i,t);function i(n){var r=t.call(this)||this;r.id=i.id++;n=n==null?hi.duration:n;n=typeof n==="function"?new en(n):n;r._element=null;r._timeline=null;r.done=false;r._queue=[];r._duration=typeof n==="number"&&n;r._isDeclarative=n instanceof en;r._stepper=r._isDeclarative?n:new rn;r._history={};r.enabled=true;r._time=0;r._lastTime=0;r._reseted=true;r.transforms=new St;r.transformId=1;r._haveReversed=false;r._reverse=false;r._loopsDone=0;r._swing=false;r._wait=0;r._times=1;r._frameId=null;r._persist=r._isDeclarative?true:null;return r}i.sanitise=function(t,i,n){var r,e,s,u,h;var o=1;var f=false;var a=0;t=t!==null&&t!==void 0?t:hi.duration;i=i!==null&&i!==void 0?i:hi.delay;n=n||"last";if(typeof t==="object"&&!(t instanceof nn)){i=(r=t.delay)!==null&&r!==void 0?r:i;n=(e=t.when)!==null&&e!==void 0?e:n;f=t.swing||f;o=(s=t.times)!==null&&s!==void 0?s:o;a=(u=t.wait)!==null&&u!==void 0?u:a;t=(h=t.duration)!==null&&h!==void 0?h:hi.duration}return{duration:t,delay:i,swing:f,times:o,wait:a,when:n}};i.prototype.active=function(t){if(t==null)return this.enabled;this.enabled=t;return this};i.prototype.addTransform=function(t){this.transforms.lmultiplyO(t);return this};i.prototype.after=function(t){return this.on("finished",t)};i.prototype.animate=function(t,n,r){var e=i.sanitise(t,n,r);var s=new i(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)};i.prototype.clearTransform=function(){this.transforms=new St;return this};i.prototype.clearTransformsFromQueue=function(){if(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id)){this._queue=this._queue.filter((function(t){return!t.isTransform}))}};i.prototype.delay=function(t){return this.animate(0,t)};i.prototype.duration=function(){return this._times*(this._wait+this._duration)-this._wait};i.prototype.during=function(t){return this.queue(null,t)};i.prototype.ease=function(t){this._stepper=new rn(t);return this};i.prototype.element=function(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this};i.prototype.finish=function(){return this.step(Infinity)};i.prototype.loop=function(t,i,n){if(typeof t==="object"){i=t.swing;n=t.wait;t=t.times}this._times=t||Infinity;this._swing=i||false;this._wait=n||0;if(this._times===true){this._times=Infinity}return this};i.prototype.loops=function(t){var i=this._duration+this._wait;if(t==null){var n=Math.floor(this._time/i);var r=this._time-n*i;var e=r/this._duration;return Math.min(n+e,this._times)}var s=Math.floor(t);var u=t%1;var h=i*s+this._duration*u;return this.time(h)};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.position=function(t){var i=this._time;var n=this._duration;var r=this._wait;var e=this._times;var s=this._swing;var u=this._reverse;var h;if(t==null){var o=function(t){var i=s*Math.floor(t%(2*(r+n))/(r+n));var e=i&&!u||!i&&u;var h=Math.pow(-1,e)*(t%(r+n))/n+e;var o=Math.max(Math.min(h,1),0);return o};var f=e*(r+n)-r;h=i<=0?Math.round(o(1e-5)):i<f?o(i):Math.round(o(f-1e-5));return h}var a=Math.floor(this.loops());var c=s&&a%2===0;var v=c&&!u||u&&c;h=a+(v?t:1-t);return this.loops(h)};i.prototype.progress=function(t){if(t==null){return Math.min(1,this._time/this.duration())}return this.time(t*this.duration())};i.prototype.queue=function(t,i,n,r){this._queue.push({initialiser:t||ui,runner:i||ui,retarget:n,isTransform:r,initialised:false,finished:false});var e=this.timeline();e&&this.timeline()._continue();return this};i.prototype.reset=function(){if(this._reseted)return this;this.time(0);this._reseted=true;return this};i.prototype.reverse=function(t){this._reverse=t==null?!this._reverse:t;return this};i.prototype.schedule=function(t,i,n){if(!(t instanceof $n)){n=i;i=t;t=this.timeline()}if(!t){throw Error("Runner cannot be scheduled without timeline")}t.schedule(this,i,n);return this};i.prototype.step=function(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;var i=this.position();var n=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;var r=this.duration();var e=this._lastTime<=0&&this._time>0;var s=this._lastTime<r&&this._time>=r;this._lastTime=this._time;if(e){this.fire("start",this)}var u=this._isDeclarative;this.done=!u&&!s&&this._time>=r;this._reseted=false;var h=false;if(n||u){this._initialise(n);this.transforms=new St;h=this._run(u?t:i);this.fire("step",this)}this.done=this.done||h&&u;if(s){this.fire("finished",this)}return this};i.prototype.time=function(t){if(t==null){return this._time}var i=t-this._time;this.step(i);return this};i.prototype.timeline=function(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this};i.prototype.unschedule=function(){var t=this.timeline();t&&t.unschedule(this);return this};i.prototype._initialise=function(t){if(!t&&!this._isDeclarative)return;for(var i=0,n=this._queue.length;i<n;++i){var r=this._queue[i];var e=this._isDeclarative||!r.initialised&&t;t=!r.finished;if(e&&t){r.initialiser.call(this);r.initialised=true}}};i.prototype._rememberMorpher=function(t,i){this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){var n=this.timeline();n&&n.play()}};i.prototype._run=function(t){var i=true;for(var n=0,r=this._queue.length;n<r;++n){var e=this._queue[n];var s=e.runner.call(this,t);e.finished=e.finished||s===true;i=i&&e.finished}return i};i.prototype._tryRetarget=function(t,i,n){if(this._history[t]){if(!this._history[t].caller.initialised){var r=this._queue.indexOf(this._history[t].caller);this._queue.splice(r,1);return false}if(this._history[t].caller.retarget){this._history[t].caller.retarget.call(this,i,n)}else{this._history[t].morpher.to(i)}this._history[t].caller.finished=false;var e=this.timeline();e&&e.play();return true}return false};return i}(si);Qn.id=0;var Un=function(){function t(t,i,n){if(t===void 0){t=new St}if(i===void 0){i=-1}if(n===void 0){n=true}this.transforms=t;this.id=i;this.done=n}t.prototype.clearTransformsFromQueue=function(){};return t}();I([Qn,Un],{mergeWith:function(t){return new Un(t.transforms.lmultiply(this.transforms),t.id)}});var Jn=function(t,i){return t.lmultiplyO(i)};var qn=function(t){return t.transforms};function Wn(){var t=this._transformationRunners.runners;var i=t.map(qn).reduce(Jn,new St);this.transform(i);this._transformationRunners.merge();if(this._transformationRunners.length()===1){this._frameId=null}}var Kn=function(){function t(){this.runners=[];this.ids=[]}t.prototype.add=function(t){if(this.runners.includes(t))return;var i=t.id+1;this.runners.push(t);this.ids.push(i);return this};t.prototype.clearBefore=function(t){var i=this.ids.indexOf(t+1)||1;this.ids.splice(0,i,0);this.runners.splice(0,i,new Un).forEach((function(t){return t.clearTransformsFromQueue()}));return this};t.prototype.edit=function(t,i){var n=this.ids.indexOf(t+1);this.ids.splice(n,1,t+1);this.runners.splice(n,1,i);return this};t.prototype.getByID=function(t){return this.runners[this.ids.indexOf(t+1)]};t.prototype.length=function(){return this.ids.length};t.prototype.merge=function(){var t=null;for(var i=0;i<this.runners.length;++i){var n=this.runners[i];var r=t&&n.done&&t.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id));if(r){this.remove(n.id);var e=n.mergeWith(t);this.edit(t.id,e);t=e;--i}else{t=n}}return this};t.prototype.remove=function(t){var i=this.ids.indexOf(t+1);this.ids.splice(i,1);this.runners.splice(i,1);return this};return t}();h({Element:{animate:function(t,i,n){var r=Qn.sanitise(t,i,n);var e=this.timeline();return new Qn(r.duration).loop(r).element(this).timeline(e.play()).schedule(r.delay,r.when)},delay:function(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore:function(t){this._transformationRunners.clearBefore(t.id)},_currentTransform:function(t){return this._transformationRunners.runners.filter((function(i){return i.id<=t.id})).map(qn).reduce(Jn,new St)},_addRunner:function(t){this._transformationRunners.add(t);Rn.cancelImmediate(this._frameId);this._frameId=Rn.immediate(Wn.bind(this))},_prepareRunner:function(){if(this._frameId==null){this._transformationRunners=(new Kn).add(new Un(new St(this)))}}}});var tr=function(t,i){return t.filter((function(t){return!i.includes(t)}))};I(Qn,{attr:function(t,i){return this.styleAttr("attr",t,i)},css:function(t,i){return this.styleAttr("css",t,i)},styleAttr:function(t,i,n){var r;if(typeof i==="string"){return this.styleAttr(t,(r={},r[i]=n,r))}var e=i;if(this._tryRetarget(t,e))return this;var s=new kn(this._stepper).to(e);var u=Object.keys(e);this.queue((function(){s=s.from(this.element()[t](u))}),(function(i){this.element()[t](s.at(i).valueOf());return s.done()}),(function(i){var n=Object.keys(i);var r=tr(n,u);if(r.length){var h=this.element()[t](r);var o=new Vn(s.from()).valueOf();Object.assign(o,h);s.from(o)}var f=new Vn(s.to()).valueOf();Object.assign(f,i);s.to(f);u=n;e=i}));this._rememberMorpher(t,s);return this},zoom:function(t,i){if(this._tryRetarget("zoom",t,i))return this;var n=new kn(this._stepper).to(new ai(t));this.queue((function(){n=n.from(this.element().zoom())}),(function(t){this.element().zoom(n.at(t),i);return n.done()}),(function(t,r){i=r;n.to(t)}));this._rememberMorpher("zoom",n);return this},transform:function(t,i,n){i=t.relative||i;if(this._isDeclarative&&!i&&this._tryRetarget("transform",t)){return this}var r=St.isMatrixLike(t);n=t.affine!=null?t.affine:n!=null?n:!r;var e=new kn(this._stepper).type(n?An:St);var s;var u;var h;var o;var f;function a(){u=u||this.element();s=s||p(t,u);f=new St(i?undefined:u);u._addRunner(this);if(!i){u._clearTransformRunnersBefore(this)}}function c(a){if(!i)this.clearTransform();var c=new Et(s).transform(u._currentTransform(this)),v=c.x,l=c.y;var d=new St(__assign(__assign({},t),{origin:[v,l]}));var C=this._isDeclarative&&h?h:f;if(n){d=d.decompose(v,l);C=C.decompose(v,l);var w=d.rotate;var p=C.rotate;var g=[w-360,w,w+360];var y=g.map((function(t){return Math.abs(t-p)}));var m=Math.min.apply(Math,y);var x=y.indexOf(m);d.rotate=g[x]}if(i){if(!r){d.rotate=t.rotate||0}if(this._isDeclarative&&o){C.rotate=o}}e.from(C);e.to(d);var _=e.at(a);o=_.rotate;h=new St(_);this.addTransform(h);u._addRunner(this);return e.done()}function v(i){if((i.origin||"center").toString()!==(t.origin||"center").toString()){s=p(i,u)}t=__assign(__assign({},i),{origin:s})}this.queue(a,c,v,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x:function(t){return this._queueNumber("x",t)},y:function(t){return this._queueNumber("y",t)},ax:function(t){return this._queueNumber("ax",t)},ay:function(t){return this._queueNumber("ay",t)},dx:function(t){if(t===void 0){t=0}return this._queueNumberDelta("x",t)},dy:function(t){if(t===void 0){t=0}return this._queueNumberDelta("y",t)},dmove:function(t,i){return this.dx(t).dy(i)},_queueNumberDelta:function(t,i){i=new ai(i);if(this._tryRetarget(t,i))return this;var n=new kn(this._stepper).to(i);var r=null;this.queue((function(){r=this.element()[t]();n.from(r);n.to(r+i)}),(function(i){this.element()[t](n.at(i));return n.done()}),(function(t){n.to(r+new ai(t))}));this._rememberMorpher(t,n);return this},_queueObject:function(t,i){if(this._tryRetarget(t,i))return this;var n=new kn(this._stepper).to(i);this.queue((function(){n.from(this.element()[t]())}),(function(i){this.element()[t](n.at(i));return n.done()}));this._rememberMorpher(t,n);return this},_queueNumber:function(t,i){return this._queueObject(t,new ai(i))},cx:function(t){return this._queueNumber("cx",t)},cy:function(t){return this._queueNumber("cy",t)},move:function(t,i){return this.x(t).y(i)},amove:function(t,i){return this.ax(t).ay(i)},center:function(t,i){return this.cx(t).cy(i)},size:function(t,i){var n;if(!t||!i){n=this._element.bbox()}if(!t){t=n.width/n.height*i}if(!i){i=n.height/n.width*t}return this.width(t).height(i)},width:function(t){return this._queueNumber("width",t)},height:function(t){return this._queueNumber("height",t)},plot:function(t,i,n,r){if(arguments.length===4){return this.plot([t,i,n,r])}if(this._tryRetarget("plot",t))return this;var e=new kn(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading:function(t){return this._queueNumber("leading",t)},viewbox:function(t,i,n,r){return this._queueObject("viewbox",new Nt(t,i,n,r))},update:function(t){if(typeof t!=="object"){return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]})}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});I(Qn,{rx:Ai,ry:Li,from:Di,to:Ii});Z(Qn,"Runner");var ir=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r=t.call(this,B("svg",i),n)||this;r.namespace();return r}i.prototype.defs=function(){if(!this.isRoot())return this.root().defs();return E(this.node.querySelector("defs"))||this.put(new ki)};i.prototype.isRoot=function(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"};i.prototype.namespace=function(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",M,b)};i.prototype.removeNamespace=function(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,b).attr("xmlns:svgjs",null,b)};i.prototype.root=function(){if(this.isRoot())return this;return t.prototype.root.call(this)};return i}(Mi);h({Container:{nested:z((function(){return this.put(new ir)}))}});Z(ir,"Svg",true);var nr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("symbol",i),n)||this}return i}(Mi);h({Container:{symbol:z((function(){return this.put(new nr)}))}});Z(nr,"Symbol");function rr(t){if(this._build===false){this.clear()}this.node.appendChild(k.document.createTextNode(t));return this}function er(){return this.node.getComputedTextLength()}function sr(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.x}return this.attr("x",this.attr("x")+t-i.x)}function ur(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.y}return this.attr("y",this.attr("y")+t-i.y)}function hr(t,i,n){if(n===void 0){n=this.bbox()}return this.x(t,n).y(i,n)}function or(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cx}return this.attr("x",this.attr("x")+t-i.cx)}function fr(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cy}return this.attr("y",this.attr("y")+t-i.cy)}function ar(t,i,n){if(n===void 0){n=this.bbox()}return this.cx(t,n).cy(i,n)}function cr(t){return this.attr("x",t)}function vr(t){return this.attr("y",t)}function lr(t,i){return this.ax(t).ay(i)}function dr(t){this._build=!!t;return this}var Cr={__proto__:null,amove:lr,ax:cr,ay:vr,build:dr,center:ar,cx:or,cy:fr,length:er,move:hr,plain:rr,x:sr,y:ur};var wr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r;var e=t.call(this,B("text",i),n)||this;e.dom.leading=(r=e.dom.leading)!==null&&r!==void 0?r:new ai(1.3);e._rebuild=true;e._build=false;return e}i.prototype.leading=function(t){if(t==null){return this.dom.leading}this.dom.leading=new ai(t);return this.rebuild()};i.prototype.rebuild=function(t){if(typeof t==="boolean"){this._rebuild=t}if(this._rebuild){var i=this;var n=0;var r=this.dom.leading;this.each((function(t){if(y(this.node))return;var e=k.window.getComputedStyle(this.node).getPropertyValue("font-size");var s=r*new ai(e);if(this.dom.newLined){this.attr("x",i.attr("x"));if(this.text()==="\n"){n+=s}else{this.attr("dy",t?s+n:0);n=0}}}));this.fire("rebuild")}return this};i.prototype.setData=function(t){this.dom=t;this.dom.leading=new ai(t.leading||1.3);return this};i.prototype.writeDataToDom=function(){m(this,this.dom,{leading:1.3});return this};i.prototype.text=function(t){if(t===undefined){var i=this.node.childNodes;var n=0;t="";for(var r=0,e=i.length;r<e;++r){if(i[r].nodeName==="textPath"||y(i[r])){if(r===0)n=r+1;continue}if(r!==n&&i[r].nodeType!==3&&E(i[r]).dom.newLined===true){t+="\n"}t+=i[r].textContent}return t}this.clear().build(true);if(typeof t==="function"){t.call(this,this)}else{t=(t+"").split("\n");for(var s=0,u=t.length;s<u;s++){this.newLine(t[s])}}return this.build(false).rebuild()};return i}(ji);I(wr,Cr);h({Container:{text:z((function(t){if(t===void 0){t=""}return this.put(new wr).text(t)})),plain:z((function(t){if(t===void 0){t=""}return this.put(new wr).plain(t)}))}});Z(wr,"Text");var pr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}var r=t.call(this,B("tspan",i),n)||this;r._build=false;return r}i.prototype.dx=function(t){return this.attr("dx",t)};i.prototype.dy=function(t){return this.attr("dy",t)};i.prototype.newLine=function(){this.dom.newLined=true;var t=this.parent();if(!(t instanceof wr)){return this}var i=t.index(this);var n=k.window.getComputedStyle(this.node).getPropertyValue("font-size");var r=t.dom.leading*new ai(n);return this.dy(i?r:0).attr("x",t.x())};i.prototype.text=function(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else{this.plain(t)}return this};return i}(ji);I(pr,Cr);h({Tspan:{tspan:z((function(t){if(t===void 0){t=""}var i=new pr;if(!this._build){this.clear()}return this.put(i).text(t)}))},Text:{newLine:function(t){if(t===void 0){t=""}return this.tspan(t).newLine()}}});Z(pr,"Tspan");var gr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("circle",i),n)||this}i.prototype.radius=function(t){return this.attr("r",t)};i.prototype.rx=function(t){return this.attr("r",t)};i.prototype.ry=function(t){return this.rx(t)};i.prototype.size=function(t){return this.radius(new ai(t).divide(2))};return i}(ji);I(gr,{x:Vi,y:Oi,cx:Bi,cy:Ei,width:Hi,height:Zi});h({Container:{circle:z((function(t){if(t===void 0){t=0}return this.put(new gr).size(t).move(0,0)}))}});Z(gr,"Circle");var yr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("clipPath",i),n)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unclip()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return Qt("svg [clip-path*="+this.id()+"]")};return i}(Mi);h({Container:{clip:z((function(){return this.defs().put(new yr)}))},Element:{clipper:function(){return this.reference("clip-path")},clipWith:function(t){var i=t instanceof yr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip:function(){return this.attr("clip-path",null)}}});Z(yr,"ClipPath");var mr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("foreignObject",i),n)||this}return i}(wi);h({Container:{foreignObject:z((function(t,i){return this.put(new mr).size(t,i)}))}});Z(mr,"ForeignObject");function xr(t,i){this.children().forEach((function(n){var r;try{r=n.bbox()}catch(t){return}var e=new St(n);var s=e.translate(t,i).transform(e.inverse());var u=new Et(r.x,r.y).transform(s);n.move(u.x,u.y)}));return this}function _r(t){return this.dmove(t,0)}function br(t){return this.dmove(0,t)}function Mr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.height;return this.size(i.width,t,i)}function kr(t,i,n){if(t===void 0){t=0}if(i===void 0){i=0}if(n===void 0){n=this.bbox()}var r=t-n.x;var e=i-n.y;return this.dmove(r,e)}function jr(t,i,n){if(n===void 0){n=this.bbox()}var r=w(this,t,i,n);var e=r.width/n.width;var s=r.height/n.height;this.children().forEach((function(t){var i=new Et(n).transform(new St(t).inverse());t.scale(e,s,i.x,i.y)}));return this}function Ar(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.width;return this.size(t,i.height,i)}function Lr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.x;return this.move(t,i.y,i)}function Vr(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.y;return this.move(i.x,t,i)}var Or={__proto__:null,dmove:xr,dx:_r,dy:br,height:Mr,move:kr,size:jr,width:Ar,x:Lr,y:Vr};var Br=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("g",i),n)||this}return i}(Mi);I(Br,Or);h({Container:{group:z((function(){return this.put(new Br)}))}});Z(Br,"G");var Er=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("a",i),n)||this}i.prototype.target=function(t){return this.attr("target",t)};i.prototype.to=function(t){return this.attr("href",t,M)};return i}(Mi);I(Er,Or);h({Container:{link:z((function(t){return this.put(new Er).to(t)}))},Element:{unlink:function(){var t=this.linker();if(!t)return this;var i=t.parent();if(!i){return this.remove()}var n=i.index(t);i.add(this,n);t.remove();return this},linkTo:function(t){var i=this.linker();if(!i){i=new Er;this.wrap(i)}if(typeof t==="function"){t.call(i,i)}else{i.to(t)}return this},linker:function(){var t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a"){return t}return null}}});Z(Er,"A");var Hr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("mask",i),n)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unmask()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return Qt("svg [mask*="+this.id()+"]")};return i}(Mi);h({Container:{mask:z((function(){return this.defs().put(new Hr)}))},Element:{masker:function(){return this.reference("mask")},maskWith:function(t){var i=t instanceof Hr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask:function(){return this.attr("mask",null)}}});Z(Hr,"Mask");var Zr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("stop",i),n)||this}i.prototype.update=function(t){if(typeof t==="number"||t instanceof ai){t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new ai(t.offset));return this};return i}(wi);h({Gradient:{stop:function(t,i,n){return this.put(new Zr).update(t,i,n)}}});Z(Zr,"Stop");function Sr(t,i){if(!t)return"";if(!i)return t;var n=t+"{";for(var r in i){n+=d(r)+":"+i[r]+";"}n+="}";return n}var Tr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("style",i),n)||this}i.prototype.addText=function(t){if(t===void 0){t=""}this.node.textContent+=t;return this};i.prototype.font=function(t,i,n){if(n===void 0){n={}}return this.rule("@font-face",__assign({fontFamily:t,src:i},n))};i.prototype.rule=function(t,i){return this.addText(Sr(t,i))};return i}(wi);h("Dom",{style:function(t,i){return this.put(new Tr).rule(t,i)},fontface:function(t,i,n){return this.put(new Tr).font(t,i,n)}});Z(Tr,"Style");var Fr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("textPath",i),n)||this}i.prototype.array=function(){var t=this.track();return t?t.array():null};i.prototype.plot=function(t){var i=this.track();var n=null;if(i){n=i.plot(t)}return t==null?n:this};i.prototype.track=function(){return this.reference("href")};return i}(wr);h({Container:{textPath:z((function(t,i){if(!(t instanceof wr)){t=this.text(t)}return t.path(i)}))},Text:{path:z((function(t,i){if(i===void 0){i=true}var n=new Fr;if(!(t instanceof Hn)){t=this.defs().path(t)}n.attr("href","#"+t,M);var r;if(i){while(r=this.node.firstChild){n.node.appendChild(r)}}return this.put(n)})),textPath:function(){return this.findOne("textPath")}},Path:{text:z((function(t){if(!(t instanceof wr)){t=(new wr).addTo(this.parent()).text(t)}return t.path(this)})),targets:function(){var t=this;return Qt("svg textPath").filter((function(i){return(i.attr("href")||"").includes(t.id())}))}}});Fr.prototype.MorphArray=bn;Z(Fr,"TextPath");var Dr=function(t){__extends(i,t);function i(i,n){if(n===void 0){n=i}return t.call(this,B("use",i),n)||this}i.prototype.use=function(t,i){return this.attr("href",(i||"")+"#"+t,M)};return i}(ji);h({Container:{use:z((function(t,i){return this.put(new Dr).use(t,i)}))}});Z(Dr,"Use");var Ir=O;I([ir,nr,Gi,Pi,Wi],o("viewbox"));I([qi,Nn,zn,Hn],o("marker"));I(wr,o("Text"));I(Hn,o("Path"));I(ki,o("Defs"));I([wr,pr],o("Tspan"));I([Pn,Ti,Ni,Qn],o("radius"));I(si,o("EventTarget"));I(Ci,o("Dom"));I(wi,o("Element"));I(ji,o("Shape"));I([Mi,Fi],o("Container"));I(Ni,o("Gradient"));I(Qn,o("Runner"));Xt.extend(f());Bn([ai,Bt,Nt,St,fi,Ri,bn,Et]);En();function zr(){var t={entities:[]};var i;var n=[];function r(t,n,r){i=Ir().addTo(t).size(n,r);i.entities=[];i.lines=i.group();i.labels=i.group()}function e(t,i){var n;var r=t.group().attr({id:i.id});t.entities.push(r);i.background_color=i.background_color?i.background_color:"#f06";i.color=i.color?i.color:"#ffffff";i.radius=i.radius?i.radius:0;r.entity=r.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr((n={fill:"#ffffff",stroke:i.color},n["stroke-width"]=2,n)).radius(i.radius);if(i.class){r.entity.attr("class",i.class)}r.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color});r.move(i.x,i.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((function(t){i.labels.text(t.value).x(t.x).y(t.y)}))}}function u(t,i){i.forEach((function(i){return h(t,i)}))}function h(t,i){var n="";var r=i.color||"#4c56cb";var e=t.findOne("#"+i.from.element);var s=t.findOne("#"+i.to.element);var u=o(i,e,s);n+=a(e,i.from.point)+","+c(e,i.from.point)+" ";u.forEach((function(t){return n+=t.x+","+t.y+" "}));if(i.to.point==="top"){n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}else if(i.to.point==="bottom"){n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}else{n+=a(s,i.to.point)+","+c(s,i.to.point)+" "}if(!i.polyline){i.polyline=t.lines.polyline(n).fill("none").stroke({color:r,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}else{i.polyline.plot(n)}}function o(t,i,n){var r=[];var e=c(i,t.from.point);var s=c(n,t.to.point);var u=a(i,t.from.point);var h=a(n,t.to.point);var o=f(t.from.point);var v=f(t.to.point);var l=o-v;if(l===0){if(t.from.point==="top"){if(e<=s){r.push({x:u,y:e-20});r.push({x:h,y:e-20})}else{r.push({x:u,y:s-20});r.push({x:h,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){r.push({x:u,y:s+20});r.push({x:h,y:s+20})}else{r.push({x:u,y:e+20});r.push({x:h,y:e+20})}}else{if(u<=h){r.push({x:h+20,y:e});r.push({x:h+20,y:s})}else{r.push({x:u+20,y:e});r.push({x:u+20,y:s})}}}if(l===2||l===-2){if(u!==h){r.push({x:u,y:s+(e-s)/2});r.push({x:h,y:s+(e-s)/2})}}if(l===1||l===-1||l===3||l===-3){if(t.from.point==="top"){if(e<s+20){r.push({x:u,y:e-20});r.push({x:h+20,y:e-20});r.push({x:h+20,y:s})}else{r.push({x:u,y:s})}}if(t.from.point==="bottom"){if(e>s-20){r.push({x:u,y:e+20});r.push({x:h+20,y:e+20});r.push({x:h+20,y:s})}else{r.push({x:u,y:s})}}}return r}function f(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function a(t,i){var n=t.entity.attr("width");var r=t.entity.attr("x");switch(i){case"top":case"bottom":return r+n/2;default:return r-n/2}}function c(t,i){var n=t.entity.attr("height");var r=t.entity.attr("y");switch(i){case"top":return r;case"bottom":return r+n;default:return r}}function v(){i.entities.forEach((function(t){return t.remove()}));i.entities=[];n=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((function(t){return{id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}}));t.entities.map((function(t){t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((function(t){return e(i,t)}));n=t.lines;u(i,n)}function l(i){t=i;v()}return{initalize:r,update:l}}var Nr='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';var Pr=Nr;var Gr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';var Rr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>';var Yr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var Xr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var $r='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var Qr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var Ur='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';var Jr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>';var qr='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var Wr='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var Kr='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';var te='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>';var ie='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var ne='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var re='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';var ee='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>';var se='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var ue='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var he='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var oe='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var fe=140;var ae=40;var ce=40;var ve=t("verdocs_status_indicator",function(){function t(t){i(this,t);this.recipientStatusIcons=[];this.size="normal";this.theme="light";this.status=undefined;this.envelope=undefined;this.isOpen=undefined;this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){var t=this;var i;this.popper=e(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((i=this.envelope)===null||i===void 0?void 0:i.recipients){var n=[];this.envelope.recipients.forEach((function(t){var i=t.sequence-1;n[i]||(n[i]=[]);var r="r-".concat(i,"-").concat(n[i].length);n[i].push(__assign(__assign({},t),{id:r}))}));var r=Object.keys(n).length;var s=r*ae+(r+1)*ce;var u=0;Object.values(n).forEach((function(t){var i=t.length*fe+(t.length+1)*ce;if(i>u){u=i}}));var h=[];var o=[];var f=[];var a=ce;Object.entries(n).forEach((function(i){var r=i[0],e=i[1];var s=e.length*(fe+ce);var c=u-s;var v=ce/2+c/2;e.forEach((function(i,e){var s;var u=(i.full_name||"Unknown").toUpperCase().split(" "),c=u[0],l=u[1];var d="".concat(c," ").concat(l===null||l===void 0?void 0:l.substring(0,1));var C={id:i.id,text:d,icon:t.getStatusIcon(i.status),x:e*(fe+ce)+v,y:a,width:fe,height:ae,color:t.getStatusColor(i.status),radius:8};h.push(C);f.push({icon:t.getStatusIcon(i.status),x:e*(fe+ce)+v+(fe-32),y:a+ae/2-13});(s=n[+r-1])===null||s===void 0?void 0:s.forEach((function(n){var r={id:"line-".concat(n.id,"-").concat(C.id),from:{element:n.id,point:"bottom"},to:{element:C.id,point:"top"},color:t.getStatusColor(i.status)};o.push(r)}))}));a+=ae+ce}));this.recipientStatusIcons=f;var c=zr();c.initalize("#".concat(this.containerId),u,s);c.update({entities:h,lines:o})}};t.prototype.showDropdown=function(){var t,i;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));(i=this.popper)===null||i===void 0?void 0:i.update()};t.prototype.handleHideDropdown=function(t){var i,n;if(((i=t===null||t===void 0?void 0:t.target)===null||i===void 0?void 0:i.localName)==="button"&&((n=t===null||t===void 0?void 0:t.target)===null||n===void 0?void 0:n.className)==="arrow"){return}this.hide()};t.prototype.toggleDropdown=function(){if(this.isOpen){this.hide()}else{this.showDropdown()}};t.prototype.hide=function(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}))};t.prototype.getStatusColor=function(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}};t.prototype.getStatusIcon=function(t){switch(t){case"accepted":return this.theme==="light"?Rr:Gr;case"complete":return this.theme==="light"?Qr:$r;case"in progress":return this.theme==="light"?Wr:qr;case"canceled":return this.theme==="light"?Xr:Yr;case"declined":return this.theme==="light"?Jr:Ur;case"invited":return this.theme==="light"?Wr:qr;case"opened":return this.theme==="light"?te:Kr;case"signed":return this.theme==="light"?ee:re;case"submitted":return this.theme==="light"?oe:he;case"some-signed":return this.theme==="light"?ue:se;default:case"pending":return this.theme==="light"?ne:ie}};t.prototype.getStatusMessage=function(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}};t.prototype.render=function(){var t=this;var i,e;var s=this.status||((i=this.envelope)===null||i===void 0?void 0:i.status)||"pending"||"accepted";if(!this.status&&((e=this.envelope)===null||e===void 0?void 0:e.recipients)){var u=this.envelope.recipients.filter((function(t){return t.status==="submitted"}));if(u.length>0&&u.length!==this.envelope.recipients.length){s="some-signed"}}var h=this.getStatusIcon(s);var o=this.getStatusMessage(s);return n(r,{key:"aaaa7b0cc222b74a9fc8b1663ca3ddf9d4580cf6",ref:function(i){return t.summaryComponent=i},class:"".concat(this.theme," ").concat(this.size," ").concat(this.envelope?"has-document":""),"aria-label":"Click to View Details",onClick:function(i){i.stopPropagation();i.preventDefault();t.envelope&&t.toggleDropdown()},onBlur:function(i){return t.envelope&&t.handleHideDropdown(i)}},n("span",{key:"03baee21425fefa4ce17e3e1998fb60f32310bb0",class:"icon",innerHTML:h}),n("span",{key:"19b98f1e2cb76a7488bd7400928930d33b1003d0",class:"content"},o),n("div",{key:"870dd620390fa1f201ca1b509f0c3bcf513cfa8c",class:"detail-panel",ref:function(i){return t.detailPanel=i}},n("div",{key:"7cbe6e3452da0997d2169f2d1024e3d68f891d96",id:"".concat(this.containerId)}),this.recipientStatusIcons.map((function(t){return n("span",{innerHTML:t.icon,style:{position:"absolute",top:"".concat(t.y,"px"),left:"".concat(t.x,"px")}})}))))};return t}());ve.style=Pr}}}));
|